Skip to content

Commit 9416dc7

Browse files
committed
[kernel] update for compatibility with latest nightly
The `stack_exhausted` lang item was removed in rust-lang/rust#27338. Therefore, our (empty) implementation of `stack_exhausted` can be removed.
1 parent ff89e46 commit 9416dc7

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/panic.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ pub extern "C" fn rust_begin_unwind( args: Arguments
2929
loop { }
3030
}
3131

32-
#[lang = "stack_exhausted"]
33-
#[no_mangle] #[inline(never)] #[cold]
34-
pub extern "C" fn __morestack() -> ! {
35-
println!("stack exhausted");
36-
loop { }
37-
}
32+
// #[lang = "stack_exhausted"]
33+
// #[no_mangle] #[inline(never)] #[cold]
34+
// pub extern "C" fn __morestack() -> ! {
35+
// println!("stack exhausted");
36+
// loop { }
37+
// }
3838

3939
#[allow(non_snake_case)]
4040
#[no_mangle] #[inline(never)] #[cold]

0 commit comments

Comments
 (0)