We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
lang_start
1 parent 83cb299 commit 88bf2b4Copy full SHA for 88bf2b4
src/libstd/rt.rs
@@ -62,7 +62,7 @@ fn lang_start<T: ::termination::Termination + 'static>
62
::sys_common::backtrace::__rust_begin_short_backtrace(move || main().report())
63
});
64
#[cfg(not(feature = "backtrace"))]
65
- let exit_code = panic::catch_unwind(mem::transmute::<_, fn()>(main).report());
+ let exit_code = panic::catch_unwind(|| main().report());
66
67
sys_common::cleanup();
68
exit_code.unwrap_or(101)
0 commit comments