-
Notifications
You must be signed in to change notification settings - Fork 745
ir: Ignore non-finite macro constants from macros. #583
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
r? @fitzgen |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
src/ir/var.rs
Outdated
@@ -146,6 +146,11 @@ impl ClangSubItemParser for Var { | |||
let (type_kind, val) = match value { | |||
EvalResult::Invalid => return Err(ParseError::Continue), | |||
EvalResult::Float(f) => { | |||
// Bail out if this number is not finite. We could | |||
// generate those, I guess, but its utility is unclear. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess I'd flip this question on its head: why wouldn't we want to generate bindings for them? That's kinda the business we're in ;-P
File a follow up? Maybe it would be a good first bug?
@bors-servo r+ Please also file that follow up issue :) |
📌 Commit abed16d has been approved by |
ir: Ignore non-finite macro constants from macros. Fixes #582.
@bors-servo r- Yeah, I changed my mind. Also have another test case for it. |
ok, this should be better. r? @fitzgen |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great :)
@bors-servo r+ |
📌 Commit 22d5a8f has been approved by |
ir: Ignore non-finite macro constants from macros. Fixes #582.
☀️ Test successful - status-travis |
Fixes #582.