We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 01dfd79 + 942fa39 commit ca1663cCopy full SHA for ca1663c
1 file changed
compiler/rustc_attr_parsing/src/template.rs
@@ -2,7 +2,9 @@ use rustc_ast::ast::Safety;
2
use rustc_hir::AttrStyle;
3
use rustc_span::Symbol;
4
5
-/// A template that the attribute input must match.
+/// A template to suggest the correct syntax of an attribute.
6
+///
7
+/// This is not used to *check* attributes. The attribute's parser is responsible for that.
8
/// Only top-level shape (`#[attr]` vs `#[attr(...)]` vs `#[attr = ...]`) is considered now.
9
#[derive(Clone, Copy, Default)]
10
pub struct AttributeTemplate {
0 commit comments