Skip to content

Commit d33028b

Browse files
committed
#[start] feature is removed
1 parent 181889d commit d33028b

File tree

1 file changed

+3
-3
lines changed
  • test_crates/throw_and_catch/src

1 file changed

+3
-3
lines changed

test_crates/throw_and_catch/src/main.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
#![no_std]
2-
#![feature(start)]
2+
#![no_main]
33

44
extern crate alloc;
55
extern crate unwinding;
@@ -46,8 +46,8 @@ fn main() {
4646
foo();
4747
}
4848

49-
#[start]
50-
fn start(_argc: isize, _argv: *const *const u8) -> isize {
49+
#[unsafe(export_name = "main")]
50+
extern "C" fn start(_argc: isize, _argv: *const *const u8) -> isize {
5151
unwinding::panic::catch_unwind(|| {
5252
main();
5353
0

0 commit comments

Comments
 (0)