-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
32bd8cd
commit a0575eb
Showing
10 changed files
with
283 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
error: custom attribute panicked | ||
error: unexpected end of input, expected `unsafe` | ||
--> tests/ui/fail_empty_macro.rs:1:1 | ||
| | ||
1 | #[riscv_pac::pac_enum] | ||
| ^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= help: message: Attribute is empty. Expected: 'riscv_pac::pac_enum(unsafe <PacTraitToImplement>)' | ||
= note: this error originates in the attribute macro `riscv_pac::pac_enum` (in Nightly builds, run with -Z macro-backtrace for more info) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
error: custom attribute panicked | ||
--> tests/ui/fail_more_than_one_trait.rs:1:1 | ||
error: Unknown trait name. Expected: 'ExceptionNumber', 'CoreInterruptNumber', 'ExternalInterruptNumber', 'PriorityNumber', or 'HartIdNumber' | ||
--> tests/ui/fail_more_than_one_trait.rs:1:30 | ||
| | ||
1 | #[riscv_pac::pac_enum(unsafe InterruptNumber, unsafe PriorityNumber)] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= help: message: Wrong attribute format. Expected: 'riscv_pac::pac_enum(unsafe <PacTraitToImplement>)' | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
error: custom attribute panicked | ||
--> tests/ui/fail_no_unsafe.rs:1:1 | ||
error: expected `unsafe` | ||
--> tests/ui/fail_no_unsafe.rs:1:23 | ||
| | ||
1 | #[riscv_pac::pac_enum(InterruptNumber)] | ||
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
| | ||
= help: message: Attribute does not start with 'unsafe'. Expected: 'riscv_pac::pac_enum(unsafe <PacTraitToImplement>)' | ||
| ^^^^^^^^^^^^^^^ |
Oops, something went wrong.