about summary refs log tree commit diff
path: root/compiler/rustc_parse/src/validate_attr.rs
diff options
context:
space:
mode:
authorJonathan Brouwer <jonathantbrouwer@gmail.com>2025-06-30 16:07:14 +0200
committerJonathan Brouwer <jonathantbrouwer@gmail.com>2025-07-03 20:59:40 +0200
commitfee5e3c3aa643ab9d73b4b4c45f336c734688f60 (patch)
tree895cd4addb79c4f4adfda639772d9a2ad09ffefa /compiler/rustc_parse/src/validate_attr.rs
parenta413f77285c0ab551cf58db729e054f43150dd50 (diff)
downloadrust-fee5e3c3aa643ab9d73b4b4c45f336c734688f60.tar.gz
rust-fee5e3c3aa643ab9d73b4b4c45f336c734688f60.zip
Port `#[no_implicit_prelude]` to the new attribute parsing infrastructure
Signed-off-by: Jonathan Brouwer <jonathantbrouwer@gmail.com>
Diffstat (limited to 'compiler/rustc_parse/src/validate_attr.rs')
-rw-r--r--compiler/rustc_parse/src/validate_attr.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_parse/src/validate_attr.rs b/compiler/rustc_parse/src/validate_attr.rs
index 4d64cdeb69a..627e9aabd12 100644
--- a/compiler/rustc_parse/src/validate_attr.rs
+++ b/compiler/rustc_parse/src/validate_attr.rs
@@ -310,6 +310,7 @@ fn emit_malformed_attribute(
             | sym::link_section
             | sym::rustc_layout_scalar_valid_range_start
             | sym::rustc_layout_scalar_valid_range_end
+            | sym::no_implicit_prelude
     ) {
         return;
     }