Skip to content

Add regression test for #141738#152402

Merged
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
AprilNEA:test/issue-141738-struct-ctor-array-len
Feb 15, 2026
Merged

Add regression test for #141738#152402
rust-bors[bot] merged 1 commit intorust-lang:mainfrom
AprilNEA:test/issue-141738-struct-ctor-array-len

Conversation

@AprilNEA
Copy link
Contributor

@AprilNEA AprilNEA commented Feb 9, 2026

Closes #141738

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue. labels Feb 9, 2026
@rustbot
Copy link
Collaborator

rustbot commented Feb 9, 2026

r? @BoxyUwU

rustbot has assigned @BoxyUwU.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

Why was this reviewer chosen?

The reviewer was selected based on:

  • Owners of files modified in this PR: compiler
  • compiler expanded to 21 candidates
  • Random selection from 13 candidates

@rustbot

This comment has been minimized.

@AprilNEA AprilNEA force-pushed the test/issue-141738-struct-ctor-array-len branch from 9cee865 to 3d0ca2c Compare February 9, 2026 18:46
@rust-log-analyzer

This comment has been minimized.

2 similar comments
@rust-log-analyzer

This comment has been minimized.

@rust-log-analyzer

This comment has been minimized.

@AprilNEA
Copy link
Contributor Author

AprilNEA commented Feb 9, 2026

@bors retry

@rust-bors
Copy link
Contributor

rust-bors bot commented Feb 9, 2026

@AprilNEA: 🔑 Insufficient privileges: not in review users

@BoxyUwU BoxyUwU closed this Feb 10, 2026
@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 10, 2026
@BoxyUwU BoxyUwU reopened this Feb 10, 2026
@rustbot rustbot added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 10, 2026
@BoxyUwU
Copy link
Member

BoxyUwU commented Feb 14, 2026

@rustbot author

@rustbot rustbot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 14, 2026
@rustbot
Copy link
Collaborator

rustbot commented Feb 14, 2026

Reminder, once the PR becomes ready for a review, use @rustbot ready.

@rustbot rustbot added the S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. label Feb 14, 2026
…mGCA

Using a struct constructor (DefKind::Ctor(Struct, Const)) as an array
repeat count with `#![feature(min_generic_const_args)]` used to trigger
an ICE in const alias normalization. Add a regression test to ensure
the compiler produces a proper type error instead of panicking.
@AprilNEA AprilNEA force-pushed the test/issue-141738-struct-ctor-array-len branch from d5ef607 to 8d96e26 Compare February 14, 2026 19:45
@BoxyUwU
Copy link
Member

BoxyUwU commented Feb 14, 2026

@bors rollup
@bors delegate+

r=me if CI passes

@rust-bors
Copy link
Contributor

rust-bors bot commented Feb 14, 2026

✌️ @AprilNEA, you can now approve this pull request!

If @BoxyUwU told you to "r=me" after making some further change, then please make that change and post @bors r=BoxyUwU.

@AprilNEA
Copy link
Contributor Author

@rustbot ready

@rustbot rustbot added S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. and removed S-waiting-on-author Status: This is awaiting some action (such as code changes or more information) from the author. labels Feb 15, 2026
@AprilNEA
Copy link
Contributor Author

@bors r=BoxyUwU

@rust-bors
Copy link
Contributor

rust-bors bot commented Feb 15, 2026

📌 Commit 8d96e26 has been approved by BoxyUwU

It is now in the queue for this repository.

@rust-bors rust-bors bot added the S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. label Feb 15, 2026
@rust-bors rust-bors bot removed the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Feb 15, 2026
rust-bors bot pushed a commit that referenced this pull request Feb 15, 2026
Rollup of 9 pull requests

Successful merges:

 - #150424 (diagnostics: add note when param-env shadows global impl)
 - #152132 (implement `carryless_mul`)
 - #152508 (Improve write! and writeln! error when called without destination)
 - #152534 (Test(lib/win/net): Skip UDS tests when under Win7)
 - #152578 (ci: Lock cross toolchain version and update docs)
 - #152188 (Include `library/stdarch` for `CURRENT_RUSTC_VERSION` updates)
 - #152402 (Add regression test for #141738)
 - #152472 (unwind/wasm: fix compile error by wrapping wasm_throw in unsafe block)
 - #152610 (Exchange js_lint message between bless and non-bless)
@rust-bors rust-bors bot merged commit 9369cff into rust-lang:main Feb 15, 2026
11 checks passed
@rustbot rustbot added this to the 1.95.0 milestone Feb 15, 2026
rust-timer added a commit that referenced this pull request Feb 15, 2026
Rollup merge of #152402 - AprilNEA:test/issue-141738-struct-ctor-array-len, r=BoxyUwU

Add regression test for #141738

Closes #141738

- Add a regression test for #141738
- Using a struct constructor (`DefKind::Ctor(Struct, Const)`) as an array repeat count with `#![feature(min_generic_const_args)]` used to ICE in const alias normalization
- Fixed by #150704, which added const constructor support for mGCA. This test covers the **error path** (struct ctor where `usize` is expected), which was not covered by the tests in #150704
github-actions bot pushed a commit to rust-lang/stdarch that referenced this pull request Feb 16, 2026
Rollup of 9 pull requests

Successful merges:

 - rust-lang/rust#150424 (diagnostics: add note when param-env shadows global impl)
 - rust-lang/rust#152132 (implement `carryless_mul`)
 - rust-lang/rust#152508 (Improve write! and writeln! error when called without destination)
 - rust-lang/rust#152534 (Test(lib/win/net): Skip UDS tests when under Win7)
 - rust-lang/rust#152578 (ci: Lock cross toolchain version and update docs)
 - rust-lang/rust#152188 (Include `library/stdarch` for `CURRENT_RUSTC_VERSION` updates)
 - rust-lang/rust#152402 (Add regression test for rust-lang/rust#141738)
 - rust-lang/rust#152472 (unwind/wasm: fix compile error by wrapping wasm_throw in unsafe block)
 - rust-lang/rust#152610 (Exchange js_lint message between bless and non-bless)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. T-compiler Relevant to the compiler team, which will review and decide on the PR/issue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ICE:unexpected DefKind for const alias to resolve to: Ctor(Struct, Const)

4 participants