@@ -161,14 +161,14 @@ following attributes:
161
161
- ` code = "..." ` (_ Optional_ )
162
162
- Specifies the error code.
163
163
- ` #[note] ` or ` #[note(slug)] ` (_ Optional_ )
164
- - _ Applied to struct or ` Span ` / ` () ` fields ._
164
+ - _ Applied to struct or struct fields of type ` Span ` , ` Option<()> ` or ` () ` ._
165
165
- Adds a note subdiagnostic.
166
166
- Value is a path to an item in ` rustc_errors::fluent ` for the note's
167
167
message.
168
168
- Defaults to equivalent of ` .note ` .
169
169
- If applied to a ` Span ` field, creates a spanned note.
170
170
- ` #[help] ` or ` #[help(slug)] ` (_ Optional_ )
171
- - _ Applied to struct or ` Span ` / ` () ` fields ._
171
+ - _ Applied to struct or struct fields of type ` Span ` , ` Option<()> ` or ` () ` ._
172
172
- Adds a help subdiagnostic.
173
173
- Value is a path to an item in ` rustc_errors::fluent ` for the note's
174
174
message.
@@ -181,7 +181,7 @@ following attributes:
181
181
message.
182
182
- Defaults to equivalent of ` .label ` .
183
183
- ` #[warning] ` or ` #[warning(slug)] ` (_ Optional_ )
184
- - _ Applied to struct or ` Span ` / ` () ` fields ._
184
+ - _ Applied to struct or struct fields of type ` Span ` , ` Option<()> ` or ` () ` ._
185
185
- Adds a warning subdiagnostic.
186
186
- Value is a path to an item in ` rustc_errors::fluent ` for the note's
187
187
message.
0 commit comments