Skip to content

Commit

Permalink
Revert "Wasm ABI can unwind"
Browse files Browse the repository at this point in the history
This reverts commit 72c4238.
  • Loading branch information
coolreader18 committed Feb 22, 2024
1 parent 7f1b76a commit 674c597
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions compiler/rustc_middle/src/ty/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1243,12 +1243,9 @@ pub fn fn_can_unwind(tcx: TyCtxt<'_>, fn_def_id: Option<DefId>, abi: SpecAbi) ->
| RiscvInterruptM
| RiscvInterruptS
| CCmseNonSecureCall
| Wasm
| PlatformIntrinsic
| Unadjusted => false,
Wasm => {
tcx.sess.panic_strategy() == PanicStrategy::Unwind
|| tcx.sess.target_features.contains(&Symbol::intern("exception-handling"))
}
Rust | RustCall | RustCold | RustIntrinsic => {
tcx.sess.panic_strategy() == PanicStrategy::Unwind
}
Expand Down

0 comments on commit 674c597

Please sign in to comment.