Skip to content

Commit f1f136b

Browse files
committed
Fix tests
1 parent 2bf7fb4 commit f1f136b

File tree

2 files changed

+3
-14
lines changed

2 files changed

+3
-14
lines changed

tests/lang_tests_common.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,6 @@ pub fn main_inner(profile: Profile) {
4646
&format!("-Zcodegen-backend={}/target/debug/librustc_codegen_gcc.so", current_dir),
4747
"--sysroot", &format!("{}/build_sysroot/sysroot/", current_dir),
4848
"-Zno-parallel-llvm",
49-
"-C", "panic=abort",
5049
"-C", "link-arg=-lc",
5150
"-o", exe.to_str().expect("to_str"),
5251
path.to_str().expect("to_str"),

tests/run/int.rs

Lines changed: 3 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,14 @@
33
// Run-time:
44
// status: 0
55

6-
#![feature(bench_black_box, const_black_box, core_intrinsics, start)]
7-
8-
#![no_std]
9-
10-
#[panic_handler]
11-
fn panic_handler(_: &core::panic::PanicInfo) -> ! {
12-
core::intrinsics::abort();
13-
}
6+
#![feature(bench_black_box, const_black_box)]
147

158
/*
169
* Code
1710
*/
1811

19-
#[start]
20-
fn main(_argc: isize, _argv: *const *const u8) -> isize {
21-
use core::hint::black_box;
12+
fn main() {
13+
use std::hint::black_box;
2214

2315
macro_rules! check {
2416
($ty:ty, $expr:expr) => {
@@ -335,6 +327,4 @@ fn main(_argc: isize, _argv: *const *const u8) -> isize {
335327
const VAL5: T = 73236519889708027473620326106273939584_i128;
336328
check_ops128!();
337329
}
338-
339-
0
340330
}

0 commit comments

Comments
 (0)