mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 14:55:26 +00:00
0e388f2192
`is_force_warn` is only possible for diagnostics with `Level::Warning`, but it is currently stored in `Diagnostic::code`, which every diagnostic has. This commit: - removes the boolean `DiagnosticId::Lint::is_force_warn` field; - adds a `ForceWarning` variant to `Level`. Benefits: - The common `Level::Warning` case now has no arguments, replacing lots of `Warning(None)` occurrences. - `rustc_session::lint::Level` and `rustc_errors::Level` are more similar, both having `ForceWarning` and `Warning`. |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
messages.ftl |