Skip to content

Commit 82793b3

Browse files
authored
Fix a feature check for threads in wasm (#1024)
Closes #1022
1 parent 85ff1e7 commit 82793b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/rust/src/interface.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1988,7 +1988,7 @@ impl {camel} {{
19881988
use core::any::TypeId;
19891989
static mut LAST_TYPE: Option<TypeId> = None;
19901990
unsafe {{
1991-
assert!(!cfg!(target_feature = "threads"));
1991+
assert!(!cfg!(target_feature = "atomics"));
19921992
let id = TypeId::of::<T>();
19931993
match LAST_TYPE {{
19941994
Some(ty) => assert!(ty == id, "cannot use two types with this resource type"),

0 commit comments

Comments
 (0)