about summary refs log tree commit diff
path: root/compiler/rustc_errors/src
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2023-08-03 22:58:02 +0000
committerbors <bors@rust-lang.org>2023-08-03 22:58:02 +0000
commit1fe384649a11ea34285a292f0b11827b517c2a30 (patch)
tree6d3d55d26a22ac75d5b341984cacd6103ec7a9b0 /compiler/rustc_errors/src
parent474709a9a2a74a8bcf0055fadb335d0ca0d2d939 (diff)
parent5830ca216d0bd8b0e2f16b0022db25114d80acb6 (diff)
downloadrust-1fe384649a11ea34285a292f0b11827b517c2a30.tar.gz
rust-1fe384649a11ea34285a292f0b11827b517c2a30.zip
Auto merge of #108955 - Nilstrieb:dont-use-me-pls, r=oli-obk
Add `internal_features` lint

Implements https://github.com/rust-lang/compiler-team/issues/596

Also requires some more test blessing for codegen tests etc

`@jyn514` had the idea of just `allow`ing the lint by default in the test suite. I'm not sure whether this is a good idea, but it's definitely one worth considering. Additional input encouraged.
Diffstat (limited to 'compiler/rustc_errors/src')
-rw-r--r--compiler/rustc_errors/src/lib.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_errors/src/lib.rs b/compiler/rustc_errors/src/lib.rs
index 3d1639db4af..3b753629128 100644
--- a/compiler/rustc_errors/src/lib.rs
+++ b/compiler/rustc_errors/src/lib.rs
@@ -15,6 +15,7 @@
 #![feature(box_patterns)]
 #![feature(error_reporter)]
 #![allow(incomplete_features)]
+#![cfg_attr(not(bootstrap), allow(internal_features))]
 
 #[macro_use]
 extern crate rustc_macros;