diff --git a/.github/workflows/msrv_toolchain.toml b/.github/workflows/msrv_toolchain.toml index 35936f6ea..5d3673760 100644 --- a/.github/workflows/msrv_toolchain.toml +++ b/.github/workflows/msrv_toolchain.toml @@ -1,4 +1,4 @@ [toolchain] # Oldest nightly that currently works with `cargo xtask build`. -channel = "nightly-2022-08-25" +channel = "nightly-2023-01-14" components = ["rust-src"] diff --git a/book/src/tutorial/app.md b/book/src/tutorial/app.md index 1fe600581..6e1c9b55d 100644 --- a/book/src/tutorial/app.md +++ b/book/src/tutorial/app.md @@ -41,9 +41,7 @@ This is some boilerplate that all Rust UEFI applications will need. `no_main` is needed because the UEFI application entry point is different from the standard Rust `main` function. `no_std` is needed to turn off the `std` library; the `core` and `alloc` crates can still be -used. And `feature(abi_efiapi)` is needed because UEFI applications have -a special calling convention that is not yet stabilized in the Rust -compiler. +used. Next up are some `use` lines. Nothing too exciting here; the `uefi::prelude` module is intended to be glob-imported, and exports a diff --git a/template/src/main.rs b/template/src/main.rs index 209519f15..e89e4bfe0 100644 --- a/template/src/main.rs +++ b/template/src/main.rs @@ -1,7 +1,5 @@ #![no_main] #![no_std] -#![feature(abi_efiapi)] -#![allow(stable_features)] use uefi::prelude::*; diff --git a/uefi-macros/src/lib.rs b/uefi-macros/src/lib.rs index 08c6df093..447500b14 100644 --- a/uefi-macros/src/lib.rs +++ b/uefi-macros/src/lib.rs @@ -222,7 +222,6 @@ fn get_function_arg_name(f: &ItemFn, arg_index: usize, errors: &mut TokenStream2 /// ```no_run /// #![no_main] /// #![no_std] -/// #![feature(abi_efiapi)] /// # // A bit of boilerplate needed to make the example compile in the /// # // context of `cargo test`. /// # #![feature(lang_items)] diff --git a/uefi-services/src/lib.rs b/uefi-services/src/lib.rs index 4ac3f3e1b..51e117f6f 100644 --- a/uefi-services/src/lib.rs +++ b/uefi-services/src/lib.rs @@ -28,9 +28,7 @@ #![no_std] #![feature(alloc_error_handler)] -#![feature(abi_efiapi)] #![deny(clippy::must_use_candidate)] -#![allow(stable_features)] extern crate log; // Core types. diff --git a/uefi-test-runner/examples/hello_world.rs b/uefi-test-runner/examples/hello_world.rs index a60a5d726..2c3c3a52a 100644 --- a/uefi-test-runner/examples/hello_world.rs +++ b/uefi-test-runner/examples/hello_world.rs @@ -2,8 +2,6 @@ // ANCHOR: features #![no_main] #![no_std] -#![feature(abi_efiapi)] -#![allow(stable_features)] // ANCHOR_END: features // ANCHOR: use diff --git a/uefi-test-runner/examples/loaded_image.rs b/uefi-test-runner/examples/loaded_image.rs index 40aa3aa4a..d5ec95103 100644 --- a/uefi-test-runner/examples/loaded_image.rs +++ b/uefi-test-runner/examples/loaded_image.rs @@ -1,8 +1,6 @@ // ANCHOR: all #![no_main] #![no_std] -#![feature(abi_efiapi)] -#![allow(stable_features)] use log::info; use uefi::prelude::*; diff --git a/uefi-test-runner/examples/sierpinski.rs b/uefi-test-runner/examples/sierpinski.rs index 1befba4da..5e9b09837 100644 --- a/uefi-test-runner/examples/sierpinski.rs +++ b/uefi-test-runner/examples/sierpinski.rs @@ -1,8 +1,6 @@ // ANCHOR: all #![no_main] #![no_std] -#![feature(abi_efiapi)] -#![allow(stable_features)] extern crate alloc; diff --git a/uefi-test-runner/src/main.rs b/uefi-test-runner/src/main.rs index c03b32d55..1804ce60c 100644 --- a/uefi-test-runner/src/main.rs +++ b/uefi-test-runner/src/main.rs @@ -1,7 +1,5 @@ #![no_std] #![no_main] -#![feature(abi_efiapi)] -#![allow(stable_features)] #[macro_use] extern crate log; diff --git a/uefi/src/lib.rs b/uefi/src/lib.rs index 9ea0a182e..0f073dfdf 100644 --- a/uefi/src/lib.rs +++ b/uefi/src/lib.rs @@ -58,7 +58,6 @@ //! [`uefi-services`]: https://crates.io/crates/uefi-services //! [unstable features]: https://doc.rust-lang.org/unstable-book/ -#![feature(abi_efiapi)] #![cfg_attr(feature = "unstable", feature(error_in_core))] #![cfg_attr(all(feature = "unstable", feature = "alloc"), feature(allocator_api))] #![cfg_attr(docsrs, feature(doc_auto_cfg))] @@ -67,7 +66,6 @@ #![warn(clippy::ptr_as_ptr, missing_docs, unused)] #![deny(clippy::all)] #![deny(clippy::must_use_candidate)] -#![allow(stable_features)] #[cfg(feature = "alloc")] extern crate alloc;