From 07fbb1b372435283716885fc2973808ff7da22ca Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Tue, 6 Dec 2022 11:17:49 +0000 Subject: Cleanup macro-expanded code in `rustc_type_ir` --- compiler/rustc_span/src/def_id.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'compiler/rustc_span/src') 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 { - Some(Ord::cmp(self, other)) + Some(self.cmp(other)) } } -- cgit 1.4.1-3-g733a5