Skip to content

Commit

Permalink
register snapshot 880fb89
Browse files Browse the repository at this point in the history
  • Loading branch information
flaper87 committed Feb 27, 2015
1 parent 880fb89 commit 9d0d723
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 61 deletions.
15 changes: 0 additions & 15 deletions src/libcore/fmt/mod.rs
Expand Up @@ -110,10 +110,7 @@ pub trait Write {
/// traits.
#[stable(feature = "rust1", since = "1.0.0")]
pub struct Formatter<'a> {
#[cfg(not(stage0))]
flags: u32,
#[cfg(stage0)]
flags: usize,
fill: char,
align: rt::v1::Alignment,
width: Option<usize>,
Expand Down Expand Up @@ -159,13 +156,6 @@ impl<'a> ArgumentV1<'a> {
}
}

#[cfg(stage0)]
#[doc(hidden)]
#[stable(feature = "rust1", since = "1.0.0")]
pub fn from_uint(x: &uint) -> ArgumentV1 {
ArgumentV1::new(x, ArgumentV1::show_usize)
}
#[cfg(not(stage0))]
#[doc(hidden)]
#[stable(feature = "rust1", since = "1.0.0")]
pub fn from_usize(x: &usize) -> ArgumentV1 {
Expand Down Expand Up @@ -605,14 +595,9 @@ impl<'a> Formatter<'a> {
write(self.buf, fmt)
}

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

/// Character used as 'fill' whenever there is alignment
#[unstable(feature = "core", reason = "method was just created")]
Expand Down
4 changes: 0 additions & 4 deletions src/libcore/fmt/rt/v1.rs
Expand Up @@ -32,10 +32,6 @@ pub struct FormatSpec {
pub fill: char,
#[stable(feature = "rust1", since = "1.0.0")]
pub align: Alignment,
#[cfg(stage0)]
#[stable(feature = "rust1", since = "1.0.0")]
pub flags: usize,
#[cfg(not(stage0))]
#[stable(feature = "rust1", since = "1.0.0")]
pub flags: u32,
#[stable(feature = "rust1", since = "1.0.0")]
Expand Down
6 changes: 0 additions & 6 deletions src/libcore/macros.rs
Expand Up @@ -15,9 +15,6 @@ macro_rules! panic {
panic!("explicit panic")
);
($msg:expr) => ({
#[cfg(stage0)]
static _MSG_FILE_LINE: (&'static str, &'static str, usize) = ($msg, file!(), line!());
#[cfg(not(stage0))]
static _MSG_FILE_LINE: (&'static str, &'static str, u32) = ($msg, file!(), line!());
::core::panicking::panic(&_MSG_FILE_LINE)
});
Expand All @@ -26,9 +23,6 @@ macro_rules! panic {
// used inside a dead function. Just `#[allow(dead_code)]` is
// insufficient, since the user may have
// `#[forbid(dead_code)]` and which cannot be overridden.
#[cfg(stage0)]
static _FILE_LINE: (&'static str, usize) = (file!(), line!());
#[cfg(not(stage0))]
static _FILE_LINE: (&'static str, u32) = (file!(), line!());
::core::panicking::panic_fmt(format_args!($fmt, $($arg)*), &_FILE_LINE)
});
Expand Down
29 changes: 0 additions & 29 deletions src/libcore/panicking.rs
Expand Up @@ -34,49 +34,20 @@ use fmt;

#[cold] #[inline(never)] // this is the slow path, always
#[lang="panic"]
#[cfg(stage0)]
pub fn panic(expr_file_line: &(&'static str, &'static str, usize)) -> ! {
let (expr, file, line) = *expr_file_line;
panic_fmt(format_args!("{}", expr), &(file, line))
}
#[cold] #[inline(never)] // this is the slow path, always
#[lang="panic"]
#[cfg(not(stage0))]
pub fn panic(expr_file_line: &(&'static str, &'static str, u32)) -> ! {
let (expr, file, line) = *expr_file_line;
panic_fmt(format_args!("{}", expr), &(file, line))
}

#[cold] #[inline(never)]
#[lang="panic_bounds_check"]
#[cfg(stage0)]
fn panic_bounds_check(file_line: &(&'static str, usize),
index: usize, len: usize) -> ! {
panic_fmt(format_args!("index out of bounds: the len is {} but the index is {}",
len, index), file_line)
}
#[cold] #[inline(never)]
#[lang="panic_bounds_check"]
#[cfg(not(stage0))]
fn panic_bounds_check(file_line: &(&'static str, u32),
index: usize, len: usize) -> ! {
panic_fmt(format_args!("index out of bounds: the len is {} but the index is {}",
len, index), file_line)
}

#[cold] #[inline(never)]
#[cfg(stage0)]
pub fn panic_fmt(fmt: fmt::Arguments, file_line: &(&'static str, usize)) -> ! {
#[allow(improper_ctypes)]
extern {
#[lang = "panic_fmt"]
fn panic_impl(fmt: fmt::Arguments, file: &'static str, line: uint) -> !;
}
let (file, line) = *file_line;
unsafe { panic_impl(fmt, file, line as uint) }
}
#[cold] #[inline(never)]
#[cfg(not(stage0))]
pub fn panic_fmt(fmt: fmt::Arguments, file_line: &(&'static str, u32)) -> ! {
#[allow(improper_ctypes)]
extern {
Expand Down
7 changes: 0 additions & 7 deletions src/liblog/macros.rs
Expand Up @@ -50,13 +50,6 @@
#[macro_export]
macro_rules! log {
($lvl:expr, $($arg:tt)+) => ({
#[cfg(stage0)]
static LOC: ::log::LogLocation = ::log::LogLocation {
line: line!() as u32,
file: file!(),
module_path: module_path!(),
};
#[cfg(not(stage0))]
static LOC: ::log::LogLocation = ::log::LogLocation {
line: line!(),
file: file!(),
Expand Down
9 changes: 9 additions & 0 deletions src/snapshots.txt
@@ -1,3 +1,12 @@
S 2015-02-25 880fb89
freebsd-x86_64 f4cbe4227739de986444211f8ee8d74745ab8f7f
linux-i386 3278ebbce8cb269acc0614dac5ddac07eab6a99c
linux-x86_64 72287d0d88de3e5a53bae78ac0d958e1a7637d73
macos-i386 33b366b5287427a340a0aa6ed886d5ff4edf6a76
macos-x86_64 914bf9baa32081a9d5633f1d06f4d382cd71504e
winnt-i386 d58b415b9d8629cb6c4952f1f6611a526a38323f
winnt-x86_64 2cb1dcc563d2ac6deada054de15748f5dd599c7e

S 2015-02-19 522d09d
freebsd-x86_64 7ea14ef85a25bca70a310a2cd660b356cf61abc7
linux-i386 26e3caa1ce1c482b9941a6bdc64b3e65d036c200
Expand Down

0 comments on commit 9d0d723

Please sign in to comment.