about summary refs log tree commit diff
path: root/compiler/rustc_privacy/src
diff options
context:
space:
mode:
authorDavid Wood <david.wood@huawei.com>2022-06-22 14:17:14 +0100
committerDavid Wood <david.wood@huawei.com>2022-06-27 08:53:42 +0100
commit15d61d711d1c06ac07c774a2e6988ebefae5b79c (patch)
tree6ecbe50d6530669c6920b56ba61172e6a48b97d0 /compiler/rustc_privacy/src
parent74f3a965f44c69d2975f9d1206160d8001ac4e70 (diff)
downloadrust-15d61d711d1c06ac07c774a2e6988ebefae5b79c.tar.gz
rust-15d61d711d1c06ac07c774a2e6988ebefae5b79c.zip
privacy: deny diagnostic migration lints
Signed-off-by: David Wood <david.wood@huawei.com>
Diffstat (limited to 'compiler/rustc_privacy/src')
-rw-r--r--compiler/rustc_privacy/src/lib.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/compiler/rustc_privacy/src/lib.rs b/compiler/rustc_privacy/src/lib.rs
index c8170fa08e6..238c917bbc3 100644
--- a/compiler/rustc_privacy/src/lib.rs
+++ b/compiler/rustc_privacy/src/lib.rs
@@ -1,9 +1,12 @@
 #![doc(html_root_url = "https://doc.rust-lang.org/nightly/nightly-rustc/")]
+#![feature(associated_type_defaults)]
 #![feature(control_flow_enum)]
+#![feature(rustc_private)]
 #![feature(try_blocks)]
-#![feature(associated_type_defaults)]
 #![recursion_limit = "256"]
 #![allow(rustc::potential_query_instability)]
+#![cfg_attr(not(bootstrap), deny(rustc::untranslatable_diagnostic))]
+#![cfg_attr(not(bootstrap), deny(rustc::diagnostic_outside_of_impl))]
 
 mod errors;