Skip to content

Commit 1624ba9

Browse files
committed
add more on applicabilities
1 parent 8a79f8b commit 1624ba9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/diag.md

+12
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,18 @@ error: aborting due to previous error
134134
For more information about this error, try `rustc --explain E0999`.
135135
```
136136

137+
There are a few other [`Applicability`][appl] possibilities:
138+
139+
- `MachineApplicable`: Can be applied mechanically.
140+
- `HasPlaceholders`: Cannot be applied mechanically and has placeholder text in
141+
the suggestions. For example, "Try adding a type: \`let x: <type>\`".
142+
- `MaybeIncorrect`: Cannot be applied mechanically because the suggestion may
143+
or may not be a good one.
144+
- `Unspecified`: Cannot be applied mechanically because we don't know which
145+
of the above cases it falls into.
146+
147+
[appl]: https://doc.rust-lang.org/nightly/nightly-rustc/rustc_errors/enum.Applicability.html
148+
137149
## Lints
138150

139151
The compiler linting infrastructure is defined in the [`rustc::lint`][rlint]

0 commit comments

Comments
 (0)