diff options
| author | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2025-03-14 20:34:43 +0300 |
|---|---|---|
| committer | Vadim Petrochenkov <vadim.petrochenkov@gmail.com> | 2025-03-17 15:58:25 +0300 |
| commit | 9dd4e4cad1a683d2319471c4025aed41341110c3 (patch) | |
| tree | 7bcc1a86f7c9a3826299c14359936558b05bd71c /compiler/rustc_parse/src | |
| parent | 9bad8ac498985707f29b0bdc0293cc0457a3ab38 (diff) | |
| download | rust-9dd4e4cad1a683d2319471c4025aed41341110c3.tar.gz rust-9dd4e4cad1a683d2319471c4025aed41341110c3.zip | |
expand: Leave traces when expanding `cfg_attr` attributes
Diffstat (limited to 'compiler/rustc_parse/src')
| -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; } |
