We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5290f47 + 98a802b commit c18ac14Copy full SHA for c18ac14
godot-core/src/registry/property/phantom_var.rs
@@ -135,6 +135,12 @@ impl<T: GodotType + Var> Hash for PhantomVar<T> {
135
fn hash<H: Hasher>(&self, _state: &mut H) {}
136
}
137
138
+// SAFETY: This type contains no data.
139
+unsafe impl<T: GodotType + Var> Send for PhantomVar<T> {}
140
+
141
142
+unsafe impl<T: GodotType + Var> Sync for PhantomVar<T> {}
143
144
/// This type exists only as a place to add `compile_fail` doctests for `PhantomVar`, which do not need to be in the public documentation.
145
///
146
/// Omitting the `#[var]` attribute is an error:
0 commit comments