Revert suggestion verbosity change
This commit is contained in:
parent
b30fdec5fb
commit
921de9d8ea
52 changed files with 402 additions and 811 deletions
|
@ -954,7 +954,7 @@ impl<'a, 'tcx> WrongNumberOfGenericArgs<'a, 'tcx> {
|
|||
let msg_lifetimes =
|
||||
format!("remove the lifetime argument{s}", s = pluralize!(num_redundant_lt_args));
|
||||
|
||||
err.span_suggestion_verbose(
|
||||
err.span_suggestion(
|
||||
span_redundant_lt_args,
|
||||
msg_lifetimes,
|
||||
"",
|
||||
|
@ -1000,7 +1000,7 @@ impl<'a, 'tcx> WrongNumberOfGenericArgs<'a, 'tcx> {
|
|||
s = pluralize!(num_redundant_gen_args),
|
||||
);
|
||||
|
||||
err.span_suggestion_verbose(
|
||||
err.span_suggestion(
|
||||
span_redundant_type_or_const_args,
|
||||
msg_types_or_consts,
|
||||
"",
|
||||
|
@ -1050,7 +1050,7 @@ impl<'a, 'tcx> WrongNumberOfGenericArgs<'a, 'tcx> {
|
|||
},
|
||||
);
|
||||
|
||||
err.span_suggestion_verbose(span, msg, "", Applicability::MaybeIncorrect);
|
||||
err.span_suggestion(span, msg, "", Applicability::MaybeIncorrect);
|
||||
} else if redundant_lifetime_args && redundant_type_or_const_args {
|
||||
remove_lifetime_args(err);
|
||||
remove_type_or_const_args(err);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue