Skip to content

Commit 1ae44c2

Browse files
committed
rollup merge of #17621 : sfackler/new-snap
2 parents dfbf32f + fa419d3 commit 1ae44c2

File tree

5 files changed

+10
-41
lines changed

5 files changed

+10
-41
lines changed

src/libcollections/vec.rs

-3
Original file line numberDiff line numberDiff line change
@@ -2393,8 +2393,6 @@ mod tests {
23932393
let _ = vec[3];
23942394
}
23952395

2396-
// NOTE uncomment after snapshot
2397-
/*
23982396
#[test]
23992397
#[should_fail]
24002398
fn test_slice_out_of_bounds_1() {
@@ -2429,7 +2427,6 @@ mod tests {
24292427
let x: Vec<int> = vec![1, 2, 3, 4, 5];
24302428
x[3..2];
24312429
}
2432-
*/
24332430

24342431
#[test]
24352432
fn test_swap_remove_empty() {

src/libcore/failure.rs

-27
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,6 @@
3333
use fmt;
3434
use intrinsics;
3535

36-
// NOTE: remove after next snapshot
37-
#[cfg(stage0)]
38-
pub use self::fail_ as fail;
39-
40-
// NOTE: remove after next snapshot
41-
#[cfg(stage0)]
42-
#[cold] #[inline(never)] // this is the slow path, always
43-
#[lang="fail_"]
44-
fn fail_(expr_file_line: &(&'static str, &'static str, uint)) -> ! {
45-
let (expr, file, line) = *expr_file_line;
46-
let ref file_line = (file, line);
47-
format_args!(|args| -> () {
48-
fail_fmt(args, file_line);
49-
}, "{}", expr);
50-
51-
unsafe { intrinsics::abort() }
52-
}
53-
54-
#[cfg(not(stage0))]
5536
#[cold] #[inline(never)] // this is the slow path, always
5637
#[lang="fail"]
5738
pub fn fail(expr_file_line: &(&'static str, &'static str, uint)) -> ! {
@@ -78,14 +59,6 @@ fn fail_bounds_check(file_line: &(&'static str, uint),
7859
pub fn fail_fmt(fmt: &fmt::Arguments, file_line: &(&'static str, uint)) -> ! {
7960
#[allow(ctypes)]
8061
extern {
81-
82-
// NOTE: remove after next snapshot
83-
#[cfg(stage0)]
84-
#[lang = "begin_unwind"]
85-
fn fail_impl(fmt: &fmt::Arguments, file: &'static str,
86-
line: uint) -> !;
87-
88-
#[cfg(not(stage0))]
8962
#[lang = "fail_fmt"]
9063
fn fail_impl(fmt: &fmt::Arguments, file: &'static str,
9164
line: uint) -> !;

src/librustc/lib.rs

-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ This API is completely unstable and subject to change.
3232
#![feature(macro_rules, globs, struct_variant, quote)]
3333
#![feature(default_type_params, phase, unsafe_destructor)]
3434

35-
#![allow(unknown_features)] // NOTE: Remove after next snapshot
3635
#![feature(rustc_diagnostic_macros)]
3736
#![feature(import_shadowing)]
3837

src/librustrt/unwind.rs

+1-10
Original file line numberDiff line numberDiff line change
@@ -488,22 +488,13 @@ pub mod eabi {
488488
}
489489

490490
// Entry point of failure from the libcore crate
491-
#[cfg(not(test), not(stage0))]
491+
#[cfg(not(test))]
492492
#[lang = "fail_fmt"]
493493
pub extern fn rust_begin_unwind(msg: &fmt::Arguments,
494494
file: &'static str, line: uint) -> ! {
495495
begin_unwind_fmt(msg, &(file, line))
496496
}
497497

498-
//
499-
// Entry point of failure from the libcore crate
500-
#[cfg(stage0, not(test))]
501-
#[lang = "begin_unwind"]
502-
pub extern fn rust_begin_unwind(msg: &fmt::Arguments,
503-
file: &'static str, line: uint) -> ! {
504-
begin_unwind_fmt(msg, &(file, line))
505-
}
506-
507498
/// The entry point for unwinding with a formatted message.
508499
///
509500
/// This is designed to reduce the amount of code required at the call

src/snapshots.txt

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
S 2014-09-28 7eb9337
2+
freebsd-x86_64 d45e0edd44f40a976ea0affaadd98732684cfca0
3+
linux-i386 3acb35755aa62b7ff78f76007d9a70696fce7aa7
4+
linux-x86_64 2615b67b700ae8f7d8d87c043207a1a6e2339389
5+
macos-i386 5eb4552dc66a14e1eff6e806a8ba27f4a73bb02a
6+
macos-x86_64 c6052632443f638f5024ae38f33ae2c80d8b18bd
7+
winnt-i386 269f46347b5766bff6f888c4307d50c475d3fe0f
8+
winnt-x86_64 06f89825cecda7f2e36a4660ffe6d2d4a0430ab4
9+
110
S 2014-09-22 437179e
211
freebsd-x86_64 f693c0441de3dbb2d471dde5a5045ac8a48807d8
312
linux-i386 5c2132b65f45c21b43d28de6a9460978b1a7b08a

0 commit comments

Comments
 (0)