diff options
| author | est31 <MTest31@outlook.com> | 2017-06-27 04:26:52 +0200 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2017-07-02 13:53:29 +0200 |
| commit | da887074fc70a9f8d2afec8dbe6e2eeea6fc1406 (patch) | |
| tree | 8c9777a4efcf37736d7ef89aa6f273c61968a5ac /src/libcore/lib.rs | |
| parent | c3a130cffca55c650c4a6d2de77c3138cf74c3f8 (diff) | |
| download | rust-da887074fc70a9f8d2afec8dbe6e2eeea6fc1406.tar.gz rust-da887074fc70a9f8d2afec8dbe6e2eeea6fc1406.zip | |
Output line column info when panicking
Diffstat (limited to 'src/libcore/lib.rs')
| -rw-r--r-- | src/libcore/lib.rs | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/libcore/lib.rs b/src/libcore/lib.rs index b6ab1ecaf4e..5acc6c3848a 100644 --- a/src/libcore/lib.rs +++ b/src/libcore/lib.rs @@ -39,9 +39,9 @@ //! * `rust_begin_panic` - This function takes three arguments, a //! `fmt::Arguments`, a `&'static str`, and a `u32`. These three arguments //! dictate the panic message, the file at which panic was invoked, and the -//! line. It is up to consumers of this core library to define this panic -//! function; it is only required to never return. This requires a `lang` -//! attribute named `panic_fmt`. +//! line and column inside the file. It is up to consumers of this core +//! library to define this panic function; it is only required to never +//! return. This requires a `lang` attribute named `panic_fmt`. //! //! * `rust_eh_personality` - is used by the failure mechanisms of the //! compiler. This is often mapped to GCC's personality function, but crates @@ -160,6 +160,11 @@ pub mod array; pub mod sync; pub mod cell; pub mod char; +// FIXME: remove when SNAP +#[cfg(stage0)] +#[path = "panicking_stage0.rs"] +pub mod panicking; +#[cfg(not(stage0))] pub mod panicking; pub mod iter; pub mod option; |
