diff options
| author | b-naber <bn263@gmx.de> | 2022-06-30 11:14:39 +0200 |
|---|---|---|
| committer | b-naber <bn263@gmx.de> | 2022-09-13 17:41:02 +0200 |
| commit | a7735cd329da6f9a75c15bb86e5789925c860f31 (patch) | |
| tree | 1ef46827b6ccadf1c53a52f5c49b008ea529d51d /compiler/rustc_monomorphize/src/polymorphize.rs | |
| parent | 2554fa1c8e14f2b34f10e87c115388d5498ffc0c (diff) | |
| download | rust-a7735cd329da6f9a75c15bb86e5789925c860f31.tar.gz rust-a7735cd329da6f9a75c15bb86e5789925c860f31.zip | |
fixes/working version
Diffstat (limited to 'compiler/rustc_monomorphize/src/polymorphize.rs')
| -rw-r--r-- | compiler/rustc_monomorphize/src/polymorphize.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_monomorphize/src/polymorphize.rs b/compiler/rustc_monomorphize/src/polymorphize.rs index d083a3e00b6..b4bda57ba83 100644 --- a/compiler/rustc_monomorphize/src/polymorphize.rs +++ b/compiler/rustc_monomorphize/src/polymorphize.rs @@ -313,7 +313,7 @@ impl<'a, 'tcx> TypeVisitor<'tcx> for MarkUsedGenericParams<'a, 'tcx> { } match constant { - ConstantKind::Ty(_) => constant.super_visit_with(self), + ConstantKind::Ty(ct) => ct.visit_with(self), ConstantKind::Unevaluated(ty::Unevaluated { def, substs: _, promoted: Some(p) }, _) // Avoid considering `T` unused when constants are of the form: // `<Self as Foo<T>>::foo::promoted[p]` |
