Skip to content

Commit adf4936

Browse files
committed
attributes: turn panics into compile errors
Sample error messages: ``` error: `#[entry]` function must have signature `[unsafe] fn() -> !` --> examples/error.rs:15:1 | 15 | fn main() { | ^^ error: aborting due to previous error ``` ``` error: This attribute accepts no arguments --> examples/error.rs:14:1 | 14 | #[entry(hello)] | ^^^^^^^^^^^^^^^ error: aborting due to previous error ``` ``` error: This is not a valid exception name --> examples/error.rs:20:4 | 20 | fn foo() {} | ^^^ error: aborting due to previous error ```
1 parent c5d24f8 commit adf4936

File tree

1 file changed

+201
-142
lines changed

1 file changed

+201
-142
lines changed

0 commit comments

Comments
 (0)