add checks for the signature of the lang item

This commit is contained in:
asquared31415 2022-12-23 13:54:14 -05:00 committed by David Tolnay
parent 5f8686ec3b
commit c319440311

View file

@ -15,7 +15,7 @@ pub trait Copy {}
pub unsafe trait Freeze {}
#[lang = "start"]
fn start<T>(_main: fn() -> T, _argc: isize, _argv: *const *const u8) -> isize {
fn start<T>(_main: fn() -> T, _argc: isize, _argv: *const *const u8, _sigpipe: u8) -> isize {
0
}