File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
doc/unstable-book/src/language-features Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -143,7 +143,8 @@ pub extern fn rust_eh_unwind_resume() {
143
143
#[no_mangle]
144
144
pub extern fn rust_begin_panic(_msg: core::fmt::Arguments,
145
145
_file: &'static str,
146
- _line: u32) -> ! {
146
+ _line: u32,
147
+ _column: u32) -> ! {
147
148
unsafe { intrinsics::abort() }
148
149
}
149
150
```
@@ -187,7 +188,8 @@ pub extern fn rust_eh_unwind_resume() {
187
188
#[no_mangle]
188
189
pub extern fn rust_begin_panic(_msg: core::fmt::Arguments,
189
190
_file: &'static str,
190
- _line: u32) -> ! {
191
+ _line: u32,
192
+ _column: u32) -> ! {
191
193
unsafe { intrinsics::abort() }
192
194
}
193
195
```
Original file line number Diff line number Diff line change 36
36
//! These functions are often provided by the system libc, but can also be
37
37
//! provided by the [rlibc crate](https://crates.io/crates/rlibc).
38
38
//!
39
- //! * `rust_begin_panic` - This function takes three arguments, a
40
- //! `fmt::Arguments`, a `&'static str`, and a `u32`. These three arguments
39
+ //! * `rust_begin_panic` - This function takes four arguments, a
40
+ //! `fmt::Arguments`, a `&'static str`, and two `u32`'s . These four arguments
41
41
//! dictate the panic message, the file at which panic was invoked, and the
42
42
//! line and column inside the file. It is up to consumers of this core
43
43
//! library to define this panic function; it is only required to never
You can’t perform that action at this time.
0 commit comments