1
Fork 0

Add help to allow lint for the implied by suggestion

This commit is contained in:
Urgau 2023-07-25 19:40:04 +02:00
parent eba5b44729
commit efbe445ba7
16 changed files with 19 additions and 1 deletions

View file

@ -225,6 +225,9 @@ pub fn explain_lint_level_source(
err.note_once(format!(
"`{flag} {hyphen_case_lint_name}` implied by `{flag} {hyphen_case_flag_val}`"
));
err.help_once(format!(
"to override `{flag} {hyphen_case_flag_val}` add `#[allow({name})]`"
));
}
}
LintLevelSource::Node { name: lint_attr_name, span, reason, .. } => {