From d37495bc018902b41b1dca9266f28b3b4921c70a Mon Sep 17 00:00:00 2001 From: Berkus Decker Date: Fri, 28 Jul 2023 22:19:42 +0300 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20Synchronise=20used=20feat?= =?UTF-8?q?ures?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- machine/src/lib.rs | 4 +++- nucleus/src/main.rs | 11 ++++++++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/machine/src/lib.rs b/machine/src/lib.rs index 1d1460b..7b24348 100644 --- a/machine/src/lib.rs +++ b/machine/src/lib.rs @@ -1,6 +1,8 @@ #![no_std] #![no_main] +#![allow(stable_features)] #![feature(decl_macro)] +#![feature(ptr_internals)] #![feature(allocator_api)] #![feature(format_args_nl)] #![feature(core_intrinsics)] @@ -8,7 +10,7 @@ #![feature(stmt_expr_attributes)] #![feature(slice_ptr_get)] #![feature(panic_info_message)] -#![feature(nonnull_slice_from_raw_parts)] +#![feature(nonnull_slice_from_raw_parts)] // stabilised in 1.71 nightly #![feature(custom_test_frameworks)] #![test_runner(crate::tests::test_runner)] #![reexport_test_harness_main = "test_main"] diff --git a/nucleus/src/main.rs b/nucleus/src/main.rs index f9cc28f..2e6c618 100644 --- a/nucleus/src/main.rs +++ b/nucleus/src/main.rs @@ -9,16 +9,25 @@ #![no_std] #![no_main] +#![allow(stable_features)] +#![feature(asm_const)] +#![feature(lazy_cell)] +#![feature(decl_macro)] #![feature(ptr_internals)] +#![feature(allocator_api)] #![feature(format_args_nl)] +#![feature(core_intrinsics)] #![feature(strict_provenance)] +#![feature(stmt_expr_attributes)] +#![feature(slice_ptr_get)] +#![feature(panic_info_message)] +#![feature(nonnull_slice_from_raw_parts)] // stabilised in 1.71 nightly #![feature(custom_test_frameworks)] #![test_runner(machine::tests::test_runner)] #![reexport_test_harness_main = "test_main"] #![deny(missing_docs)] #![deny(warnings)] #![allow(unused)] -#![feature(allocator_api)] #[cfg(not(test))] use core::panic::PanicInfo;