Skip to content

Commit 92558d4

Browse files
committed
Ignore Send and Sync bounds when resolving generics
1 parent 28b0ccf commit 92558d4

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

c-bindings-gen/src/types.rs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -294,6 +294,8 @@ impl<'a, 'p: 'a> GenericTypes<'a, 'p> {
294294
if let syn::TypeParamBound::Trait(trait_bound) = bound {
295295
if let Some(id) = trait_bound.path.get_ident() {
296296
if format!("{}", id) == "Sized" { continue; }
297+
if format!("{}", id) == "Send" { continue; }
298+
if format!("{}", id) == "Sync" { continue; }
297299
}
298300
if non_lifetimes_processed { return false; }
299301
non_lifetimes_processed = true;

0 commit comments

Comments
 (0)