diff --git a/crates/libs/bindgen/src/rdl/mod.rs b/crates/libs/bindgen/src/rdl/mod.rs index c74c8c04f0..da0add924c 100644 --- a/crates/libs/bindgen/src/rdl/mod.rs +++ b/crates/libs/bindgen/src/rdl/mod.rs @@ -1,3 +1,5 @@ +#![allow(dead_code)] + use super::*; mod fmt; mod from_reader; diff --git a/crates/libs/bindgen/src/rust/cfg.rs b/crates/libs/bindgen/src/rust/cfg.rs index 283953edd8..0f5061351a 100644 --- a/crates/libs/bindgen/src/rust/cfg.rs +++ b/crates/libs/bindgen/src/rust/cfg.rs @@ -6,7 +6,6 @@ pub struct Cfg { pub types: std::collections::BTreeMap<&'static str, std::collections::BTreeSet>, pub core_types: std::collections::BTreeSet, pub arches: std::collections::BTreeSet<&'static str>, - pub implement: bool, } impl Cfg { @@ -47,7 +46,7 @@ pub fn type_def_cfg(writer: &Writer, row: metadata::TypeDef, generics: &[metadat cfg } pub fn type_def_cfg_impl(writer: &Writer, def: metadata::TypeDef, generics: &[metadata::Type]) -> Cfg { - let mut cfg = Cfg { implement: true, ..Default::default() }; + let mut cfg = Cfg::default(); fn combine(writer: &Writer, def: metadata::TypeDef, generics: &[metadata::Type], cfg: &mut Cfg) { type_def_cfg_combine(writer, def, generics, cfg); diff --git a/crates/libs/bindgen/src/winmd/writer/tables.rs b/crates/libs/bindgen/src/winmd/writer/tables.rs index 50009acd7a..1c4d60b455 100644 --- a/crates/libs/bindgen/src/winmd/writer/tables.rs +++ b/crates/libs/bindgen/src/winmd/writer/tables.rs @@ -1,4 +1,4 @@ -#![allow(non_snake_case)] +#![allow(dead_code, non_snake_case)] use super::*; diff --git a/crates/targets/aarch64_gnullvm/lib/libwindows.0.52.0.a b/crates/targets/aarch64_gnullvm/lib/libwindows.0.52.0.a index 91151611b0..e03a9b1014 100644 Binary files a/crates/targets/aarch64_gnullvm/lib/libwindows.0.52.0.a and b/crates/targets/aarch64_gnullvm/lib/libwindows.0.52.0.a differ diff --git a/crates/targets/x86_64_gnullvm/lib/libwindows.0.52.0.a b/crates/targets/x86_64_gnullvm/lib/libwindows.0.52.0.a index aa2d5f8d5a..9f6f95db39 100644 Binary files a/crates/targets/x86_64_gnullvm/lib/libwindows.0.52.0.a and b/crates/targets/x86_64_gnullvm/lib/libwindows.0.52.0.a differ