Make removal suggestion not verbose
This commit is contained in:
parent
5d63e10318
commit
bd176ee591
16 changed files with 136 additions and 196 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue