Skip to content

Commit 7d42439

Browse files
committed
fix rebase
1 parent 088cbf6 commit 7d42439

File tree

1 file changed

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

1 file changed

+3
-3
lines changed

compiler/rustc_const_eval/src/check_consts/ops.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ 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,
15-
TraitRef, Ty, suggest_constraining_type_param,
14+
self, AssocContainer, Closure, FnDef, FnPtr, GenericArgKind, GenericArgsRef, Param, TraitRef,
15+
Ty, suggest_constraining_type_param,
1616
};
1717
use rustc_session::parse::add_feature_diagnostics;
1818
use rustc_span::{BytePos, Pos, Span, Symbol, sym};
@@ -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)