-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Remove promoted intrinsics caller type checking from const context #61493
Remove promoted intrinsics caller type checking from const context #61493
Conversation
r? @pnkfelix (rust_highfive has picked a reviewer for you, use r? to override) |
r? @oli-obk |
So this does not fix the bug that we allow calling intrinsics in |
Removed part will be added to rust/src/librustc_mir/transform/qualify_consts.rs Lines 1228 to 1230 in 7096ff0
visit_terminator_kind . That will fix the bug seems like.
|
=> return true, | ||
|
||
_ => {} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@oli-obk We still need a PR that fixes this code and adds a test.
ping from triage @eddyb @vertexclique @oli-obk any updates? |
This can be closed, we are not going to use this. We have different PR to solve this one. |
@vertexclique which PR is that? Is it #61835 ? |
Yes, it's that. It will be here: #61835 |
Removes promoting intrinsics that checks the caller type in
const context
. PR linked to issue defined in #61399 (comment)