rust-clippy/tests/cargo/mod.rs

5 lines
99 B
Rust
Raw Normal View History

#[must_use]
pub fn is_rustc_test_suite() -> bool {
option_env!("RUSTC_TEST_SUITE").is_some()
}