diff options
| author | b-naber <bn263@gmx.de> | 2022-09-14 15:35:24 +0200 |
|---|---|---|
| committer | b-naber <bn263@gmx.de> | 2022-09-14 17:30:25 +0200 |
| commit | 6af8fb793697734bf3e19bcb1b5d152d617bb303 (patch) | |
| tree | ce28e3c0abc38368fba67c76de230c3c54a7792c /compiler/rustc_monomorphize/src | |
| parent | ba00189d8e85b735d90144f9523b8a1dad2ccdce (diff) | |
| download | rust-6af8fb793697734bf3e19bcb1b5d152d617bb303.tar.gz rust-6af8fb793697734bf3e19bcb1b5d152d617bb303.zip | |
address review again
Diffstat (limited to 'compiler/rustc_monomorphize/src')
| -rw-r--r-- | compiler/rustc_monomorphize/src/polymorphize.rs | 5 |
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, ()); |
