diff options
| author | Michael Woerister <michaelwoerister@posteo> | 2023-01-18 10:47:31 +0100 |
|---|---|---|
| committer | Michael Woerister <michaelwoerister@posteo> | 2023-01-19 10:40:54 +0100 |
| commit | 72ee14ce3960ca02ba4f4a19b84bf9c27ec6de9d (patch) | |
| tree | 90c247dc1f6e0f16661871f29398144e18a7d175 /compiler/rustc_codegen_ssa/src/back | |
| parent | c3d25731207e466fc20b00124a5aadd435d3b885 (diff) | |
| download | rust-72ee14ce3960ca02ba4f4a19b84bf9c27ec6de9d.tar.gz rust-72ee14ce3960ca02ba4f4a19b84bf9c27ec6de9d.zip | |
Allow for more efficient sorting when exporting Unord collections.
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/back')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/back/symbol_export.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_ssa/src/back/symbol_export.rs b/compiler/rustc_codegen_ssa/src/back/symbol_export.rs index b442483346d..57a99e74c21 100644 --- a/compiler/rustc_codegen_ssa/src/back/symbol_export.rs +++ b/compiler/rustc_codegen_ssa/src/back/symbol_export.rs @@ -177,7 +177,7 @@ fn exported_symbols_provider_local( // Can we skip the later sorting? let mut symbols: Vec<_> = tcx.with_stable_hashing_context(|hcx| { tcx.reachable_non_generics(LOCAL_CRATE) - .to_sorted(&hcx) + .to_sorted(&hcx, true) .into_iter() .map(|(&def_id, &info)| (ExportedSymbol::NonGeneric(def_id), info)) .collect() |
