Skip to content

Commit 1ce5552

Browse files
committed
fix rebase
1 parent 088cbf6 commit 1ce5552

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_const_eval/src/check_consts

1 file changed

+2
-2
lines changed

compiler/rustc_const_eval/src/check_consts/ops.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ use rustc_middle::mir::CallSource;
1111
use rustc_middle::span_bug;
1212
use rustc_middle::ty::print::{PrintTraitRefExt as _, with_no_trimmed_paths};
1313
use rustc_middle::ty::{
14-
self, AssocItemContainer, Closure, FnDef, FnPtr, GenericArgKind, GenericArgsRef, Param,
14+
self, AssocContainer, Closure, FnDef, FnPtr, GenericArgKind, GenericArgsRef, Param,
1515
TraitRef, Ty, suggest_constraining_type_param,
1616
};
1717
use rustc_session::parse::add_feature_diagnostics;
@@ -362,7 +362,7 @@ fn build_error_for_const_call<'tcx>(
362362
non_or_conditionally,
363363
});
364364
if let Some(item) = ccx.tcx.opt_associated_item(callee) {
365-
if let AssocItemContainer::Trait = item.container
365+
if let AssocContainer::Trait = item.container
366366
&& let parent = item.container_id(ccx.tcx)
367367
&& !ccx.tcx.is_const_trait(parent)
368368
{

0 commit comments

Comments
 (0)