Skip to content

Commit a52caf2

Browse files
committed
Update try-build's expected output
1 parent 43589e8 commit a52caf2

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

tests-trybuild/tests/riscv-rt/core_interrupt/fail_signatures.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
error: `#[core_interrupt]` function must have signature `[unsafe] fn() [-> !]`
1+
error: `#[core_interrupt]` function must have signature `[unsafe] [extern "C"] fn() [-> !]`
22
--> tests/riscv-rt/core_interrupt/fail_signatures.rs:2:1
33
|
44
2 | fn my_interrupt(code: usize) {}
55
| ^^
66

7-
error: `#[core_interrupt]` function must have signature `[unsafe] fn() [-> !]`
7+
error: `#[core_interrupt]` function must have signature `[unsafe] [extern "C"] fn() [-> !]`
88
--> tests/riscv-rt/core_interrupt/fail_signatures.rs:5:1
99
|
1010
5 | fn my_other_interrupt() -> usize {}
1111
| ^^
1212

13-
error: `#[core_interrupt]` function must have signature `[unsafe] fn() [-> !]`
13+
error: `#[core_interrupt]` function must have signature `[unsafe] [extern "C"] fn() [-> !]`
1414
--> tests/riscv-rt/core_interrupt/fail_signatures.rs:8:1
1515
|
1616
8 | async fn my_async_interrupt() {}

tests-trybuild/tests/riscv-rt/exception/fail_signatures.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
error: `#[exception]` function must have signature `[unsafe] fn([&[mut] riscv_rt::TrapFrame]) [-> !]`
1+
error: `#[exception]` function must have signature `[unsafe] [extern "C"] fn([&[mut] riscv_rt::TrapFrame]) [-> !]`
22
--> tests/riscv-rt/exception/fail_signatures.rs:2:1
33
|
44
2 | fn my_exception(code: usize) {}
55
| ^^
66

7-
error: `#[exception]` function must have signature `[unsafe] fn([&[mut] riscv_rt::TrapFrame]) [-> !]`
7+
error: `#[exception]` function must have signature `[unsafe] [extern "C"] fn([&[mut] riscv_rt::TrapFrame]) [-> !]`
88
--> tests/riscv-rt/exception/fail_signatures.rs:5:1
99
|
1010
5 | fn my_other_exception(trap_frame: &riscv_rt::TrapFrame, code: usize) {}
1111
| ^^
1212

13-
error: `#[exception]` function must have signature `[unsafe] fn([&[mut] riscv_rt::TrapFrame]) [-> !]`
13+
error: `#[exception]` function must have signature `[unsafe] [extern "C"] fn([&[mut] riscv_rt::TrapFrame]) [-> !]`
1414
--> tests/riscv-rt/exception/fail_signatures.rs:8:1
1515
|
1616
8 | async fn my_async_exception(trap_frame: &riscv_rt::TrapFrame, code: usize) {}

tests-trybuild/tests/riscv-rt/external_interrupt/fail_signatures.stderr

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
error: `#[external_interrupt]` function must have signature `[unsafe] fn() [-> !]`
1+
error: `#[external_interrupt]` function must have signature `[unsafe] [extern "C"] fn() [-> !]`
22
--> tests/riscv-rt/external_interrupt/fail_signatures.rs:31:1
33
|
44
31 | fn my_interrupt() -> usize {}
55
| ^^
66

7-
error: `#[external_interrupt]` function must have signature `[unsafe] fn() [-> !]`
7+
error: `#[external_interrupt]` function must have signature `[unsafe] [extern "C"] fn() [-> !]`
88
--> tests/riscv-rt/external_interrupt/fail_signatures.rs:34:1
99
|
1010
34 | fn my_other_interrupt(code: usize) -> usize {}
1111
| ^^
1212

13-
error: `#[external_interrupt]` function must have signature `[unsafe] fn() [-> !]`
13+
error: `#[external_interrupt]` function must have signature `[unsafe] [extern "C"] fn() [-> !]`
1414
--> tests/riscv-rt/external_interrupt/fail_signatures.rs:37:1
1515
|
1616
37 | async fn my_async_interrupt(code: usize) -> usize {}

0 commit comments

Comments
 (0)