diff options
| author | est31 <MTest31@outlook.com> | 2017-07-25 22:10:10 +0200 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2017-07-25 22:10:10 +0200 |
| commit | 90ac6408baa80fcd7fa28bc98af6046dba8c4bbb (patch) | |
| tree | 8a770ed8d696edd657aab041df0345b2b02d2d46 /src/libstd/rt.rs | |
| parent | c417ee9ae8c30ac307c58591da46cf62e91caac1 (diff) | |
| download | rust-90ac6408baa80fcd7fa28bc98af6046dba8c4bbb.tar.gz rust-90ac6408baa80fcd7fa28bc98af6046dba8c4bbb.zip | |
Switch to begin_panic again
In https://github.com/rust-lang/rust/pull/42938 we made the compiler emit a call to begin_panic_new in order to pass column info to it. Now with stage0 updated (https://github.com/rust-lang/rust/pull/43320), we can safely change begin_panic and start emitting calls for it again.
Diffstat (limited to 'src/libstd/rt.rs')
| -rw-r--r-- | src/libstd/rt.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/libstd/rt.rs b/src/libstd/rt.rs index 2ee63527c14..2aa23ea043b 100644 --- a/src/libstd/rt.rs +++ b/src/libstd/rt.rs @@ -25,7 +25,9 @@ // Reexport some of our utilities which are expected by other crates. -pub use panicking::{begin_panic_new, begin_panic, begin_panic_fmt, update_panic_count}; +#[cfg(stage0)] +pub use panicking::begin_panic_new; +pub use panicking::{begin_panic, begin_panic_fmt, update_panic_count}; #[cfg(not(test))] #[lang = "start"] |
