File tree 3 files changed +3
-3
lines changed
src/librustc_mir/borrow_check/nll/region_infer
3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
77
77
}
78
78
79
79
let mut constraints: Vec < _ > = self . constraints . iter ( ) . collect ( ) ;
80
- constraints. sort ( ) ;
80
+ constraints. sort_unstable ( ) ;
81
81
for constraint in & constraints {
82
82
let OutlivesConstraint {
83
83
sup,
Original file line number Diff line number Diff line change @@ -227,7 +227,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
227
227
debug ! ( "report_error: categorized_path={:?}" , categorized_path) ;
228
228
229
229
// Find what appears to be the most interesting path to report to the user.
230
- categorized_path. sort_by ( |p0, p1| p0. 0 . cmp ( & p1. 0 ) ) ;
230
+ categorized_path. sort_unstable_by ( |p0, p1| p0. 0 . cmp ( & p1. 0 ) ) ;
231
231
debug ! ( "report_error: sorted_path={:?}" , categorized_path) ;
232
232
233
233
// Get a span
Original file line number Diff line number Diff line change @@ -418,7 +418,7 @@ impl<'tcx> RegionInferenceContext<'tcx> {
418
418
419
419
debug ! ( "propagate_constraints: constraints={:#?}" , {
420
420
let mut constraints: Vec <_> = self . constraints. iter( ) . collect( ) ;
421
- constraints. sort ( ) ;
421
+ constraints. sort_unstable ( ) ;
422
422
constraints
423
423
} ) ;
424
424
You can’t perform that action at this time.
0 commit comments