From 6968f4c8a3e5c5d987d6e7f21f3cc35bee359032 Mon Sep 17 00:00:00 2001 From: =?utf8?q?John=20K=C3=A5re=20Alsaker?= Date: Sat, 5 May 2018 12:30:14 +0200 Subject: [PATCH] Fix impl PartialOrd for InternedString --- src/libsyntax_pos/symbol.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsyntax_pos/symbol.rs b/src/libsyntax_pos/symbol.rs index b84ff5697a4..2258ed12779 100644 --- a/src/libsyntax_pos/symbol.rs +++ b/src/libsyntax_pos/symbol.rs @@ -527,7 +527,7 @@ fn partial_cmp(&self, other: &InternedString) -> Option { if self.symbol == other.symbol { return Some(Ordering::Equal); } - self.with(|self_str| other.with(|other_str| self_str.partial_cmp(&other_str))) + self.with(|self_str| other.with(|other_str| self_str.partial_cmp(other_str))) } } -- 2.44.0