Skip to content

Commit 67a05bd

Browse files
committed
auto merge of #16349 : nikomatsakis/rust/snapshot-20140808, r=nikomatsakis
2 parents 3b1f983 + 4fd797e commit 67a05bd

File tree

12 files changed

+8
-100
lines changed

12 files changed

+8
-100
lines changed

src/libcore/char.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,6 @@ use mem::transmute;
1919
use option::{None, Option, Some};
2020
use iter::range_step;
2121

22-
#[cfg(stage0)]
23-
use iter::Iterator; // NOTE(stage0): Remove after snapshot.
24-
2522
// UTF-8 ranges and tags for encoding characters
2623
static TAG_CONT: u8 = 0b1000_0000u8;
2724
static TAG_TWO_B: u8 = 0b1100_0000u8;

src/libcore/failure.rs

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -33,29 +33,6 @@
3333
use fmt;
3434
use intrinsics;
3535

36-
#[cfg(stage0)]
37-
#[cold] #[inline(never)] // this is the slow path, always
38-
#[lang="fail_"]
39-
fn fail_(expr: &'static str, file: &'static str, line: uint) -> ! {
40-
format_args!(|args| -> () {
41-
begin_unwind(args, &(file, line));
42-
}, "{}", expr);
43-
44-
unsafe { intrinsics::abort() }
45-
}
46-
47-
#[cfg(stage0)]
48-
#[cold]
49-
#[lang="fail_bounds_check"]
50-
fn fail_bounds_check(file: &'static str, line: uint,
51-
index: uint, len: uint) -> ! {
52-
format_args!(|args| -> () {
53-
begin_unwind(args, &(file, line));
54-
}, "index out of bounds: the len is {} but the index is {}", len, index);
55-
unsafe { intrinsics::abort() }
56-
}
57-
58-
#[cfg(not(stage0))]
5936
#[cold] #[inline(never)] // this is the slow path, always
6037
#[lang="fail_"]
6138
fn fail_(expr_file_line: &(&'static str, &'static str, uint)) -> ! {
@@ -68,7 +45,6 @@ fn fail_(expr_file_line: &(&'static str, &'static str, uint)) -> ! {
6845
unsafe { intrinsics::abort() }
6946
}
7047

71-
#[cfg(not(stage0))]
7248
#[cold] #[inline(never)]
7349
#[lang="fail_bounds_check"]
7450
fn fail_bounds_check(file_line: &(&'static str, uint),

src/libcore/fmt/float.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,6 @@ use slice::{ImmutableVector, MutableVector};
2121
use slice;
2222
use str::StrSlice;
2323

24-
#[cfg(stage0)]
25-
use iter::Iterator; // NOTE(stage0): Remove after snapshot.
26-
#[cfg(stage0)]
27-
use option::{Some, None}; // NOTE(stage0): Remove after snapshot.
28-
2924
/// A flag that specifies whether to use exponential (scientific) notation.
3025
pub enum ExponentFormat {
3126
/// Do not use exponential notation.

src/libcore/fmt/num.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,6 @@ use iter::DoubleEndedIterator;
2020
use num::{Int, cast, zero};
2121
use slice::{ImmutableVector, MutableVector};
2222

23-
#[cfg(stage0)]
24-
use iter::Iterator; // NOTE(stage0): Remove after snapshot.
25-
#[cfg(stage0)]
26-
use option::{Some, None}; // NOTE(stage0): Remove after snapshot.
27-
2823
/// A type that represents a specific radix
2924
#[doc(hidden)]
3025
trait GenericRadix {

src/libcore/ops.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,6 @@ pub trait FnOnce<Args,Result> {
771771

772772
macro_rules! def_fn_mut(
773773
($($args:ident)*) => (
774-
#[cfg(not(stage0))]
775774
impl<Result$(,$args)*>
776775
FnMut<($($args,)*),Result>
777776
for extern "Rust" fn($($args: $args,)*) -> Result {

src/libcore/ptr.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -95,9 +95,6 @@ use option::{Some, None, Option};
9595

9696
use cmp::{PartialEq, Eq, PartialOrd, Equiv, Ordering, Less, Equal, Greater};
9797

98-
#[cfg(stage0)]
99-
use iter::Iterator; // NOTE(stage0): Remove after snapshot.
100-
10198
pub use intrinsics::copy_memory;
10299
pub use intrinsics::copy_nonoverlapping_memory;
103100
pub use intrinsics::set_memory;

src/libcore/str.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1030,9 +1030,6 @@ pub mod traits {
10301030
use option::{Option, Some};
10311031
use str::{Str, StrSlice, eq_slice};
10321032

1033-
#[cfg(stage0)]
1034-
use option::None; // NOTE(stage0): Remove after snapshot.
1035-
10361033
impl<'a> Ord for &'a str {
10371034
#[inline]
10381035
fn cmp(&self, other: & &'a str) -> Ordering {

src/librustrt/unwind.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -523,22 +523,6 @@ pub fn begin_unwind_fmt(msg: &fmt::Arguments, file_line: &(&'static str, uint))
523523
}
524524

525525
/// This is the entry point of unwinding for fail!() and assert!().
526-
#[cfg(stage0)]
527-
#[inline(never)] #[cold] // avoid code bloat at the call sites as much as possible
528-
pub fn begin_unwind<M: Any + Send>(msg: M, file: &'static str, line: uint) -> ! {
529-
// Note that this should be the only allocation performed in this code path.
530-
// Currently this means that fail!() on OOM will invoke this code path,
531-
// but then again we're not really ready for failing on OOM anyway. If
532-
// we do start doing this, then we should propagate this allocation to
533-
// be performed in the parent of this task instead of the task that's
534-
// failing.
535-
536-
// see below for why we do the `Any` coercion here.
537-
begin_unwind_inner(box msg, &(file, line))
538-
}
539-
540-
/// This is the entry point of unwinding for fail!() and assert!().
541-
#[cfg(not(stage0))]
542526
#[inline(never)] #[cold] // avoid code bloat at the call sites as much as possible
543527
pub fn begin_unwind<M: Any + Send>(msg: M, file_line: &(&'static str, uint)) -> ! {
544528
// Note that this should be the only allocation performed in this code path.

src/libstd/io/tempfile.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,6 @@ use path::{Path, GenericPath};
2121
use result::{Ok, Err};
2222
use sync::atomic;
2323

24-
#[cfg(stage0)]
25-
use iter::Iterator; // NOTE(stage0): Remove after snapshot.
26-
2724
/// A wrapper for a path to temporary directory implementing automatic
2825
/// scope-based deletion.
2926
pub struct TempDir {

src/libstd/macros.rs

Lines changed: 0 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
/// fail!("this is a {} {message}", "fancy", message = "message");
3838
/// ```
3939
#[macro_export]
40-
#[cfg(not(stage0))]
4140
macro_rules! fail(
4241
() => ({
4342
fail!("explicit failure")
@@ -68,39 +67,6 @@ macro_rules! fail(
6867
});
6968
)
7069

71-
#[macro_export]
72-
#[cfg(stage0)]
73-
macro_rules! fail(
74-
() => ({
75-
fail!("explicit failure")
76-
});
77-
($msg:expr) => ({
78-
// static requires less code at runtime, more constant data
79-
static FILE_LINE: (&'static str, uint) = (file!(), line!());
80-
let (file, line) = FILE_LINE;
81-
::std::rt::begin_unwind($msg, file, line)
82-
});
83-
($fmt:expr, $($arg:tt)*) => ({
84-
// a closure can't have return type !, so we need a full
85-
// function to pass to format_args!, *and* we need the
86-
// file and line numbers right here; so an inner bare fn
87-
// is our only choice.
88-
//
89-
// LLVM doesn't tend to inline this, presumably because begin_unwind_fmt
90-
// is #[cold] and #[inline(never)] and because this is flagged as cold
91-
// as returning !. We really do want this to be inlined, however,
92-
// because it's just a tiny wrapper. Small wins (156K to 149K in size)
93-
// were seen when forcing this to be inlined, and that number just goes
94-
// up with the number of calls to fail!()
95-
#[inline(always)]
96-
fn run_fmt(fmt: &::std::fmt::Arguments) -> ! {
97-
static FILE_LINE: (&'static str, uint) = (file!(), line!());
98-
::std::rt::begin_unwind_fmt(fmt, &FILE_LINE)
99-
}
100-
format_args!(run_fmt, $fmt, $($arg)*)
101-
});
102-
)
103-
10470
/// Ensure that a boolean expression is `true` at runtime.
10571
///
10672
/// This will invoke the `fail!` macro if the provided expression cannot be

src/libunicode/normalize.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,6 @@ pub fn decompose_canonical(c: char, i: |char|) { d(c, i, false); }
3939
pub fn decompose_compatible(c: char, i: |char|) { d(c, i, true); }
4040

4141
fn d(c: char, i: |char|, k: bool) {
42-
#[cfg(stage0)]
43-
use core::iter::Iterator;
44-
4542
// 7-bit ASCII never decomposes
4643
if c <= '\x7f' { i(c); return; }
4744

src/snapshots.txt

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
S 2014-08-07 12e0f72
2+
freebsd-x86_64 e55055a876ebbde0d3ed3bcb97579afab9264def
3+
linux-i386 2665e45879f2ef77ce0c9015f971642fe424ac33
4+
linux-x86_64 51ed1f4cf0707585a136bb149a443394067c074c
5+
macos-i386 78f1996954a6e0718d684a3756b4870a6f8771ee
6+
macos-x86_64 216f46f65866207a9f41c3ed654f5c1e085cb7f3
7+
winnt-i386 95a9b8a8bf587761ae954392aee2ccee3758a533
8+
19
S 2014-07-17 9fc8394
210
freebsd-x86_64 5a4b645e2b42ae06224cc679d4a43b3d89be1482
311
linux-i386 a5e1bb723020ac35173d49600e76b0935e257a6a

0 commit comments

Comments
 (0)