Skip to content

Revert "Fix: On wasm targets, call panic_in_cleanup if panic occurs in cleanup #151771"#154700

Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
wesleywiser:revert_151771
Apr 2, 2026
Merged

Revert "Fix: On wasm targets, call panic_in_cleanup if panic occurs in cleanup #151771"#154700
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
wesleywiser:revert_151771

Conversation

@wesleywiser
Copy link
Copy Markdown
Member

@wesleywiser wesleywiser commented Apr 2, 2026

Clean revert of #151771 as discussed in the compiler team triage meeting and #153948 (comment)

Fixes (after backport): #153948

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 2, 2026

Some changes occurred in compiler/rustc_codegen_gcc

cc @antoyo, @GuillaumeGomez

@rustbot rustbot added A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Apr 2, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 2, 2026

r? @jieyouxu

rustbot has assigned @jieyouxu.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: codegen, compiler
  • codegen, compiler expanded to 69 candidates
  • Random selection from 12 candidates

@wesleywiser wesleywiser added the beta-nominated Nominated for backporting to the compiler in the beta channel. label Apr 2, 2026
Copy link
Copy Markdown
Member

@jieyouxu jieyouxu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Revert looks right, r=me after PR CI is green, thanks

View changes since this review

@jieyouxu jieyouxu changed the title Revert #151771 Revert "Fix: On wasm targets, call panic_in_cleanup if panic occurs in cleanup #151771" Apr 2, 2026
@jieyouxu
Copy link
Copy Markdown
Member

jieyouxu commented Apr 2, 2026

@bors r+ rollup=never

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors bot commented Apr 2, 2026

📌 Commit c9d3a00 has been approved by jieyouxu

It is now in the queue for this repository.

@rust-bors rust-bors bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Apr 2, 2026
@rust-bors

This comment has been minimized.

@rust-bors rust-bors bot added merged-by-bors This PR was explicitly merged by bors. and removed S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. labels Apr 2, 2026
@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors bot commented Apr 2, 2026

☀️ Test successful - CI
Approved by: jieyouxu
Duration: 3h 12m 30s
Pushing e6b64a2 to main...

@rust-bors rust-bors bot merged commit e6b64a2 into rust-lang:main Apr 2, 2026
12 checks passed
@rustbot rustbot added this to the 1.96.0 milestone Apr 2, 2026
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Apr 2, 2026

What is this? This is an experimental post-merge analysis report that shows differences in test outcomes between the merged PR and its parent PR.

Comparing 8931f23 (parent) -> e6b64a2 (this PR)

Test differences

Show 3 test diffs

Stage 1

  • [codegen] tests/codegen-llvm/double_panic_wasm.rs: ignore (ignored on targets without unwinding support) -> [missing] (J1)
  • [codegen] tests/codegen-llvm/double_panic_wasm.rs: ignore (only executed when the architecture is wasm32) -> [missing] (J2)

Stage 2

  • [codegen] tests/codegen-llvm/double_panic_wasm.rs: ignore (only executed when the architecture is wasm32) -> [missing] (J0)

Job group index

Test dashboard

Run

cargo run --manifest-path src/ci/citool/Cargo.toml -- \
    test-dashboard e6b64a2f4c696b840f8a384ec28690eed6a5d267 --output-dir test-dashboard

And then open test-dashboard/index.html in your browser to see an overview of all executed tests.

Job duration changes

  1. x86_64-msvc-ext3: 1h 49m -> 1h 20m (-26.7%)
  2. x86_64-rust-for-linux: 53m 2s -> 43m 16s (-18.4%)
  3. x86_64-gnu-gcc: 1h 9m -> 58m 8s (-16.0%)
  4. optional-x86_64-gnu-parallel-frontend: 2h 39m -> 2h 18m (-13.2%)
  5. dist-apple-various: 1h 51m -> 1h 37m (-12.5%)
  6. x86_64-gnu-tools: 1h 4m -> 57m 9s (-11.9%)
  7. pr-check-1: 32m 13s -> 28m 36s (-11.2%)
  8. x86_64-gnu: 2h 22m -> 2h 6m (-11.2%)
  9. i686-gnu-1: 2h 22m -> 2h 6m (-11.1%)
  10. x86_64-gnu-distcheck: 2h 19m -> 2h 4m (-11.0%)
How to interpret the job duration changes?

Job durations can vary a lot, based on the actual runner instance
that executed the job, system noise, invalidated caches, etc. The table above is provided
mostly for t-infra members, for simpler debugging of potential CI slow-downs.

@rust-timer
Copy link
Copy Markdown
Collaborator

Finished benchmarking commit (e6b64a2): comparison URL.

Overall result: ❌✅ regressions and improvements - please read the text below

Our benchmarks found a performance regression caused by this PR.
This might be an actual regression, but it can also be just noise.

Next Steps:

  • If the regression was expected or you think it can be justified,
    please write a comment with sufficient written justification, and add
    @rustbot label: +perf-regression-triaged to it, to mark the regression as triaged.
  • If you think that you know of a way to resolve the regression, try to create
    a new PR with a fix for the regression.
  • If you do not understand the regression or you think that it is just noise,
    you can ask the @rust-lang/wg-compiler-performance working group for help (members of this group
    were already notified of this PR).

@rustbot label: +perf-regression
cc @rust-lang/wg-compiler-performance

Instruction count

Our most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
0.2% [0.0%, 0.3%] 7
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-0.1% [-0.1%, -0.0%] 2
All ❌✅ (primary) - - 0

Max RSS (memory usage)

Results (secondary 0.7%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
- - 0
Regressions ❌
(secondary)
2.8% [1.8%, 3.9%] 4
Improvements ✅
(primary)
- - 0
Improvements ✅
(secondary)
-3.4% [-4.8%, -2.1%] 2
All ❌✅ (primary) - - 0

Cycles

Results (primary 0.6%, secondary -0.5%)

A less reliable metric. May be of interest, but not used to determine the overall result above.

mean range count
Regressions ❌
(primary)
2.3% [2.3%, 2.3%] 1
Regressions ❌
(secondary)
4.8% [4.7%, 4.8%] 3
Improvements ✅
(primary)
-1.0% [-1.0%, -1.0%] 1
Improvements ✅
(secondary)
-5.8% [-7.8%, -3.7%] 3
All ❌✅ (primary) 0.6% [-1.0%, 2.3%] 2

Binary size

This benchmark run did not return any relevant results for this metric.

Bootstrap: 487.596s -> 487.024s (-0.12%)
Artifact size: 395.30 MiB -> 395.12 MiB (-0.05%)

@rustbot rustbot added the perf-regression Performance regression. label Apr 2, 2026
@lqd
Copy link
Copy Markdown
Member

lqd commented Apr 2, 2026

revert, tiny changes, could be noise, the original PR didn't have these as positive results, marking as triaged as there's nothing much to do or investigate (until it relands and shows perf changes)

@rustbot label: +perf-regression-triaged

@rustbot rustbot added the perf-regression-triaged The performance regression has been triaged. label Apr 2, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Apr 2, 2026

beta backport approved as per compiler team on Zulip. A backport PR will be authored by the release team at the end of the current development cycle. Backport labels are handled by them.

@rustbot rustbot added the beta-accepted Accepted for backporting to the compiler in the beta channel. label Apr 2, 2026
@cuviper cuviper mentioned this pull request Apr 2, 2026
@cuviper cuviper removed the beta-nominated Nominated for backporting to the compiler in the beta channel. label Apr 2, 2026
@cuviper cuviper removed this from the 1.96.0 milestone Apr 2, 2026
@cuviper cuviper added this to the 1.95.0 milestone Apr 2, 2026
rust-bors bot pushed a commit that referenced this pull request Apr 3, 2026
[beta] backports

- stdarch subtree update #153336 (partial)
  - aarch64: fix UB in non-power-of-two reads and writes rust-lang/stdarch#2042
- add neon load/store assembly test #154094
- don't drop arguments' temporaries in `dbg!` #154074
- Init self_decl with a correct vis #154313
- Update LLVM to 22.1.2 #154344
- [perf] Revert FastISel patch #154511
- core: Destabilize beta-stable `RangeInclusiveIter::remainder` #154459
- Revert "Fix: On wasm targets, call `panic_in_cleanup` if panic occurs in cleanup" #154700
- core: Update the feature gate on `TryFrom<integer> for bool` #154691

r? cuviper
rust-bors bot pushed a commit that referenced this pull request Apr 3, 2026
[beta] backports

- stdarch subtree update #153336 (partial)
  - aarch64: fix UB in non-power-of-two reads and writes rust-lang/stdarch#2042
- add neon load/store assembly test #154094
- don't drop arguments' temporaries in `dbg!` #154074
- Init self_decl with a correct vis #154313
- Update LLVM to 22.1.2 #154344
- [perf] Revert FastISel patch #154511
- core: Destabilize beta-stable `RangeInclusiveIter::remainder` #154459
- Revert "Fix: On wasm targets, call `panic_in_cleanup` if panic occurs in cleanup" #154700
- core: Update the feature gate on `TryFrom<integer> for bool` #154691

r? cuviper
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-LLVM Area: Code generation parts specific to LLVM. Both correctness bugs and optimization-related issues. beta-accepted Accepted for backporting to the compiler in the beta channel. merged-by-bors This PR was explicitly merged by bors. perf-regression Performance regression. perf-regression-triaged The performance regression has been triaged. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants