Remove is_lint
field from Level::Error
.
Because it's redundant w.r.t. `Diagnostic::is_lint`, which is present for every diagnostic level. `struct_lint_level_impl` was the only place that set the `Error` field to `true`, and it's also the only place that calls `Diagnostic::is_lint()` to set the `is_lint` field.
This commit is contained in:
parent
8e6bca63f9
commit
8388112970
9 changed files with 20 additions and 28 deletions
|
@ -1848,7 +1848,7 @@ impl SharedEmitterMain {
|
|||
}
|
||||
Ok(SharedEmitterMessage::InlineAsmError(cookie, msg, level, source)) => {
|
||||
let err_level = match level {
|
||||
Level::Error { lint: false } => Level::Error { lint: false },
|
||||
Level::Error => Level::Error,
|
||||
Level::Warning(_) => Level::Warning(None),
|
||||
Level::Note => Level::Note,
|
||||
_ => bug!("Invalid inline asm diagnostic level"),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue