about summary refs log tree commit diff
path: root/compiler/rustc_monomorphize/src/polymorphize.rs
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_monomorphize/src/polymorphize.rs')
-rw-r--r--compiler/rustc_monomorphize/src/polymorphize.rs5
1 files changed, 1 insertions, 4 deletions
diff --git a/compiler/rustc_monomorphize/src/polymorphize.rs b/compiler/rustc_monomorphize/src/polymorphize.rs
index b5a8c6a2e72..71cab023215 100644
--- a/compiler/rustc_monomorphize/src/polymorphize.rs
+++ b/compiler/rustc_monomorphize/src/polymorphize.rs
@@ -300,10 +300,7 @@ impl<'a, 'tcx> TypeVisitor<'tcx> for MarkUsedGenericParams<'a, 'tcx> {
                 ControlFlow::CONTINUE
             }
             ty::ConstKind::Unevaluated(ty::Unevaluated { def, substs, promoted })
-                if matches!(
-                    self.tcx.def_kind(def.did),
-                    DefKind::AnonConst | DefKind::InlineConst
-                ) =>
+                if matches!(self.tcx.def_kind(def.did), DefKind::AnonConst) =>
             {
                 assert_eq!(promoted, ());