This website requires JavaScript.
Explore
Help
Sign in
mathieu
/
granite-rust
Watch
1
Star
0
Fork
You've already forked granite-rust
0
Code
Issues
Pull requests
Projects
Releases
Packages
Wiki
Activity
9564a30c19
granite-rust
/
tests
/
ui
/
auxiliary
/
fancy-panic.rs
10 lines
135 B
Rust
Raw
Normal View
History
Unescape
Escape
Add test for panic_fmt lint with external panic!()-calling macro.
2020-10-29 22:21:40 +01:00
#[
macro_export
]
macro_rules
!
fancy_panic
{
Silence non_fmt_panic from external macros.
2021-08-12 14:33:30 +02:00
(
)
=
>
{
panic!
(
"
{}
"
)
;
}
;
Add test for panic_fmt lint with external panic!()-calling macro.
2020-10-29 22:21:40 +01:00
(
$msg
:
expr
)
=
>
{
panic!
(
$msg
)
}
;
}
Reference in a new issue
Copy permalink