diff options
| author | Esteban Küber <esteban@kuber.com.ar> | 2024-07-22 22:51:53 +0000 |
|---|---|---|
| committer | Esteban Küber <esteban@kuber.com.ar> | 2024-07-22 22:51:53 +0000 |
| commit | 921de9d8eae16947c375febe0ab8709797b37119 (patch) | |
| tree | c302b0a78d91ea9a466e72f7ecc645feb31af332 /compiler/rustc_hir_analysis | |
| parent | b30fdec5fb283641fc0452fa6ca60193a16bb30d (diff) | |
| download | rust-921de9d8eae16947c375febe0ab8709797b37119.tar.gz rust-921de9d8eae16947c375febe0ab8709797b37119.zip | |
Revert suggestion verbosity change
Diffstat (limited to 'compiler/rustc_hir_analysis')
| -rw-r--r-- | compiler/rustc_hir_analysis/src/errors/wrong_number_of_generic_args.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/compiler/rustc_hir_analysis/src/errors/wrong_number_of_generic_args.rs b/compiler/rustc_hir_analysis/src/errors/wrong_number_of_generic_args.rs index 7443070b9de..db91a6ab2f4 100644 --- a/compiler/rustc_hir_analysis/src/errors/wrong_number_of_generic_args.rs +++ b/compiler/rustc_hir_analysis/src/errors/wrong_number_of_generic_args.rs @@ -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); |
