diff --git a/bindgen/Cargo.toml b/bindgen/Cargo.toml index bc53be5dd426df856b7d82e6bf11500ab24c03e0..bcc46e455eac49c06ed31a699d34ef61ac7d0bfb 100644 --- a/bindgen/Cargo.toml +++ b/bindgen/Cargo.toml @@ -32,7 +32,7 @@ lazycell = "1" lazy_static = "1" peeking_take_while = "0.1.2" quote = { version = "1", default-features = false } -syn = { version = "1.0.99", features = ["full", "extra-traits", "visit-mut"]} +syn = { version = "2.0", features = ["full", "extra-traits", "visit-mut"]} regex = { version = "1.5", default-features = false , features = ["std", "unicode"] } which = { version = "4.2.1", optional = true, default-features = false } shlex = "1" diff --git a/bindgen/codegen/postprocessing/merge_extern_blocks.rs b/bindgen/codegen/postprocessing/merge_extern_blocks.rs index 05e7e9ef397b74b5a6fa7a402265b616c288038b..eb91683e423477fdcb775999d35bb91004e59041 100644 --- a/bindgen/codegen/postprocessing/merge_extern_blocks.rs +++ b/bindgen/codegen/postprocessing/merge_extern_blocks.rs @@ -20,6 +20,7 @@ impl VisitMut for Visitor { attrs, abi, brace_token, + unsafety, items: extern_block_items, }) = item { @@ -45,6 +46,7 @@ impl VisitMut for Visitor { attrs, abi, brace_token, + unsafety, items: extern_block_items, }); } diff --git a/bindgen/codegen/postprocessing/sort_semantically.rs b/bindgen/codegen/postprocessing/sort_semantically.rs index 4f23ab73a3a3877b5ab944f593eab30af85251a5..71fb75c4bb773650c7d252418fad1240c946ec3f 100644 --- a/bindgen/codegen/postprocessing/sort_semantically.rs +++ b/bindgen/codegen/postprocessing/sort_semantically.rs @@ -29,7 +29,6 @@ impl VisitMut for Visitor { Item::ExternCrate(_) => 13, Item::ForeignMod(_) => 14, Item::Macro(_) => 15, - Item::Macro2(_) => 16, _ => 18, }); }