]> git.lizzy.rs Git - rust.git/blobdiff - compiler/rustc_query_impl/src/keys.rs
Auto merge of #98866 - nagisa:nagisa/align-offset-wroom, r=Mark-Simulacrum
[rust.git] / compiler / rustc_query_impl / src / keys.rs
index 3f0f856b5dd7c16f2dca8f2075625ce49c13a5ba..6fbafeb1d32b3c40c51ce563d534e2a1488b29b9 100644 (file)
@@ -435,6 +435,16 @@ fn default_span(&self, _tcx: TyCtxt<'_>) -> Span {
     }
 }
 
+impl Key for Option<Symbol> {
+    #[inline(always)]
+    fn query_crate_is_local(&self) -> bool {
+        true
+    }
+    fn default_span(&self, _tcx: TyCtxt<'_>) -> Span {
+        DUMMY_SP
+    }
+}
+
 /// Canonical query goals correspond to abstract trait operations that
 /// are not tied to any crate in particular.
 impl<'tcx, T> Key for Canonical<'tcx, T> {