Skip to content

Remove blanket --noexcept option from windows-bindgen#4385

Merged
kennykerr merged 2 commits intomasterfrom
copilot/remove-noexcept-option
May 5, 2026
Merged

Remove blanket --noexcept option from windows-bindgen#4385
kennykerr merged 2 commits intomasterfrom
copilot/remove-noexcept-option

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 5, 2026

Per-issue follow-up to #4366: the blanket --noexcept flag did not measurably improve build times or debuggability and is being removed. The per-method [noexcept] IDL attribute (real NoExceptionAttribute metadata) is unaffected.

  • windows-bindgen: drop the --noexcept CLI arg, Bindgen::noexcept() builder, noexcept field, and doc-table entry (lib.rs); drop noexcept from Config (config/mod.rs).
  • Code generator (types/method.rs): noexcept is now driven solely by NoExceptionAttribute. Since the only remaining noexcept path carries a metadata guarantee, the assert!/debug_assert! split collapses to a single debug_assert!.
  • Test support: delete the blanket-noexcept fixture (crates/tests/fixtures/harness/data/bindgen/noexcept/) and its plumbing in the fixture harness (fixtures.rs).

Copilot AI changed the title [WIP] Remove windows-bindgen blanket noexcept option Remove blanket --noexcept option from windows-bindgen May 5, 2026
Copilot AI requested a review from kennykerr May 5, 2026 18:55
@kennykerr kennykerr marked this pull request as ready for review May 5, 2026 18:57
@kennykerr kennykerr merged commit 326ccdf into master May 5, 2026
29 checks passed
@kennykerr kennykerr deleted the copilot/remove-noexcept-option branch May 5, 2026 19:15
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.

windows-bindgen blanket noexcept option is not beneficial

2 participants