Don't abort compilation after giving a lint error
The only reason to use `abort_if_errors` is when the program is so broken that either: 1. later passes get confused and ICE 2. any diagnostics from later passes would be noise This is never the case for lints, because the compiler has to be able to deal with `allow`-ed lints. So it can continue to lint and compile even if there are lint errors.
This commit is contained in:
parent
90a273b785
commit
0ac13bd430
64 changed files with 480 additions and 205 deletions
|
@ -286,7 +286,7 @@ fn report_inline_asm(
|
|||
cookie = 0;
|
||||
}
|
||||
let level = match level {
|
||||
llvm::DiagnosticLevel::Error => Level::Error,
|
||||
llvm::DiagnosticLevel::Error => Level::Error { lint: false },
|
||||
llvm::DiagnosticLevel::Warning => Level::Warning,
|
||||
llvm::DiagnosticLevel::Note | llvm::DiagnosticLevel::Remark => Level::Note,
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue