Skip to content

Commit

Permalink
tests: follow ABI error update
Browse files Browse the repository at this point in the history
  • Loading branch information
workingjubilee committed Feb 10, 2025
1 parent f952f17 commit 1fcf247
Show file tree
Hide file tree
Showing 34 changed files with 186 additions and 186 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
error[E0658]: C-cmse-nonsecure-call ABI is experimental and subject to change
error[E0658]: the extern "C-cmse-nonsecure-call" ABI is experimental and subject to change
--> $DIR/gate_test.rs:5:46
|
LL | core::mem::transmute::<usize, extern "C-cmse-nonsecure-call" fn(i32, i32, i32, i32) -> i32>(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
error[E0658]: C-cmse-nonsecure-entry ABI is experimental and subject to change
error[E0658]: the extern "C-cmse-nonsecure-entry" ABI is experimental and subject to change
--> $DIR/gate_test.rs:4:12
|
LL | pub extern "C-cmse-nonsecure-entry" fn entry_function(input: u32) -> u32 {
Expand Down
28 changes: 14 additions & 14 deletions tests/ui/feature-gates/feature-gate-abi-avr-interrupt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,43 +9,43 @@ trait Sized { }
// feature gate is not used.

extern "avr-non-blocking-interrupt" fn fu() {}
//~^ ERROR avr-non-blocking-interrupt ABI is experimental
//~^ ERROR extern "avr-non-blocking-interrupt" ABI is experimental
extern "avr-interrupt" fn f() {}
//~^ ERROR avr-interrupt ABI is experimental
//~^ ERROR extern "avr-interrupt" ABI is experimental

trait T {
extern "avr-interrupt" fn m();
//~^ ERROR avr-interrupt ABI is experimental
//~^ ERROR extern "avr-interrupt" ABI is experimental
extern "avr-non-blocking-interrupt" fn mu();
//~^ ERROR avr-non-blocking-interrupt ABI is experimental
//~^ ERROR extern "avr-non-blocking-interrupt" ABI is experimental

extern "avr-interrupt" fn dm() {}
//~^ ERROR avr-interrupt ABI is experimental
//~^ ERROR extern "avr-interrupt" ABI is experimental
extern "avr-non-blocking-interrupt" fn dmu() {}
//~^ ERROR avr-non-blocking-interrupt ABI is experimental
//~^ ERROR extern "avr-non-blocking-interrupt" ABI is experimental
}

struct S;
impl T for S {
extern "avr-interrupt" fn m() {}
//~^ ERROR avr-interrupt ABI is experimental
//~^ ERROR extern "avr-interrupt" ABI is experimental
extern "avr-non-blocking-interrupt" fn mu() {}
//~^ ERROR avr-non-blocking-interrupt ABI is experimental
//~^ ERROR extern "avr-non-blocking-interrupt" ABI is experimental
}

impl S {
extern "avr-interrupt" fn im() {}
//~^ ERROR avr-interrupt ABI is experimental
//~^ ERROR extern "avr-interrupt" ABI is experimental
extern "avr-non-blocking-interrupt" fn imu() {}
//~^ ERROR avr-non-blocking-interrupt ABI is experimental
//~^ ERROR extern "avr-non-blocking-interrupt" ABI is experimental
}

type TA = extern "avr-interrupt" fn();
//~^ ERROR avr-interrupt ABI is experimental
//~^ ERROR extern "avr-interrupt" ABI is experimental
type TAU = extern "avr-non-blocking-interrupt" fn();
//~^ ERROR avr-non-blocking-interrupt ABI is experimental
//~^ ERROR extern "avr-non-blocking-interrupt" ABI is experimental

extern "avr-interrupt" {}
//~^ ERROR avr-interrupt ABI is experimental
//~^ ERROR extern "avr-interrupt" ABI is experimental
extern "avr-non-blocking-interrupt" {}
//~^ ERROR avr-non-blocking-interrupt ABI is experimental
//~^ ERROR extern "avr-non-blocking-interrupt" ABI is experimental
28 changes: 14 additions & 14 deletions tests/ui/feature-gates/feature-gate-abi-avr-interrupt.stderr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
error[E0658]: avr-non-blocking-interrupt ABI is experimental and subject to change
error[E0658]: the extern "avr-non-blocking-interrupt" ABI is experimental and subject to change
--> $DIR/feature-gate-abi-avr-interrupt.rs:11:8
|
LL | extern "avr-non-blocking-interrupt" fn fu() {}
Expand All @@ -8,7 +8,7 @@ LL | extern "avr-non-blocking-interrupt" fn fu() {}
= help: add `#![feature(abi_avr_interrupt)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: avr-interrupt ABI is experimental and subject to change
error[E0658]: the extern "avr-interrupt" ABI is experimental and subject to change
--> $DIR/feature-gate-abi-avr-interrupt.rs:13:8
|
LL | extern "avr-interrupt" fn f() {}
Expand All @@ -18,7 +18,7 @@ LL | extern "avr-interrupt" fn f() {}
= help: add `#![feature(abi_avr_interrupt)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: avr-interrupt ABI is experimental and subject to change
error[E0658]: the extern "avr-interrupt" ABI is experimental and subject to change
--> $DIR/feature-gate-abi-avr-interrupt.rs:17:12
|
LL | extern "avr-interrupt" fn m();
Expand All @@ -28,7 +28,7 @@ LL | extern "avr-interrupt" fn m();
= help: add `#![feature(abi_avr_interrupt)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: avr-non-blocking-interrupt ABI is experimental and subject to change
error[E0658]: the extern "avr-non-blocking-interrupt" ABI is experimental and subject to change
--> $DIR/feature-gate-abi-avr-interrupt.rs:19:12
|
LL | extern "avr-non-blocking-interrupt" fn mu();
Expand All @@ -38,7 +38,7 @@ LL | extern "avr-non-blocking-interrupt" fn mu();
= help: add `#![feature(abi_avr_interrupt)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: avr-interrupt ABI is experimental and subject to change
error[E0658]: the extern "avr-interrupt" ABI is experimental and subject to change
--> $DIR/feature-gate-abi-avr-interrupt.rs:22:12
|
LL | extern "avr-interrupt" fn dm() {}
Expand All @@ -48,7 +48,7 @@ LL | extern "avr-interrupt" fn dm() {}
= help: add `#![feature(abi_avr_interrupt)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: avr-non-blocking-interrupt ABI is experimental and subject to change
error[E0658]: the extern "avr-non-blocking-interrupt" ABI is experimental and subject to change
--> $DIR/feature-gate-abi-avr-interrupt.rs:24:12
|
LL | extern "avr-non-blocking-interrupt" fn dmu() {}
Expand All @@ -58,7 +58,7 @@ LL | extern "avr-non-blocking-interrupt" fn dmu() {}
= help: add `#![feature(abi_avr_interrupt)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: avr-interrupt ABI is experimental and subject to change
error[E0658]: the extern "avr-interrupt" ABI is experimental and subject to change
--> $DIR/feature-gate-abi-avr-interrupt.rs:30:12
|
LL | extern "avr-interrupt" fn m() {}
Expand All @@ -68,7 +68,7 @@ LL | extern "avr-interrupt" fn m() {}
= help: add `#![feature(abi_avr_interrupt)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: avr-non-blocking-interrupt ABI is experimental and subject to change
error[E0658]: the extern "avr-non-blocking-interrupt" ABI is experimental and subject to change
--> $DIR/feature-gate-abi-avr-interrupt.rs:32:12
|
LL | extern "avr-non-blocking-interrupt" fn mu() {}
Expand All @@ -78,7 +78,7 @@ LL | extern "avr-non-blocking-interrupt" fn mu() {}
= help: add `#![feature(abi_avr_interrupt)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: avr-interrupt ABI is experimental and subject to change
error[E0658]: the extern "avr-interrupt" ABI is experimental and subject to change
--> $DIR/feature-gate-abi-avr-interrupt.rs:37:12
|
LL | extern "avr-interrupt" fn im() {}
Expand All @@ -88,7 +88,7 @@ LL | extern "avr-interrupt" fn im() {}
= help: add `#![feature(abi_avr_interrupt)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: avr-non-blocking-interrupt ABI is experimental and subject to change
error[E0658]: the extern "avr-non-blocking-interrupt" ABI is experimental and subject to change
--> $DIR/feature-gate-abi-avr-interrupt.rs:39:12
|
LL | extern "avr-non-blocking-interrupt" fn imu() {}
Expand All @@ -98,7 +98,7 @@ LL | extern "avr-non-blocking-interrupt" fn imu() {}
= help: add `#![feature(abi_avr_interrupt)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: avr-interrupt ABI is experimental and subject to change
error[E0658]: the extern "avr-interrupt" ABI is experimental and subject to change
--> $DIR/feature-gate-abi-avr-interrupt.rs:43:18
|
LL | type TA = extern "avr-interrupt" fn();
Expand All @@ -108,7 +108,7 @@ LL | type TA = extern "avr-interrupt" fn();
= help: add `#![feature(abi_avr_interrupt)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: avr-non-blocking-interrupt ABI is experimental and subject to change
error[E0658]: the extern "avr-non-blocking-interrupt" ABI is experimental and subject to change
--> $DIR/feature-gate-abi-avr-interrupt.rs:45:19
|
LL | type TAU = extern "avr-non-blocking-interrupt" fn();
Expand All @@ -118,7 +118,7 @@ LL | type TAU = extern "avr-non-blocking-interrupt" fn();
= help: add `#![feature(abi_avr_interrupt)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: avr-interrupt ABI is experimental and subject to change
error[E0658]: the extern "avr-interrupt" ABI is experimental and subject to change
--> $DIR/feature-gate-abi-avr-interrupt.rs:48:8
|
LL | extern "avr-interrupt" {}
Expand All @@ -128,7 +128,7 @@ LL | extern "avr-interrupt" {}
= help: add `#![feature(abi_avr_interrupt)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: avr-non-blocking-interrupt ABI is experimental and subject to change
error[E0658]: the extern "avr-non-blocking-interrupt" ABI is experimental and subject to change
--> $DIR/feature-gate-abi-avr-interrupt.rs:50:8
|
LL | extern "avr-non-blocking-interrupt" {}
Expand Down
14 changes: 7 additions & 7 deletions tests/ui/feature-gates/feature-gate-abi-msp430-interrupt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,29 +6,29 @@
trait Sized { }

extern "msp430-interrupt" fn f() {}
//~^ ERROR msp430-interrupt ABI is experimental
//~^ ERROR "msp430-interrupt" ABI is experimental

trait T {
extern "msp430-interrupt" fn m();
//~^ ERROR msp430-interrupt ABI is experimental
//~^ ERROR "msp430-interrupt" ABI is experimental

extern "msp430-interrupt" fn dm() {}
//~^ ERROR msp430-interrupt ABI is experimental
//~^ ERROR "msp430-interrupt" ABI is experimental
}

struct S;
impl T for S {
extern "msp430-interrupt" fn m() {}
//~^ ERROR msp430-interrupt ABI is experimental
//~^ ERROR "msp430-interrupt" ABI is experimental
}

impl S {
extern "msp430-interrupt" fn im() {}
//~^ ERROR msp430-interrupt ABI is experimental
//~^ ERROR "msp430-interrupt" ABI is experimental
}

type TA = extern "msp430-interrupt" fn();
//~^ ERROR msp430-interrupt ABI is experimental
//~^ ERROR "msp430-interrupt" ABI is experimental

extern "msp430-interrupt" {}
//~^ ERROR msp430-interrupt ABI is experimental
//~^ ERROR "msp430-interrupt" ABI is experimental
14 changes: 7 additions & 7 deletions tests/ui/feature-gates/feature-gate-abi-msp430-interrupt.stderr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
error[E0658]: msp430-interrupt ABI is experimental and subject to change
error[E0658]: the extern "msp430-interrupt" ABI is experimental and subject to change
--> $DIR/feature-gate-abi-msp430-interrupt.rs:8:8
|
LL | extern "msp430-interrupt" fn f() {}
Expand All @@ -8,7 +8,7 @@ LL | extern "msp430-interrupt" fn f() {}
= help: add `#![feature(abi_msp430_interrupt)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: msp430-interrupt ABI is experimental and subject to change
error[E0658]: the extern "msp430-interrupt" ABI is experimental and subject to change
--> $DIR/feature-gate-abi-msp430-interrupt.rs:12:12
|
LL | extern "msp430-interrupt" fn m();
Expand All @@ -18,7 +18,7 @@ LL | extern "msp430-interrupt" fn m();
= help: add `#![feature(abi_msp430_interrupt)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: msp430-interrupt ABI is experimental and subject to change
error[E0658]: the extern "msp430-interrupt" ABI is experimental and subject to change
--> $DIR/feature-gate-abi-msp430-interrupt.rs:15:12
|
LL | extern "msp430-interrupt" fn dm() {}
Expand All @@ -28,7 +28,7 @@ LL | extern "msp430-interrupt" fn dm() {}
= help: add `#![feature(abi_msp430_interrupt)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: msp430-interrupt ABI is experimental and subject to change
error[E0658]: the extern "msp430-interrupt" ABI is experimental and subject to change
--> $DIR/feature-gate-abi-msp430-interrupt.rs:21:12
|
LL | extern "msp430-interrupt" fn m() {}
Expand All @@ -38,7 +38,7 @@ LL | extern "msp430-interrupt" fn m() {}
= help: add `#![feature(abi_msp430_interrupt)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: msp430-interrupt ABI is experimental and subject to change
error[E0658]: the extern "msp430-interrupt" ABI is experimental and subject to change
--> $DIR/feature-gate-abi-msp430-interrupt.rs:26:12
|
LL | extern "msp430-interrupt" fn im() {}
Expand All @@ -48,7 +48,7 @@ LL | extern "msp430-interrupt" fn im() {}
= help: add `#![feature(abi_msp430_interrupt)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: msp430-interrupt ABI is experimental and subject to change
error[E0658]: the extern "msp430-interrupt" ABI is experimental and subject to change
--> $DIR/feature-gate-abi-msp430-interrupt.rs:30:18
|
LL | type TA = extern "msp430-interrupt" fn();
Expand All @@ -58,7 +58,7 @@ LL | type TA = extern "msp430-interrupt" fn();
= help: add `#![feature(abi_msp430_interrupt)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: msp430-interrupt ABI is experimental and subject to change
error[E0658]: the extern "msp430-interrupt" ABI is experimental and subject to change
--> $DIR/feature-gate-abi-msp430-interrupt.rs:33:8
|
LL | extern "msp430-interrupt" {}
Expand Down
12 changes: 6 additions & 6 deletions tests/ui/feature-gates/feature-gate-abi-riscv-interrupt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,25 +9,25 @@ trait Sized {}
// feature gate is not used.

extern "riscv-interrupt-m" fn f() {}
//~^ ERROR riscv-interrupt-m ABI is experimental
//~^ ERROR "riscv-interrupt-m" ABI is experimental
extern "riscv-interrupt-s" fn f_s() {}
//~^ ERROR riscv-interrupt-s ABI is experimental
//~^ ERROR "riscv-interrupt-s" ABI is experimental

trait T {
extern "riscv-interrupt-m" fn m();
//~^ ERROR riscv-interrupt-m ABI is experimental
//~^ ERROR "riscv-interrupt-m" ABI is experimental
}

struct S;
impl T for S {
extern "riscv-interrupt-m" fn m() {}
//~^ ERROR riscv-interrupt-m ABI is experimental
//~^ ERROR "riscv-interrupt-m" ABI is experimental
}

impl S {
extern "riscv-interrupt-m" fn im() {}
//~^ ERROR riscv-interrupt-m ABI is experimental
//~^ ERROR "riscv-interrupt-m" ABI is experimental
}

type TA = extern "riscv-interrupt-m" fn();
//~^ ERROR riscv-interrupt-m ABI is experimental
//~^ ERROR "riscv-interrupt-m" ABI is experimental
12 changes: 6 additions & 6 deletions tests/ui/feature-gates/feature-gate-abi-riscv-interrupt.stderr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
error[E0658]: riscv-interrupt-m ABI is experimental and subject to change
error[E0658]: the extern "riscv-interrupt-m" ABI is experimental and subject to change
--> $DIR/feature-gate-abi-riscv-interrupt.rs:11:8
|
LL | extern "riscv-interrupt-m" fn f() {}
Expand All @@ -8,7 +8,7 @@ LL | extern "riscv-interrupt-m" fn f() {}
= help: add `#![feature(abi_riscv_interrupt)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: riscv-interrupt-s ABI is experimental and subject to change
error[E0658]: the extern "riscv-interrupt-s" ABI is experimental and subject to change
--> $DIR/feature-gate-abi-riscv-interrupt.rs:13:8
|
LL | extern "riscv-interrupt-s" fn f_s() {}
Expand All @@ -18,7 +18,7 @@ LL | extern "riscv-interrupt-s" fn f_s() {}
= help: add `#![feature(abi_riscv_interrupt)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: riscv-interrupt-m ABI is experimental and subject to change
error[E0658]: the extern "riscv-interrupt-m" ABI is experimental and subject to change
--> $DIR/feature-gate-abi-riscv-interrupt.rs:17:12
|
LL | extern "riscv-interrupt-m" fn m();
Expand All @@ -28,7 +28,7 @@ LL | extern "riscv-interrupt-m" fn m();
= help: add `#![feature(abi_riscv_interrupt)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: riscv-interrupt-m ABI is experimental and subject to change
error[E0658]: the extern "riscv-interrupt-m" ABI is experimental and subject to change
--> $DIR/feature-gate-abi-riscv-interrupt.rs:23:12
|
LL | extern "riscv-interrupt-m" fn m() {}
Expand All @@ -38,7 +38,7 @@ LL | extern "riscv-interrupt-m" fn m() {}
= help: add `#![feature(abi_riscv_interrupt)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: riscv-interrupt-m ABI is experimental and subject to change
error[E0658]: the extern "riscv-interrupt-m" ABI is experimental and subject to change
--> $DIR/feature-gate-abi-riscv-interrupt.rs:28:12
|
LL | extern "riscv-interrupt-m" fn im() {}
Expand All @@ -48,7 +48,7 @@ LL | extern "riscv-interrupt-m" fn im() {}
= help: add `#![feature(abi_riscv_interrupt)]` to the crate attributes to enable
= note: this compiler was built on YYYY-MM-DD; consider upgrading it if it is out of date

error[E0658]: riscv-interrupt-m ABI is experimental and subject to change
error[E0658]: the extern "riscv-interrupt-m" ABI is experimental and subject to change
--> $DIR/feature-gate-abi-riscv-interrupt.rs:32:18
|
LL | type TA = extern "riscv-interrupt-m" fn();
Expand Down
Loading

0 comments on commit 1fcf247

Please sign in to comment.