]> git.lizzy.rs Git - rust.git/blob - tests/test_utils/mod.rs
Identify more cases of useless `into_iter()` calls
[rust.git] / tests / test_utils / mod.rs
1 #![allow(dead_code)] // see https://github.com/rust-lang/rust/issues/46379
2
3 use std::path::PathBuf;
4 use std::sync::LazyLock;
5
6 pub static CARGO_CLIPPY_PATH: LazyLock<PathBuf> = LazyLock::new(|| {
7     let mut path = std::env::current_exe().unwrap();
8     assert!(path.pop()); // deps
9     path.set_file_name("cargo-clippy");
10     path
11 });
12
13 pub const IS_RUSTC_TEST_SUITE: bool = option_env!("RUSTC_TEST_SUITE").is_some();