mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-20 06:21:13 +01:00
test(core-remote): assert_not_impl_any!(Global: Send, Sync)
This commit is contained in:
1 parent
e377b7a73b
commit
34530a54d1
3 files changed
+6
No files matched your search
Generated
+1
@@ -4931,6 +4931,7 @@ version = "30.0.0"
|
||||
dependencies = [
|
||||
"raw-window-handle",
|
||||
"serde",
|
||||
"static_assertions",
|
||||
"wgpu-core",
|
||||
"wgpu-core-remote-types",
|
||||
"wgpu-hal",
|
||||
|
||||
@@ -31,6 +31,7 @@ serde = ["dep:serde", "wgpu-types/serde", "wgpu-core/serde"]
|
||||
[dependencies]
|
||||
raw-window-handle.workspace = true
|
||||
serde = { workspace = true, optional = true }
|
||||
static_assertions = { workspace = true }
|
||||
wgpu-core = { workspace = true, default-features = false }
|
||||
wgpu-core-remote-types.workspace = true
|
||||
wgpu-hal = { workspace = true, default-features = false }
|
||||
|
||||
@@ -392,3 +392,7 @@ impl fmt::Debug for Global {
|
||||
f.debug_struct("Global").finish()
|
||||
}
|
||||
}
|
||||
|
||||
// Force the Rust compiler to compute `Send + Sync` for `Global`, which can avoid `recursion_limit`
|
||||
// issues in the resolver.
|
||||
static_assertions::assert_not_impl_any!(Global: Send, Sync);
|
||||
Reference in new issue
Block a user