remove Key impls for types that involve an AllocId
This commit is contained in:
parent
15783292e5
commit
a648c26c2c
@ -368,22 +368,6 @@ fn default_span(&self, _: TyCtxt<'_>) -> Span {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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> {
|
impl<'tcx> Key for ty::PolyTraitRef<'tcx> {
|
||||||
type CacheSelector = DefaultCacheSelector<Self>;
|
type CacheSelector = DefaultCacheSelector<Self>;
|
||||||
|
|
||||||
@ -416,14 +400,6 @@ fn default_span(&self, _: TyCtxt<'_>) -> Span {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
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> {
|
impl<'tcx> Key for ty::Const<'tcx> {
|
||||||
type CacheSelector = DefaultCacheSelector<Self>;
|
type CacheSelector = DefaultCacheSelector<Self>;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user