Skip to content

Commit 93cd5ef

Browse files
committed
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.
1 parent 0fcc90d commit 93cd5ef

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Diff for: clippy.toml

+3
Original file line numberDiff line numberDiff line change
@@ -6,3 +6,6 @@ disallowed-methods = [
66
{ path = "std::env::vars", reason = "not recommended to use in Cargo. See rust-lang/cargo#11588" },
77
{ path = "std::env::vars_os", reason = "not recommended to use in Cargo. See rust-lang/cargo#11588" },
88
]
9+
disallowed-types = [
10+
"std::sync::atomic::AtomicU64",
11+
]

0 commit comments

Comments
 (0)