Skip to content

Stabilize float_bits_conv for Rust 1.20 - #43055

Merged
bors merged 1 commit into
rust-lang:masterfrom
est31:stabilize_float_bits_conv
Jul 17, 2017
Merged

Stabilize float_bits_conv for Rust 1.20#43055
bors merged 1 commit into
rust-lang:masterfrom
est31:stabilize_float_bits_conv

Conversation

@est31

@est31est31 commented Jul 4, 2017

Copy link
Copy Markdown
Member

Stabilizes the float_bits_conv lib feature for the 1.20 release of Rust. I've initially implemented the feature in #39271 and later made PR #43025 to output quiet NaNs even on platforms with different encodings, which seems to have been the only unresolved issue of the API.

Due to PR #43025 being only applied to master this stabilisation can't happen for Rust 1.19 through the usual "stabilisation on beta" system that is being done for library APIs.

r? @BurntSushi

closes#40470.

@Mark-SimulacrumMark-Simulacrum added the T-libs-api [DEPRECATED; DO NOT USE] label Jul 4, 2017
@aidanhsaidanhs added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 5, 2017
@est31est31 changed the title Stabilize float_bits_conv for Rust 1.20Stabilize float_bits_conv for Rust 1.21Jul 6, 2017
@est31
est31force-pushed the stabilize_float_bits_conv branch from b98547b to 9fb16a6CompareJuly 6, 2017 13:14
@est31

est31 commented Jul 6, 2017

Copy link
Copy Markdown
MemberAuthor

I guess the 1.20 estimate is wrong because of the FCP which delays by >= 10 days and the new beta branches in a week already. 1.21 it is then!

@est31
est31force-pushed the stabilize_float_bits_conv branch from 9fb16a6 to 010dea1CompareJuly 6, 2017 13:17
@carols10cents

Copy link
Copy Markdown
Member

friendly ping @BurntSushi!

@BurntSushi

Copy link
Copy Markdown
Member

Doesn't FCP in #40470 need to finish first?

@carols10cents

Copy link
Copy Markdown
Member

Oh sorry, that wasn't clear in this issue.

@carols10centscarols10cents added S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Jul 10, 2017
@seppalai

Copy link
Copy Markdown

Is there any way to work around this in Rust 1.18?

@est31

est31 commented Jul 13, 2017

Copy link
Copy Markdown
MemberAuthor

@i-dash what do you mean by that? Right now its possible to do such conversion with the help of unsafe Rust. Or have you stumbled into huonw/ieee754#2 ? For that, you can use a cargo replace, like doing the following in your Cargo.toml (maybe you need to adjust the version, also untested):

[replace]
"ieee754:0.2.1" = { git = "https://github.com/clarcharr/ieee754" }

@est31

Copy link
Copy Markdown
MemberAuthor

r? @BurntSushi

@sfackler

Copy link
Copy Markdown
Member

@bors r+ rollup

@bors

bors commented Jul 17, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit 010dea1 has been approved by sfackler

@bors

bors commented Jul 17, 2017

Copy link
Copy Markdown
Collaborator

⌛ Testing commit 010dea1 with merge 56071f6...

bors added a commit that referenced this pull request Jul 17, 2017
Stabilize float_bits_conv for Rust 1.21
Stabilizes the `float_bits_conv` lib feature for the 1.20 release of Rust. I've initially implemented the feature in #39271 and later made PR #43025 to output quiet NaNs even on platforms with different encodings, which seems to have been the only unresolved issue of the API.
Due to PR #43025 being only applied to master this stabilisation can't happen for Rust 1.19 through the usual "stabilisation on beta" system that is being done for library APIs.
r? @BurntSushicloses#40470.
@bors

bors commented Jul 17, 2017

Copy link
Copy Markdown
Collaborator

☀️ Test successful - status-appveyor, status-travis
Approved by: sfackler
Pushing 56071f6 to master...

@bors
bors merged commit 010dea1 into rust-lang:masterJul 17, 2017
@alexcrichtonalexcrichton added the relnotes Marks issues that should be documented in the release notes of the next release. label Jul 20, 2017
@alexcrichtonalexcrichton changed the title Stabilize float_bits_conv for Rust 1.21Stabilize float_bits_conv for Rust 1.20Jul 20, 2017
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

relnotesMarks issues that should be documented in the release notes of the next release.S-waiting-on-authorStatus: This is awaiting some action (such as code changes or more information) from the author.T-libs-api[DEPRECATED; DO NOT USE]

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Tracking issue for float_bits_conv feature

9 participants

@est31@carols10cents@BurntSushi@seppalai@sfackler@bors@alexcrichton@aidanhs@Mark-Simulacrum