Skip to content

Rust 1.18 regression - ieee754-0.2.1, from_bits #41793

Closed
@brson

Description

@brson
error: use of unstable library feature 'float_bits_conv': recently added (see issue #40470)
   --> src/lib.rs:417:17
    |
417 |                 Self::from_bits(bits)
    |                 ^^^^^^^^^^^^^^^
...
609 | mk_impl!(f32, u32, i16, u8, u32, 8, 23);
    | ---------------------------------------- in this macro invocation

error: use of unstable library feature 'float_bits_conv': recently added (see issue #40470)
   --> src/lib.rs:417:17
    |
417 |                 Self::from_bits(bits)
    |                 ^^^^^^^^^^^^^^^
...
610 | mk_impl!(f64, u64, i16, u16, u64, 11, 52);
    | ------------------------------------------ in this macro invocation

error: use of unstable library feature 'float_bits_conv': recently added (see issue #40470)
   --> src/lib.rs:431:17
    |
431 |                 Self::from_bits(bits)
    |                 ^^^^^^^^^^^^^^^
...
609 | mk_impl!(f32, u32, i16, u8, u32, 8, 23);
    | ---------------------------------------- in this macro invocation

error: use of unstable library feature 'float_bits_conv': recently added (see issue #40470)
   --> src/lib.rs:431:17
    |
431 |                 Self::from_bits(bits)
    |                 ^^^^^^^^^^^^^^^
...
610 | mk_impl!(f64, u64, i16, u16, u64, 11, 52);
    | ------------------------------------------ in this macro invocation

error: use of unstable library feature 'float_bits_conv': recently added (see issue #40470)
   --> src/lib.rs:458:17
    |
458 |                 Self::from_bits(
    |                 ^^^^^^^^^^^^^^^
...
609 | mk_impl!(f32, u32, i16, u8, u32, 8, 23);
    | ---------------------------------------- in this macro invocation

error: use of unstable library feature 'float_bits_conv': recently added (see issue #40470)
   --> src/lib.rs:458:17
    |
458 |                 Self::from_bits(
    |                 ^^^^^^^^^^^^^^^
...
610 | mk_impl!(f64, u64, i16, u16, u64, 11, 52);
    | ------------------------------------------ in this macro invocation

error: aborting due to 6 previous errors

error: build failed

This is due to a new unstable inherent method introduced in #39271.

Mentioned already here.

cc @est31 @huonw

Metadata

Metadata

Assignees

No one assigned

    Labels

    T-libs-apiRelevant to the library API team, which will review and decide on the PR/issue.regression-from-stable-to-betaPerformance or correctness regression from stable to beta.relnotesMarks issues that should be documented in the release notes of the next release.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions