Filter out RPITITs when checking for missing associated types#108869
Filter out RPITITs when checking for missing associated types#108869spastorino wants to merge 2 commits intorust-lang:masterfrom
Conversation
|
Added another commit ef950b8 That commit included test is a copy of tests/ui/async-await/in-trait/object-safety.rs which fails with the -Zlower-impl-trait-in-trait-to-assoc-ty currently. Current master does the following ... And this PR behaves correctly, same output as current RPITIT code ... |
tests/ui/impl-trait/in-trait/new-lowering-strategy/async-object-safety.rs
Outdated
Show resolved
Hide resolved
tests/ui/impl-trait/in-trait/new-lowering-strategy/trait-object-impl-trait.rs
Outdated
Show resolved
Hide resolved
98077b2 to
6763e57
Compare
I didn't properly investigate this test but it still not working even with this 2 commits. So I'd leave it for a followup. |
|
Getting |
|
Possibly debug assertions. Drop the impl trait test and just do the async test, squash, then r=me. |
Ohh, this is likely due to something that is already fixed in #108700. Maybe it's better if we wait for it?. |
|
Up to you. |
|
I'll wait for it, rebase and r=you if that's fine after I see everything green. |
|
yeah, either do what I said in #108869 (comment), or rebase + bless. r=me in that case, as long as the test stderrs are equal with/without the |
|
Placing it again on top of existing unmerged PRs, to see if CI is happy. |
6040edb to
32c9bca
Compare
|
@compiler-errors, this one is ready, rebased and ready for a final review. |
|
closed this one since you said you just wanted to land the other pr together as one stack |
…r-errors Fix object safety checks for new RPITITs This one goes on top of rust-lang#108869 r? `@compiler-errors`
This goes on top of other already approved PRs not merged yet. Going to rebase when they are merged. The only useful commit is the last one faa15d2
r? @compiler-errors
The included test is a copy of
tests/ui/impl-trait/in-trait/issue-102140.rswhich fails with the-Zlower-impl-trait-in-trait-to-assoc-tycurrently.Current master does the following ...
And this PR behaves correctly, same output as current RPITIT code ...