mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-16 14:27:49 +00:00
Don't implement lang items on testing
The `std` library is imported on testing. It already implements all lang items.
This commit is contained in:
@@ -37,5 +37,10 @@ pub extern fn rust_main() {
|
||||
loop{}
|
||||
}
|
||||
|
||||
#[lang = "eh_personality"] extern fn eh_personality() {}
|
||||
#[lang = "panic_fmt"] extern fn panic_fmt() -> ! {loop{}}
|
||||
#[cfg(not(test))]
|
||||
#[lang = "eh_personality"]
|
||||
extern fn eh_personality() {}
|
||||
|
||||
#[cfg(not(test))]
|
||||
#[lang = "panic_fmt"]
|
||||
extern fn panic_fmt() -> ! {loop{}}
|
||||
|
||||
Reference in New Issue
Block a user