summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Cargo.lock2
-rw-r--r--Cargo.toml2
-rw-r--r--src/codegen/mod.rs7
3 files changed, 8 insertions, 3 deletions
diff --git a/Cargo.lock b/Cargo.lock
index 007c6b14..47601996 100644
--- a/Cargo.lock
+++ b/Cargo.lock
@@ -1,6 +1,6 @@
[root]
name = "bindgen"
-version = "0.20.4"
+version = "0.20.5"
dependencies = [
"aster 0.38.0 (registry+https://github.com/rust-lang/crates.io-index)",
"cexpr 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",
diff --git a/Cargo.toml b/Cargo.toml
index cfb648b2..8ee91b04 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -13,7 +13,7 @@ name = "bindgen"
readme = "README.md"
repository = "https://github.com/servo/rust-bindgen"
documentation = "https://docs.rs/bindgen"
-version = "0.20.4"
+version = "0.20.5"
build = "build.rs"
[badges]
diff --git a/src/codegen/mod.rs b/src/codegen/mod.rs
index db17a3d1..7af70e98 100644
--- a/src/codegen/mod.rs
+++ b/src/codegen/mod.rs
@@ -287,7 +287,12 @@ impl CodeGenerator for Item {
}
debug!("<Item as CodeGenerator>::codegen: self = {:?}", self);
- assert!(whitelisted_items.contains(&self.id()));
+ if !whitelisted_items.contains(&self.id()) {
+ // TODO(emilio, #453): Figure out what to do when this happens
+ // legitimately, we could track the opaque stuff and disable the
+ // assertion there I guess.
+ error!("Found non-whitelisted item in code generation: {:?}", self);
+ }
result.set_seen(self.id());