Auto merge of #108700 - spastorino:new-rpitit-impl-side-2, r=compiler-errors
Make RPITITs simple cases work when using lower_impl_trait_in_trait_to_assoc_ty r? `@compiler-errors` It's probably best reviewed commit by commit.
This commit is contained in:
commit
9455a5591b
11 changed files with 164 additions and 35 deletions
|
@ -243,6 +243,12 @@ impl<'tcx> MarkSymbolVisitor<'tcx> {
|
|||
continue;
|
||||
}
|
||||
|
||||
// Avoid accessing the HIR for the synthesized associated type generated for RPITITs.
|
||||
if self.tcx.opt_rpitit_info(id).is_some() {
|
||||
self.live_symbols.insert(id);
|
||||
continue;
|
||||
}
|
||||
|
||||
// in the case of tuple struct constructors we want to check the item, not the generated
|
||||
// tuple struct constructor function
|
||||
let id = self.struct_constructors.get(&id).copied().unwrap_or(id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue