]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_monomorphize/src/polymorphize.rs
Auto merge of #99137 - jackh726:wf-no-infcx, r=estebank
[rust.git] / compiler / rustc_monomorphize / src / polymorphize.rs
index f29143b448049320020dc9bf997e9ae37ea0e360..394843e510d214dc7885908c68d5bce17a9d76a1 100644 (file)
@@ -13,9 +13,9 @@
 };
 use rustc_middle::ty::{
     self,
-    fold::{TypeFoldable, TypeSuperFoldable, TypeVisitor},
     query::Providers,
     subst::SubstsRef,
+    visit::{TypeSuperVisitable, TypeVisitable, TypeVisitor},
     Const, Ty, TyCtxt,
 };
 use rustc_span::symbol::sym;
@@ -36,7 +36,7 @@ fn unused_generic_params<'tcx>(
     tcx: TyCtxt<'tcx>,
     instance: ty::InstanceDef<'tcx>,
 ) -> FiniteBitSet<u32> {
-    if !tcx.sess.opts.debugging_opts.polymorphize {
+    if !tcx.sess.opts.unstable_opts.polymorphize {
         // If polymorphization disabled, then all parameters are used.
         return FiniteBitSet::new_empty();
     }