@@ -161,14 +161,14 @@ following attributes:
161161 - ` code = "..." ` (_ Optional_ )
162162 - Specifies the error code.
163163- ` #[note] ` or ` #[note(slug)] ` (_ Optional_ )
164- - _ Applied to struct or ` Span ` / ` () ` fields ._
164+ - _ Applied to struct or struct fields of type ` Span ` , ` Option<()> ` or ` () ` ._
165165 - Adds a note subdiagnostic.
166166 - Value is a path to an item in ` rustc_errors::fluent ` for the note's
167167 message.
168168 - Defaults to equivalent of ` .note ` .
169169 - If applied to a ` Span ` field, creates a spanned note.
170170- ` #[help] ` or ` #[help(slug)] ` (_ Optional_ )
171- - _ Applied to struct or ` Span ` / ` () ` fields ._
171+ - _ Applied to struct or struct fields of type ` Span ` , ` Option<()> ` or ` () ` ._
172172 - Adds a help subdiagnostic.
173173 - Value is a path to an item in ` rustc_errors::fluent ` for the note's
174174 message.
@@ -181,7 +181,7 @@ following attributes:
181181 message.
182182 - Defaults to equivalent of ` .label ` .
183183- ` #[warning] ` or ` #[warning(slug)] ` (_ Optional_ )
184- - _ Applied to struct or ` Span ` / ` () ` fields ._
184+ - _ Applied to struct or struct fields of type ` Span ` , ` Option<()> ` or ` () ` ._
185185 - Adds a warning subdiagnostic.
186186 - Value is a path to an item in ` rustc_errors::fluent ` for the note's
187187 message.
0 commit comments