Document multiple alternative suggestions on diagnostic structs (#1486)
This commit is contained in:
parent
d537ba94b8
commit
f541555701
|
|
@ -200,9 +200,9 @@ following attributes:
|
||||||
- See [translation documentation](./translation.md).
|
- See [translation documentation](./translation.md).
|
||||||
- Defaults to `rustc_errors::fluent::_subdiag::suggestion` (or
|
- Defaults to `rustc_errors::fluent::_subdiag::suggestion` (or
|
||||||
- `.suggestion` in Fluent).
|
- `.suggestion` in Fluent).
|
||||||
- `code = "..."` (_Mandatory_)
|
- `code = "..."`/`code("...", ...)` (_Mandatory_)
|
||||||
- Value is a format string indicating the code to be suggested as a
|
- One or multiple format strings indicating the code to be suggested as a
|
||||||
replacement.
|
replacement. Multiple values signify multiple possible replacements.
|
||||||
- `applicability = "..."` (_Optional_)
|
- `applicability = "..."` (_Optional_)
|
||||||
- String which must be one of `machine-applicable`, `maybe-incorrect`,
|
- String which must be one of `machine-applicable`, `maybe-incorrect`,
|
||||||
`has-placeholders` or `unspecified`.
|
`has-placeholders` or `unspecified`.
|
||||||
|
|
@ -359,9 +359,9 @@ diagnostic struct.
|
||||||
- See [translation documentation](./translation.md).
|
- See [translation documentation](./translation.md).
|
||||||
- Defaults to `rustc_errors::fluent::_subdiag::suggestion` (or
|
- Defaults to `rustc_errors::fluent::_subdiag::suggestion` (or
|
||||||
- `.suggestion` in Fluent).
|
- `.suggestion` in Fluent).
|
||||||
- `code = "..."` (_Mandatory_)
|
- `code = "..."`/`code("...", ...)` (_Mandatory_)
|
||||||
- Value is a format string indicating the code to be suggested as a
|
- One or multiple format strings indicating the code to be suggested as a
|
||||||
replacement.
|
replacement. Multiple values signify multiple possible replacements.
|
||||||
- `applicability = "..."` (_Optional_)
|
- `applicability = "..."` (_Optional_)
|
||||||
- _Mutually exclusive with `#[applicability]` on a field._
|
- _Mutually exclusive with `#[applicability]` on a field._
|
||||||
- Value is the applicability of the suggestion.
|
- Value is the applicability of the suggestion.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue