Skip to content

Commit bf170ea

Browse files
committed
fix : bump bindgen to handle recent clang breaking change
rust-lang/rust-bindgen#2312
1 parent 9a6df79 commit bf170ea

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

libvex-rs/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ pub mod ppc64;
2222
pub mod s390x;
2323
pub mod x86;
2424

25-
unsafe extern "C" fn failure_exit() {
25+
unsafe extern "C" fn failure_exit() -> ! {
2626
panic!("LibVEX encountered a critical error.")
2727
}
2828

libvex-sys/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ libc = "0.2.85"
2727

2828
[build-dependencies]
2929
fs_extra = "1.2"
30-
bindgen = "0.57"
30+
bindgen = "0.69"
3131

3232
[features]
3333
default = []

libvex-sys/build.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -134,14 +134,14 @@ fn main() -> Result<()> {
134134
// Generate bindings
135135
let bindings = bindgen::Builder::default()
136136
.header("wrapper.h")
137-
.blacklist_type("_IRStmt__bindgen_ty_1__bindgen_ty_1")
138-
.rustified_enum("*")
137+
.blocklist_type("_IRStmt__bindgen_ty_1__bindgen_ty_1")
138+
.rustified_enum(".*")
139139
.clang_args(vex_headers()?
140140
.into_iter()
141141
.map(|dir| format!("-I{}", dir))
142142
)
143143
.generate()
144-
.map_err(|()| "Unable to generate bindings")?;
144+
.map_err(|_| "Unable to generate bindings")?;
145145
bindings.write_to_file(out_dir.join("bindings.rs"))?;
146146
}
147147

libvex-sys/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ mod test {
3636

3737
use crate::*;
3838

39-
unsafe extern "C" fn failure_exit() {
39+
unsafe extern "C" fn failure_exit() -> ! {
4040
panic!("LibVEX encountered a critical error.")
4141
}
4242

0 commit comments

Comments
 (0)