1
Fork 0

remove support for the #[start] attribute

This commit is contained in:
Ralf Jung 2024-12-14 09:13:12 +01:00
parent 341f60327f
commit 56c90dc31e
176 changed files with 454 additions and 1260 deletions

View file

@ -1,7 +0,0 @@
#![feature(start)]
#[start]
fn f< T >() {} //~ ERROR E0132
fn main() {
}

View file

@ -1,9 +0,0 @@
error[E0132]: `#[start]` function is not allowed to have type parameters
--> $DIR/E0132.rs:4:5
|
LL | fn f< T >() {}
| ^^^^^ `#[start]` function cannot have type parameters
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0132`.

View file

@ -1,8 +0,0 @@
#![feature(start)]
#[start]
fn foo(argc: isize, argv: *const *const u8) -> isize { 0 }
#[start]
fn f(argc: isize, argv: *const *const u8) -> isize { 0 }
//~^ ERROR E0138

View file

@ -1,12 +0,0 @@
error[E0138]: multiple `start` functions
--> $DIR/E0138.rs:7:1
|
LL | fn foo(argc: isize, argv: *const *const u8) -> isize { 0 }
| ---------------------------------------------------- previous `#[start]` function here
...
LL | fn f(argc: isize, argv: *const *const u8) -> isize { 0 }
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ multiple `start` functions
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0138`.

View file

@ -1,9 +0,0 @@
#![no_std]
#![feature(start)]
extern crate std;
#[start]
fn start(_: isize, _: *const *const u8) -> isize where (): Copy { //~ ERROR [E0647]
0
}

View file

@ -1,9 +0,0 @@
error[E0647]: `#[start]` function is not allowed to have a `where` clause
--> $DIR/E0647.rs:7:50
|
LL | fn start(_: isize, _: *const *const u8) -> isize where (): Copy {
| ^^^^^^^^^^^^^^ `#[start]` function cannot have a `where` clause
error: aborting due to 1 previous error
For more information about this error, try `rustc --explain E0647`.