Skip to content

Add regression test for #152415 - #164541

Merged
rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
machinedramon:regression-test-152415
Nov 24, 2026
Merged

rust-bors[bot] merged 1 commit into
rust-lang:mainfrom
machinedramon:regression-test-152415

Conversation

@machinedramon

@machinedramon machinedramon commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Adds a regression test for #152415.

The ICE (assertion failed: !origin.span.is_dummy() in need_type_info.rs)
was fixed by #156619. I checked it with builds that have debug assertions:

I also tried a few variations of the example (dyn, where Self:, two const
params, an impl of the trait). Six of them ICE before #156619, none after.

Closes #152415

r? @lcnr

LLM disclosure

The task itself came from the issue (find the fixing PR and add a test).
I used an LLM to run the bisect and the before/after builds of #156619,
and to help write the test and draft some texts. I reviewed the test and
the results myself, so I understand the change.

@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. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver) labels Oct 18, 2026
@rustbot

rustbot commented Oct 18, 2026

Copy link
Copy Markdown
Collaborator

Thanks for the pull request, and welcome! The Rust Project has assigned @lcnr (or someone else) to review your changes, you should hear from them (or someone else) within the next two weeks.

Please see the contribution instructions and our LLM policy for more information.

@rustbot

This comment has been minimized.

@machinedramon
machinedramon force-pushed the regression-test-152415 branch from f1de0f7 to 2d434e2 Compare October 18, 2026 22:16
@machinedramon

Copy link
Copy Markdown
Contributor Author

Hey @lcnr, we are here at #164541 but it applies to #164542 and #164543.

These three PRs were made using LLM assistance, as I wrote in their descriptions.
I only noticed after opening them that new contributors should agree on a
reviewer before opening an LLM-assisted PR
. Really sorry for this.

They only add regression tests, and I checked each one against the compiler
before and after the fix. If you are not ok to review it, I can switch them
to r? @ghost until someone is.

@jackh726 jackh726 added the llm-assisted An LLM-assisted PR as defined by the LLM policy. Requires ahead-of-time consent by assignee. label Nov 23, 2026
@lcnr

lcnr commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

Using LLMs to help you get context in this way is fine for me and I appreciate your PR descriptions, especially in #164543.

As long as you make sure you're fully responsible yourself for the final output that others get exposed to (as in, you write the final text and code yourself while understanding what it does/making it explicit where you're unsure), I am happy to review such work.

Thank you 😊

@bors r+ rollup

@rust-bors

rust-bors Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 2d434e2 has been approved by lcnr

It is now in the queue for this repository.

@rust-bors rust-bors Bot added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Nov 24, 2026
@lcnr

lcnr commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

sorry for the delay, have been busy and then on vacation

JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Nov 24, 2026
…15, r=lcnr

Add regression test for rust-lang#152415

Adds a regression test for rust-lang#152415.

The ICE (`assertion failed: !origin.span.is_dummy()` in `need_type_info.rs`)
was fixed by rust-lang#156619. I checked it with builds that have debug assertions:

- on 89a9993 (the parent of rust-lang#156619) the test ICEs
- on c712ea9 (rust-lang#156619) and on current master it only reports E0207

I also tried a few variations of the example (dyn, `where Self:`, two const
params, an impl of the trait). Six of them ICE before rust-lang#156619, none after.

Closes rust-lang#152415

r? @lcnr

### LLM disclosure
The task itself came from the issue (find the fixing PR and add a test).
I used an LLM to run the bisect and the before/after builds of rust-lang#156619,
and to help write the test and draft some texts. I reviewed the test and
the results myself, so I understand the change.
rust-bors Bot pushed a commit that referenced this pull request Nov 24, 2026
…uwer

Rollup of 12 pull requests

Successful merges:

 - #166340 (Revert "implement const Iterator for Range - #156216")
 - #165345 (Remove the 'eq', 'eq_trace', and 'goals_to_obligations' methods from 'At')
 - #165538 (Supertraits returns Unnormalized)
 - #165794 (`consider_impl_candidate` tweaks)
 - #160752 (Avoid inference constraints from opaque blanket impls)
 - #163187 (add `scalbn` and `ilogb` methods on floats)
 - #164541 (Add regression test for #152415)
 - #164543 (Add regression test for #151316)
 - #165920 (Introduce compute_abi helper and ComputeCallConv trait)
 - #166313 (Move `rustdoc-ui` tests in the right folder)
 - #166420 ([rustdoc] Fix search index generation: if crate content didn't change, it should generate the same search index)
 - #166485 (Allow passing `--exact-match` and `--purge` to `x perf`)
@rust-bors
rust-bors Bot merged commit cd2e44b into rust-lang:main Nov 24, 2026
14 checks passed
@rustbot rustbot added this to the 1.102.0 milestone Nov 24, 2026
rust-bors Bot pushed a commit that referenced this pull request Nov 24, 2026
Rollup merge of #164541 - machinedramon:regression-test-152415, r=lcnr

Add regression test for #152415

Adds a regression test for #152415.

The ICE (`assertion failed: !origin.span.is_dummy()` in `need_type_info.rs`)
was fixed by #156619. I checked it with builds that have debug assertions:

- on 89a9993 (the parent of #156619) the test ICEs
- on c712ea9 (#156619) and on current master it only reports E0207

I also tried a few variations of the example (dyn, `where Self:`, two const
params, an impl of the trait). Six of them ICE before #156619, none after.

Closes #152415

r? @lcnr

### LLM disclosure
The task itself came from the issue (find the fixing PR and add a test).
I used an LLM to run the bisect and the before/after builds of #156619,
and to help write the test and draft some texts. I reviewed the test and
the results myself, so I understand the change.
TDecking pushed a commit to TDecking/miri that referenced this pull request Nov 25, 2026
…uwer

Rollup of 12 pull requests

Successful merges:

 - rust-lang/rust#166340 (Revert "implement const Iterator for Range - rust-lang/rust#156216")
 - rust-lang/rust#165345 (Remove the 'eq', 'eq_trace', and 'goals_to_obligations' methods from 'At')
 - rust-lang/rust#165538 (Supertraits returns Unnormalized)
 - rust-lang/rust#165794 (`consider_impl_candidate` tweaks)
 - rust-lang/rust#160752 (Avoid inference constraints from opaque blanket impls)
 - rust-lang/rust#163187 (add `scalbn` and `ilogb` methods on floats)
 - rust-lang/rust#164541 (Add regression test for rust-lang/rust#152415)
 - rust-lang/rust#164543 (Add regression test for rust-lang/rust#151316)
 - rust-lang/rust#165920 (Introduce compute_abi helper and ComputeCallConv trait)
 - rust-lang/rust#166313 (Move `rustdoc-ui` tests in the right folder)
 - rust-lang/rust#166420 ([rustdoc] Fix search index generation: if crate content didn't change, it should generate the same search index)
 - rust-lang/rust#166485 (Allow passing `--exact-match` and `--purge` to `x perf`)
mehmettoplu-rs pushed a commit to mehmettoplu-rs/rustc_codegen_gcc that referenced this pull request Nov 27, 2026
…uwer

Rollup of 12 pull requests

Successful merges:

 - rust-lang/rust#166340 (Revert "implement const Iterator for Range - rust-lang/rust#156216")
 - rust-lang/rust#165345 (Remove the 'eq', 'eq_trace', and 'goals_to_obligations' methods from 'At')
 - rust-lang/rust#165538 (Supertraits returns Unnormalized)
 - rust-lang/rust#165794 (`consider_impl_candidate` tweaks)
 - rust-lang/rust#160752 (Avoid inference constraints from opaque blanket impls)
 - rust-lang/rust#163187 (add `scalbn` and `ilogb` methods on floats)
 - rust-lang/rust#164541 (Add regression test for rust-lang/rust#152415)
 - rust-lang/rust#164543 (Add regression test for rust-lang/rust#151316)
 - rust-lang/rust#165920 (Introduce compute_abi helper and ComputeCallConv trait)
 - rust-lang/rust#166313 (Move `rustdoc-ui` tests in the right folder)
 - rust-lang/rust#166420 ([rustdoc] Fix search index generation: if crate content didn't change, it should generate the same search index)
 - rust-lang/rust#166485 (Allow passing `--exact-match` and `--purge` to `x perf`)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

llm-assisted An LLM-assisted PR as defined by the LLM policy. Requires ahead-of-time consent by assignee. 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. WG-trait-system-refactor The Rustc Trait System Refactor Initiative (-Znext-solver)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[ICE]: assertion failed: !origin.span.is_dummy()

4 participants