Skip to content

Commit da054c7

Browse files
committed
Fmease fixes.
1 parent 98f244d commit da054c7

File tree

1 file changed

+2
-4
lines changed
  • compiler/rustc_const_eval/src/interpret

1 file changed

+2
-4
lines changed

compiler/rustc_const_eval/src/interpret/util.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,10 @@
11
use rustc_hir::def_id::{CRATE_DEF_ID, LocalDefId};
22
use rustc_infer::infer::TyCtxtInferExt;
3-
#[allow(rustc::direct_use_of_rustc_type_ir)]
4-
use rustc_infer::infer::canonical::ir::Interner;
53
use rustc_infer::traits::{Obligation, ObligationCause};
6-
use rustc_middle::mir;
74
use rustc_middle::mir::interpret::{AllocInit, Allocation, GlobalAlloc, InterpResult, Pointer};
85
use rustc_middle::ty::layout::TyAndLayout;
96
use rustc_middle::ty::{PolyExistentialPredicate, Ty, TyCtxt, TypeVisitable, TypeVisitableExt};
7+
use rustc_middle::{mir, ty};
108
use rustc_trait_selection::traits::ObligationCtxt;
119
use tracing::debug;
1210

@@ -19,7 +17,7 @@ use crate::interpret::Machine;
1917
pub(crate) fn type_implements_predicates<'tcx, M: Machine<'tcx>>(
2018
ecx: &mut InterpCx<'tcx, M>,
2119
ty: Ty<'tcx>,
22-
preds: <TyCtxt<'tcx> as Interner>::BoundExistentialPredicates,
20+
preds: &ty::List<ty::PolyExistentialPredicate<'tcx>>,
2321
) -> InterpResult<'tcx, bool> {
2422
ensure_monomorphic_enough(ecx.tcx.tcx, ty)?;
2523

0 commit comments

Comments
 (0)