about summary refs log tree commit diff
path: root/compiler/rustc_span/src
diff options
context:
space:
mode:
authorMaybe Waffle <waffle.lapkin@gmail.com>2022-12-06 11:17:49 +0000
committerMaybe Waffle <waffle.lapkin@gmail.com>2022-12-06 11:17:49 +0000
commit07fbb1b372435283716885fc2973808ff7da22ca (patch)
treea292e664f9aeec32dbf0d8b3efe769992fa16820 /compiler/rustc_span/src
parent1ef685ea39280cc4a4a32f7c3c586d2ce946e8f0 (diff)
downloadrust-07fbb1b372435283716885fc2973808ff7da22ca.tar.gz
rust-07fbb1b372435283716885fc2973808ff7da22ca.zip
Cleanup macro-expanded code in `rustc_type_ir`
Diffstat (limited to 'compiler/rustc_span/src')
-rw-r--r--compiler/rustc_span/src/def_id.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_span/src/def_id.rs b/compiler/rustc_span/src/def_id.rs
index f5555846d20..0ad1f1a0da7 100644
--- a/compiler/rustc_span/src/def_id.rs
+++ b/compiler/rustc_span/src/def_id.rs
@@ -274,7 +274,7 @@ impl Ord for DefId {
 impl PartialOrd for DefId {
     #[inline]
     fn partial_cmp(&self, other: &DefId) -> Option<std::cmp::Ordering> {
-        Some(Ord::cmp(self, other))
+        Some(self.cmp(other))
     }
 }