Skip to content

Fix build error due to core::intrinsics::catch_unwind return type change - #58

Merged
nbdd0121 merged 1 commit into
nbdd0121:trunkfrom
taiki-e:catch-unwind
May 30, 2026
Merged

Fix build error due to core::intrinsics::catch_unwind return type change#58
nbdd0121 merged 1 commit into
nbdd0121:trunkfrom
taiki-e:catch-unwind

Conversation

@taiki-e

@taiki-e taiki-e commented May 30, 2026

Copy link
Copy Markdown
Contributor

The return type of core::intrinsics::catch_unwind has been changed in nightly-2026-05-30 by rust-lang/rust#156867.

error[E0308]: mismatched types
  --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/unwinding-0.2.8/src/panicking.rs:42:95
   |
42 |         return if core::intrinsics::catch_unwind(do_call::<F, R>, data_ptr, do_catch::<E>) == 0 {
   |                   ------------------------------------------------------------------------    ^ expected `bool`, found integer
   |                   |
   |                   expected because this is `bool`

@nbdd0121

Copy link
Copy Markdown
Owner

Thanks!

@nbdd0121
nbdd0121 merged commit e432817 into nbdd0121:trunk May 30, 2026
6 checks passed
@taiki-e
taiki-e deleted the catch-unwind branch May 30, 2026 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants