Un-unsafe the StableOrd trait
Whilst incorrect implementations of this trait can cause miscompilation, they cannot cause memory unsafety in rustc.
This commit is contained in:
@@ -120,8 +120,8 @@ impl Default for DefPathHash {
|
||||
}
|
||||
}
|
||||
|
||||
// Safety: `DefPathHash` sort order is not affected (de)serialization.
|
||||
unsafe impl StableOrd for DefPathHash {
|
||||
// `DefPathHash` sort order is not affected (de)serialization.
|
||||
impl StableOrd for DefPathHash {
|
||||
const CAN_USE_UNSTABLE_SORT: bool = true;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user