Skip to content

error: attributes starting with rustc are reserved for use by the rustc compiler #1620

Closed

Description

@xtqqczze

CI is currently broken due to the following error:

error: attributes starting with `rustc` are reserved for use by the `rustc` compiler
  --> /home/runner/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/rustix-1.1.4/src/backend/linux_raw/io/errno.rs:49:25
   |
49 | #[cfg_attr(rustc_attrs, rustc_layout_scalar_valid_range_start(0xf001))]
   |                         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

https://github.com/bytecodealliance/rustix/actions/runs/25315134393/job/74210836411?pr=1594

Activity

  1. kevinmehall commented on May 4, 2026

    @kevinmehall
    Contributor

    It was removed and replaced with pattern types: rust-lang/rust#155433

  2. sunfishcode commented on Aug 18, 2026

    @sunfishcode
    Member

    This is now fixed on main.

  3. smoelius commented on Sep 15, 2026

    @smoelius

    It looks like this is not yet fixed in the latest version on crates.io(?).

    https://crates.io/crates/rustix/1.1.4/code/src/backend/linux_raw/io/errno.rs#L49

    Would it be possible to get a release with the fix? 🙏

  4. smoelius commented on Sep 19, 2026

    @smoelius

    I see that version 1.1.5 is now published on crates.io and includes the fix:

    https://crates.io/crates/rustix/1.1.5/code/src/backend/linux_raw/io/errno.rs#L49

    Thank you! 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions