File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
tests-trybuild/tests/riscv-rt Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change 1
- error: `#[core_interrupt]` function must have signature `[unsafe] fn() [-> !]`
1
+ error: `#[core_interrupt]` function must have signature `[unsafe] [extern "C"] fn() [-> !]`
2
2
--> tests/riscv-rt/core_interrupt/fail_signatures.rs:2:1
3
3
|
4
4
2 | fn my_interrupt(code: usize) {}
5
5
| ^^
6
6
7
- error: `#[core_interrupt]` function must have signature `[unsafe] fn() [-> !]`
7
+ error: `#[core_interrupt]` function must have signature `[unsafe] [extern "C"] fn() [-> !]`
8
8
--> tests/riscv-rt/core_interrupt/fail_signatures.rs:5:1
9
9
|
10
10
5 | fn my_other_interrupt() -> usize {}
11
11
| ^^
12
12
13
- error: `#[core_interrupt]` function must have signature `[unsafe] fn() [-> !]`
13
+ error: `#[core_interrupt]` function must have signature `[unsafe] [extern "C"] fn() [-> !]`
14
14
--> tests/riscv-rt/core_interrupt/fail_signatures.rs:8:1
15
15
|
16
16
8 | async fn my_async_interrupt() {}
Original file line number Diff line number Diff line change 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]) [-> !]`
2
2
--> tests/riscv-rt/exception/fail_signatures.rs:2:1
3
3
|
4
4
2 | fn my_exception(code: usize) {}
5
5
| ^^
6
6
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]) [-> !]`
8
8
--> tests/riscv-rt/exception/fail_signatures.rs:5:1
9
9
|
10
10
5 | fn my_other_exception(trap_frame: &riscv_rt::TrapFrame, code: usize) {}
11
11
| ^^
12
12
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]) [-> !]`
14
14
--> tests/riscv-rt/exception/fail_signatures.rs:8:1
15
15
|
16
16
8 | async fn my_async_exception(trap_frame: &riscv_rt::TrapFrame, code: usize) {}
Original file line number Diff line number Diff line change 1
- error: `#[external_interrupt]` function must have signature `[unsafe] fn() [-> !]`
1
+ error: `#[external_interrupt]` function must have signature `[unsafe] [extern "C"] fn() [-> !]`
2
2
--> tests/riscv-rt/external_interrupt/fail_signatures.rs:31:1
3
3
|
4
4
31 | fn my_interrupt() -> usize {}
5
5
| ^^
6
6
7
- error: `#[external_interrupt]` function must have signature `[unsafe] fn() [-> !]`
7
+ error: `#[external_interrupt]` function must have signature `[unsafe] [extern "C"] fn() [-> !]`
8
8
--> tests/riscv-rt/external_interrupt/fail_signatures.rs:34:1
9
9
|
10
10
34 | fn my_other_interrupt(code: usize) -> usize {}
11
11
| ^^
12
12
13
- error: `#[external_interrupt]` function must have signature `[unsafe] fn() [-> !]`
13
+ error: `#[external_interrupt]` function must have signature `[unsafe] [extern "C"] fn() [-> !]`
14
14
--> tests/riscv-rt/external_interrupt/fail_signatures.rs:37:1
15
15
|
16
16
37 | async fn my_async_interrupt(code: usize) -> usize {}
You can’t perform that action at this time.
0 commit comments