Skip to content

Update why transmute_int_to_float is bad #3783

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 2 commits into from
Feb 18, 2019
Merged

Conversation

Enet4
Copy link
Contributor

@Enet4 Enet4 commented Feb 18, 2019

As suggested in #3550, this PR changes the reason why using transmute from an integer to a float is not recommended. Effectively, from_bits uses transmute underneath, but the former is preferred.

@Manishearth
Copy link
Member

@bors r+

Thanks!

@bors
Copy link
Contributor

bors commented Feb 18, 2019

📌 Commit 74ac35b has been approved by Manishearth

bors added a commit that referenced this pull request Feb 18, 2019
Update why transmute_int_to_float is bad

As suggested in #3550, this PR changes the reason why using `transmute` from an integer to a float is not recommended. Effectively, `from_bits` uses `transmute` underneath, but the former is preferred.
@bors
Copy link
Contributor

bors commented Feb 18, 2019

⌛ Testing commit 74ac35b with merge 9806e6e...

@phansch
Copy link
Member

phansch commented Feb 18, 2019

@bors retry

@flip1995
Copy link
Member

I think retry doesn't work if there's a commit in between.

(What's up with Travis / RTIM today?)

@bors r=Manishearth

@bors
Copy link
Contributor

bors commented Feb 18, 2019

📌 Commit 8994466 has been approved by Manishearth

bors added a commit that referenced this pull request Feb 18, 2019
Update why transmute_int_to_float is bad

As suggested in #3550, this PR changes the reason why using `transmute` from an integer to a float is not recommended. Effectively, `from_bits` uses `transmute` underneath, but the former is preferred.
@bors
Copy link
Contributor

bors commented Feb 18, 2019

⌛ Testing commit 8994466 with merge 2139fbd...

@bors
Copy link
Contributor

bors commented Feb 18, 2019

☀️ Test successful - checks-travis, status-appveyor
Approved by: Manishearth
Pushing 2139fbd to master...

@bors bors merged commit 8994466 into rust-lang:master Feb 18, 2019
@Enet4 Enet4 deleted the patch-1 branch February 18, 2019 21:26
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