mirror of
https://github.com/phil-opp/blog_os.git
synced 2025-12-17 06:47: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{}
|
loop{}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[lang = "eh_personality"] extern fn eh_personality() {}
|
#[cfg(not(test))]
|
||||||
#[lang = "panic_fmt"] extern fn panic_fmt() -> ! {loop{}}
|
#[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