You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
334 B
15 lines
334 B
// Rust language features implementions
|
|
|
|
use core;
|
|
|
|
#[lang = "eh_personality"]
|
|
extern fn eh_personality() {
|
|
}
|
|
|
|
#[lang = "panic_fmt"]
|
|
#[no_mangle]
|
|
pub extern fn panic_fmt(fmt: core::fmt::Arguments, file: &'static str, line: u32) -> ! {
|
|
println!("\n\nPANIC in {} at line {}:", file, line);
|
|
println!(" {}", fmt);
|
|
loop{}
|
|
} |