remove support for the #[start] attribute
This commit is contained in:
parent
341f60327f
commit
56c90dc31e
176 changed files with 454 additions and 1260 deletions
|
@ -332,6 +332,10 @@ language_item_table! {
|
|||
FallbackSurfaceDrop, sym::fallback_surface_drop, fallback_surface_drop_fn, Target::Fn, GenericRequirement::None;
|
||||
AllocLayout, sym::alloc_layout, alloc_layout, Target::Struct, GenericRequirement::None;
|
||||
|
||||
/// For all binary crates without `#![no_main]`, Rust will generate a "main" function.
|
||||
/// The exact name and signature are target-dependent. The "main" function will invoke
|
||||
/// this lang item, passing it the `argc` and `argv` (or null, if those don't exist
|
||||
/// on the current target) as well as the user-defined `fn main` from the binary crate.
|
||||
Start, sym::start, start_fn, Target::Fn, GenericRequirement::Exact(1);
|
||||
|
||||
EhPersonality, sym::eh_personality, eh_personality, Target::Fn, GenericRequirement::None;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue