Uh oh!
There was an error while loading. Please reload this page.
fix(delegation): Filter Out Module Segments in Generic Args Inheritance - #153752
Conversation
TKanX
commented
Mar 12, 2026
GH runner seems to be broken. |
TKanX
commented
Mar 12, 2026
let me re-run |
9a59b40 to
3d00ceaCompare
This comment has been minimized.
This comment has been minimized.
aerooneqq
commented
Mar 12, 2026
#153421 (merged not so long ago) fixed those issues by adding check that child segment resolves only to |
TKanX
commented
Mar 12, 2026
@aerooneqq So this PR superseded by #153421? Should I close this? |
petrochenkov
commented
Mar 13, 2026
rustbot
commented
Mar 13, 2026
Reminder, once the PR becomes ready for a review, use |
3d00cea to
f1f5709Comparerustbot
commented
Mar 13, 2026
|
TKanX
commented
Mar 13, 2026
TKanX
commented
Mar 13, 2026
My local test passed: > python3 x.py test tests/ui/delegation/ice-non-fn-target-in-trait-impl.rs
...
test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 20787 filtered out; finished in 43.27ms |
TKanX
commented
Mar 13, 2026
I wonder if this naming would be more appropriate: |
petrochenkov
commented
Mar 13, 2026
Seems fine as is. |
…uwer Rollup of 7 pull requests Successful merges: - #153650 (Streamline active job collection.) - #153707 (Remove `CycleErrorHandling`.) - #153384 (Add missing safety doc for CString::from_vec_unchecked and async_drop_in_place) - #153752 (fix(delegation): Filter Out Module Segments in Generic Args Inheritance) - #153797 (Compiletest: Fix compare-output-by-lines directive) - #153810 (compiletest: Use PYTHONPATH for lldb too, not only gdb) - #153820 (Rename `opt_span_diag_lint` into `opt_span_lint` and remove `emit_diag_lint`)
Uh oh!
There was an error while loading. Please reload this page.
Summary:
Fixes ICE when delegating to a module or crate root inside a trait impl.FiltersDefKind::Modinget_segment, returningNonefor such segments so compilation fails gracefully with the pre-existing E0423 error from the resolver.Adds regression tests for #153743 and #153744.
#153421 already fixed the root cause; this PR adds test coverage.
Closes#153743
Closes#153744
r? @dingxiangfei2009
cc @matthiaskrgr