Enable const casting for f16 and f128 by tgross35 · Pull Request #127032 · rust-lang/rust (original) (raw)

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 andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Conversation8 Commits1 Checks6 Files changed

Conversation

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters

[ Show hidden characters]({{ revealButtonHref }})

tgross35

I have an open PR to the Miri repo adding tests for this behavior rust-lang/miri#3688, but that unfortunately hits the ICE path here. The changes seem reasonably low risk that it might be okay to merge separately from the tests, and I tested the result locally against an older version of rust-lang/miri#3688.

Cc @RalfJung

@tgross35

@rustbot

r? @compiler-errors

rustbot has assigned @compiler-errors.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot

Some changes occurred to the CTFE / Miri engine

cc @rust-lang/miri

@rustbot rustbot added S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

T-compiler

Relevant to the compiler team, which will review and decide on the PR/issue.

labels

Jun 27, 2024

oli-obk

@oli-obk

bors r plus

@bors

📌 Commit 648cb16 has been approved by oli-obk

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

and removed S-waiting-on-review

Status: Awaiting review from the assignee but also interested parties.

labels

Jun 27, 2024

@tgross35

@oli-obk

Technically you should be able to test this from const eval now, right?

@oli-obk

@tgross35

Yeah I think this unblocks the only exposed codepath, the remaining changes in miri are just intrinsics that we don't have library functions for. Miri just has a good structure for casting tests so it seems easiest to make use of what is there

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request

Jun 27, 2024

@GuillaumeGomez

… r=oli-obk

Enable const casting for f16 and f128

I have an open PR to the Miri repo adding tests for this behavior rust-lang/miri#3688, but that unfortunately hits the ICE path here. The changes seem reasonably low risk that it might be okay to merge separately from the tests, and I tested the result locally against an older version of rust-lang/miri#3688.

Cc @RalfJung

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jun 27, 2024

@bors

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request

Jun 27, 2024

@matthiaskrgr

… r=oli-obk

Enable const casting for f16 and f128

I have an open PR to the Miri repo adding tests for this behavior rust-lang/miri#3688, but that unfortunately hits the ICE path here. The changes seem reasonably low risk that it might be okay to merge separately from the tests, and I tested the result locally against an older version of rust-lang/miri#3688.

Cc @RalfJung

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jun 27, 2024

@bors

jhpratt added a commit to jhpratt/rust that referenced this pull request

Jun 28, 2024

@jhpratt

… r=oli-obk

Enable const casting for f16 and f128

I have an open PR to the Miri repo adding tests for this behavior rust-lang/miri#3688, but that unfortunately hits the ICE path here. The changes seem reasonably low risk that it might be okay to merge separately from the tests, and I tested the result locally against an older version of rust-lang/miri#3688.

Cc @RalfJung

matthiaskrgr added a commit to matthiaskrgr/rust that referenced this pull request

Jun 28, 2024

@matthiaskrgr

… r=oli-obk

Enable const casting for f16 and f128

I have an open PR to the Miri repo adding tests for this behavior rust-lang/miri#3688, but that unfortunately hits the ICE path here. The changes seem reasonably low risk that it might be okay to merge separately from the tests, and I tested the result locally against an older version of rust-lang/miri#3688.

Cc @RalfJung

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jun 28, 2024

@bors

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jun 28, 2024

@bors

GuillaumeGomez added a commit to GuillaumeGomez/rust that referenced this pull request

Jun 28, 2024

@GuillaumeGomez

… r=oli-obk

Enable const casting for f16 and f128

I have an open PR to the Miri repo adding tests for this behavior rust-lang/miri#3688, but that unfortunately hits the ICE path here. The changes seem reasonably low risk that it might be okay to merge separately from the tests, and I tested the result locally against an older version of rust-lang/miri#3688.

Cc @RalfJung

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jun 28, 2024

@bors

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jun 28, 2024

@bors

…llaumeGomez

Rollup of 10 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jun 28, 2024

@bors

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jun 28, 2024

@bors

…iaskrgr

Rollup of 11 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jun 29, 2024

@bors

…iaskrgr

Rollup of 11 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

bors added a commit to rust-lang-ci/rust that referenced this pull request

Jun 29, 2024

@bors

…iaskrgr

Rollup of 11 pull requests

Successful merges:

r? @ghost @rustbot modify labels: rollup

rust-timer added a commit to rust-lang-ci/rust that referenced this pull request

Jun 29, 2024

@rust-timer

Rollup merge of rust-lang#127032 - tgross35:f16-f128-const-eval-cast, r=oli-obk

Enable const casting for f16 and f128

I have an open PR to the Miri repo adding tests for this behavior rust-lang/miri#3688, but that unfortunately hits the ICE path here. The changes seem reasonably low risk that it might be okay to merge separately from the tests, and I tested the result locally against an older version of rust-lang/miri#3688.

Cc @RalfJung

@tgross35 tgross35 deleted the f16-f128-const-eval-cast branch

June 29, 2024 07:17

Labels

S-waiting-on-bors

Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

T-compiler

Relevant to the compiler team, which will review and decide on the PR/issue.