]> 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 aaa924d7fa0deca6e17644e123e44bea5b2bf138..394843e510d214dc7885908c68d5bce17a9d76a1 100644 (file)
@@ -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();
     }