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