Repository navigation
Add regression test for #151312 - #164542
Conversation
|
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. |
| //! used to ICE with "cannot relate bound region" in the new solver. | ||
| //! | ||
| //! Regression test for <https://github.com/rust-lang/rust/issues/151312>. | ||
| //@ compile-flags: -Znext-solver |
There was a problem hiding this comment.
Could you put the compile-test annotations at the top and mention which PR actually fixed the ICE in the comments?
And please do the same for the tests in your other PRs and merge them into this PR :>
|
@rustbot author |
|
Reminder, once the PR becomes ready for a review, use |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01V7Zq35jCLdvPJALTSkLPEC
|
|
Hey @adwinwhite, thanks for the review! I moved the About merging the other tests here: #164541 and #164543 were already If you prefer the two commits squashed into one, I can do it. @rustbot ready |
|
Thanks! @bors r+ rollup |
…12, r=adwinwhite Add regression test for rust-lang#151312 Adds a regression test for rust-lang#151312. The ICE (`cannot relate bound region` in `point_at_chain`) was fixed by rust-lang#158536, which instantiates the binder instead of using `skip_binder` when building the suggestion. That PR only added a test for rust-lang#158317, which is a different example, so this case wasn't covered yet. The test ICEs on nightly-2026-07-01 and only reports E0271 on current master. I also tried a few variations of the example (free fn, associated fn, closure, two arguments, nested references) and none of them ICE now. Closes rust-lang#151312 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, compare the example with the test from rust-lang#158536, and to help write the test and draft some texts. I reviewed the test and the results myself, so I understand the change.
…uwer Rollup of 7 pull requests Successful merges: - #164252 (Share retain implementation between Vec and VecDeque) - #166171 (borrowck: Fix Reborrow ICE on types with several lifetimes) - #166506 (traits: Fix dead match arm for String type suggestions.) - #164542 (Add regression test for #151312) - #165651 (compiletest: Further clean up directive parsing) - #166196 (autodiff: don't ICE on invalid macro arguments) - #166556 (remove `Box::into_boxed_slice`)
…uwer Rollup of 10 pull requests Successful merges: - #164252 (Share retain implementation between Vec and VecDeque) - #166008 (fix inconsistent precedence of -Ctarget-feature wrt -Zllvm-target-feature) - #166156 (tests: cover proc-macro metadata path remapping) - #166171 (borrowck: Fix Reborrow ICE on types with several lifetimes) - #166506 (traits: Fix dead match arm for String type suggestions.) - #164542 (Add regression test for #151312) - #165651 (compiletest: Further clean up directive parsing) - #166196 (autodiff: don't ICE on invalid macro arguments) - #166556 (remove `Box::into_boxed_slice`) - #166562 (docs: add backticks around `!` in primitive docs )
…uwer Rollup of 10 pull requests Successful merges: - #164252 (Share retain implementation between Vec and VecDeque) - #166008 (fix inconsistent precedence of -Ctarget-feature wrt -Zllvm-target-feature) - #166156 (tests: cover proc-macro metadata path remapping) - #166171 (borrowck: Fix Reborrow ICE on types with several lifetimes) - #166506 (traits: Fix dead match arm for String type suggestions.) - #164542 (Add regression test for #151312) - #165651 (compiletest: Further clean up directive parsing) - #166196 (autodiff: don't ICE on invalid macro arguments) - #166556 (remove `Box::into_boxed_slice`) - #166562 (docs: add backticks around `!` in primitive docs )
Rollup merge of #164542 - machinedramon:regression-test-151312, r=adwinwhite Add regression test for #151312 Adds a regression test for #151312. The ICE (`cannot relate bound region` in `point_at_chain`) was fixed by #158536, which instantiates the binder instead of using `skip_binder` when building the suggestion. That PR only added a test for #158317, which is a different example, so this case wasn't covered yet. The test ICEs on nightly-2026-07-01 and only reports E0271 on current master. I also tried a few variations of the example (free fn, associated fn, closure, two arguments, nested references) and none of them ICE now. Closes #151312 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, compare the example with the test from #158536, and to help write the test and draft some texts. I reviewed the test and the results myself, so I understand the change.
…uwer Rollup of 10 pull requests Successful merges: - rust-lang/rust#164252 (Share retain implementation between Vec and VecDeque) - rust-lang/rust#166008 (fix inconsistent precedence of -Ctarget-feature wrt -Zllvm-target-feature) - rust-lang/rust#166156 (tests: cover proc-macro metadata path remapping) - rust-lang/rust#166171 (borrowck: Fix Reborrow ICE on types with several lifetimes) - rust-lang/rust#166506 (traits: Fix dead match arm for String type suggestions.) - rust-lang/rust#164542 (Add regression test for rust-lang/rust#151312) - rust-lang/rust#165651 (compiletest: Further clean up directive parsing) - rust-lang/rust#166196 (autodiff: don't ICE on invalid macro arguments) - rust-lang/rust#166556 (remove `Box::into_boxed_slice`) - rust-lang/rust#166562 (docs: add backticks around `!` in primitive docs )
Adds a regression test for #151312.
The ICE (
cannot relate bound regioninpoint_at_chain) was fixed by#158536, which instantiates the binder instead of using
skip_binderwhenbuilding the suggestion. That PR only added a test for #158317, which is a
different example, so this case wasn't covered yet.
The test ICEs on nightly-2026-07-01 and only reports E0271 on current master.
I also tried a few variations of the example (free fn, associated fn, closure,
two arguments, nested references) and none of them ICE now.
Closes #151312
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, compare the example with the test from
#158536, and to help write the test and draft some texts. I reviewed the
test and the results myself, so I understand the change.