Skip to content

Linux kernel: supporting non_ascii_idents #3427

@ojeda

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.

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.

Metadata

Metadata

Assignees

No one assigned

    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