Skip to content

Commit ca1663c

Browse files
authored
Unrolled build for #157934
Rollup merge of #157934 - mejrs:template, r=JonathanBrouwer update AttributeTemplate docs r? @JonathanBrouwer
2 parents 01dfd79 + 942fa39 commit ca1663c

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

compiler/rustc_attr_parsing/src/template.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@ use rustc_ast::ast::Safety;
22
use rustc_hir::AttrStyle;
33
use rustc_span::Symbol;
44

5-
/// A template that the attribute input must match.
5+
/// 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.
68
/// Only top-level shape (`#[attr]` vs `#[attr(...)]` vs `#[attr = ...]`) is considered now.
79
#[derive(Clone, Copy, Default)]
810
pub struct AttributeTemplate {

0 commit comments

Comments
 (0)