diff options
| author | bors <bors@rust-lang.org> | 2022-09-24 09:36:29 +0000 | 
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2022-09-24 09:36:29 +0000 | 
| commit | bb5a01617589b5e3ece5a36435fc285bfd13c9a4 (patch) | |
| tree | 7f58d400afb27079579bb5514eb71eff84f15967 /compiler/rustc_query_impl/src/keys.rs | |
| parent | 199fe1d169b5aeeca0e527ded26542b7a05ebd79 (diff) | |
| parent | fc43df0333d5862a219f16d294ae38b14b9191d3 (diff) | |
| download | rust-bb5a01617589b5e3ece5a36435fc285bfd13c9a4.tar.gz rust-bb5a01617589b5e3ece5a36435fc285bfd13c9a4.zip | |
Auto merge of #102064 - cjgillot:revert, r=Mark-Simulacrum
Revert perf-regression 101620 Reverts #101862 #101620 r? `@Mark-Simulacrum`
Diffstat (limited to 'compiler/rustc_query_impl/src/keys.rs')
| -rw-r--r-- | compiler/rustc_query_impl/src/keys.rs | 17 | 
1 files changed, 0 insertions, 17 deletions
| diff --git a/compiler/rustc_query_impl/src/keys.rs b/compiler/rustc_query_impl/src/keys.rs index f1c2d03b9be..2bb7a240faa 100644 --- a/compiler/rustc_query_impl/src/keys.rs +++ b/compiler/rustc_query_impl/src/keys.rs @@ -1,7 +1,6 @@ //! Defines the set of legal keys that can be used in queries. use rustc_hir::def_id::{CrateNum, DefId, LocalDefId, LOCAL_CRATE}; -use rustc_hir::hir_id::HirId; use rustc_middle::infer::canonical::Canonical; use rustc_middle::mir; use rustc_middle::traits; @@ -544,19 +543,3 @@ impl<'tcx> Key for (Ty<'tcx>, ty::ValTree<'tcx>) { DUMMY_SP } } - -impl Key for HirId { - #[inline(always)] - fn query_crate_is_local(&self) -> bool { - true - } - - fn default_span(&self, tcx: TyCtxt<'_>) -> Span { - tcx.hir().span(*self) - } - - #[inline(always)] - fn key_as_def_id(&self) -> Option<DefId> { - None - } -} | 
