On Sat, 14 Nov 2026 at 10:02, Samuel Tardieu <[email protected]> wrote:
>
> An experimental Rust nightly feature `get_set_bit` introduces a `bit()`
> method on integer types which checks whether a specific bit is set. This
> clashes with QEMU's `IntegerExt::bit()` associated function which
> returns an integer with one particular bit set.
>
> While the `get_set_bit` feature has no planned stabilization date yet,
> this is reported as a `unstable_name_collisions` warning when compiling
> with the `strict_rust_lints` option, and warnings are turned into errors.
> Renaming `IntegerExt::bit()` to `IntegerExt::single_bit()` prevents this.
>
> Signed-off-by: Samuel Tardieu <[email protected]>

Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/4842

thanks
-- PMM

Reply via email to