Skip to content

Linux kernel: supporting non_ascii_idents #3427

Description

@ojeda

Context: For our incoming use of zerocopy and zerocopy-derive in the Linux kernel, I only needed a couple small patches to adapt the crates. It would be nice (but they are not blockers at the moment) if we could have these upstream to simplify upgrades later on.


The second most important one is #2880, which may get solved via upstream Rust's issue: rust-lang/rust#151025 (PR: rust-lang/rust#157497). On the kernel side, we will need to work around it until we bump the MSRV, thus likely late 2027, since we follow Debian Stable.

Otherwise, we could instead use another prefix/identifier that is ASCII-only, or perhaps conditionally via a cfg for the Linux kernel and other projects that deny non_ascii_idents.

Please see https://lore.kernel.org/rust-for-linux/20260602172920.30342-16-ojeda@kernel.org/ for the couple lines Linux kernel patch that works around the issue there.

Of course, this may be best merged with the existing issue above.

Activity

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

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions