mirror of
https://github.com/rust-lang/cargo
synced 2024-09-29 20:44:41 +00:00
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.
This commit is contained in:
parent
0fcc90dc24
commit
93cd5ef846
|
@ -6,3 +6,6 @@ disallowed-methods = [
|
|||
{ 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",
|
||||
]
|
||||
|
|
Loading…
Reference in a new issue