From eb13680d1aed60d8564f693aabb230ac189524e2 Mon Sep 17 00:00:00 2001 From: gnzlbg Date: Tue, 5 Feb 2019 08:22:18 +0100 Subject: [PATCH] Remove const workaround in std_detect cache --- library/stdarch/crates/std_detect/src/detect/cache.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/library/stdarch/crates/std_detect/src/detect/cache.rs b/library/stdarch/crates/std_detect/src/detect/cache.rs index 944dccbe6df1..1ab94dd1cd96 100644 --- a/library/stdarch/crates/std_detect/src/detect/cache.rs +++ b/library/stdarch/crates/std_detect/src/detect/cache.rs @@ -84,8 +84,7 @@ impl Cache { allow(clippy::declare_interior_mutable_const) )] const fn uninitialized() -> Self { - const X: AtomicU64 = AtomicU64::new(u64::max_value()); - Cache(X) + Cache(AtomicU64::new(u64::max_value())) } /// Is the cache uninitialized? #[inline]