Skip to content

Commit c151d37

Browse files
committed
auto merge of rust-lang#9562 : alexcrichton/rust/snapshots, r=thestinger
2 parents 4a2f8ba + 46aaf51 commit c151d37

File tree

4 files changed

+8
-50
lines changed

4 files changed

+8
-50
lines changed

src/libstd/logging.rs

-9
Original file line numberDiff line numberDiff line change
@@ -37,16 +37,7 @@ pub fn console_off() {
3737
rt::logging::console_off();
3838
}
3939

40-
#[cfg(stage0)]
41-
#[doc(hidden)]
42-
pub fn log(_level: u32, s: ~str) {
43-
// this is a terrible approximation, but it gets the job done (for stage0 at
44-
// least)
45-
::io::println(s);
46-
}
47-
4840
#[allow(missing_doc)]
49-
#[cfg(not(stage0))]
5041
pub fn log(_level: u32, args: &fmt::Arguments) {
5142
use rt::task::Task;
5243
use rt::local::Local;

src/libstd/rt/crate_map.rs

-12
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010

1111

1212
use libc::c_char;
13-
#[cfg(stage0)] use libc::c_void;
1413
use ptr;
1514
use ptr::RawPtr;
1615
use vec;
@@ -40,17 +39,6 @@ struct CrateMapV0 {
4039
children: [*CrateMap, ..1]
4140
}
4241

43-
#[cfg(stage0)]
44-
struct CrateMap {
45-
version: i32,
46-
annihilate_fn: *c_void,
47-
entries: *ModEntry,
48-
/// a dynamically sized struct, where all pointers to children are listed adjacent
49-
/// to the struct, terminated with NULL
50-
children: [*CrateMap, ..1]
51-
}
52-
53-
#[cfg(not(stage0))]
5442
struct CrateMap {
5543
version: i32,
5644
entries: *ModEntry,

src/libstd/sys.rs

-29
Original file line numberDiff line numberDiff line change
@@ -125,36 +125,7 @@ impl FailWithCause for &'static str {
125125
}
126126
}
127127

128-
// This stage0 version is incredibly wrong.
129-
#[cfg(stage0)]
130-
pub fn begin_unwind_(msg: *c_char, file: *c_char, line: size_t) -> ! {
131-
use option::{Some, None};
132-
use rt::in_green_task_context;
133-
use rt::task::Task;
134-
use rt::local::Local;
135-
use rt::logging::Logger;
136-
use str::Str;
137-
138-
unsafe {
139-
let msg = str::raw::from_c_str(msg);
140-
let file = str::raw::from_c_str(file);
141-
if in_green_task_context() {
142-
rterrln!("task failed at '%s', %s:%i", msg, file, line as int);
143-
} else {
144-
rterrln!("failed in non-task context at '%s', %s:%i",
145-
msg, file, line as int);
146-
}
147-
148-
let task: *mut Task = Local::unsafe_borrow();
149-
if (*task).unwinder.unwinding {
150-
rtabort!("unwinding again");
151-
}
152-
(*task).unwinder.begin_unwind();
153-
}
154-
}
155-
156128
// FIXME #4427: Temporary until rt::rt_fail_ goes away
157-
#[cfg(not(stage0))]
158129
pub fn begin_unwind_(msg: *c_char, file: *c_char, line: size_t) -> ! {
159130
use rt::in_green_task_context;
160131
use rt::task::Task;

src/snapshots.txt

+8
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
S 2013-09-26 1434b4b
2+
freebsd-x86_64 e0493c3b79e71487452dfb2155d6c972ca6c5822
3+
linux-i386 9b38e3773c097656549a109b01589e057abf23a7
4+
linux-x86_64 26c54870b6ea586c37435e319c8861f7f9539c82
5+
macos-i386 ceb98f65e53668cde984160582ab2a47ed909c16
6+
macos-x86_64 834efd21b948971dc0ddacd96972d1a354fdbbc3
7+
winnt-i386 b2be7e7b15c0bfce01812787e69d277c9e5e5803
8+
19
S 2013-09-23 348d844
210
freebsd-x86_64 8b99ec197e441f013c5ba0788f8bcfa689bfc75e
311
linux-i386 9a237fcbe4d29986a360b1dc8984da3b946463e6

0 commit comments

Comments
 (0)