Auto merge of #81135 - jyn514:no-backticks, r=flip1995
Fix formatting for removed lints - Don't add backticks for the reason a lint was removed. This is almost never a code block, and when it is the backticks should be in the reason itself. - Don't assume clippy is the only tool that needs to be checked for backwards compatibility I split this out of https://github.com/rust-lang/rust/pull/80527/ because it kept causing tests to fail, and it's a good change to have anyway. r? `@flip1995`
This commit is contained in:
commit
25f39fe802
8 changed files with 41 additions and 42 deletions
|
@ -387,7 +387,7 @@ impl LintStore {
|
|||
Some(new_name.to_owned()),
|
||||
),
|
||||
Some(&Removed(ref reason)) => CheckLintNameResult::Warning(
|
||||
format!("lint `{}` has been removed: `{}`", complete_name, reason),
|
||||
format!("lint `{}` has been removed: {}", complete_name, reason),
|
||||
None,
|
||||
),
|
||||
None => match self.lint_groups.get(&*complete_name) {
|
||||
|
|
|
@ -311,8 +311,7 @@ impl<'s> LintLevelsBuilder<'s> {
|
|||
|lint| {
|
||||
let msg = format!(
|
||||
"lint name `{}` is deprecated \
|
||||
and may not have an effect in the future. \
|
||||
Also `cfg_attr(cargo-clippy)` won't be necessary anymore",
|
||||
and may not have an effect in the future.",
|
||||
name
|
||||
);
|
||||
lint.build(&msg)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue