]> git.lizzy.rs Git - rust.git/commitdiff
core: Add #[inline(never)] to failure functions
authorBrian Anderson <banderson@mozilla.com>
Wed, 30 Jul 2014 06:18:31 +0000 (23:18 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Thu, 31 Jul 2014 14:30:17 +0000 (07:30 -0700)
For consistency, just because `fail_` has it.

src/libcore/failure.rs

index 6a638b5618ca6e80dd15ce16d19bc18cd0e5e0f5..543d3f2cbbbe19f7d56b040dd1d568390c78eaff 100644 (file)
@@ -69,7 +69,7 @@ fn fail_(expr_file_line: &(&'static str, &'static str, uint)) -> ! {
 }
 
 #[cfg(not(stage0))]
-#[cold]
+#[cold] #[inline(never)]
 #[lang="fail_bounds_check"]
 fn fail_bounds_check(file_line: &(&'static str, uint),
                      index: uint, len: uint) -> ! {
@@ -79,7 +79,7 @@ fn fail_bounds_check(file_line: &(&'static str, uint),
     unsafe { intrinsics::abort() }
 }
 
-#[cold]
+#[cold] #[inline(never)]
 pub fn begin_unwind(fmt: &fmt::Arguments, file_line: &(&'static str, uint)) -> ! {
     #[allow(ctypes)]
     extern {