Skip to content

Commit

Permalink
Upgrade syn and synstructure
Browse files Browse the repository at this point in the history
Signed-off-by: Anders Kaseorg <andersk@mit.edu>
  • Loading branch information
andersk committed Jul 17, 2024
1 parent 949732c commit 2662fa2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions gc_derive/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ name = "gc_derive"
proc-macro = true

[dependencies]
syn = "1.0"
syn = "2.0"
proc-macro2 = "1.0"
quote = "1.0"
synstructure = "0.12"
synstructure = "0.13"
2 changes: 1 addition & 1 deletion gc_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ fn derive_trace(mut s: Structure<'_>) -> proc_macro2::TokenStream {
!bi.ast()
.attrs
.iter()
.any(|attr| attr.path.is_ident("unsafe_ignore_trace"))
.any(|attr| attr.path().is_ident("unsafe_ignore_trace"))
});
let trace_body = s.each(|bi| quote!(mark(#bi)));

Expand Down

0 comments on commit 2662fa2

Please sign in to comment.