Skip to content
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

Organize intrinsics promotion checks #66275

Merged
merged 8 commits into from
Dec 4, 2019

Conversation

oli-obk
Copy link
Contributor

@oli-obk oli-obk commented Nov 10, 2019

cc @vertexclique

supersedes #61835

r? @RalfJung

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Nov 10, 2019
@oli-obk oli-obk force-pushed the organize-intrinsics-promotion-checks branch from bb353a0 to 22bef04 Compare November 15, 2019 20:19
@bors

This comment has been minimized.

@RalfJung RalfJung 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 Nov 19, 2019
@oli-obk oli-obk force-pushed the organize-intrinsics-promotion-checks branch from 22bef04 to 9d30d2f Compare November 21, 2019 14:53
@rust-highfive

This comment has been minimized.

@bors

This comment has been minimized.

@oli-obk oli-obk force-pushed the organize-intrinsics-promotion-checks branch from 9d30d2f to 0bde1ad Compare November 26, 2019 09:03
@rust-highfive

This comment has been minimized.

@bors

This comment has been minimized.

@RalfJung
Copy link
Member

The code LGTM, but please add some more comments as indicated in my comments above.

@oli-obk oli-obk force-pushed the organize-intrinsics-promotion-checks branch from ba051bc to 0e30674 Compare November 28, 2019 14:41
@RalfJung
Copy link
Member

RalfJung commented Dec 3, 2019

Are these candidates for const intrinsics?

Certainly not in this PR, this just fixes our existing checks.

Do we need miri-engine implementations of them?

They are both already implemented in Miri, so this is just a matter of moving that implementation into rustc. The main issue here is that these are unsafe, and we are currently not yet willing to provide unsafe operations in const fn as there are some open design questions there.

@oli-obk oli-obk force-pushed the organize-intrinsics-promotion-checks branch from 85f8d4c to e2bbf06 Compare December 4, 2019 00:50
@oli-obk
Copy link
Contributor Author

oli-obk commented Dec 4, 2019

rebased and added FIXME

@bors r=RalfJung

@bors
Copy link
Contributor

bors commented Dec 4, 2019

📌 Commit 5cef094 has been approved by RalfJung

@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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Dec 4, 2019
@bors
Copy link
Contributor

bors commented Dec 4, 2019

⌛ Testing commit 5cef094 with merge 7fa0465...

bors added a commit that referenced this pull request Dec 4, 2019
…r=RalfJung

Organize intrinsics promotion checks

cc @vertexclique

supersedes #61835

r? @RalfJung
@bors
Copy link
Contributor

bors commented Dec 4, 2019

☀️ Test successful - checks-azure
Approved by: RalfJung
Pushing 7fa0465 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Dec 4, 2019
@bors bors merged commit 5cef094 into rust-lang:master Dec 4, 2019
@rust-highfive
Copy link
Collaborator

📣 Toolstate changed by #66275!

Tested on commit 7fa0465.
Direct link to PR: #66275

💔 miri on windows: test-pass → test-fail (cc @oli-obk @eddyb @RalfJung, @rust-lang/infra).
💔 miri on linux: test-pass → test-fail (cc @oli-obk @eddyb @RalfJung, @rust-lang/infra).

rust-highfive added a commit to rust-lang-nursery/rust-toolstate that referenced this pull request Dec 4, 2019
Tested on commit rust-lang/rust@7fa0465.
Direct link to PR: <rust-lang/rust#66275>

💔 miri on windows: test-pass → test-fail (cc @oli-obk @eddyb @RalfJung, @rust-lang/infra).
💔 miri on linux: test-pass → test-fail (cc @oli-obk @eddyb @RalfJung, @rust-lang/infra).
@RalfJung
Copy link
Member

RalfJung commented Dec 4, 2019

Ah dang, we finally got Miri in shape for the next nightly...

9999years added a commit to 9999years/rust that referenced this pull request Dec 19, 2019
Most of these have to be deleted; the various power_of_two functions use
`intrinsics::ctlz_nonzero` internally, so they can't be made const
before rust-lang#66275 is merged.
9999years added a commit to 9999years/rust that referenced this pull request Dec 19, 2019
Most of the tests had to be deleted; the various power_of_two functions
use `intrinsics::ctlz_nonzero` internally, so they can't be made const
before rust-lang#66275 is merged.
@oli-obk oli-obk deleted the organize-intrinsics-promotion-checks branch March 16, 2021 12:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merged-by-bors This PR was explicitly merged by bors. S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

9 participants