]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
rust: kernel: update `file_with_nul` comment
authorMiguel Ojeda <ojeda@kernel.org>
Mon, 6 Apr 2026 09:58:19 +0000 (11:58 +0200)
committerMiguel Ojeda <ojeda@kernel.org>
Tue, 7 Apr 2026 10:43:09 +0000 (12:43 +0200)
`feature(file_with_nul)` [1] has been stabilized in Rust 1.92.0 [2].

Thus update the comment to keep track of it.

In addition, this will help to sort new conditionally enabled features
(i.e. `cfg_attr`) around it appropriately.

Link: https://github.com/rust-lang/rust/issues/141727
Link: https://github.com/rust-lang/rust/pull/145664
Link: https://patch.msgid.link/20260406095820.465994-1-ojeda@kernel.org
Reviewed-by: Alice Ryhl <aliceryhl@google.com>
Acked-by: Boqun Feng <boqun@kernel.org>
Reviewed-by: Gary Guo <gary@garyguo.net>
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
rust/kernel/lib.rs

index b48221a5b4ec57a2d9eb95bf1f6e1da6831ef4a4..0fa9d820fe7c8bc60d1103113c57e41f1e8d5c91 100644 (file)
@@ -23,7 +23,7 @@
 // To be determined.
 #![feature(used_with_arg)]
 //
-// `feature(file_with_nul)` is expected to become stable. Before Rust 1.89.0, it did not exist, so
+// `feature(file_with_nul)` is stable since Rust 1.92.0. Before Rust 1.89.0, it did not exist, so
 // enable it conditionally.
 #![cfg_attr(CONFIG_RUSTC_HAS_FILE_WITH_NUL, feature(file_with_nul))]