Re: [PATCH] rust: kbuild: set `bindgen`'s Rust target version

From: Miguel Ojeda
Date: Mon Nov 25 2024 - 04:52:25 EST


On Mon, Nov 25, 2024 at 10:08 AM Alice Ryhl <aliceryhl@xxxxxxxxxx> wrote:
>
> Just to double-check, the problem is that bindgen currently doesn't
> get any information about the rustc we're using, so it may generate
> code invalid on the rustc we are actually using?

Exactly: it doesn't at the moment, but eventually a future release could.

Of course, people using the latest stable `rustc` would likely never
see an issue. But there may be people e.g. building `bindgen` on their
own, and thus likely picking the latest version, while using an older
Rust toolchain from their distribution instead of, say, `rustup`.

Cheers,
Miguel