Skip to content

Commit 56983cf

Browse files
committed
test: Remove redundant code from tests/run/int.rs
1 parent 403e198 commit 56983cf

File tree

1 file changed

+2
-21
lines changed

1 file changed

+2
-21
lines changed

tests/run/int.rs

+2-21
Original file line numberDiff line numberDiff line change
@@ -3,32 +3,13 @@
33
// Run-time:
44
// status: 0
55

6-
#![feature(arbitrary_self_types, auto_traits, core_intrinsics, lang_items, start, intrinsics)]
6+
#![feature(core_intrinsics, start)]
77

88
#![no_std]
99

10-
mod intrinsics {
11-
extern "rust-intrinsic" {
12-
pub fn abort() -> !;
13-
}
14-
}
15-
16-
/*
17-
* Core
18-
*/
19-
20-
mod libc {
21-
#[link(name = "c")]
22-
extern "C" {
23-
pub fn puts(s: *const u8) -> i32;
24-
}
25-
}
26-
2710
#[panic_handler]
2811
fn panic_handler(_: &core::panic::PanicInfo) -> ! {
29-
unsafe {
30-
core::intrinsics::abort();
31-
}
12+
core::intrinsics::abort();
3213
}
3314

3415
/*

0 commit comments

Comments
 (0)