diff options
| author | Ralf Jung <post@ralfj.de> | 2023-10-02 09:01:51 +0200 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2023-10-02 09:01:51 +0200 |
| commit | a648c26c2c847b92074c44643cfd820bc78c88e1 (patch) | |
| tree | dbdc9fb4b6db3abdee823b988f59ab1c3b5f9d2c | |
| parent | 15783292e5e26336f76ddc2123d66025ec6d84b7 (diff) | |
| download | rust-a648c26c2c847b92074c44643cfd820bc78c88e1.tar.gz rust-a648c26c2c847b92074c44643cfd820bc78c88e1.zip | |
remove Key impls for types that involve an AllocId
| -rw-r--r-- | compiler/rustc_middle/src/query/keys.rs | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/compiler/rustc_middle/src/query/keys.rs b/compiler/rustc_middle/src/query/keys.rs index b1f83796862..090ee5a68b0 100644 --- a/compiler/rustc_middle/src/query/keys.rs +++ b/compiler/rustc_middle/src/query/keys.rs @@ -368,22 +368,6 @@ impl<'tcx> Key for (ty::Const<'tcx>, FieldIdx) { } } -impl<'tcx> Key for (mir::ConstValue<'tcx>, Ty<'tcx>) { - type CacheSelector = DefaultCacheSelector<Self>; - - fn default_span(&self, _: TyCtxt<'_>) -> Span { - DUMMY_SP - } -} - -impl<'tcx> Key for mir::ConstAlloc<'tcx> { - type CacheSelector = DefaultCacheSelector<Self>; - - fn default_span(&self, _: TyCtxt<'_>) -> Span { - DUMMY_SP - } -} - impl<'tcx> Key for ty::PolyTraitRef<'tcx> { type CacheSelector = DefaultCacheSelector<Self>; @@ -416,14 +400,6 @@ impl<'tcx> Key for GenericArg<'tcx> { } } -impl<'tcx> Key for mir::Const<'tcx> { - type CacheSelector = DefaultCacheSelector<Self>; - - fn default_span(&self, _: TyCtxt<'_>) -> Span { - DUMMY_SP - } -} - impl<'tcx> Key for ty::Const<'tcx> { type CacheSelector = DefaultCacheSelector<Self>; |
