Skip to content
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

Error on large numbers instead of parsing infinity #114

Merged
merged 3 commits into from
Jul 12, 2016
Merged

Error on large numbers instead of parsing infinity #114

merged 3 commits into from
Jul 12, 2016

Conversation

dtolnay
Copy link
Member

@dtolnay dtolnay commented Jul 11, 2016

Fixes #112. Also gets us +5 points on the nativejson floating point conformance tests because of the support for large negative exponents.

@dtolnay
Copy link
Member Author

dtolnay commented Jul 11, 2016

Looks like a Clippy false positive. I filed https://github.com/Manishearth/rust-clippy/issues/1086 and will push a workaround.

@@ -424,29 +419,60 @@ impl<R: Read> DeserializerImpl<R> {
self.visit_f64_from_parts(pos, significand, final_exp, visitor)
}

#[inline(never)]
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why inline(never)?

@oli-obk
Copy link
Member

oli-obk commented Jul 12, 2016

lgtm. I'm assuming the inline(never) has a positive performance impact? Please note so with a comment.

@dtolnay dtolnay merged commit b61d90d into master Jul 12, 2016
@dtolnay dtolnay deleted the large branch July 12, 2016 18:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

2 participants