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:
Philipp Oppermann
2015-09-15 14:44:37 +02:00
parent 5db8977495
commit 9c4d057e3d

View File

@@ -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{}}