Allow self in const generics - #157949
Open
bb1yd wants to merge 1 commit into
Open
Conversation
fmease
reviewed
Jun 16, 2026
This comment has been minimized.
This comment has been minimized.
bb1yd
force-pushed
the
allow-self-in-const-generics
branch
from
June 25, 2026 16:00
f087424 to
4b4635a
Compare
This comment has been minimized.
This comment has been minimized.
bb1yd
force-pushed
the
allow-self-in-const-generics
branch
2 times, most recently
from
June 26, 2026 07:29
1e306d8 to
d655af4
Compare
This comment has been minimized.
This comment has been minimized.
bb1yd
force-pushed
the
allow-self-in-const-generics
branch
from
June 26, 2026 09:50
d655af4 to
c17a818
Compare
Contributor
Author
|
@rustbot ready |
bb1yd
marked this pull request as ready for review
June 26, 2026 11:02
Member
|
sry for the long wait, thanks for being patient :3 @rustbot author |
Collaborator
|
Reminder, once the PR becomes ready for a review, use |
This comment has been minimized.
This comment has been minimized.
bb1yd
force-pushed
the
allow-self-in-const-generics
branch
from
July 10, 2026 06:45
c17a818 to
8ee2f3c
Compare
This comment has been minimized.
This comment has been minimized.
bb1yd
force-pushed
the
allow-self-in-const-generics
branch
3 times, most recently
from
July 10, 2026 07:34
d22c912 to
e993a99
Compare
This comment has been minimized.
This comment has been minimized.
bb1yd
force-pushed
the
allow-self-in-const-generics
branch
from
July 10, 2026 07:56
e993a99 to
83f5438
Compare
This comment has been minimized.
This comment has been minimized.
bb1yd
force-pushed
the
allow-self-in-const-generics
branch
2 times, most recently
from
July 11, 2026 12:47
16c2d21 to
08e8c62
Compare
bb1yd
force-pushed
the
allow-self-in-const-generics
branch
from
July 11, 2026 13:01
08e8c62 to
b6b6133
Compare
Contributor
Author
|
Thanks for your guidance! I move the check to error: cannot use `Self` in const parameter type
--> $DIR/ban-self-when-feature-not-enabled.rs:8:21
|
LL | fn foo<const N: Self>() {}
| ^^^^
|
= help: add `#![feature(min_adt_const_params)]` to the crate attributes to enable `Self` as a const parameter type@rustbot ready |
This comment has been minimized.
This comment has been minimized.
bb1yd
force-pushed
the
allow-self-in-const-generics
branch
from
July 13, 2026 05:34
b6b6133 to
8faffb3
Compare
Collaborator
|
This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed. Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers. |
BoxyUwU
reviewed
Jul 22, 2026
BoxyUwU
reviewed
Jul 22, 2026
Member
|
sorry again for the long wait 😅 please feel free to message me on zulip if I don't get to your PR within a week |
7 tasks
bb1yd
force-pushed
the
allow-self-in-const-generics
branch
from
July 31, 2026 08:51
8faffb3 to
a8d9636
Compare
Contributor
Author
|
maybe @rustbot ready |
Member
|
@bors r+ tysm for working on this, this is great :3 |
Contributor
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Aug 21, 2026
…, r=BoxyUwU Allow self in const generics Fixes rust-lang#149203
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Aug 21, 2026
…, r=BoxyUwU Allow self in const generics Fixes rust-lang#149203
JonathanBrouwer
added a commit
to JonathanBrouwer/rust
that referenced
this pull request
Aug 21, 2026
…, r=BoxyUwU Allow self in const generics Fixes rust-lang#149203
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
View all comments
Fixes #149203