Don't sort span_suggestions
, leave that to caller
This commit is contained in:
parent
42aa1273b0
commit
f1ae02f4bd
10 changed files with 31 additions and 29 deletions
|
@ -945,7 +945,11 @@ impl<'o, 'tcx> dyn AstConv<'tcx> + 'o {
|
|||
Applicability::MachineApplicable,
|
||||
);
|
||||
} else {
|
||||
match (types, traits) {
|
||||
let mut types = types.to_vec();
|
||||
types.sort();
|
||||
let mut traits = traits.to_vec();
|
||||
traits.sort();
|
||||
match (&types[..], &traits[..]) {
|
||||
([], []) => {
|
||||
err.span_suggestion_verbose(
|
||||
span,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue