Uh oh!
There was an error while loading. Please reload this page.
Const floating point bitcasts and classification - #72449
Conversation
711e244 to
c3bb670CompareUh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
RalfJung
commented
May 22, 2020
LGTM, but I'd also like to know what @oli-obk thinks. |
RalfJung
commented
May 22, 2020
Would it make sense to also add Asking for #72440. |
ecstatic-morse
commented
May 23, 2020
Sure. |
c3bb670 to
5f9c391Compare5f9c391 to
8de4f06Compare
This comment has been minimized.
This comment has been minimized.
8de4f06 to
9dadeb3Compareoli-obk
commented
May 26, 2020
lgtm. Stabilizing these will be blocked on stabilizing floating point types in const fn. |
ecstatic-morse
commented
Jun 11, 2020
Going through old PRs today. Is there still desire for this? I'll close if not. |
RalfJung
commented
Jun 12, 2020
Sorry, I had no idea this was waiting for my review. @Elinvynia a ping would have helped. :) |
Elinvynia
commented
Jun 12, 2020
Unfortunately, we aren't allowed to ping team members. |
RalfJung
commented
Jun 12, 2020
@bors r=RalfJung,oli-obk |
bors
commented
Jun 12, 2020
📌 Commit 9dadeb3 has been approved by |
… r=RalfJung,oli-obk Const floating point bitcasts and classification Makes the `f32` and `f64` methods described in rust-lang#72447 and rust-lang#72505 unstably const. r? @RalfJung
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
RalfJung
commented
Aug 7, 2020
@ecstatic-morse sorry for the long silence. Could you rebase and address my latest review? Then I think this can land. |
426ece4 to
d9a5637Compared9a5637 to
b65daa7Compareecstatic-morse
commented
Aug 22, 2020
This is ready to go now. I don't see a path to stabilization for these until we resolve the questions around determinism that are blocking floating point operations inside |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
RalfJung
commented
Aug 23, 2020
r=me with the test attributes fixed. |
Co-authored-by: Ralf Jung <post@ralfj.de>
RalfJung
commented
Aug 23, 2020
@bors r+ |
bors
commented
Aug 23, 2020
📌 Commit 130766c has been approved by |
bors
commented
Aug 23, 2020
bors
commented
Aug 23, 2020
☀️ Test successful - checks-actions, checks-azure |
Make the following methods of `Duration` unstable const under `duration_const_2`: - `from_secs_f64` - `from_secs_f32` - `mul_f64` - `mul_f32` - `div_f64` - `div_f32` This results in all methods of `Duration` being (unstable) const. Also adds tests for these methods in a const context, moved the test to `library` as part of rust-lang#76268. Possible because of rust-lang#72449, which made the relevant `f32` and `f64` methods const. Tracking issue: rust-lang#72440
…orse Make all methods of `Duration` unstably const Make the following methods of `Duration` unstable const under `duration_const_2`: - `from_secs_f64` - `from_secs_f32` - `mul_f64` - `mul_f32` - `div_f64` - `div_f32` This results in all methods of `Duration` being (unstable) const. Moved the tests to `library` as part of rust-lang#76268. Possible because of rust-lang#72449, which made the relevant `f32` and `f64` methods const. Tracking issue: rust-lang#72440 r? @ecstatic-morse
…orse Make all methods of `Duration` unstably const Make the following methods of `Duration` unstable const under `duration_const_2`: - `from_secs_f64` - `from_secs_f32` - `mul_f64` - `mul_f32` - `div_f64` - `div_f32` This results in all methods of `Duration` being (unstable) const. Moved the tests to `library` as part of rust-lang#76268. Possible because of rust-lang#72449, which made the relevant `f32` and `f64` methods const. Tracking issue: rust-lang#72440 r? @ecstatic-morse
…orse Make all methods of `Duration` unstably const Make the following methods of `Duration` unstable const under `duration_const_2`: - `from_secs_f64` - `from_secs_f32` - `mul_f64` - `mul_f32` - `div_f64` - `div_f32` This results in all methods of `Duration` being (unstable) const. Moved the tests to `library` as part of rust-lang#76268. Possible because of rust-lang#72449, which made the relevant `f32` and `f64` methods const. Tracking issue: rust-lang#72440 r? @ecstatic-morse
…orse Make all methods of `Duration` unstably const Make the following methods of `Duration` unstable const under `duration_const_2`: - `from_secs_f64` - `from_secs_f32` - `mul_f64` - `mul_f32` - `div_f64` - `div_f32` This results in all methods of `Duration` being (unstable) const. Moved the tests to `library` as part of rust-lang#76268. Possible because of rust-lang#72449, which made the relevant `f32` and `f64` methods const. Tracking issue: rust-lang#72440 r? @ecstatic-morse
…orse Make all methods of `Duration` unstably const Make the following methods of `Duration` unstable const under `duration_const_2`: - `from_secs_f64` - `from_secs_f32` - `mul_f64` - `mul_f32` - `div_f64` - `div_f32` This results in all methods of `Duration` being (unstable) const. Moved the tests to `library` as part of rust-lang#76268. Possible because of rust-lang#72449, which made the relevant `f32` and `f64` methods const. Tracking issue: rust-lang#72440 r? @ecstatic-morse
Makes the
f32andf64methods described in #72447 and #72505 unstably const.r? @RalfJung