Skip to content

Commit

Permalink
Use move for optimization purposes
Browse files Browse the repository at this point in the history
  • Loading branch information
bkchr committed Dec 26, 2017
1 parent faff382 commit 072f3eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/rt.rs
Expand Up @@ -62,7 +62,7 @@ fn lang_start<T: ::termination::Termination + 'static>
::sys_common::backtrace::__rust_begin_short_backtrace(move || main().report())
});
#[cfg(not(feature = "backtrace"))]
let exit_code = panic::catch_unwind(|| main().report());
let exit_code = panic::catch_unwind(move || main().report());

sys_common::cleanup();
exit_code.unwrap_or(101)
Expand Down

0 comments on commit 072f3eb

Please sign in to comment.