Fix exceeding line width limit
This commit is contained in:
parent
d3f9788e59
commit
f18a8c6163
2 changed files with 4 additions and 2 deletions
|
@ -40,7 +40,8 @@ use fmt;
|
||||||
use panic::{Location, PanicInfo};
|
use panic::{Location, PanicInfo};
|
||||||
|
|
||||||
#[cold]
|
#[cold]
|
||||||
// never inline unless panic_immediate_abort to avoid code bloat at the call sites as much as possible
|
// never inline unless panic_immediate_abort to avoid code
|
||||||
|
// bloat at the call sites as much as possible
|
||||||
#[cfg_attr(not(feature="panic_immediate_abort"),inline(never))]
|
#[cfg_attr(not(feature="panic_immediate_abort"),inline(never))]
|
||||||
#[lang = "panic"]
|
#[lang = "panic"]
|
||||||
pub fn panic(expr_file_line_col: &(&'static str, &'static str, u32, u32)) -> ! {
|
pub fn panic(expr_file_line_col: &(&'static str, &'static str, u32, u32)) -> ! {
|
||||||
|
|
|
@ -406,7 +406,8 @@ fn continue_panic_fmt(info: &PanicInfo) -> ! {
|
||||||
reason = "used by the panic! macro",
|
reason = "used by the panic! macro",
|
||||||
issue = "0")]
|
issue = "0")]
|
||||||
#[cfg_attr(not(test), lang = "begin_panic")]
|
#[cfg_attr(not(test), lang = "begin_panic")]
|
||||||
// never inline unless panic_immediate_abort to avoid code bloat at the call sites as much as possible
|
// never inline unless panic_immediate_abort to avoid code
|
||||||
|
// bloat at the call sites as much as possible
|
||||||
#[cfg_attr(not(feature="panic_immediate_abort"),inline(never))]
|
#[cfg_attr(not(feature="panic_immediate_abort"),inline(never))]
|
||||||
#[cold]
|
#[cold]
|
||||||
pub fn begin_panic<M: Any + Send>(msg: M, file_line_col: &(&'static str, u32, u32)) -> ! {
|
pub fn begin_panic<M: Any + Send>(msg: M, file_line_col: &(&'static str, u32, u32)) -> ! {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue