about summary refs log tree commit diff
path: root/compiler/rustc_lexer/src/lib.rs
diff options
context:
space:
mode:
authorLeón Orell Valerian Liehr <me@fmease.dev>2023-12-05 08:56:30 +0100
committerLeón Orell Valerian Liehr <me@fmease.dev>2023-12-20 18:16:28 +0100
commitc0a9f722c40b728eef492040332d4616c1393e4e (patch)
tree55d048f69759ec6d5ad4350e1c9555285fef089d /compiler/rustc_lexer/src/lib.rs
parentbf9229a2e366b4c311f059014a4aa08af16de5d8 (diff)
downloadrust-c0a9f722c40b728eef492040332d4616c1393e4e.tar.gz
rust-c0a9f722c40b728eef492040332d4616c1393e4e.zip
Undeprecate and use lint `unstable_features`
Diffstat (limited to 'compiler/rustc_lexer/src/lib.rs')
-rw-r--r--compiler/rustc_lexer/src/lib.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/compiler/rustc_lexer/src/lib.rs b/compiler/rustc_lexer/src/lib.rs
index 43dfd34a6ff..f6c9289b529 100644
--- a/compiler/rustc_lexer/src/lib.rs
+++ b/compiler/rustc_lexer/src/lib.rs
@@ -20,8 +20,9 @@
 //! [`rustc_parse::lexer`]: ../rustc_parse/lexer/index.html
 #![deny(rustc::untranslatable_diagnostic)]
 #![deny(rustc::diagnostic_outside_of_impl)]
-// We want to be able to build this crate with a stable compiler, so no
-// `#![feature]` attributes should be added.
+// We want to be able to build this crate with a stable compiler,
+// so no `#![feature]` attributes should be added.
+#![deny(unstable_features)]
 
 mod cursor;
 pub mod unescape;