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 qualify_min_const_fn pass #68940

Closed

Conversation

ecstatic-morse
Copy link
Contributor

Having two MIR const-checking passes is confusing. This PR unifies qualify_min_const_fn and check_consts.

All checks from qualify_min_const_fn that were not already implemented in check_consts have been assigned a structured error. Unfortunately, this will require a lot of changes to expected test output. This is because qualify_min_const_fn bailed out after the first error was found, while check_consts reports all errors in the function.

cc @rust-lang/wg-const-eval

@rust-highfive
Copy link
Collaborator

r? @eddyb

(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 Feb 8, 2020
@ecstatic-morse
Copy link
Contributor Author

There's also some additional errors being reported in some UI tests that are unrelated to const-eval. I'll need to figure out what's going on here.

@bors
Copy link
Contributor

bors commented Feb 11, 2020

☔ The latest upstream changes (presumably #68929) made this pull request unmergeable. Please resolve the merge conflicts.

@JohnCSimon JohnCSimon 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 Feb 16, 2020
Centril added a commit to Centril/rust that referenced this pull request Mar 15, 2020
…-gate, r=oli-obk

Return feature gate as a `Symbol`

A minor refactoring that will be needed for rust-lang#68940. That PR is blocked on me changing the error comments in a whole lot of UI tests.

r? @oli-obk
@Dylan-DPC-zz
Copy link

@ecstatic-morse any updates?

@Dylan-DPC-zz Dylan-DPC-zz 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Apr 3, 2020
@joelpalmer joelpalmer 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-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Apr 14, 2020
@oli-obk
Copy link
Contributor

oli-obk commented Jun 6, 2020

r? @oli-obk

totally forgot this exists

@rust-highfive rust-highfive assigned oli-obk and unassigned eddyb Jun 6, 2020
@oli-obk
Copy link
Contributor

oli-obk commented Jun 6, 2020

let's wait for const_if_match first, this will get rid of a bunch of "unrelated" changes in this PR.

@ecstatic-morse
Copy link
Contributor Author

ecstatic-morse commented Jun 11, 2020

Closing this, but I think I'll get back to it in the near future.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

9 participants