Skip to content

std: fix an infinite loop in num::ToPrimitive #9757

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

Merged
merged 1 commit into from
Oct 8, 2013
Merged

Conversation

erickt
Copy link
Contributor

@erickt erickt commented Oct 8, 2013

I accidentally left an infinite loop in a default method in num::ToPrimitive::to_u64(). This fixes it.

@alexcrichton
Copy link
Member

Could you throw a test in on a dummy implementation for a type to make sure this doesn't happen again?

bors added a commit that referenced this pull request Oct 8, 2013
I accidentally left an infinite loop in a default method in `num::ToPrimitive::to_u64()`. This fixes it.
@bors bors closed this Oct 8, 2013
@bors bors merged commit 6dfc5d5 into rust-lang:master Oct 8, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants