Skip to content

Commit 993e3a5

Browse files
committed
remove event that causes panics in measureme tools
the measureme tools summarize and crox do not alow a event to go out of scope of the parent event codegen_and_optimize_crate ends after the codegen_crate event
1 parent 7870050 commit 993e3a5

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

src/librustc_codegen_ssa/back/write.rs

-4
Original file line numberDiff line numberDiff line change
@@ -321,8 +321,6 @@ pub fn start_async_codegen<B: ExtraBackendMethods>(
321321
let (coordinator_send, coordinator_receive) = channel();
322322
let sess = tcx.sess;
323323

324-
sess.prof.generic_activity_start("codegen_and_optimize_crate");
325-
326324
let crate_name = tcx.crate_name(LOCAL_CRATE);
327325
let crate_hash = tcx.crate_hash(LOCAL_CRATE);
328326
let no_builtins = attr::contains_name(&tcx.hir().krate().attrs, sym::no_builtins);
@@ -1774,8 +1772,6 @@ impl<B: ExtraBackendMethods> OngoingCodegen<B> {
17741772
self.backend.print_pass_timings()
17751773
}
17761774

1777-
sess.prof.generic_activity_end("codegen_and_optimize_crate");
1778-
17791775
(CodegenResults {
17801776
crate_name: self.crate_name,
17811777
crate_hash: self.crate_hash,

0 commit comments

Comments
 (0)