Skip to content

Commit 0ef1156

Browse files
committed
Allow liftime bounds on generic bounds
While liftime bounds require bindings users to ensure liftime requirements are met, they're important for allowing us to export lock wrappers. Thus, we relax the simple-bounds assertions checks here.
1 parent 72503ca commit 0ef1156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

c-bindings-gen/src/types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ pub fn export_status(attrs: &[syn::Attribute]) -> ExportStatus {
147147
}
148148

149149
pub fn assert_simple_bound(bound: &syn::TraitBound) {
150-
if bound.paren_token.is_some() || bound.lifetimes.is_some() { unimplemented!(); }
150+
if bound.paren_token.is_some() { unimplemented!(); }
151151
if let syn::TraitBoundModifier::Maybe(_) = bound.modifier { unimplemented!(); }
152152
}
153153

0 commit comments

Comments
 (0)