Skip to content

Add regression test for mono item collection ICE with generic_const_exprs#154547

Open
jeanibarz wants to merge 1 commit intorust-lang:mainfrom
jeanibarz:fix/add-test-149035
Open

Add regression test for mono item collection ICE with generic_const_exprs#154547
jeanibarz wants to merge 1 commit intorust-lang:mainfrom
jeanibarz:fix/add-test-149035

Conversation

@jeanibarz
Copy link
Copy Markdown

@jeanibarz jeanibarz commented Mar 29, 2026

Regression test for #149035.

The ICE in mono item collection with -Clink-dead-code=true was fixed by #152129 but didn't get a test. Adapted the reproducer to use type const since const handling changed after the issue was filed.

Closes #149035

@rustbot

This comment was marked as resolved.

@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 Mar 29, 2026
@rustbot

This comment has been minimized.

@jeanibarz jeanibarz force-pushed the fix/add-test-149035 branch from 16a45fb to 5c589b8 Compare March 29, 2026 12:13
@rustbot

This comment has been minimized.

@jeanibarz jeanibarz force-pushed the fix/add-test-149035 branch from 5c589b8 to 3ef77ce Compare March 29, 2026 12:14
@jeanibarz
Copy link
Copy Markdown
Author

r? rust-lang/compiler

Copy link
Copy Markdown
Member

@reddevilmidzy reddevilmidzy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Also, please refrain from using LLM when writing PR descriptions.

View changes since this review

@rust-log-analyzer

This comment has been minimized.

@jeanibarz jeanibarz force-pushed the fix/add-test-149035 branch 2 times, most recently from 745fe6a to 6982ce5 Compare March 29, 2026 13:28
…xprs

Exercises -Clink-dead-code=true with generic_const_exprs and
min_generic_const_args, which previously caused an ICE in mono
item collection.
@jeanibarz jeanibarz force-pushed the fix/add-test-149035 branch from 6982ce5 to 68ea4d5 Compare March 29, 2026 13:40
@jeanibarz jeanibarz changed the title Add regression test for #149035 Add regression test for mono item collection ICE with generic_const_exprs Mar 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ICE erroneous constant missed by mono item collection

5 participants