-
Couldn't load subscription status.
- Fork 13.9k
Organize intrinsics promotion checks #66275
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
Conversation
src/test/ui/consts/const-eval/const-eval-intrinsic-promotion.rs Outdated Show resolved Hide resolved
bb353a0 to 22bef04 Compare This comment has been minimized.
This comment has been minimized.
22bef04 to 9d30d2f Compare This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
9d30d2f to 0bde1ad Compare This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
src/test/ui/consts/const-extern-fn/const-extern-fn-call-extern-fn.rs Outdated Show resolved Hide resolved
| The code LGTM, but please add some more comments as indicated in my comments above. |
ba051bc to 0e30674 Compare
Certainly not in this PR, this just fixes our existing checks.
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 |
85f8d4c to e2bbf06 Compare | rebased and added FIXME @bors r=RalfJung |
| 📌 Commit 5cef094 has been approved by |
…r=RalfJung Organize intrinsics promotion checks cc @vertexclique supersedes #61835 r? @RalfJung
| ☀️ Test successful - checks-azure |
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).
| Ah dang, we finally got Miri in shape for the next nightly... |
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.
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.
cc @vertexclique
supersedes #61835
r? @RalfJung