Skip to content

Remove unsafe code from core::cmp #31084

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
Jan 22, 2016
Merged

Conversation

ranma42
Copy link
Contributor

@ranma42 ranma42 commented Jan 21, 2016

Instead of transmuting, use a match; the compiler has learnt how to
optimize it.

@rust-highfive
Copy link
Contributor

r? @alexcrichton

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

@steveklabnik
Copy link
Member

Travis failed due to an unused import

Instead of transmuting, use a match; the compiler has learnt how to
optimize it.
@alexcrichton
Copy link
Member

@bors: r+ 2f4622a

Nice catch!

bors added a commit that referenced this pull request Jan 22, 2016
Instead of transmuting, use a match; the compiler has learnt how to
optimize it.
@bors
Copy link
Collaborator

bors commented Jan 22, 2016

⌛ Testing commit 2f4622a with merge e1cb0a3...

@bors bors merged commit 2f4622a into rust-lang:master Jan 22, 2016
@ranma42 ranma42 deleted the cmd-no-unsafe branch January 22, 2016 18:32
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