From: Thomas Versteeg Date: Fri, 2 Jul 2021 09:37:00 +0000 (+0000) Subject: Fix double import in wasm thread X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=d3bf89b302fca91afa2143170623b0f4a0d534f3;hp=1aa6c7cbc6d2582e7407cde9c65014aef8a189bb;p=rust.git Fix double import in wasm thread The `unsupported` type is imported two times, as `super::unsupported` and as `crate::sys::unsupported`, throwing an error. Remove `super::unsupported` in favor of the other. --- diff --git a/library/std/src/sys/wasm/atomics/thread.rs b/library/std/src/sys/wasm/atomics/thread.rs index 09714835104..a66ab083757 100644 --- a/library/std/src/sys/wasm/atomics/thread.rs +++ b/library/std/src/sys/wasm/atomics/thread.rs @@ -1,4 +1,3 @@ -use super::unsupported; use crate::ffi::CStr; use crate::io; use crate::num::NonZeroUsize;