-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
update const generics feature gates #88369
Conversation
Some changes occurred in src/tools/clippy. cc @rust-lang/clippy |
r? @estebank (rust-highfive has picked a reviewer for you, use r? to override) |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
☔ The latest upstream changes (presumably #87280) made this pull request unmergeable. Please resolve the merge conflicts. |
This comment has been minimized.
This comment has been minimized.
@bors r+ p=1 (bitrotty) |
📌 Commit 18abdf4c3a902d0d9c86c4fa3cb78ecbd3534b91 has been approved by |
@bors r- r=me |
Something looks really wrong with the Clippy changes. There are many Also this PR shows |
During this PR i've removed all The reason for the large diff is that there were a bunch of Going to look through all changed files to check if there is anything else that's suspicious. |
This comment has been minimized.
This comment has been minimized.
Alright, I did remove stderr files of optionally ignored tests, so I added these back in. The remaining stderr files I've removed should all be from revisions which no longer exist. These missing stderr files would trigger a CI error when testing on the relevant platform, so it would have been fine to try and merge it as is. |
@bors r+ p=1 (bitrotty) |
📌 Commit 68adb08aed0d319e71d55172288061ebdaa43343 has been approved by |
Clippy changes LGTM now 👍 Thanks! |
This comment has been minimized.
This comment has been minimized.
📌 Commit 87e7817 has been approved by |
⌛ Testing commit 87e7817 with merge 1f465c603f864dbf5951a154e8eb9d1b66f40d8e... |
💔 Test failed - checks-actions |
this looks spurious again? not going to retry this PR right now as the bors queue seems to be quite full and I am not certain this is spurious |
x86_64-apple failed after 2 hours without logs @bors retry |
☀️ Test successful - checks-actions |
tl;dr: split const generics into three features:
adt_const_params
,const_generics_defaults
andgeneric_const_exprs
continuing the work of @BoxyUwU in #88324, this PR
feature(const_evaluatable_checked)
tofeature(generic_const_exprs)
which now doesn't need any other feature gate to work. Previouslyfeature(const_evaluatable_checked)
was only useful in combination withfeature(const_generics)
.feature(lazy_normalization_consts)
. This feature only supplied the parents generics to anonymous constants, which is pretty useless as generic anon consts are only allowed withfeature(generic_const_exprs)
anyways.feature(const_generics)
intofeature(adt_const_params)
. Asfeature(const_generics)
is now mostly useless withoutfeature(generic_const_exprs)
we also remove that feature flag.*.stderr
files.I not also remove the ordering restriction for const and type parameters if any of the three const generics features is active.
This ordering restriction feels like the only "real" use of the current
feature(const_generics)
right now so this change isn't a perfect solution, but as I intend to stabilize the ordering - andfeature(const_generics_defaults)
- in the very near future, I think this is acceptable for now.cc @rust-lang/project-const-generics about the new feature names and this change in general.
I don't think we need any external approval for this change but I do intend to publish an update to the const generics tracking issue the day this PR lands, so I don't want this merged yet.
Apologies to whoever ends up reviewing this PR 😅 ❤️
r? rust-lang/project-const-generics