Skip to content

Commit d9751e4

Browse files
committed
Remove type-traversal trait aliases
1 parent 8996171 commit d9751e4

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ impl<'tcx> HasTargetSpec for FunctionCx<'_, '_, 'tcx> {
374374
impl<'tcx> FunctionCx<'_, '_, 'tcx> {
375375
pub(crate) fn monomorphize<T>(&self, value: T) -> T
376376
where
377-
T: TypeFoldable<'tcx> + Copy,
377+
T: TypeFoldable<TyCtxt<'tcx>> + Copy,
378378
{
379379
self.instance.subst_mir_and_normalize_erasing_regions(
380380
self.tcx,

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ mod prelude {
8686
pub(crate) use rustc_middle::ty::layout::{self, LayoutOf, TyAndLayout};
8787
pub(crate) use rustc_middle::ty::{
8888
self, FloatTy, Instance, InstanceDef, IntTy, ParamEnv, Ty, TyCtxt, TypeAndMut,
89-
TypeFoldable, UintTy,
89+
TypeFoldable, TypeVisitableExt, UintTy,
9090
};
9191
pub(crate) use rustc_target::abi::{Abi, Scalar, Size, VariantIdx};
9292

0 commit comments

Comments
 (0)