Skip to content

Commit 516bd8c

Browse files
committed
Use unstable sort for sorting paths in a search index
1 parent 7dbdb29 commit 516bd8c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

compiler/rustc_session/src/search_paths.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ impl SearchPath {
144144

145145
Err(..) => Default::default(),
146146
};
147-
files.sort_by(|lhs, rhs| lhs.file_name_str.cmp(&rhs.file_name_str));
147+
files.sort_unstable_by(|lhs, rhs| lhs.file_name_str.cmp(&rhs.file_name_str));
148148
let files = FilesIndex(files);
149149
SearchPath { kind, dir, files }
150150
}

0 commit comments

Comments
 (0)