Fix manual_assert and match_wild_err_arm for `#![no_std]` and Rust 2021 by nbdd0...
source link: https://github.com/rust-lang/rust-clippy/pull/7851
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
@@ -0,0 +1,56 @@
// run-rustfix
I don't think we should duplicate tests for lints, but instead create tests like core_macros
or 2018_macros
, etc. We only need to test different variations of the macro, not different cases of lints.
Or maybe just run the test twice in different editions? I am not sure how to do it though.
Yeah that sounds better. I think you can do it like this:
// revisions: edition2015 edition2018
// [edition2015] edition:2015
// [edition2018] edition:2018
It seems that revisions didn't quite work... It expects me to have a "if_then_panic.edition2021.rs" because I have a "if_then_panic.edition2021.stderr".
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK