1
Fork 0

Make removal suggestion not verbose

This commit is contained in:
Esteban Küber 2023-02-01 17:44:48 +00:00
parent 5d63e10318
commit bd176ee591
16 changed files with 136 additions and 196 deletions

View file

@ -1167,7 +1167,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
Some(format!("provide the argument{}", if plural { "s" } else { "" }))
}
SuggestionText::Remove(plural) => {
err.multipart_suggestion_verbose(
err.multipart_suggestion(
&format!("remove the extra argument{}", if plural { "s" } else { "" }),
suggestions,
Applicability::HasPlaceholders,