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

Make const-qualification look at more const fns #67055

Merged
merged 4 commits into from
Dec 6, 2019

Conversation

lqd
Copy link
Member

@lqd lqd commented Dec 5, 2019

As explained in a lot more detail in #67053 this makes const-qualification not ignore the unstable const fns in libcore.

r? @oli-obk cc @ecstatic-morse

(Still a bit unsure about the cfgs here, for bootstrapping, does that seem correct ?)

Fixes #67053.

the unstables ones in libcore, with the unstable feature disabled, were not checked
So that we can bootstrap successfully
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 5, 2019
@oli-obk
Copy link
Contributor

oli-obk commented Dec 5, 2019

Lgtm with the comment adjusted to make it clear that the body will otherwise not be checked correctly

@lqd
Copy link
Member Author

lqd commented Dec 5, 2019

the comment is updated, and CI passed successfully before that, so

@bors r=oli-obk

@bors
Copy link
Contributor

bors commented Dec 5, 2019

📌 Commit 2d83b76 has been approved by oli-obk

@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 Dec 5, 2019
Centril added a commit to Centril/rust that referenced this pull request Dec 5, 2019
Make const-qualification look at more `const fn`s

As explained in a lot more detail in rust-lang#67053 this makes const-qualification not ignore the unstable const fns in libcore.

r? @oli-obk cc @ecstatic-morse

(Still a bit unsure about the `cfg`s here, for bootstrapping, does that seem correct ?)

Fixes rust-lang#67053.
bors added a commit that referenced this pull request Dec 5, 2019
Rollup of 9 pull requests

Successful merges:

 - #66710 (weak-into-raw: Clarify some details in Safety)
 - #66863 (Check break target availability when checking breaks with values)
 - #67002 (Fix documentation of pattern for str::matches())
 - #67005 (capitalize Rust)
 - #67010 (Accurately portray raw identifiers in error messages)
 - #67011 (Include a span in more `expected...found` notes)
 - #67044 (E0023: handle expected != tuple pattern type)
 - #67045 (rustc_parser: cleanup imports)
 - #67055 (Make const-qualification look at more `const fn`s)

Failed merges:

r? @ghost
@bors bors merged commit 2d83b76 into rust-lang:master Dec 6, 2019
@lqd lqd deleted the const_qualif branch December 6, 2019 10:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

unstable const fns in libcore can be ignored by const-qualification
4 participants