Skip to content

Commit

Permalink
Merge #41
Browse files Browse the repository at this point in the history
41: Switch to use new FinalizerOptional trait r=ltratt a=jacob-hughes



Co-authored-by: Jake Hughes <[email protected]>
  • Loading branch information
bors[bot] and jacob-hughes authored Nov 21, 2022
2 parents c7fcd52 + d7fd68e commit d92e4dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ pub fn narrowable_rustgc(args: TokenStream, input: TokenStream) -> TokenStream {
unsafe impl<U: Sync> Sync for #struct_union_id<U> {}

unsafe impl<U: FinalizerSafe> FinalizerSafe for #struct_union_id<U> {}
unsafe impl<U: ::std::gc::NoFinalize> ::std::gc::NoFinalize for #struct_union_id<U> {}
unsafe impl<U> ::std::gc::FinalizerOptional for #struct_union_id<U> {}

impl<U> ::std::ops::Drop for #struct_union_id<U> {
fn drop(&mut self) {
Expand Down

0 comments on commit d92e4dc

Please sign in to comment.