about summary refs log tree commit diff
path: root/compiler/rustc_query_impl
diff options
context:
space:
mode:
authorCamille GILLOT <gillot.camille@gmail.com>2022-04-27 19:18:26 +0200
committerCamille GILLOT <gillot.camille@gmail.com>2022-07-06 23:11:44 +0200
commit15530a1c84b6ccc7f321ac855a76702677de2563 (patch)
tree75a0c62ebcfeffb9cbfb033b8197e843be9eafc1 /compiler/rustc_query_impl
parent682f57656ed83c1017ad7288940280386f80efae (diff)
downloadrust-15530a1c84b6ccc7f321ac855a76702677de2563.tar.gz
rust-15530a1c84b6ccc7f321ac855a76702677de2563.zip
Create a forever red node and use it to force side effects.
Diffstat (limited to 'compiler/rustc_query_impl')
-rw-r--r--compiler/rustc_query_impl/src/keys.rs11
1 files changed, 0 insertions, 11 deletions
diff --git a/compiler/rustc_query_impl/src/keys.rs b/compiler/rustc_query_impl/src/keys.rs
index c3fbba4456e..6fbafeb1d32 100644
--- a/compiler/rustc_query_impl/src/keys.rs
+++ b/compiler/rustc_query_impl/src/keys.rs
@@ -39,17 +39,6 @@ impl Key for () {
     }
 }
 
-impl Key for ty::RawLocalDefId {
-    #[inline(always)]
-    fn query_crate_is_local(&self) -> bool {
-        true
-    }
-
-    fn default_span(&self, _: TyCtxt<'_>) -> Span {
-        DUMMY_SP
-    }
-}
-
 impl<'tcx> Key for ty::InstanceDef<'tcx> {
     #[inline(always)]
     fn query_crate_is_local(&self) -> bool {