Skip to content

Commit 678814a

Browse files
brsonalexcrichton
authored andcommitted
core: Add #[inline(never)] to failure functions
For consistency, just because `fail_` has it.
1 parent 4db68e6 commit 678814a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/failure.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ fn fail_(expr_file_line: &(&'static str, &'static str, uint)) -> ! {
6969
}
7070

7171
#[cfg(not(stage0))]
72-
#[cold]
72+
#[cold] #[inline(never)]
7373
#[lang="fail_bounds_check"]
7474
fn fail_bounds_check(file_line: &(&'static str, uint),
7575
index: uint, len: uint) -> ! {
@@ -79,7 +79,7 @@ fn fail_bounds_check(file_line: &(&'static str, uint),
7979
unsafe { intrinsics::abort() }
8080
}
8181

82-
#[cold]
82+
#[cold] #[inline(never)]
8383
pub fn begin_unwind(fmt: &fmt::Arguments, file_line: &(&'static str, uint)) -> ! {
8484
#[allow(ctypes)]
8585
extern {

0 commit comments

Comments
 (0)