[PATCH 1/3] rust: enable const_intrinsic_copy feature

Gladyshev Ilya posted 3 patches 1 month ago
There is a newer version of this series
[PATCH 1/3] rust: enable const_intrinsic_copy feature
Posted by Gladyshev Ilya 1 month ago
Since Rust 1.83.0 the `const_intrinsic_copy` feature is stable.
It allows usage of `ptr::copy` and `ptr::copy_nonoverlapping` in const
context.

Signed-off-by: Gladyshev Ilya <foxido@foxido.dev>
---
 rust/kernel/lib.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rust/kernel/lib.rs b/rust/kernel/lib.rs
index f812cf120042..a6eccdba50b5 100644
--- a/rust/kernel/lib.rs
+++ b/rust/kernel/lib.rs
@@ -36,6 +36,7 @@
 #![feature(const_option)]
 #![feature(const_ptr_write)]
 #![feature(const_refs_to_cell)]
+#![feature(const_intrinsic_copy)]
 //
 // Expected to become stable.
 #![feature(arbitrary_self_types)]
-- 
2.52.0