diff options
| author | Andrew Xie <ndrew.xie@gmail.com> | 2023-06-08 00:38:50 -0400 |
|---|---|---|
| committer | Andrew Xie <ndrew.xie@gmail.com> | 2023-06-08 00:38:50 -0400 |
| commit | 54d7b327e5182b97fcdb8d90bf7853ffe54364c3 (patch) | |
| tree | 0fe3d310bbd67c354f4157cfad9b7dc9ddbbc6e4 /compiler/rustc_session/src | |
| parent | f5f638c12434e3c277fde8f4245273c2cc3c8110 (diff) | |
| download | rust-54d7b327e5182b97fcdb8d90bf7853ffe54364c3.tar.gz rust-54d7b327e5182b97fcdb8d90bf7853ffe54364c3.zip | |
Removed stable/unstable sort arg from into_sorted_stable_ord, fixed a few misc issues, added collect to UnordItems
Diffstat (limited to 'compiler/rustc_session/src')
| -rw-r--r-- | compiler/rustc_session/src/config.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/compiler/rustc_session/src/config.rs b/compiler/rustc_session/src/config.rs index 0ce83e79097..84d9f75532b 100644 --- a/compiler/rustc_session/src/config.rs +++ b/compiler/rustc_session/src/config.rs @@ -311,7 +311,9 @@ pub enum OutputType { } // Safety: Trivial C-Style enums have a stable sort order across compilation sessions. -unsafe impl StableOrd for OutputType {} +unsafe impl StableOrd for OutputType { + const CAN_USE_UNSTABLE_SORT: bool = true; +} impl<HCX: HashStableContext> ToStableHashKey<HCX> for OutputType { type KeyType = Self; |
