Never regard macro rules with compile_error! invocations as unused
The very point of compile_error! is to never be reached, and one of the use cases of the macro, currently also listed as examples in the documentation of compile_error, is to create nicer errors for wrong macro invocations. Thus, we shuuld never warn about unused macro arms that contain invocations of compile_error.
This commit is contained in:
parent
fee3a459dd
commit
eb3c611e1d
6 changed files with 92 additions and 6 deletions
|
@ -1,4 +1,5 @@
|
|||
#![allow(rustc::potential_query_instability)]
|
||||
#![feature(array_windows)]
|
||||
#![feature(associated_type_bounds)]
|
||||
#![feature(associated_type_defaults)]
|
||||
#![feature(if_let_guard)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue