diff options
| author | Ralf Jung <post@ralfj.de> | 2025-03-21 14:22:10 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-21 14:22:10 +0000 |
| commit | 40bb7d1cc8cc925be101fd9ff01091a3bf1ffa15 (patch) | |
| tree | a277164cdd632bc6404dcd9cda69449621972c0e /compiler/rustc_parse | |
| parent | 3a0ef6bdc119fa0ee0dbdbc3580b87adbdac754b (diff) | |
| parent | f24ea85633f8def515b7df074219090a4ce13dbc (diff) | |
| download | rust-40bb7d1cc8cc925be101fd9ff01091a3bf1ffa15.tar.gz rust-40bb7d1cc8cc925be101fd9ff01091a3bf1ffa15.zip | |
Merge pull request #4236 from RalfJung/rustup
Rustup
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; } |
