File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6666 let rust_start = move || {
6767 let f = f. into_inner ( ) ;
6868 let try_result = panic:: catch_unwind ( panic:: AssertUnwindSafe ( || {
69- crate :: sys:: backtrace:: __rust_begin_short_backtrace ( || hooks. run ( ) ) ;
69+ crate :: sys:: backtrace:: __rust_begin_short_backtrace ( || hooks. inherit_and_run ( ) ) ;
7070 crate :: sys:: backtrace:: __rust_begin_short_backtrace ( f)
7171 } ) ) ;
7272 // SAFETY: `their_packet` as been built just above and moved by the
Original file line number Diff line number Diff line change @@ -144,7 +144,7 @@ pub(super) struct ChildSpawnHooks {
144144
145145impl ChildSpawnHooks {
146146 // This is run on the newly spawned thread, directly at the start.
147- pub ( super ) fn run ( self ) {
147+ pub ( super ) fn inherit_and_run ( self ) {
148148 SPAWN_HOOKS . set ( self . hooks ) ;
149149 for run in self . to_run {
150150 run ( ) ;
You can’t perform that action at this time.
0 commit comments