Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/diagnostics/diagnostic-structs.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,12 +135,12 @@ tcx.dcx().emit_err(FieldAlreadyDeclared {
- `code = "..."` (_Optional_)
- Specifies the error code.
- `#[note("message")]` (_Optional_)
- _Applied to struct or struct fields of type `Span`, `Option<()>` or `()`._
- _Applied to struct or struct fields of type `Span`, `Option<()>`, `bool`, or `()`._
- Adds a note subdiagnostic.
- Value is the note's message.
- If applied to a `Span` field, creates a spanned note.
- `#[help("message")]` (_Optional_)
- _Applied to struct or struct fields of type `Span`, `Option<()>` or `()`._
- _Applied to struct or struct fields of type `Span`, `Option<()>`, `bool`, or `()`._
- Adds a help subdiagnostic.
- Value is the help message.
- If applied to a `Span` field, creates a spanned help.
Expand All @@ -149,7 +149,7 @@ tcx.dcx().emit_err(FieldAlreadyDeclared {
- Adds a label subdiagnostic.
- Value is the label's message.
- `#[warning("message")]` (_Optional_)
- _Applied to struct or struct fields of type `Span`, `Option<()>` or `()`._
- _Applied to struct or struct fields of type `Span`, `Option<()>`, `bool`, or `()`._
- Adds a warning subdiagnostic.
- Value is the warning's message.
- `#[suggestion{,_hidden,_short,_verbose}("message", code = "...", applicability = "...")]`
Expand Down
Loading