Skip to content

Commit d773a02

Browse files
committed
auto merge of #9908 : alexcrichton/rust/snapshots, r=thestinger
2 parents d4a3238 + 0adb41d commit d773a02

File tree

7 files changed

+8
-167
lines changed

7 files changed

+8
-167
lines changed

src/libstd/fmt/mod.rs

-18
Original file line numberDiff line numberDiff line change
@@ -673,24 +673,6 @@ impl<'self> Formatter<'self> {
673673
}
674674
}
675675

676-
#[cfg(stage0)]
677-
fn getcount(&mut self, cnt: &parse::Count) -> Option<uint> {
678-
match *cnt {
679-
parse::CountIs(n) => { Some(n) }
680-
parse::CountImplied => { None }
681-
parse::CountIsParam(i) => {
682-
let v = self.args[i].value;
683-
unsafe { Some(*(v as *util::Void as *uint)) }
684-
}
685-
parse::CountIsNextParam => {
686-
let v = self.curarg.next().unwrap().value;
687-
unsafe { Some(*(v as *util::Void as *uint)) }
688-
}
689-
parse::CountIsName(*) => unreachable!()
690-
}
691-
}
692-
693-
#[cfg(not(stage0))]
694676
fn getcount(&mut self, cnt: &rt::Count) -> Option<uint> {
695677
match *cnt {
696678
rt::CountIs(n) => { Some(n) }

src/libstd/fmt/parse.rs

-47
Original file line numberDiff line numberDiff line change
@@ -48,27 +48,6 @@ pub struct Argument<'self> {
4848

4949
/// Specification for the formatting of an argument in the format string.
5050
#[deriving(Eq)]
51-
#[cfg(stage0)]
52-
pub struct FormatSpec<'self> {
53-
/// Optionally specified character to fill alignment with
54-
fill: Option<char>,
55-
/// Optionally specified alignment
56-
align: Alignment,
57-
/// Packed version of various flags provided
58-
flags: uint,
59-
/// The integer precision to use
60-
precision: Count,
61-
/// The string width requested for the resulting format
62-
width: Count,
63-
/// The descriptor string representing the name of the format desired for
64-
/// this argument, this can be empty or any number of characters, although
65-
/// it is required to be one word.
66-
ty: &'self str
67-
}
68-
69-
/// Specification for the formatting of an argument in the format string.
70-
#[deriving(Eq)]
71-
#[cfg(not(stage0))]
7251
pub struct FormatSpec<'self> {
7352
/// Optionally specified character to fill alignment with
7453
fill: Option<char>,
@@ -113,18 +92,6 @@ pub enum Flag {
11392
/// can reference either an argument or a literal integer.
11493
#[deriving(Eq)]
11594
#[allow(missing_doc)]
116-
#[cfg(stage0)]
117-
pub enum Count {
118-
CountIs(uint),
119-
CountIsParam(uint),
120-
CountIsName(&'static str), // not actually used, see stage1
121-
CountIsNextParam,
122-
CountImplied,
123-
}
124-
125-
#[deriving(Eq)]
126-
#[allow(missing_doc)]
127-
#[cfg(not(stage0))]
12895
pub enum Count<'self> {
12996
CountIs(uint),
13097
CountIsName(&'self str),
@@ -594,20 +561,6 @@ impl<'self> Parser<'self> {
594561
/// Parses a Count parameter at the current position. This does not check
595562
/// for 'CountIsNextParam' because that is only used in precision, not
596563
/// width.
597-
#[cfg(stage0)]
598-
fn count(&mut self) -> Count {
599-
match self.integer() {
600-
Some(i) => {
601-
if self.consume('$') {
602-
CountIsParam(i)
603-
} else {
604-
CountIs(i)
605-
}
606-
}
607-
None => { CountImplied }
608-
}
609-
}
610-
#[cfg(not(stage0))]
611564
fn count(&mut self) -> Count<'self> {
612565
match self.integer() {
613566
Some(i) => {

src/libstd/fmt/rt.rs

-11
Original file line numberDiff line numberDiff line change
@@ -34,16 +34,6 @@ pub struct Argument<'self> {
3434
method: Option<&'self Method<'self>>
3535
}
3636

37-
#[cfg(stage0)]
38-
pub struct FormatSpec {
39-
fill: char,
40-
align: parse::Alignment,
41-
flags: uint,
42-
precision: parse::Count,
43-
width: parse::Count,
44-
}
45-
46-
#[cfg(not(stage0))]
4737
pub struct FormatSpec {
4838
fill: char,
4939
align: parse::Alignment,
@@ -52,7 +42,6 @@ pub struct FormatSpec {
5242
width: Count,
5343
}
5444

55-
#[cfg(not(stage0))]
5645
pub enum Count {
5746
CountIs(uint), CountIsParam(uint), CountIsNextParam, CountImplied,
5847
}

src/libstd/repr.rs

-10
Original file line numberDiff line numberDiff line change
@@ -367,16 +367,6 @@ impl<'self> TyVisitor for ReprVisitor<'self> {
367367
}
368368
}
369369

370-
#[cfg(stage0)]
371-
fn visit_evec_slice(&mut self, mtbl: uint, inner: *TyDesc) -> bool {
372-
do self.get::<raw::Slice<()>> |this, s| {
373-
this.writer.write(['&' as u8]);
374-
this.write_mut_qualifier(mtbl);
375-
this.write_vec_range(s.data, s.len, inner);
376-
}
377-
}
378-
379-
#[cfg(not(stage0))]
380370
fn visit_evec_slice(&mut self, mtbl: uint, inner: *TyDesc) -> bool {
381371
do self.get::<raw::Slice<()>> |this, s| {
382372
this.writer.write(['&' as u8]);

src/libstd/unstable/intrinsics.rs

-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,6 @@ pub trait TyVisitor {
172172

173173
extern "rust-intrinsic" {
174174
/// Abort the execution of the process.
175-
#[cfg(not(stage0))]
176175
pub fn abort() -> !;
177176

178177
/// Atomic compare and exchange, sequentially consistent.

src/libstd/vec.rs

-80
Original file line numberDiff line numberDiff line change
@@ -975,22 +975,6 @@ pub trait ImmutableVector<'self, T> {
975975

976976
impl<'self,T> ImmutableVector<'self, T> for &'self [T] {
977977
#[inline]
978-
#[cfg(stage0)]
979-
fn slice(&self, start: uint, end: uint) -> &'self [T] {
980-
assert!(start <= end);
981-
assert!(end <= self.len());
982-
do self.as_imm_buf |p, _len| {
983-
unsafe {
984-
cast::transmute(Slice {
985-
data: ptr::offset(p, start as int),
986-
len: (end - start) * sys::nonzero_size_of::<T>(),
987-
})
988-
}
989-
}
990-
}
991-
992-
#[inline]
993-
#[cfg(not(stage0))]
994978
fn slice(&self, start: uint, end: uint) -> &'self [T] {
995979
assert!(start <= end);
996980
assert!(end <= self.len());
@@ -1149,14 +1133,6 @@ impl<'self,T> ImmutableVector<'self, T> for &'self [T] {
11491133
}
11501134

11511135
#[inline]
1152-
#[cfg(stage0)]
1153-
fn as_imm_buf<U>(&self, f: &fn(*T, uint) -> U) -> U {
1154-
let s = self.repr();
1155-
f(s.data, s.len / sys::nonzero_size_of::<T>())
1156-
}
1157-
1158-
#[inline]
1159-
#[cfg(not(stage0))]
11601136
fn as_imm_buf<U>(&self, f: &fn(*T, uint) -> U) -> U {
11611137
let s = self.repr();
11621138
f(s.data, s.len)
@@ -1944,22 +1920,6 @@ pub trait MutableVector<'self, T> {
19441920

19451921
impl<'self,T> MutableVector<'self, T> for &'self mut [T] {
19461922
#[inline]
1947-
#[cfg(stage0)]
1948-
fn mut_slice(self, start: uint, end: uint) -> &'self mut [T] {
1949-
assert!(start <= end);
1950-
assert!(end <= self.len());
1951-
do self.as_mut_buf |p, _len| {
1952-
unsafe {
1953-
cast::transmute(Slice {
1954-
data: ptr::mut_offset(p, start as int) as *T,
1955-
len: (end - start) * sys::nonzero_size_of::<T>()
1956-
})
1957-
}
1958-
}
1959-
}
1960-
1961-
#[inline]
1962-
#[cfg(not(stage0))]
19631923
fn mut_slice(self, start: uint, end: uint) -> &'self mut [T] {
19641924
assert!(start <= end);
19651925
assert!(end <= self.len());
@@ -2052,14 +2012,6 @@ impl<'self,T> MutableVector<'self, T> for &'self mut [T] {
20522012
}
20532013

20542014
#[inline]
2055-
#[cfg(stage0)]
2056-
fn as_mut_buf<U>(self, f: &fn(*mut T, uint) -> U) -> U {
2057-
let Slice{ data, len } = self.repr();
2058-
f(data as *mut T, len / sys::nonzero_size_of::<T>())
2059-
}
2060-
2061-
#[inline]
2062-
#[cfg(not(stage0))]
20632015
fn as_mut_buf<U>(self, f: &fn(*mut T, uint) -> U) -> U {
20642016
let Slice{ data, len } = self.repr();
20652017
f(data as *mut T, len)
@@ -2151,22 +2103,6 @@ pub mod raw {
21512103
* not bytes).
21522104
*/
21532105
#[inline]
2154-
#[cfg(stage0)]
2155-
pub unsafe fn buf_as_slice<T,U>(p: *T,
2156-
len: uint,
2157-
f: &fn(v: &[T]) -> U) -> U {
2158-
f(cast::transmute(Slice {
2159-
data: p,
2160-
len: len * sys::nonzero_size_of::<T>()
2161-
}))
2162-
}
2163-
2164-
/**
2165-
* Form a slice from a pointer and length (as a number of units,
2166-
* not bytes).
2167-
*/
2168-
#[inline]
2169-
#[cfg(not(stage0))]
21702106
pub unsafe fn buf_as_slice<T,U>(p: *T,
21712107
len: uint,
21722108
f: &fn(v: &[T]) -> U) -> U {
@@ -2181,22 +2117,6 @@ pub mod raw {
21812117
* not bytes).
21822118
*/
21832119
#[inline]
2184-
#[cfg(stage0)]
2185-
pub unsafe fn mut_buf_as_slice<T,U>(p: *mut T,
2186-
len: uint,
2187-
f: &fn(v: &mut [T]) -> U) -> U {
2188-
f(cast::transmute(Slice {
2189-
data: p as *T,
2190-
len: len * sys::nonzero_size_of::<T>()
2191-
}))
2192-
}
2193-
2194-
/**
2195-
* Form a slice from a pointer and length (as a number of units,
2196-
* not bytes).
2197-
*/
2198-
#[inline]
2199-
#[cfg(not(stage0))]
22002120
pub unsafe fn mut_buf_as_slice<T,U>(p: *mut T,
22012121
len: uint,
22022122
f: &fn(v: &mut [T]) -> U) -> U {

src/snapshots.txt

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
S 2013-10-16 6c08cc2
2+
freebsd-x86_64 03caf882078eff9b4e04d116732b41a3cdfc260f
3+
linux-i386 ce30bb90434e9eb9920028a5408e1f986ba2ad5d
4+
linux-x86_64 58b1d58a9bf4f0cd11ab479e84f6167cb623cd7a
5+
macos-i386 9efd28f2eabbc60f507f023faa4f20f3b87aab17
6+
macos-x86_64 5f877e0593925d488591e6f0386f4db9b76d2e34
7+
winnt-i386 ca2b4d24e992dc3178c5cde648305d5bc5c11676
8+
19
S 2013-10-10 8015f9c
210
freebsd-x86_64 e63594f61d24bec15bc6fa2401fbc76d3651a743
311
linux-i386 7838768d94ba17866ac1e880b896372f08cb48e9

0 commit comments

Comments
 (0)