Update bindgen from 0.59 to 0.69

Bindgen older than 0.62 is incompatible with Clang 16+ due to not containing rust-bindgen#2319, which fixed rust-bindgen#2312.

This MR updates virt-sys's bindgen dependency to use the current latest release.

Here is the build failure without this MR:

thread 'main' panicked at '"_virTypedParameter_union_(unnamed_at_include/libvirt/libvirt-common_h_206_5)" is not a valid Ident', third-party/rust/vendor/bindgen-0.59.2/src/ir/context.rs:878:9
stack backtrace:
   0: rust_begin_unwind
             at third-party/rust/rustc-1.74.0-src/library/std/src/panicking.rs:597:5
   1: core::panicking::panic_fmt
             at third-party/rust/rustc-1.74.0-src/library/core/src/panicking.rs:72:14
   2: validate_ident
             at third-party/rust/vendor/proc-macro2-1.0.70/src/fallback.rs:828:9
   3: <proc_macro2::fallback::Ident>::new_checked
             at third-party/rust/vendor/proc-macro2-1.0.70/src/fallback.rs:760:9
   4: <proc_macro2::imp::Ident>::new_checked
             at third-party/rust/vendor/proc-macro2-1.0.70/src/wrapper.rs:646:50
   5: <proc_macro2::Ident>::new
             at third-party/rust/vendor/proc-macro2-1.0.70/src/lib.rs:955:21
   6: <bindgen::ir::context::BindgenContext>::rust_ident_raw::<alloc::borrow::Cow<str>>
             at third-party/rust/vendor/bindgen-0.59.2/src/ir/context.rs:878:9
   7: <bindgen::ir::context::BindgenContext>::rust_ident::<&alloc::string::String>
             at third-party/rust/vendor/bindgen-0.59.2/src/ir/context.rs:870:9
   8: codegen
             at third-party/rust/vendor/bindgen-0.59.2/src/codegen/mod.rs:1731:31
   9: codegen
             at third-party/rust/vendor/bindgen-0.59.2/src/codegen/mod.rs:806:39
  10: codegen
             at third-party/rust/vendor/bindgen-0.59.2/src/codegen/mod.rs:492:17
  11: codegen
             at third-party/rust/vendor/bindgen-0.59.2/src/codegen/mod.rs:2062:13
  12: codegen
             at third-party/rust/vendor/bindgen-0.59.2/src/codegen/mod.rs:806:39
  13: codegen
             at third-party/rust/vendor/bindgen-0.59.2/src/codegen/mod.rs:492:17
  14: <bindgen::ir::module::Module as bindgen::codegen::CodeGenerator>::codegen::{closure#0}
             at third-party/rust/vendor/bindgen-0.59.2/src/codegen/mod.rs:515:21
  15: codegen
             at third-party/rust/vendor/bindgen-0.59.2/src/codegen/mod.rs:545:13
  16: codegen
             at third-party/rust/vendor/bindgen-0.59.2/src/codegen/mod.rs:483:17
  17: {closure#0}
             at third-party/rust/vendor/bindgen-0.59.2/src/codegen/mod.rs:4287:9
  18: <bindgen::ir::context::BindgenContext>::gen::<bindgen::codegen::codegen::{closure#0}, alloc::vec::Vec<proc_macro2::TokenStream>>
             at third-party/rust/vendor/bindgen-0.59.2/src/ir/context.rs:1190:19
  19: bindgen::codegen::codegen
             at third-party/rust/vendor/bindgen-0.59.2/src/codegen/mod.rs:4251:5
  20: generate
             at third-party/rust/vendor/bindgen-0.59.2/src/lib.rs:2374:32
  21: <bindgen::Builder>::generate
             at third-party/rust/vendor/bindgen-0.59.2/src/lib.rs:1478:9
  22: build_script_build::run
             at third-party/rust/vendor/virt-sys-0.1.0/build.rs:55:5
  23: main
             at third-party/rust/vendor/virt-sys-0.1.0/build.rs:6:11
  24: <fn() as core::ops::function::FnOnce<()>>::call_once
             at third-party/rust/rustc-1.74.0-src/library/core/src/ops/function.rs:250:5
Edited by David Tolnay

Merge request reports

Loading