Force warnings even when can_emit_warnings == false
This commit is contained in:
parent
e98897e5dc
commit
a3d6905053
8 changed files with 54 additions and 8 deletions
|
@ -323,7 +323,7 @@ impl Session {
|
|||
.into_iter()
|
||||
.map(|diag| {
|
||||
let lint_name = match &diag.code {
|
||||
Some(DiagnosticId::Lint { name, has_future_breakage: true }) => name,
|
||||
Some(DiagnosticId::Lint { name, has_future_breakage: true, .. }) => name,
|
||||
_ => panic!("Unexpected code in diagnostic {:?}", diag),
|
||||
};
|
||||
let lint = lint_store.name_to_lint(&lint_name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue