diff options
author | Alice Ryhl <aliceryhl@google.com> | 2024-02-15 13:46:01 +0300 |
---|---|---|
committer | Miguel Ojeda <ojeda@kernel.org> | 2024-02-18 23:22:27 +0300 |
commit | 44f2e626cbf777f3035aef7fa379ce34bf2f57e8 (patch) | |
tree | f207ff52b268c938a9ad559f30879001083da55b /rust/kernel/lib.rs | |
parent | e283ee239220908118d66eea46dd8bb6175767b2 (diff) | |
download | linux-44f2e626cbf777f3035aef7fa379ce34bf2f57e8.tar.xz |
rust: kernel: stop using ptr_metadata feature
The `byte_sub` method was stabilized in Rust 1.75.0. By using that
method, we no longer need the unstable `ptr_metadata` feature for
implementing `Arc::from_raw`.
This brings us one step closer towards not using unstable compiler
features.
Reviewed-by: Benno Lossin <benno.lossin@proton.me>
Reviewed-by: Martin Rodriguez Reboredo <yakoyoku@gmail.com>
Reviewed-by: Trevor Gross <tmgross@umich.edu>
Signed-off-by: Alice Ryhl <aliceryhl@google.com>
Link: https://lore.kernel.org/r/20240215104601.1267763-1-aliceryhl@google.com
[ Reworded title. ]
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
Diffstat (limited to 'rust/kernel/lib.rs')
-rw-r--r-- | rust/kernel/lib.rs | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/rust/kernel/lib.rs b/rust/kernel/lib.rs index 74581c958a6c..1e5f229b8263 100644 --- a/rust/kernel/lib.rs +++ b/rust/kernel/lib.rs @@ -17,7 +17,6 @@ #![feature(dispatch_from_dyn)] #![feature(new_uninit)] #![feature(offset_of)] -#![feature(ptr_metadata)] #![feature(receiver_trait)] #![feature(unsize)] |