This website requires JavaScript.
Explore
Help
Register
Sign In
mikros
/
rust
Watch
1
Star
0
Fork
0
You've already forked rust
Code
Issues
Pull Requests
Packages
Projects
Releases
Wiki
Activity
5333b878c8
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 16:21:40 -05:00
#[
macro_export
]
macro_rules
!
fancy_panic
{
Silence non_fmt_panic from external macros.
2021-08-12 07:33:30 -05:00
(
)
=
>
{
panic!
(
"
{}
"
)
;
}
;
Add test for panic_fmt lint with external panic!()-calling macro.
2020-10-29 16:21:40 -05:00
(
$msg
:
expr
)
=
>
{
panic!
(
$msg
)
}
;
}
Reference in New Issue
Copy Permalink