$NetBSD$ rust-bindgen upstream (#2338 and #2319), Self Updates the bundled rust-bindgen crate to be compatible with Clang/LLVM 16. clang: Detect anonymous items explicitly, rather than relying on empty names. In Clang 16, anonymous items may return names like `(anonymous union at ...)` rather than emoty names. The right way to detect them is using clang_Cursor_isAnonymous. Fixes https://github.com/rust-lang/rust-bindgen/issues/2312 Closes https://github.com/rust-lang/rust-bindgen/pull/2316 ir: Don't crash with built-in unexposed types from libclang. This fixes https://github.com/rust-lang/rust-bindgen/issues/2325 The issue is that `__bf16` is not exposed at all by libclang, which causes us to crash. It's a bit of a shame libclang doesn't expose it but there's no rust equivalent I think, so this should be ok for now. Unfortunately no test because the header crashes older clang versions. --- Cargo.lock.orig 2023-05-13 01:55:05.593291732 +0200 +++ Cargo.lock 2023-05-13 01:55:28.140873785 +0200 @@ -394,8 +394,6 @@ [[package]] name = "bindgen" version = "0.56.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "2da379dbebc0b76ef63ca68d8fc6e71c0f13e59432e0987e508c1820e6ab5239" dependencies = [ "bitflags", "cexpr",