diff options
| author | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-08-28 16:27:54 +0200 |
|---|---|---|
| committer | Guillaume Gomez <guillaume1.gomez@gmail.com> | 2025-08-28 18:24:58 +0200 |
| commit | f3c023433f6e44be208f9e3bb74528449da730c1 (patch) | |
| tree | 854df48a10630d6ecbb97d8dd4faa6602d43e711 /compiler/rustc_passes/src | |
| parent | 10bd61dcf2e5a7dbe95b4b0588a432a444f907a9 (diff) | |
| download | rust-f3c023433f6e44be208f9e3bb74528449da730c1.tar.gz rust-f3c023433f6e44be208f9e3bb74528449da730c1.zip | |
Add ui test for unsupported `doc(attribute = "...")` case for attributes with namespace
Diffstat (limited to 'compiler/rustc_passes/src')
| -rw-r--r-- | compiler/rustc_passes/src/check_attr.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/compiler/rustc_passes/src/check_attr.rs b/compiler/rustc_passes/src/check_attr.rs index 410c39fbb41..962555ada27 100644 --- a/compiler/rustc_passes/src/check_attr.rs +++ b/compiler/rustc_passes/src/check_attr.rs @@ -879,6 +879,7 @@ impl<'tcx> CheckAttrVisitor<'tcx> { s.is_reserved(|| edition::LATEST_STABLE_EDITION) || s.is_weak() || s == sym::SelfTy } + // FIXME: This should support attributes with namespace like `diagnostic::do_not_recommend`. fn is_builtin_attr(s: Symbol) -> bool { rustc_feature::BUILTIN_ATTRIBUTE_MAP.contains_key(&s) } |
