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
|
@ -416,7 +416,7 @@ fn report_inline_asm(
|
|||
cookie = 0;
|
||||
}
|
||||
let level = match level {
|
||||
llvm::DiagnosticLevel::Error => Level::Error { lint: false },
|
||||
llvm::DiagnosticLevel::Error => Level::Error,
|
||||
llvm::DiagnosticLevel::Warning => Level::Warning(None),
|
||||
llvm::DiagnosticLevel::Note | llvm::DiagnosticLevel::Remark => Level::Note,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue