Skip to content

Use set_bit_to alias from bit_field 0.10.4 to avoid name collision warning - #632

Open
phil-opp wants to merge 1 commit into
masterfrom
bit-field-set-bit-to
Open

phil-opp wants to merge 1 commit into
masterfrom
bit-field-set-bit-to

Conversation

@phil-opp

@phil-opp phil-opp commented Nov 10, 2026 •

Copy link
Copy Markdown
Member

The standard library merged an unstable set_bit implementation for integer types that now leads to a unstable_name_collisions warning. To avoid this, switch to the set_bit_to alias of bit_field.

(Side note: The standard library's implementation doesn't update in-place, it's fn(self) -> self instead. So switching to the stdlib impl would/will require changes to the code.)

Fixes the nightly CI build error.

…warning

The standard library merged an unstable `set_bit` implementation for integer
types that now leads to a `unstable_name_collisions` warning. To avoid this,
switch to the `set_bit_to` alias of `bit_field`.

(Side note: The standard library's implementation doesn't update in-place, it's
`fn(self) -> self` instead. So switching to the stdlib impl would/will require
changes to the code.)

This branch has not been deployed

No deployments
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.

1 participant