-
-
Notifications
You must be signed in to change notification settings - Fork 14.3k
MGCA: Const constructors support #150704
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
MGCA: Const constructors support #150704
Conversation
|
HIR ty lowering was modified cc @fmease This PR changes a file inside |
|
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome! Can you add a test for const constructors using generic parameters, e.g. Option::None::<T> or Struct::<T>
c61bfa7 to
9a37a40
Compare
This comment has been minimized.
This comment has been minimized.
cf333f5 to
e4c0415
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
r=me once #150640 lands
|
Did you really mean to link to issue #105952 in the PR description (esp. after keyword Fixes)? That issue was fixed 3 years ago & isn't related to the changes made in this PR. |
|
☔ The latest upstream changes made this pull request unmergeable. Please resolve the merge conflicts. |
|
☔ The latest upstream changes (presumably #150640) made this pull request unmergeable. Please resolve the merge conflicts. |
Yes, because there were very similar test case in crashes with link to this issue which still ICEs, and this ICE was fixed by that PR Removed link from description in case that will cause any confusion |
e4c0415 to
fb12125
Compare
|
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. |
This comment has been minimized.
This comment has been minimized.
fb12125 to
5f1e7a2
Compare
5f1e7a2 to
6f0fe33
Compare
abd5747 to
bfd4c97
Compare
bfd4c97 to
d32f1c6
Compare
|
@bors r+ rollup cool! |
MGCA: Const constructors support part of rust-lang#132980 fixes rust-lang#132985 fixes rust-lang#136138 fixes rust-lang#139596 r? BoxyUwU
Rollup of 4 pull requests Successful merges: - #150026 (Fix macro_metavar_expr_concat behavior with nested repetitions) - #150521 (resolve: Rename "name bindings" to "name declarations") - #150704 (MGCA: Const constructors support) - #150728 (Cleanup some ui tests for const-traits) r? `@ghost` `@rustbot` modify labels: rollup
Rollup of 4 pull requests Successful merges: - #150026 (Fix macro_metavar_expr_concat behavior with nested repetitions) - #150521 (resolve: Rename "name bindings" to "name declarations") - #150704 (MGCA: Const constructors support) - #150728 (Cleanup some ui tests for const-traits) r? `@ghost` `@rustbot` modify labels: rollup
part of #132980
fixes #132985
fixes #136138
fixes #139596
r? BoxyUwU