From bf2b4738163b196685198e91d7ce4e2761bb718e Mon Sep 17 00:00:00 2001 From: Nick Cameron Date: Wed, 28 Jan 2015 17:06:46 +1300 Subject: Rename FullRange to RangeFull --- src/libstd/sys/common/wtf8.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'src/libstd/sys') diff --git a/src/libstd/sys/common/wtf8.rs b/src/libstd/sys/common/wtf8.rs index bc072155063..fdcb0c19f30 100644 --- a/src/libstd/sys/common/wtf8.rs +++ b/src/libstd/sys/common/wtf8.rs @@ -680,6 +680,7 @@ impl ops::Index> for Wtf8 { } } +#[cfg(stage0)] impl ops::Index for Wtf8 { type Output = Wtf8; @@ -689,6 +690,16 @@ impl ops::Index for Wtf8 { } } +#[cfg(not(stage0))] +impl ops::Index for Wtf8 { + type Output = Wtf8; + + #[inline] + fn index(&self, _range: &ops::RangeFull) -> &Wtf8 { + self + } +} + #[inline] fn decode_surrogate(second_byte: u8, third_byte: u8) -> u16 { // The first byte is assumed to be 0xED -- cgit 1.4.1-3-g733a5