Re-pull const declarations outside of nested const #496

Merged
KodrAus merged 1 commit from fix/rustc-ice into main 2026-09-09 20:03:05 -05:00
KodrAus commented 2026-09-09 19:28:42 -05:00 (Migrated from github.com)

Fixes #495

The const flag declarations were originally pulled out of a nested const block to work around a rustdoc bug. It seems like that same fix also prevented a rustc ICE on 1.69.0. I've re-pulled them back out.

@xtqqczze Do you still get an ICE triggered with this branch?

Fixes #495 The const flag declarations were originally pulled out of a nested const block to work around a `rustdoc` bug. It seems like that same fix also prevented a `rustc` ICE on 1.69.0. I've re-pulled them back out. @xtqqczze Do you still get an ICE triggered with this branch?
xtqqczze commented 2026-09-09 19:38:45 -05:00 (Migrated from github.com)

Confirmed this fixes the ICE locally. Let's wait for CI on https://github.com/nix-rust/nix/pull/2821 to confirm.

Confirmed this fixes the ICE locally. <strike>Let's wait for CI on https://github.com/nix-rust/nix/pull/2821 to confirm.</strike>
xtqqczze commented 2026-09-09 19:42:50 -05:00 (Migrated from github.com)

@KodrAus Confirmed that this fixes https://github.com/bitflags/bitflags/issues/495

@KodrAus Confirmed that this fixes https://github.com/bitflags/bitflags/issues/495
KodrAus commented 2026-09-09 20:02:55 -05:00 (Migrated from github.com)

Thanks! I'll merge and publish

Thanks! I'll merge and publish
Sign in to join this conversation.
No reviewers
No labels
bug
good first issue
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-bitflags/bitflags!496
No description provided.