diff options
| author | est31 <MTest31@outlook.com> | 2022-06-09 04:46:51 +0200 |
|---|---|---|
| committer | est31 <MTest31@outlook.com> | 2022-06-09 23:21:06 +0200 |
| commit | eb3c611e1d3829e05aec8f9887efa164ea2c6da5 (patch) | |
| tree | ad548a5dc33d62ceb1dd89e273148bf49844873c /compiler/rustc_mir_transform/src/coverage/debug.rs | |
| parent | fee3a459dd6aba8e34a5b99f0fbcb4218a1e2401 (diff) | |
| download | rust-eb3c611e1d3829e05aec8f9887efa164ea2c6da5.tar.gz rust-eb3c611e1d3829e05aec8f9887efa164ea2c6da5.zip | |
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.
Diffstat (limited to 'compiler/rustc_mir_transform/src/coverage/debug.rs')
0 files changed, 0 insertions, 0 deletions
