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

Fix TryFrom for i128/u128 #39408

Merged
merged 1 commit into from
Feb 5, 2017
Merged

Fix TryFrom for i128/u128 #39408

merged 1 commit into from
Feb 5, 2017

Conversation

ollie27
Copy link
Member

@ollie27 ollie27 commented Jan 30, 2017

Another case of as cast silent truncation being error prone.

This also adds a few missing TryFrom tests to libcoretest.

cc #33417
cc #35118

@rust-highfive
Copy link
Collaborator

r? @sfackler

(rust_highfive has picked a reviewer for you, use r? to override)

@sfackler
Copy link
Member

@bors r+

@bors
Copy link
Contributor

bors commented Jan 30, 2017

📌 Commit 8fad6cf has been approved by sfackler

@bors
Copy link
Contributor

bors commented Jan 31, 2017

⌛ Testing commit 8fad6cf with merge e92e317...

@bors
Copy link
Contributor

bors commented Jan 31, 2017

💔 Test failed - status-travis

@bors
Copy link
Contributor

bors commented Feb 4, 2017

☔ The latest upstream changes (presumably #39463) made this pull request unmergeable. Please resolve the merge conflicts.

@sfackler
Copy link
Member

sfackler commented Feb 4, 2017

Needs a rebase

Another case of `as` cast silent truncation being error prone.

This also adds a few missing TryFrom tests to libcoretest.
@ollie27
Copy link
Member Author

ollie27 commented Feb 4, 2017

I've rebased and also removed the i128/u128 tests from libcoretest as apparently they won't work on emscripten.

@alexcrichton
Copy link
Member

@bors: r+

Thanks!

@bors
Copy link
Contributor

bors commented Feb 4, 2017

📌 Commit a2de6e2 has been approved by alexcrichton

@bors
Copy link
Contributor

bors commented Feb 5, 2017

⌛ Testing commit a2de6e2 with merge fc02736...

bors added a commit that referenced this pull request Feb 5, 2017
Fix TryFrom for i128/u128

Another case of `as` cast silent truncation being error prone.

This also adds a few missing TryFrom tests to libcoretest.

cc #33417
cc #35118
@bors
Copy link
Contributor

bors commented Feb 5, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: alexcrichton
Pushing fc02736 to master...

@bors bors merged commit a2de6e2 into rust-lang:master Feb 5, 2017
@ollie27 ollie27 deleted the i128_try_from branch February 5, 2017 20:03
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.

5 participants