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

only check cg defaults wf once instantiated #86987

Merged
merged 1 commit into from
Jul 10, 2021

Conversation

lcnr
Copy link
Contributor

@lcnr lcnr commented Jul 8, 2021

the previous fixmes here didn't make too much sense as I didn't yet fully understand the code further below.
That code only runs if the predicates using our generic param default are fully concrete after substituting our default, which never happens if our default is generic.

r? @oli-obk @BoxyUwU

@lcnr lcnr added F-generic_const_exprs `#![feature(generic_const_exprs)]` F-const_generics_defaults `#![feature(const_generics_defaults)]` labels Jul 8, 2021
@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Jul 8, 2021
@oli-obk
Copy link
Contributor

oli-obk commented Jul 9, 2021

Oh wow, I just found out we have a big test suite for cg defaults, nice!

@bors r+

@bors
Copy link
Contributor

bors commented Jul 9, 2021

📌 Commit 4a53b11 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 Jul 9, 2021
@bors
Copy link
Contributor

bors commented Jul 10, 2021

⌛ Testing commit 4a53b11 with merge a84d1b2...

@bors
Copy link
Contributor

bors commented Jul 10, 2021

☀️ Test successful - checks-actions
Approved by: oli-obk
Pushing a84d1b2 to master...

@bors bors added the merged-by-bors This PR was explicitly merged by bors. label Jul 10, 2021
@bors bors merged commit a84d1b2 into rust-lang:master Jul 10, 2021
@rustbot rustbot added this to the 1.55.0 milestone Jul 10, 2021
@lcnr lcnr deleted the const-default-eval-bound branch July 12, 2021 18:59
@lcnr lcnr added the A-const-generics Area: const generics (parameters and arguments) label Aug 26, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-const-generics Area: const generics (parameters and arguments) F-const_generics_defaults `#![feature(const_generics_defaults)]` F-generic_const_exprs `#![feature(generic_const_exprs)]` merged-by-bors This PR was explicitly merged by bors. 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.

5 participants