[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <DFU8SBP3U31P.17WSDBQA4BKS8@garyguo.net>
Date: Wed, 21 Jan 2026 11:48:33 +0000
From: "Gary Guo" <gary@...yguo.net>
To: "Alexandre Courbot" <acourbot@...dia.com>, "Danilo Krummrich"
<dakr@...nel.org>, "Alice Ryhl" <aliceryhl@...gle.com>, "Daniel Almeida"
<daniel.almeida@...labora.com>, "Miguel Ojeda" <ojeda@...nel.org>, "Boqun
Feng" <boqun.feng@...il.com>, "Gary Guo" <gary@...yguo.net>,
Björn Roy Baron <bjorn3_gh@...tonmail.com>, "Benno Lossin"
<lossin@...nel.org>, "Andreas Hindborg" <a.hindborg@...nel.org>, "Trevor
Gross" <tmgross@...ch.edu>
Cc: "Yury Norov" <yury.norov@...il.com>, "John Hubbard"
<jhubbard@...dia.com>, "Alistair Popple" <apopple@...dia.com>, "Joel
Fernandes" <joelagnelf@...dia.com>, "Timur Tabi" <ttabi@...dia.com>, "Edwin
Peer" <epeer@...dia.com>, "Eliot Courtney" <ecourtney@...dia.com>, "Dirk
Behme" <dirk.behme@...bosch.com>, "Steven Price" <steven.price@....com>,
<rust-for-linux@...r.kernel.org>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v2 1/5] rust: enable the `generic_arg_infer` feature
On Wed Jan 21, 2026 at 7:23 AM GMT, Alexandre Courbot wrote:
> This feature is stable since 1.89, and used in subsequent patches.
>
> Signed-off-by: Alexandre Courbot <acourbot@...dia.com>
> ---
> rust/kernel/lib.rs | 3 +++
> scripts/Makefile.build | 3 ++-
> 2 files changed, 5 insertions(+), 1 deletion(-)
>
> diff --git a/rust/kernel/lib.rs b/rust/kernel/lib.rs
> index 6d637e2fed1b..122ad64880cd 100644
> --- a/rust/kernel/lib.rs
> +++ b/rust/kernel/lib.rs
> @@ -37,6 +37,9 @@
> #![feature(const_ptr_write)]
> #![feature(const_refs_to_cell)]
> //
> +// Stable since Rust 1.89.0.
> +#![feature(generic_arg_infer)]
> +//
> // Expected to become stable.
> #![feature(arbitrary_self_types)]
> //
> diff --git a/scripts/Makefile.build b/scripts/Makefile.build
> index 5037f4715d74..8fd0e7096bd1 100644
> --- a/scripts/Makefile.build
> +++ b/scripts/Makefile.build
> @@ -312,12 +312,13 @@ $(obj)/%.lst: $(obj)/%.c FORCE
> # - Stable since Rust 1.82.0: `feature(asm_const)`,
> # `feature(offset_of_nested)`, `feature(raw_ref_op)`.
> # - Stable since Rust 1.87.0: `feature(asm_goto)`.
> +# - Stable since Rust 1.89.0: `feature(generic_arg_infer)`.
> # - Expected to become stable: `feature(arbitrary_self_types)`.
> # - To be determined: `feature(used_with_arg)`.
> #
> # Please see https://github.com/Rust-for-Linux/linux/issues/2 for details on
> # the unstable features in use.
> -rust_allowed_features := asm_const,asm_goto,arbitrary_self_types,lint_reasons,offset_of_nested,raw_ref_op,used_with_arg
> +rust_allowed_features := asm_const,asm_goto,arbitrary_self_types,lint_reasons,offset_of_nested,raw_ref_op,used_with_arg,generic_arg_infer
This is an alphabetically sorted list.
Best,
Gary
>
> # `--out-dir` is required to avoid temporaries being created by `rustc` in the
> # current working directory, which may be not accessible in the out-of-tree
Powered by blists - more mailing lists