Skip to content

Commit a648c26

Browse files
committed
remove Key impls for types that involve an AllocId
1 parent 1578329 commit a648c26

File tree

1 file changed

+0
-24
lines changed
  • compiler/rustc_middle/src/query

1 file changed

+0
-24
lines changed

compiler/rustc_middle/src/query/keys.rs

-24
Original file line numberDiff line numberDiff line change
@@ -368,22 +368,6 @@ impl<'tcx> Key for (ty::Const<'tcx>, FieldIdx) {
368368
}
369369
}
370370

371-
impl<'tcx> Key for (mir::ConstValue<'tcx>, Ty<'tcx>) {
372-
type CacheSelector = DefaultCacheSelector<Self>;
373-
374-
fn default_span(&self, _: TyCtxt<'_>) -> Span {
375-
DUMMY_SP
376-
}
377-
}
378-
379-
impl<'tcx> Key for mir::ConstAlloc<'tcx> {
380-
type CacheSelector = DefaultCacheSelector<Self>;
381-
382-
fn default_span(&self, _: TyCtxt<'_>) -> Span {
383-
DUMMY_SP
384-
}
385-
}
386-
387371
impl<'tcx> Key for ty::PolyTraitRef<'tcx> {
388372
type CacheSelector = DefaultCacheSelector<Self>;
389373

@@ -416,14 +400,6 @@ impl<'tcx> Key for GenericArg<'tcx> {
416400
}
417401
}
418402

419-
impl<'tcx> Key for mir::Const<'tcx> {
420-
type CacheSelector = DefaultCacheSelector<Self>;
421-
422-
fn default_span(&self, _: TyCtxt<'_>) -> Span {
423-
DUMMY_SP
424-
}
425-
}
426-
427403
impl<'tcx> Key for ty::Const<'tcx> {
428404
type CacheSelector = DefaultCacheSelector<Self>;
429405

0 commit comments

Comments
 (0)