about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
-rw-r--r--compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs b/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs
index 5e897241cbb..1ad4b249947 100644
--- a/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs
+++ b/compiler/rustc_codegen_llvm/src/coverageinfo/mapgen.rs
@@ -180,7 +180,7 @@ fn write_coverage_mapping<'a>(
     // `file_id` (indexing files referenced by the current function), and construct the
     // function-specific `virtual_file_mapping` from `file_id` to its index in the module's
     // `filenames` array.
-    counter_regions.sort_unstable_by_key(|(_counter, region)| *region);
+    counter_regions.sort_by_key(|(_counter, region)| *region);
     for (counter, region) in counter_regions {
         let CodeRegion { file_name, start_line, start_col, end_line, end_col } = *region;
         let same_file = current_file_name.is_some_and(|p| p == file_name);