diff --git a/bindgen/Cargo.toml b/bindgen/Cargo.toml index bc53be5d..bcc46e45 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 05e7e9ef..eb91683e 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 4f23ab73..71fb75c4 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, }); }