diff options
author | Sergey Pepyakin <s.pepyakin@gmail.com> | 2017-09-19 23:08:25 +0300 |
---|---|---|
committer | Sergey Pepyakin <s.pepyakin@gmail.com> | 2017-09-19 23:08:25 +0300 |
commit | 27dad0b64d0a86107e61550afe2d08b3bd0e5155 (patch) | |
tree | 61bc53be3c271e3edb2e7ddedacf9fbdd78c0f23 | |
parent | 32e6f111ff331a753f5acb0fcfabe8dceb20d65b (diff) |
Fix panic on has_float None unwrap
-rw-r--r-- | src/ir/context.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ir/context.rs b/src/ir/context.rs index 1e759b78..799c2e7d 100644 --- a/src/ir/context.rs +++ b/src/ir/context.rs @@ -2199,7 +2199,7 @@ impl BindgenContext { fn compute_has_float(&mut self) { let _t = self.timer("compute_has_float"); assert!(self.has_float.is_none()); - if self.options.derive_eq { + if self.options.derive_eq || self.options.derive_ord { self.has_float = Some(analyze::<HasFloat>(self)); } } |