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

Remove promoted intrinsics caller type checking from const context #61493

Closed

Conversation

vertexclique
Copy link
Member

@vertexclique vertexclique commented Jun 3, 2019

Removes promoting intrinsics that checks the caller type in const context. PR linked to issue defined in #61399 (comment)

@rust-highfive
Copy link
Collaborator

r? @pnkfelix

(rust_highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jun 3, 2019
@vertexclique
Copy link
Member Author

r? @oli-obk

@rust-highfive rust-highfive assigned oli-obk and unassigned pnkfelix Jun 3, 2019
@RalfJung
Copy link
Member

RalfJung commented Jun 3, 2019

So this does not fix the bug that we allow calling intrinsics in const fn, right?

@vertexclique
Copy link
Member Author

vertexclique commented Jun 3, 2019

So this does not fix the bug that we allow calling intrinsics in const fn, right?

Removed part will be added to

// no need to check feature gates, intrinsics are only callable
// from the libstd or with forever unstable feature gates
under visit_terminator_kind. That will fix the bug seems like.

=> return true,

_ => {}
}
Copy link
Member

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.

@Dylan-DPC-zz
Copy link

ping from triage @eddyb @vertexclique @oli-obk any updates?

@vertexclique
Copy link
Member Author

This can be closed, we are not going to use this. We have different PR to solve this one.

@RalfJung
Copy link
Member

RalfJung commented Jul 2, 2019

@vertexclique which PR is that? Is it #61835 ?

@vertexclique
Copy link
Member Author

Yes, it's that. It will be here: #61835

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants