diff options
| author | Ralf Jung <post@ralfj.de> | 2025-03-21 14:56:29 +0100 |
|---|---|---|
| committer | Ralf Jung <post@ralfj.de> | 2025-03-21 14:56:29 +0100 |
| commit | f24ea85633f8def515b7df074219090a4ce13dbc (patch) | |
| tree | a7011752e3e03be2300e7110457a9bfab2b196d4 /compiler/rustc_parse | |
| parent | 29f022ce3c3ae31cc3a7542f17156efb3dbea308 (diff) | |
| parent | 4ac032f857b46037b55c1fc0fa702450aad37f43 (diff) | |
| download | rust-f24ea85633f8def515b7df074219090a4ce13dbc.tar.gz rust-f24ea85633f8def515b7df074219090a4ce13dbc.zip | |
Merge from rustc
Diffstat (limited to 'compiler/rustc_parse')
| -rw-r--r-- | compiler/rustc_parse/src/validate_attr.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_parse/src/validate_attr.rs b/compiler/rustc_parse/src/validate_attr.rs index 86f673c100c..9ecde2a9eb5 100644 --- a/compiler/rustc_parse/src/validate_attr.rs +++ b/compiler/rustc_parse/src/validate_attr.rs @@ -16,7 +16,7 @@ use rustc_span::{Span, Symbol, sym}; use crate::{errors, parse_in}; pub fn check_attr(psess: &ParseSess, attr: &Attribute) { - if attr.is_doc_comment() { + if attr.is_doc_comment() || attr.has_name(sym::cfg_attr_trace) { return; } |
