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() [-> !]`
22 --> tests/riscv-rt/core_interrupt/fail_signatures.rs:2:1
33 |
442 | 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 |
10105 | 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 |
16168 | 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]) [-> !]`
22 --> tests/riscv-rt/exception/fail_signatures.rs:2:1
33 |
442 | 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 |
10105 | 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 |
16168 | 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() [-> !]`
22 --> tests/riscv-rt/external_interrupt/fail_signatures.rs:31:1
33 |
4431 | 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 |
101034 | 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 |
161637 | async fn my_async_interrupt(code: usize) -> usize {}
You can’t perform that action at this time.
0 commit comments