Add help to allow lint for the implied by suggestion
This commit is contained in:
parent
eba5b44729
commit
efbe445ba7
16 changed files with 19 additions and 1 deletions
|
@ -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, .. } => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue