Skip to content

Commit

Permalink
Fix exceeding line width limit
Browse files Browse the repository at this point in the history
  • Loading branch information
vi committed Nov 29, 2018
1 parent d3f9788 commit f18a8c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/libcore/panicking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ use fmt;
use panic::{Location, PanicInfo};

#[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))]
#[lang = "panic"]
pub fn panic(expr_file_line_col: &(&'static str, &'static str, u32, u32)) -> ! {
Expand Down
3 changes: 2 additions & 1 deletion src/libstd/panicking.rs
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,8 @@ fn continue_panic_fmt(info: &PanicInfo) -> ! {
reason = "used by the panic! macro",
issue = "0")]
#[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))]
#[cold]
pub fn begin_panic<M: Any + Send>(msg: M, file_line_col: &(&'static str, u32, u32)) -> ! {
Expand Down

0 comments on commit f18a8c6

Please sign in to comment.