Skip to content

Add regression test for #151316 - #164543

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

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

Conversation

@machinedramon

@machinedramon machinedramon commented Oct 18, 2026 •

Copy link
Copy Markdown
Contributor

Adds a regression test for #151316, covering the three examples from the issue.

A plain bisect points at #156976, but that PR only hides the ICE behind the
E0277 error: with -Zeagerly-emit-delayed-bugs the could not normalize
delayed bug is still emitted until #159649, and bisecting with that flag lands
exactly on #159649. This is the same as what happened in #156700.

This is similar to the test added in #164272 for #155977 (which also keeps the
delayed bug until #159649), but the examples here also cover FnOnce
projections and non_lifetime_binders.

The test ICEs on nightly-2026-07-01 and only reports E0277 on current master.

Closes #151316 closes #156700

r? @lcnr

LLM disclosure

The task itself came from the issue (find the fixing PR and add tests).
I used an LLM to run the bisects (including the one with
-Zeagerly-emit-delayed-bugs that points at #159649), 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.

@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

@bors r+ rollup

@rust-bors

rust-bors Bot commented Nov 24, 2026

Copy link
Copy Markdown
Contributor

📌 Commit 48d9db2 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
JonathanBrouwer added a commit to JonathanBrouwer/rust that referenced this pull request Nov 24, 2026
…16, r=lcnr

Add regression test for rust-lang#151316

Adds a regression test for rust-lang#151316, covering the three examples from the issue.

A plain bisect points at rust-lang#156976, but that PR only hides the ICE behind the
E0277 error: with `-Zeagerly-emit-delayed-bugs` the `could not normalize`
delayed bug is still emitted until rust-lang#159649, and bisecting with that flag lands
exactly on rust-lang#159649. This is the same as what happened in rust-lang#156700.

This is similar to the test added in rust-lang#164272 for rust-lang#155977 (which also keeps the
delayed bug until rust-lang#159649), but the examples here also cover `FnOnce`
projections and `non_lifetime_binders`.

The test ICEs on nightly-2026-07-01 and only reports E0277 on current master.

Closes rust-lang#151316 closes rust-lang#156700

r? @lcnr

### LLM disclosure
The task itself came from the issue (find the fixing PR and add tests).
I used an LLM to run the bisects (including the one with
`-Zeagerly-emit-delayed-bugs` that points at rust-lang#159649), 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 0adf978 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 #164543 - machinedramon:regression-test-151316, r=lcnr

Add regression test for #151316

Adds a regression test for #151316, covering the three examples from the issue.

A plain bisect points at #156976, but that PR only hides the ICE behind the
E0277 error: with `-Zeagerly-emit-delayed-bugs` the `could not normalize`
delayed bug is still emitted until #159649, and bisecting with that flag lands
exactly on #159649. This is the same as what happened in #156700.

This is similar to the test added in #164272 for #155977 (which also keeps the
delayed bug until #159649), but the examples here also cover `FnOnce`
projections and `non_lifetime_binders`.

The test ICEs on nightly-2026-07-01 and only reports E0277 on current master.

Closes #151316 closes #156700

r? @lcnr

### LLM disclosure
The task itself came from the issue (find the fixing PR and add tests).
I used an LLM to run the bisects (including the one with
`-Zeagerly-emit-delayed-bugs` that points at #159649), 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]: could not normalize Foo: 'static [ICE]: could not normalize for<'a> <i32 as FnOnce<(&'a mut i32,)>>::Output: 'a

4 participants