diff options
| author | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-12-06 11:17:49 +0000 |
|---|---|---|
| committer | Maybe Waffle <waffle.lapkin@gmail.com> | 2022-12-06 11:17:49 +0000 |
| commit | 07fbb1b372435283716885fc2973808ff7da22ca (patch) | |
| tree | a292e664f9aeec32dbf0d8b3efe769992fa16820 /compiler/rustc_span/src | |
| parent | 1ef685ea39280cc4a4a32f7c3c586d2ce946e8f0 (diff) | |
| download | rust-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.rs | 2 |
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)) } } |
