mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 23:04:33 +00:00
Move lint level source explanation to the bottom
This commit is contained in:
parent
6ecacf76bc
commit
ad3d1fc9d5
@ -392,8 +392,6 @@ pub fn struct_lint_level<'s, 'd>(
|
||||
return;
|
||||
}
|
||||
|
||||
explain_lint_level_source(lint, level, src, &mut *err);
|
||||
|
||||
let name = lint.name_lower();
|
||||
let is_force_warn = matches!(level, Level::ForceWarn(_));
|
||||
err.code(DiagnosticId::Lint { name, has_future_breakage, is_force_warn });
|
||||
@ -434,6 +432,7 @@ pub fn struct_lint_level<'s, 'd>(
|
||||
|
||||
// Finally, run `decorate`.
|
||||
decorate(&mut err);
|
||||
explain_lint_level_source(lint, level, src, &mut *err);
|
||||
err.emit()
|
||||
}
|
||||
struct_lint_level_impl(sess, lint, level, src, span, msg, Box::new(decorate))
|
||||
|
Loading…
Reference in New Issue
Block a user