summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmilio Cobos Álvarez <emilio@crisal.io>2018-01-16 23:04:51 +0100
committerEmilio Cobos Álvarez <emilio@crisal.io>2018-01-16 23:06:24 +0100
commit9df15c1b5e7d8773d67c50e5856ad2a116e3640d (patch)
treeb06605630adaa470b7e66ee9223d5776366e31cc
parent2b81788d363f492bcc37c92c3e37f0e98f1266e3 (diff)
ir: Give more info for the non-floating type complex type message.
-rw-r--r--src/ir/context.rs8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/ir/context.rs b/src/ir/context.rs
index 258c6a0c..d22bde04 100644
--- a/src/ir/context.rs
+++ b/src/ir/context.rs
@@ -1970,7 +1970,13 @@ impl BindgenContext {
CXType_Float => FloatKind::Float,
CXType_Double => FloatKind::Double,
CXType_LongDouble => FloatKind::LongDouble,
- _ => panic!("Non floating-type complex?"),
+ _ => {
+ panic!(
+ "Non floating-type complex? {:?}, {:?}",
+ ty,
+ float_type,
+ )
+ },
};
TypeKind::Complex(float_kind)
}