Avoid codegen for Result::into_ok in lang_start
Otherwise, we end up pulling in an extra module as part of codegen, and that costs us a sizeable amount of work (both in LLVM and outside).
This commit is contained in:
parent
2c7bc5e33c
commit
db5ecd539c
@ -59,10 +59,10 @@ fn lang_start<T: crate::process::Termination + 'static>(
|
||||
argc: isize,
|
||||
argv: *const *const u8,
|
||||
) -> isize {
|
||||
lang_start_internal(
|
||||
let Ok(v) = lang_start_internal(
|
||||
&move || crate::sys_common::backtrace::__rust_begin_short_backtrace(main).report(),
|
||||
argc,
|
||||
argv,
|
||||
)
|
||||
.into_ok()
|
||||
);
|
||||
v
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user