Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore blocks_in_conditions clippy lint
warning: in a `match` scrutinee, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a `let` --> tests/common/parse.rs:16:34 | 16 | match panic::catch_unwind(|| { | __________________________________^ 17 | | let locale_resources = rustc_driver::DEFAULT_LOCALE_RESOURCES.to_vec(); 18 | | let file_path_mapping = FilePathMapping::empty(); 19 | | let sess = ParseSess::new(locale_resources, file_path_mapping); ... | 32 | | } 33 | | }) { | |_____^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#blocks_in_conditions = note: `-W clippy::blocks-in-conditions` implied by `-W clippy::all` = help: to override `-W clippy::all` add `#[allow(clippy::blocks_in_conditions)]` warning: in a `match` scrutinee, avoid complex blocks or closures with blocks; instead, move the block or closure higher and bind it with a `let` --> tests/test_round_trip.rs:90:50 | 90 | let equal = match panic::catch_unwind(|| { | __________________________________________________^ 91 | | let locale_resources = rustc_driver::DEFAULT_LOCALE_RESOURCES.to_vec(); 92 | | let file_path_mapping = FilePathMapping::empty(); 93 | | let sess = ParseSess::new(locale_resources, file_path_mapping); ... | 114 | | Ok((before, after)) 115 | | }) { | |_________^ | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#blocks_in_conditions
- Loading branch information