Pub and no_mangle are no longer required for panic_handler (#468)

This commit is contained in:
Philipp Oppermann
2018-10-01 13:11:39 +02:00
committed by GitHub
parent 2dd925d34d
commit 6f48a17ba4
10 changed files with 39 additions and 48 deletions

View File

@@ -628,8 +628,7 @@ Now that we have a `println` macro, we can use it in our panic function to print
/// This function is called on panic.
#[panic_handler]
#[no_mangle]
pub fn panic(info: &PanicInfo) -> ! {
fn panic(info: &PanicInfo) -> ! {
println!("{}", info);
loop {}
}