Skip to content

Commit bd27985

Browse files
committed
Auto merge of #22853 - FlaPer87:snap, r=alexcrichton
r? @alexcrichton cc @nikomatsakis @pnkfelix
2 parents dd077d5 + 9d0d723 commit bd27985

File tree

6 files changed

+9
-61
lines changed

6 files changed

+9
-61
lines changed

src/libcore/fmt/mod.rs

-15
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,7 @@ pub trait Write {
110110
/// traits.
111111
#[stable(feature = "rust1", since = "1.0.0")]
112112
pub struct Formatter<'a> {
113-
#[cfg(not(stage0))]
114113
flags: u32,
115-
#[cfg(stage0)]
116-
flags: usize,
117114
fill: char,
118115
align: rt::v1::Alignment,
119116
width: Option<usize>,
@@ -159,13 +156,6 @@ impl<'a> ArgumentV1<'a> {
159156
}
160157
}
161158

162-
#[cfg(stage0)]
163-
#[doc(hidden)]
164-
#[stable(feature = "rust1", since = "1.0.0")]
165-
pub fn from_uint(x: &uint) -> ArgumentV1 {
166-
ArgumentV1::new(x, ArgumentV1::show_usize)
167-
}
168-
#[cfg(not(stage0))]
169159
#[doc(hidden)]
170160
#[stable(feature = "rust1", since = "1.0.0")]
171161
pub fn from_usize(x: &usize) -> ArgumentV1 {
@@ -605,14 +595,9 @@ impl<'a> Formatter<'a> {
605595
write(self.buf, fmt)
606596
}
607597

608-
#[cfg(not(stage0))]
609598
/// Flags for formatting (packed version of rt::Flag)
610599
#[stable(feature = "rust1", since = "1.0.0")]
611600
pub fn flags(&self) -> u32 { self.flags }
612-
#[cfg(stage0)]
613-
/// Flags for formatting (packed version of rt::Flag)
614-
#[stable(feature = "rust1", since = "1.0.0")]
615-
pub fn flags(&self) -> usize { self.flags }
616601

617602
/// Character used as 'fill' whenever there is alignment
618603
#[unstable(feature = "core", reason = "method was just created")]

src/libcore/fmt/rt/v1.rs

-4
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,6 @@ pub struct FormatSpec {
3232
pub fill: char,
3333
#[stable(feature = "rust1", since = "1.0.0")]
3434
pub align: Alignment,
35-
#[cfg(stage0)]
36-
#[stable(feature = "rust1", since = "1.0.0")]
37-
pub flags: usize,
38-
#[cfg(not(stage0))]
3935
#[stable(feature = "rust1", since = "1.0.0")]
4036
pub flags: u32,
4137
#[stable(feature = "rust1", since = "1.0.0")]

src/libcore/macros.rs

-6
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,6 @@ macro_rules! panic {
1515
panic!("explicit panic")
1616
);
1717
($msg:expr) => ({
18-
#[cfg(stage0)]
19-
static _MSG_FILE_LINE: (&'static str, &'static str, usize) = ($msg, file!(), line!());
20-
#[cfg(not(stage0))]
2118
static _MSG_FILE_LINE: (&'static str, &'static str, u32) = ($msg, file!(), line!());
2219
::core::panicking::panic(&_MSG_FILE_LINE)
2320
});
@@ -26,9 +23,6 @@ macro_rules! panic {
2623
// used inside a dead function. Just `#[allow(dead_code)]` is
2724
// insufficient, since the user may have
2825
// `#[forbid(dead_code)]` and which cannot be overridden.
29-
#[cfg(stage0)]
30-
static _FILE_LINE: (&'static str, usize) = (file!(), line!());
31-
#[cfg(not(stage0))]
3226
static _FILE_LINE: (&'static str, u32) = (file!(), line!());
3327
::core::panicking::panic_fmt(format_args!($fmt, $($arg)*), &_FILE_LINE)
3428
});

src/libcore/panicking.rs

-29
Original file line numberDiff line numberDiff line change
@@ -34,49 +34,20 @@ use fmt;
3434

3535
#[cold] #[inline(never)] // this is the slow path, always
3636
#[lang="panic"]
37-
#[cfg(stage0)]
38-
pub fn panic(expr_file_line: &(&'static str, &'static str, usize)) -> ! {
39-
let (expr, file, line) = *expr_file_line;
40-
panic_fmt(format_args!("{}", expr), &(file, line))
41-
}
42-
#[cold] #[inline(never)] // this is the slow path, always
43-
#[lang="panic"]
44-
#[cfg(not(stage0))]
4537
pub fn panic(expr_file_line: &(&'static str, &'static str, u32)) -> ! {
4638
let (expr, file, line) = *expr_file_line;
4739
panic_fmt(format_args!("{}", expr), &(file, line))
4840
}
4941

5042
#[cold] #[inline(never)]
5143
#[lang="panic_bounds_check"]
52-
#[cfg(stage0)]
53-
fn panic_bounds_check(file_line: &(&'static str, usize),
54-
index: usize, len: usize) -> ! {
55-
panic_fmt(format_args!("index out of bounds: the len is {} but the index is {}",
56-
len, index), file_line)
57-
}
58-
#[cold] #[inline(never)]
59-
#[lang="panic_bounds_check"]
60-
#[cfg(not(stage0))]
6144
fn panic_bounds_check(file_line: &(&'static str, u32),
6245
index: usize, len: usize) -> ! {
6346
panic_fmt(format_args!("index out of bounds: the len is {} but the index is {}",
6447
len, index), file_line)
6548
}
6649

6750
#[cold] #[inline(never)]
68-
#[cfg(stage0)]
69-
pub fn panic_fmt(fmt: fmt::Arguments, file_line: &(&'static str, usize)) -> ! {
70-
#[allow(improper_ctypes)]
71-
extern {
72-
#[lang = "panic_fmt"]
73-
fn panic_impl(fmt: fmt::Arguments, file: &'static str, line: uint) -> !;
74-
}
75-
let (file, line) = *file_line;
76-
unsafe { panic_impl(fmt, file, line as uint) }
77-
}
78-
#[cold] #[inline(never)]
79-
#[cfg(not(stage0))]
8051
pub fn panic_fmt(fmt: fmt::Arguments, file_line: &(&'static str, u32)) -> ! {
8152
#[allow(improper_ctypes)]
8253
extern {

src/liblog/macros.rs

-7
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,6 @@
5050
#[macro_export]
5151
macro_rules! log {
5252
($lvl:expr, $($arg:tt)+) => ({
53-
#[cfg(stage0)]
54-
static LOC: ::log::LogLocation = ::log::LogLocation {
55-
line: line!() as u32,
56-
file: file!(),
57-
module_path: module_path!(),
58-
};
59-
#[cfg(not(stage0))]
6053
static LOC: ::log::LogLocation = ::log::LogLocation {
6154
line: line!(),
6255
file: file!(),

src/snapshots.txt

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
S 2015-02-25 880fb89
2+
freebsd-x86_64 f4cbe4227739de986444211f8ee8d74745ab8f7f
3+
linux-i386 3278ebbce8cb269acc0614dac5ddac07eab6a99c
4+
linux-x86_64 72287d0d88de3e5a53bae78ac0d958e1a7637d73
5+
macos-i386 33b366b5287427a340a0aa6ed886d5ff4edf6a76
6+
macos-x86_64 914bf9baa32081a9d5633f1d06f4d382cd71504e
7+
winnt-i386 d58b415b9d8629cb6c4952f1f6611a526a38323f
8+
winnt-x86_64 2cb1dcc563d2ac6deada054de15748f5dd599c7e
9+
110
S 2015-02-19 522d09d
211
freebsd-x86_64 7ea14ef85a25bca70a310a2cd660b356cf61abc7
312
linux-i386 26e3caa1ce1c482b9941a6bdc64b3e65d036c200

0 commit comments

Comments
 (0)