]> git.lizzy.rs Git - rust.git/commitdiff
rollup merge of #17621 : sfackler/new-snap
authorAlex Crichton <alex@alexcrichton.com>
Mon, 29 Sep 2014 15:17:18 +0000 (08:17 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Mon, 29 Sep 2014 15:17:18 +0000 (08:17 -0700)
1  2 
src/libcore/failure.rs
src/librustrt/unwind.rs

index a053c5a839d933e25367ab561daa6fd31404e596,ada83dae9aabd9543f17455750f8078845493105..9b63d325bc89add7fbe035be479676af95d5a707
  use fmt;
  use intrinsics;
  
- // NOTE: remove after next snapshot
- #[cfg(stage0)]
- pub use self::fail_ as fail;
- // NOTE: remove after next snapshot
- #[cfg(stage0)]
- #[cold] #[inline(never)] // this is the slow path, always
- #[lang="fail_"]
- fn fail_(expr_file_line: &(&'static str, &'static str, uint)) -> ! {
-     let (expr, file, line) = *expr_file_line;
-     let ref file_line = (file, line);
-     format_args!(|args| -> () {
-         fail_fmt(args, file_line);
-     }, "{}", expr);
-     unsafe { intrinsics::abort() }
- }
- #[cfg(not(stage0))]
  #[cold] #[inline(never)] // this is the slow path, always
  #[lang="fail"]
 -fn fail(expr_file_line: &(&'static str, &'static str, uint)) -> ! {
 +pub fn fail(expr_file_line: &(&'static str, &'static str, uint)) -> ! {
      let (expr, file, line) = *expr_file_line;
      let ref file_line = (file, line);
      format_args!(|args| -> () {
Simple merge