From 1e5f311d1615ab4bca5b23d09dd678c2662022e6 Mon Sep 17 00:00:00 2001 From: Jorge Aparicio Date: Wed, 29 Oct 2014 20:21:37 -0500 Subject: Fix fallout of DSTifying PartialEq, PartialOrd, Eq, Ord --- src/libsyntax/util/interner.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/libsyntax') diff --git a/src/libsyntax/util/interner.rs b/src/libsyntax/util/interner.rs index 105118ff76a..e6c98a9e3d0 100644 --- a/src/libsyntax/util/interner.rs +++ b/src/libsyntax/util/interner.rs @@ -97,9 +97,15 @@ pub struct RcStr { impl Eq for RcStr {} impl Ord for RcStr { + // NOTE(stage0): remove method after a snapshot + #[cfg(stage0)] fn cmp(&self, other: &RcStr) -> Ordering { self.as_slice().cmp(&other.as_slice()) } + #[cfg(not(stage0))] // NOTE(stage0): remove cfg after a snapshot + fn cmp(&self, other: &RcStr) -> Ordering { + self.as_slice().cmp(other.as_slice()) + } } impl Str for RcStr { -- cgit 1.4.1-3-g733a5