Skip to content

32-bit ARM linux_raw backend has MSRV 1.82, instead of MSRV 1.63, due to use of asm_const #685

@briansmith

Description

@briansmith

Building with the MSRV with the "linux_raw" backend enabled, like this:

$ rustup +1.63 target add armv7-unknown-linux-gnueabihf
$ RUSTFLAGS="--cfg getrandom_backend=\"linux_raw\"" cargo +1.63 check --target=armv7-unknown-linux-gnueabihf

results in an error:

error[E0658]: const operands for inline assembly are unstable
  --> src/backends/linux_raw.rs:29:17
   |
29 |                 nr = const __NR_getrandom,
   |                 ^^^^^^^^^^^^^^^^^^^^^^^^^
   |
   = note: see issue #93332 <https://github.com/rust-lang/rust/issues/93332> for more information

For more information about this error, try `rustc --explain E0658`.

asm_const wasn't stabilized until Rust 1.82 (see rust-lang/rust#128570).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions