Commit 2d19d369 authored by Benno Lossin's avatar Benno Lossin Committed by Miguel Ojeda

rust: enable the `pin_macro` feature

This feature enables the use of the `pin!` macro for the `stack_pin_init!`
macro. This feature is already stabilized in Rust version 1.68.
Signed-off-by: default avatarBenno Lossin <benno.lossin@proton.me>
Reviewed-by: default avatarAlice Ryhl <aliceryhl@google.com>
Reviewed-by: default avatarGary Guo <gary@garyguo.net>
Reviewed-by: default avatarAndreas Hindborg <a.hindborg@samsung.com>
Acked-by: default avatarBoqun Feng <boqun.feng@gmail.com>
Link: https://lore.kernel.org/r/20230408122429.1103522-2-y86-dev@protonmail.comSigned-off-by: default avatarMiguel Ojeda <ojeda@kernel.org>
parent ef4dc4cc
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
#![feature(dispatch_from_dyn)] #![feature(dispatch_from_dyn)]
#![feature(generic_associated_types)] #![feature(generic_associated_types)]
#![feature(new_uninit)] #![feature(new_uninit)]
#![feature(pin_macro)]
#![feature(receiver_trait)] #![feature(receiver_trait)]
#![feature(unsize)] #![feature(unsize)]
......
...@@ -277,7 +277,7 @@ $(obj)/%.lst: $(src)/%.c FORCE ...@@ -277,7 +277,7 @@ $(obj)/%.lst: $(src)/%.c FORCE
# Compile Rust sources (.rs) # Compile Rust sources (.rs)
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
rust_allowed_features := core_ffi_c,new_uninit rust_allowed_features := core_ffi_c,new_uninit,pin_macro
rust_common_cmd = \ rust_common_cmd = \
RUST_MODFILE=$(modfile) $(RUSTC_OR_CLIPPY) $(rust_flags) \ RUST_MODFILE=$(modfile) $(RUSTC_OR_CLIPPY) $(rust_flags) \
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment