1
Fork 0

Smaller span for unnessary mut suggestion

This commit is contained in:
Esteban Küber 2023-11-06 19:47:38 +00:00
parent ae20897b30
commit 1c6bd0b12b
6 changed files with 12 additions and 13 deletions

View file

@ -2278,9 +2278,8 @@ pub(crate) enum InvalidMutInPattern {
#[note(parse_note_mut_pattern_usage)]
NonIdent {
#[primary_span]
#[suggestion(code = "{pat}", applicability = "machine-applicable")]
#[suggestion(code = "", applicability = "machine-applicable")]
span: Span,
pat: String,
},
}