Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions template/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#![no_main]
#![no_std]
#![feature(abi_efiapi)]
#![allow(stable_features)]

use uefi::prelude::*;

Expand Down
1 change: 0 additions & 1 deletion uefi-macros/tests/ui/entry_bad_abi.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![allow(unused_imports)]
#![no_main]
#![feature(abi_efiapi)]

use uefi::prelude::*;
use uefi_macros::entry;
Expand Down
4 changes: 2 additions & 2 deletions uefi-macros/tests/ui/entry_bad_abi.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: Entry method must have no ABI modifier
--> tests/ui/entry_bad_abi.rs:9:1
--> tests/ui/entry_bad_abi.rs:8:1
|
9 | extern "C" fn main(_handle: Handle, _st: SystemTable<Boot>) -> Status {
8 | extern "C" fn main(_handle: Handle, _st: SystemTable<Boot>) -> Status {
| ^^^^^^^^^^
1 change: 0 additions & 1 deletion uefi-macros/tests/ui/entry_bad_arg.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![allow(unused_imports)]
#![no_main]
#![feature(abi_efiapi)]

use uefi::prelude::*;
use uefi_macros::entry;
Expand Down
4 changes: 2 additions & 2 deletions uefi-macros/tests/ui/entry_bad_arg.stderr
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
error[E0308]: mismatched types
--> tests/ui/entry_bad_arg.rs:9:4
--> tests/ui/entry_bad_arg.rs:8:4
|
9 | fn main(_handle: Handle, _st: SystemTable<Boot>, _x: usize) -> Status {
8 | fn main(_handle: Handle, _st: SystemTable<Boot>, _x: usize) -> Status {
| ^^^^ incorrect number of function parameters
|
= note: expected fn pointer `extern "efiapi" fn(uefi::Handle, uefi::table::SystemTable<uefi::table::Boot>) -> uefi::Status`
Expand Down
1 change: 0 additions & 1 deletion uefi-macros/tests/ui/entry_bad_async.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![allow(unused_imports)]
#![no_main]
#![feature(abi_efiapi)]

use uefi::prelude::*;
use uefi_macros::entry;
Expand Down
4 changes: 2 additions & 2 deletions uefi-macros/tests/ui/entry_bad_async.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: Entry method should not be async
--> tests/ui/entry_bad_async.rs:9:1
--> tests/ui/entry_bad_async.rs:8:1
|
9 | async fn main(_handle: Handle, _st: SystemTable<Boot>) -> Status {
8 | async fn main(_handle: Handle, _st: SystemTable<Boot>) -> Status {
| ^^^^^
1 change: 0 additions & 1 deletion uefi-macros/tests/ui/entry_bad_attr_arg.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![allow(unused_imports)]
#![no_main]
#![feature(abi_efiapi)]

use uefi::prelude::*;
use uefi_macros::entry;
Expand Down
4 changes: 2 additions & 2 deletions uefi-macros/tests/ui/entry_bad_attr_arg.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: Entry attribute accepts no arguments
--> tests/ui/entry_bad_attr_arg.rs:8:9
--> tests/ui/entry_bad_attr_arg.rs:7:9
|
8 | #[entry(some_arg)]
7 | #[entry(some_arg)]
| ^^^^^^^^
1 change: 0 additions & 1 deletion uefi-macros/tests/ui/entry_bad_const.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![allow(unused_imports)]
#![no_main]
#![feature(abi_efiapi)]

use uefi::prelude::*;
use uefi_macros::entry;
Expand Down
4 changes: 2 additions & 2 deletions uefi-macros/tests/ui/entry_bad_const.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: Entry method should not be const
--> tests/ui/entry_bad_const.rs:9:1
--> tests/ui/entry_bad_const.rs:8:1
|
9 | const fn main(_handle: Handle, _st: SystemTable<Boot>) -> Status {
8 | const fn main(_handle: Handle, _st: SystemTable<Boot>) -> Status {
| ^^^^^
1 change: 0 additions & 1 deletion uefi-macros/tests/ui/entry_bad_generic.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![allow(unused_imports)]
#![no_main]
#![feature(abi_efiapi)]

use uefi::prelude::*;
use uefi_macros::entry;
Expand Down
4 changes: 2 additions & 2 deletions uefi-macros/tests/ui/entry_bad_generic.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: Entry method should not be generic
--> tests/ui/entry_bad_generic.rs:9:9
--> tests/ui/entry_bad_generic.rs:8:9
|
9 | fn main<T>(_handle: Handle, _st: SystemTable<Boot>) -> Status {
8 | fn main<T>(_handle: Handle, _st: SystemTable<Boot>) -> Status {
| ^
1 change: 0 additions & 1 deletion uefi-macros/tests/ui/entry_bad_return_type.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![allow(unused_imports)]
#![no_main]
#![feature(abi_efiapi)]

use uefi::prelude::*;
use uefi_macros::entry;
Expand Down
4 changes: 2 additions & 2 deletions uefi-macros/tests/ui/entry_bad_return_type.stderr
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
error[E0308]: mismatched types
--> tests/ui/entry_bad_return_type.rs:9:4
--> tests/ui/entry_bad_return_type.rs:8:4
|
9 | fn main(_handle: Handle, _st: SystemTable<Boot>) -> bool {
8 | fn main(_handle: Handle, _st: SystemTable<Boot>) -> bool {
| ^^^^ expected struct `Status`, found `bool`
|
= note: expected fn pointer `extern "efiapi" fn(uefi::Handle, uefi::table::SystemTable<_>) -> Status`
Expand Down
1 change: 0 additions & 1 deletion uefi-macros/tests/ui/entry_unnamed_image_arg.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![allow(unused_imports)]
#![no_main]
#![feature(abi_efiapi)]

use uefi::prelude::*;
use uefi_macros::entry;
Expand Down
4 changes: 2 additions & 2 deletions uefi-macros/tests/ui/entry_unnamed_image_arg.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: Entry method's arguments must be named
--> tests/ui/entry_unnamed_image_arg.rs:9:22
--> tests/ui/entry_unnamed_image_arg.rs:8:22
|
9 | fn unnamed_image_arg(_: Handle, _st: SystemTable<Boot>) -> Status {
8 | fn unnamed_image_arg(_: Handle, _st: SystemTable<Boot>) -> Status {
| ^^^^^^^^^
1 change: 0 additions & 1 deletion uefi-macros/tests/ui/entry_unnamed_table_arg.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#![allow(unused_imports)]
#![no_main]
#![feature(abi_efiapi)]

use uefi::prelude::*;
use uefi_macros::entry;
Expand Down
4 changes: 2 additions & 2 deletions uefi-macros/tests/ui/entry_unnamed_table_arg.stderr
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
error: Entry method's arguments must be named
--> tests/ui/entry_unnamed_table_arg.rs:9:38
--> tests/ui/entry_unnamed_table_arg.rs:8:38
|
9 | fn unnamed_table_arg(_image: Handle, _: SystemTable<Boot>) -> Status {
8 | fn unnamed_table_arg(_image: Handle, _: SystemTable<Boot>) -> Status {
| ^^^^^^^^^^^^^^^^^^^^
1 change: 1 addition & 0 deletions uefi-services/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
#![feature(alloc_error_handler)]
#![feature(abi_efiapi)]
#![deny(clippy::must_use_candidate)]
#![allow(stable_features)]

extern crate log;
// Core types.
Expand Down
1 change: 1 addition & 0 deletions uefi-test-runner/examples/hello_world.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
#![no_main]
#![no_std]
#![feature(abi_efiapi)]
#![allow(stable_features)]
// ANCHOR_END: features

// ANCHOR: use
Expand Down
1 change: 1 addition & 0 deletions uefi-test-runner/examples/loaded_image.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#![no_main]
#![no_std]
#![feature(abi_efiapi)]
#![allow(stable_features)]

use log::info;
use uefi::prelude::*;
Expand Down
1 change: 1 addition & 0 deletions uefi-test-runner/examples/sierpinski.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
#![no_main]
#![no_std]
#![feature(abi_efiapi)]
#![allow(stable_features)]

extern crate alloc;

Expand Down
1 change: 1 addition & 0 deletions uefi-test-runner/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#![no_std]
#![no_main]
#![feature(abi_efiapi)]
#![allow(stable_features)]

#[macro_use]
extern crate log;
Expand Down
1 change: 1 addition & 0 deletions uefi/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
#![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;
Expand Down