diff options
Diffstat (limited to 'src/libcore/ops.rs')
| -rw-r--r-- | src/libcore/ops.rs | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/libcore/ops.rs b/src/libcore/ops.rs index 55ff3eb4d06..9e020eeb8a9 100644 --- a/src/libcore/ops.rs +++ b/src/libcore/ops.rs @@ -947,11 +947,20 @@ pub trait IndexMut<Index: ?Sized> { } /// An unbounded range. +#[cfg(stage0)] #[derive(Copy, Clone, PartialEq, Eq)] #[lang="full_range"] #[unstable(feature = "core", reason = "may be renamed to RangeFull")] pub struct FullRange; +/// An unbounded range. +#[cfg(not(stage0))] +#[derive(Copy, Clone, PartialEq, Eq)] +#[lang="range_full"] +#[stable(feature = "rust1", since = "1.0.0")] +pub struct RangeFull; + +#[cfg(stage0)] #[stable(feature = "rust1", since = "1.0.0")] impl fmt::Debug for FullRange { fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { @@ -959,6 +968,14 @@ impl fmt::Debug for FullRange { } } +#[cfg(not(stage0))] +#[stable(feature = "rust1", since = "1.0.0")] +impl fmt::Debug for RangeFull { + fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result { + fmt::Debug::fmt("..", fmt) + } +} + /// A (half-open) range which is bounded at both ends. #[derive(Copy, Clone, PartialEq, Eq)] #[lang="range"] |
