Skip to content

Remove -Zemscripten-wasm-eh#156928

Open
bjorn3 wants to merge 1 commit into
rust-lang:mainfrom
bjorn3:emscripten_always_wasm_eh
Open

Remove -Zemscripten-wasm-eh#156928
bjorn3 wants to merge 1 commit into
rust-lang:mainfrom
bjorn3:emscripten_always_wasm_eh

Conversation

@bjorn3
Copy link
Copy Markdown
Member

@bjorn3 bjorn3 commented May 25, 2026

This was necessary when transitioning from JS to wasm exception handling on Emscripten. Enough time has probably passed that we no longer need to support JS exception handling on Emscripten. This enables cleaning up a fair bit of code.

This is the final step of #112195.

@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 25, 2026

Some changes occurred in cfg and check-cfg configuration

cc @Urgau

@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. T-libs Relevant to the library team, which will review and decide on the PR/issue. labels May 25, 2026
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 25, 2026

r? @TaKO8Ki

rustbot has assigned @TaKO8Ki.
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: compiler
  • compiler expanded to 73 candidates
  • Random selection from 18 candidates

/// Allows using anonymous lifetimes in argument-position impl-trait.
(unstable, anonymous_lifetime_in_impl_trait, "1.63.0", None),
/// Allows access to the emscripten_wasm_eh config, used by panic_unwind and unwind
(internal, cfg_emscripten_wasm_eh, "1.86.0", None),
Copy link
Copy Markdown
Member Author

@bjorn3 bjorn3 May 25, 2026

Choose a reason for hiding this comment

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

I haven't moved this to the list of removed features as it is an internal feature.

View changes since the review

@bjorn3
Copy link
Copy Markdown
Member Author

bjorn3 commented May 25, 2026

@purplesyringa @hoodmane @curiousdannii @kripken @aheejin (I hope I didn't forget any major stakeholder)

Has it indeed been long enough since switching to wasm exceptions by default that we can safely remove this flag?

@hoodmane
Copy link
Copy Markdown
Contributor

It's fine with me. I won't ever be turning it off again.

@rust-log-analyzer

This comment has been minimized.

@bjorn3 bjorn3 force-pushed the emscripten_always_wasm_eh branch from 5ac842d to 802c141 Compare May 25, 2026 19:21
purplesyringa added a commit to iex-rs/lithium that referenced this pull request May 25, 2026
@purplesyringa
Copy link
Copy Markdown
Contributor

Happy to see this finally happen! No concerns on my side.

@rust-log-analyzer

This comment has been minimized.

@curiousdannii
Copy link
Copy Markdown

I'm now using panic=abort, so I think it doesn't matter for me.

@bjorn3 bjorn3 force-pushed the emscripten_always_wasm_eh branch from 802c141 to be3e3c7 Compare May 26, 2026 10:58
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented May 26, 2026

Some changes occurred in src/doc/rustc/src/platform-support

cc @Noratrieb

@bjorn3 bjorn3 force-pushed the emscripten_always_wasm_eh branch from be3e3c7 to 24d9697 Compare May 27, 2026 09:06
@rust-bors

This comment has been minimized.

This was necessary when transitioning from JS to wasm exception handling
on Emscripten. Enough time has probably passed that we no longer need to
support JS exception handling on Emscripten. This enables cleaning up a
fair bit of code.
@bjorn3 bjorn3 force-pushed the emscripten_always_wasm_eh branch from 24d9697 to 9b7623a Compare June 2, 2026 17:58
@rustbot
Copy link
Copy Markdown
Collaborator

rustbot commented Jun 2, 2026

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

@TaKO8Ki
Copy link
Copy Markdown
Member

TaKO8Ki commented Jun 3, 2026

@bors r+ rollup

@rust-bors
Copy link
Copy Markdown
Contributor

rust-bors Bot commented Jun 3, 2026

📌 Commit 9b7623a has been approved by TaKO8Ki

It is now in the queue for this repository.

🌲 The tree is currently closed for pull requests below priority 5. This pull request will be tested once the tree is reopened.

@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 Jun 3, 2026
jhpratt added a commit to jhpratt/rust that referenced this pull request Jun 3, 2026
…r=TaKO8Ki

Remove -Zemscripten-wasm-eh

This was necessary when transitioning from JS to wasm exception handling on Emscripten. Enough time has probably passed that we no longer need to support JS exception handling on Emscripten. This enables cleaning up a fair bit of code.

This is the final step of rust-lang#112195.
rust-bors Bot pushed a commit that referenced this pull request Jun 3, 2026
Rollup of 7 pull requests

Successful merges:

 - #155763 (Promotes 5 Thumb-mode bare-metal Arm targets to Tier 2)
 - #156928 (Remove -Zemscripten-wasm-eh)
 - #157236 (Reorganize `tests/ui/issues` [3/N])
 - #157294 (Split coroutine layout computation to its own file)
 - #157328 (windows: Elide division-by-zero checks in Instant::now())
 - #157331 (Rewrite target checking for `#[link]`)
 - #157336 (Enable `clippy::mem_replace_with_default`)
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Jun 3, 2026
…r=TaKO8Ki

Remove -Zemscripten-wasm-eh

This was necessary when transitioning from JS to wasm exception handling on Emscripten. Enough time has probably passed that we no longer need to support JS exception handling on Emscripten. This enables cleaning up a fair bit of code.

This is the final step of rust-lang#112195.
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Jun 3, 2026
…r=TaKO8Ki

Remove -Zemscripten-wasm-eh

This was necessary when transitioning from JS to wasm exception handling on Emscripten. Enough time has probably passed that we no longer need to support JS exception handling on Emscripten. This enables cleaning up a fair bit of code.

This is the final step of rust-lang#112195.
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Jun 3, 2026
…r=TaKO8Ki

Remove -Zemscripten-wasm-eh

This was necessary when transitioning from JS to wasm exception handling on Emscripten. Enough time has probably passed that we no longer need to support JS exception handling on Emscripten. This enables cleaning up a fair bit of code.

This is the final step of rust-lang#112195.
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. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. T-libs Relevant to the library team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants