about summary refs log tree commit diff
path: root/compiler/rustc_query_system/src/lib.rs
diff options
context:
space:
mode:
authorYuanheng Li <520dhh@gmail.com>2022-08-21 21:37:05 +0800
committerLi Yuanheng <520dhh@gmail.com>2022-08-31 19:33:51 +0800
commitb8075e4550a3ec9110930b41e09e77266482e54f (patch)
tree7c00a0bc626ab45b7937332a03f2b5ece4f3e4e1 /compiler/rustc_query_system/src/lib.rs
parent12e4fd0755d7d976d4ee0f2004dc938290752ff7 (diff)
downloadrust-b8075e4550a3ec9110930b41e09e77266482e54f.tar.gz
rust-b8075e4550a3ec9110930b41e09e77266482e54f.zip
migrate rustc_query_system to use SessionDiagnostic
with manual impl SessionDiagnostic
Diffstat (limited to 'compiler/rustc_query_system/src/lib.rs')
-rw-r--r--compiler/rustc_query_system/src/lib.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/rustc_query_system/src/lib.rs b/compiler/rustc_query_system/src/lib.rs
index 68284dcaa0b..da775893a2b 100644
--- a/compiler/rustc_query_system/src/lib.rs
+++ b/compiler/rustc_query_system/src/lib.rs
@@ -5,6 +5,8 @@
 #![feature(min_specialization)]
 #![feature(extern_types)]
 #![allow(rustc::potential_query_instability)]
+#![deny(rustc::untranslatable_diagnostic)]
+#![deny(rustc::diagnostic_outside_of_impl)]
 
 #[macro_use]
 extern crate tracing;
@@ -15,5 +17,6 @@ extern crate rustc_macros;
 
 pub mod cache;
 pub mod dep_graph;
+mod error;
 pub mod ich;
 pub mod query;