Skip to content

Commit 6e2bfe4

Browse files
author
Jorge Aparicio
committed
register new snapshots
1 parent 9f1ead8 commit 6e2bfe4

File tree

21 files changed

+12
-384
lines changed

21 files changed

+12
-384
lines changed

src/libcollections/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,6 @@ mod std {
101101
pub use core::option; // necessary for panic!()
102102
pub use core::clone; // deriving(Clone)
103103
pub use core::cmp; // deriving(Eq, Ord, etc.)
104-
#[cfg(stage0)]
105-
pub use core::marker as kinds;
106104
pub use core::marker; // deriving(Copy)
107105
pub use core::hash; // deriving(Hash)
108106
}

src/libcollections/string.rs

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -921,18 +921,6 @@ pub trait ToString {
921921
fn to_string(&self) -> String;
922922
}
923923

924-
#[cfg(stage0)]
925-
impl<T: fmt::Show> ToString for T {
926-
fn to_string(&self) -> String {
927-
use core::fmt::Writer;
928-
let mut buf = String::new();
929-
let _ = buf.write_fmt(format_args!("{}", self));
930-
buf.shrink_to_fit();
931-
buf
932-
}
933-
}
934-
935-
#[cfg(not(stage0))]
936924
impl<T: fmt::String> ToString for T {
937925
fn to_string(&self) -> String {
938926
use core::fmt::Writer;

src/libcollections/vec.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,15 +1454,6 @@ impl<T: fmt::Show> fmt::Show for Vec<T> {
14541454
}
14551455
}
14561456

1457-
#[cfg(stage0)]
1458-
#[experimental = "waiting on Show stability"]
1459-
impl<T: fmt::Show> fmt::String for Vec<T> {
1460-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
1461-
fmt::String::fmt(self.as_slice(), f)
1462-
}
1463-
}
1464-
1465-
#[cfg(not(stage0))]
14661457
#[experimental = "waiting on Show stability"]
14671458
impl<T: fmt::String> fmt::String for Vec<T> {
14681459
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {

src/libcore/fmt/mod.rs

Lines changed: 0 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -633,15 +633,6 @@ impl String for bool {
633633
}
634634
}
635635

636-
#[cfg(stage0)]
637-
//NOTE(stage0): remove impl after snapshot
638-
impl Show for str {
639-
fn fmt(&self, f: &mut Formatter) -> Result {
640-
String::fmt(self, f)
641-
}
642-
}
643-
644-
#[cfg(not(stage0))]
645636
//NOTE(stage0): remove cfg after snapshot
646637
impl Show for str {
647638
fn fmt(&self, f: &mut Formatter) -> Result {
@@ -659,15 +650,6 @@ impl String for str {
659650
}
660651
}
661652

662-
#[cfg(stage0)]
663-
//NOTE(stage0): remove impl after snapshot
664-
impl Show for char {
665-
fn fmt(&self, f: &mut Formatter) -> Result {
666-
String::fmt(self, f)
667-
}
668-
}
669-
670-
#[cfg(not(stage0))]
671653
//NOTE(stage0): remove cfg after snapshot
672654
impl Show for char {
673655
fn fmt(&self, f: &mut Formatter) -> Result {
@@ -863,28 +845,6 @@ impl<T: Show> Show for [T] {
863845
}
864846
}
865847

866-
#[cfg(stage0)]
867-
impl<T: Show> String for [T] {
868-
fn fmt(&self, f: &mut Formatter) -> Result {
869-
if f.flags & (1 << (rt::FlagAlternate as uint)) == 0 {
870-
try!(write!(f, "["));
871-
}
872-
let mut is_first = true;
873-
for x in self.iter() {
874-
if is_first {
875-
is_first = false;
876-
} else {
877-
try!(write!(f, ", "));
878-
}
879-
try!(write!(f, "{}", *x))
880-
}
881-
if f.flags & (1 << (rt::FlagAlternate as uint)) == 0 {
882-
try!(write!(f, "]"));
883-
}
884-
Ok(())
885-
}
886-
}
887-
#[cfg(not(stage0))]
888848
impl<T: String> String for [T] {
889849
fn fmt(&self, f: &mut Formatter) -> Result {
890850
if f.flags & (1 << (rt::FlagAlternate as uint)) == 0 {

src/libcore/fmt/num.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -155,14 +155,6 @@ pub fn radix<T>(x: T, base: u8) -> RadixFmt<T, Radix> {
155155

156156
macro_rules! radix_fmt {
157157
($T:ty as $U:ty, $fmt:ident, $S:expr) => {
158-
#[cfg(stage0)]
159-
impl fmt::Show for RadixFmt<$T, Radix> {
160-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
161-
fmt::String::fmt(self, f)
162-
}
163-
}
164-
165-
#[cfg(not(stage0))]
166158
impl fmt::Show for RadixFmt<$T, Radix> {
167159
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
168160
try!(fmt::String::fmt(self, f));
@@ -188,14 +180,6 @@ macro_rules! int_base {
188180

189181
macro_rules! show {
190182
($T:ident with $S:expr) => {
191-
#[cfg(stage0)]
192-
impl fmt::Show for $T {
193-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
194-
fmt::String::fmt(self, f)
195-
}
196-
}
197-
198-
#[cfg(not(stage0))]
199183
impl fmt::Show for $T {
200184
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
201185
try!(fmt::String::fmt(self, f));

src/libcore/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,6 @@ mod core {
146146
mod std {
147147
pub use clone;
148148
pub use cmp;
149-
#[cfg(stage0)]
150-
pub use marker as kinds;
151149
pub use marker;
152150
pub use option;
153151
pub use fmt;

src/liblibc/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5065,7 +5065,5 @@ pub fn issue_14344_workaround() {} // FIXME #14344 force linkage to happen corre
50655065
#[doc(hidden)]
50665066
#[cfg(not(test))]
50675067
mod std {
5068-
#[cfg(stage0)]
5069-
pub use core::marker as kinds;
50705068
pub use core::marker;
50715069
}

src/librand/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -495,8 +495,6 @@ pub struct Closed01<F>(pub F);
495495
mod std {
496496
pub use core::{option, fmt}; // panic!()
497497
pub use core::clone; // derive Clone
498-
#[cfg(stage0)]
499-
pub use core::marker as kinds;
500498
pub use core::marker;
501499
}
502500

src/libregex/re.rs

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -90,15 +90,6 @@ impl Clone for ExNative {
9090
}
9191
}
9292

93-
#[cfg(stage0)]
94-
//FIXME: remove after stage0 snapshot
95-
impl fmt::Show for Regex {
96-
/// Shows the original regular expression.
97-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
98-
fmt::String::fmt(self.as_str(), f)
99-
}
100-
}
101-
10293
impl fmt::String for Regex {
10394
/// Shows the original regular expression.
10495
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {

src/librustc_typeck/check/_match.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -195,14 +195,6 @@ pub fn check_pat<'a, 'tcx>(pcx: &pat_ctxt<'a, 'tcx>,
195195
ast::PatRegion(ref inner, mutbl) => {
196196
let inner_ty = fcx.infcx().next_ty_var();
197197

198-
// SNAP 340ac04 remove this `if`-`else` entirely after next snapshot
199-
let mutbl = if mutbl == ast::MutImmutable {
200-
ty::deref(fcx.infcx().shallow_resolve(expected), true)
201-
.map(|mt| mt.mutbl).unwrap_or(ast::MutImmutable)
202-
} else {
203-
mutbl
204-
};
205-
206198
let mt = ty::mt { ty: inner_ty, mutbl: mutbl };
207199
let region = fcx.infcx().next_region_var(infer::PatternRegion(pat.span));
208200
let rptr_ty = ty::mk_rptr(tcx, tcx.mk_region(region), mt);

src/librustdoc/html/escape.rs

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,6 @@ use std::fmt;
1919
/// string when passed to a format string.
2020
pub struct Escape<'a>(pub &'a str);
2121

22-
//NOTE(stage0): remove impl after snapshot
23-
#[cfg(stage0)]
24-
impl<'a> fmt::Show for Escape<'a> {
25-
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
26-
fmt::String::fmt(self, f)
27-
}
28-
}
29-
3022
impl<'a> fmt::String for Escape<'a> {
3123
fn fmt(&self, fmt: &mut fmt::Formatter) -> fmt::Result {
3224
// Because the internet is always right, turns out there's not that many

0 commit comments

Comments
 (0)