Skip to content

Commit 7142ca0

Browse files
xtask: Allow ! in uefi-raw function types
This is needed for the `reset_system` function, which never returns.
1 parent 2c3dae0 commit 7142ca0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

xtask/src/check_raw.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@ fn is_efiapi(f: &TypeBareFn) -> bool {
196196
fn check_type(ty: &Type, src: &Path) -> Result<(), Error> {
197197
match ty {
198198
Type::BareFn(f) => check_fn_ptr(f, src),
199-
Type::Path(_) => {
199+
Type::Never(_) | Type::Path(_) => {
200200
// Allow.
201201
Ok(())
202202
}

0 commit comments

Comments
 (0)