Auto merge of #11518 - mojave2:issue-11420, r=Alexendoo
fix FP with needless_raw_string_hashes changelog: Fix [`needless_raw_string_hashes`]: Continue the lint checking of raw string when `needless_raw_strings` is allowed. fix #11420
This commit is contained in:
commit
4d143d7e16
5 changed files with 35 additions and 4 deletions
|
|
@ -616,7 +616,7 @@ fn check_should_panic_reason(cx: &LateContext<'_>, attr: &Attribute) {
|
|||
attr.span,
|
||||
"#[should_panic] attribute without a reason",
|
||||
"consider specifying the expected panic",
|
||||
r#"#[should_panic(expected = /* panic message */)]"#.into(),
|
||||
"#[should_panic(expected = /* panic message */)]".into(),
|
||||
Applicability::HasPlaceholders,
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -96,8 +96,9 @@ impl EarlyLintPass for RawStrings {
|
|||
);
|
||||
},
|
||||
);
|
||||
|
||||
return;
|
||||
if !matches!(cx.get_lint_level(NEEDLESS_RAW_STRINGS), rustc_lint::Allow) {
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
let req = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue