cargo/clippy.toml
Ed Page 93cd5ef846 chore(ci): Catch naive use of AtomicU64 early
AtomicU64 is not portable and use of it, without `target_has_atomic`,
will fail CI for rust-lang/rust when the cargo submodule gets updated
(see #12981).

If there is a reason to use it, we could always `allow` in that one
case.
2023-11-16 11:58:58 -06:00

12 lines
557 B
TOML

allow-print-in-tests = true
allow-dbg-in-tests = true
disallowed-methods = [
{ path = "std::env::var", reason = "use `Config::get_env` instead. See rust-lang/cargo#11588" },
{ path = "std::env::var_os", reason = "use `Config::get_env_os` instead. See rust-lang/cargo#11588" },
{ path = "std::env::vars", reason = "not recommended to use in Cargo. See rust-lang/cargo#11588" },
{ path = "std::env::vars_os", reason = "not recommended to use in Cargo. See rust-lang/cargo#11588" },
]
disallowed-types = [
"std::sync::atomic::AtomicU64",
]