Skip to content

Commit b73eaf8

Browse files
Drop explicit enabling of abi_efiapi feature
The feature has been stabilized so we don't need to enable it anymore.
1 parent 8719869 commit b73eaf8

File tree

9 files changed

+1
-18
lines changed

9 files changed

+1
-18
lines changed

book/src/tutorial/app.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,7 @@ This is some boilerplate that all Rust UEFI applications will
4141
need. `no_main` is needed because the UEFI application entry point is
4242
different from the standard Rust `main` function. `no_std` is needed to
4343
turn off the `std` library; the `core` and `alloc` crates can still be
44-
used. And `feature(abi_efiapi)` is needed because UEFI applications have
45-
a special calling convention that is not yet stabilized in the Rust
46-
compiler.
44+
used.
4745

4846
Next up are some `use` lines. Nothing too exciting here; the
4947
`uefi::prelude` module is intended to be glob-imported, and exports a

template/src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#![no_main]
22
#![no_std]
3-
#![feature(abi_efiapi)]
4-
#![allow(stable_features)]
53

64
use uefi::prelude::*;
75

uefi-macros/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@ fn get_function_arg_name(f: &ItemFn, arg_index: usize, errors: &mut TokenStream2
224224
///
225225
/// ```no_run
226226
/// #![no_main]
227-
/// #![feature(abi_efiapi)]
228227
///
229228
/// use uefi::prelude::*;
230229
///

uefi-services/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,7 @@
2727
//! [`exit_boot_services`]: uefi::table::SystemTable::exit_boot_services
2828
2929
#![no_std]
30-
#![feature(abi_efiapi)]
3130
#![deny(clippy::must_use_candidate)]
32-
#![allow(stable_features)]
3331

3432
extern crate log;
3533
// Core types.

uefi-test-runner/examples/hello_world.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22
// ANCHOR: features
33
#![no_main]
44
#![no_std]
5-
#![feature(abi_efiapi)]
6-
#![allow(stable_features)]
75
// ANCHOR_END: features
86

97
// ANCHOR: use

uefi-test-runner/examples/loaded_image.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// ANCHOR: all
22
#![no_main]
33
#![no_std]
4-
#![feature(abi_efiapi)]
5-
#![allow(stable_features)]
64

75
use log::info;
86
use uefi::prelude::*;

uefi-test-runner/examples/sierpinski.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
// ANCHOR: all
22
#![no_main]
33
#![no_std]
4-
#![feature(abi_efiapi)]
5-
#![allow(stable_features)]
64

75
extern crate alloc;
86

uefi-test-runner/src/main.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
#![no_std]
22
#![no_main]
3-
#![feature(abi_efiapi)]
4-
#![allow(stable_features)]
53

64
#[macro_use]
75
extern crate log;

uefi/src/lib.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,6 @@
7979
//! [spec]: https://uefi.org/specifications
8080
//! [unstable features]: https://doc.rust-lang.org/unstable-book/
8181
82-
#![feature(abi_efiapi)]
8382
#![cfg_attr(feature = "unstable", feature(error_in_core))]
8483
#![cfg_attr(all(feature = "unstable", feature = "alloc"), feature(allocator_api))]
8584
#![cfg_attr(docsrs, feature(doc_auto_cfg))]
@@ -88,7 +87,6 @@
8887
#![warn(clippy::ptr_as_ptr, missing_docs, unused)]
8988
#![deny(clippy::all)]
9089
#![deny(clippy::must_use_candidate)]
91-
#![allow(stable_features)]
9290

9391
#[cfg(feature = "alloc")]
9492
extern crate alloc;

0 commit comments

Comments
 (0)