Make it clearer that we're just checking for an RPITIT
This commit is contained in:
parent
bacf5bcbc7
commit
14672eba8b
9 changed files with 14 additions and 10 deletions
|
@ -276,7 +276,7 @@ impl<'tcx> MarkSymbolVisitor<'tcx> {
|
|||
}
|
||||
|
||||
// Avoid accessing the HIR for the synthesized associated type generated for RPITITs.
|
||||
if self.tcx.opt_rpitit_info(id.to_def_id()).is_some() {
|
||||
if self.tcx.is_impl_trait_in_trait(id.to_def_id()) {
|
||||
self.live_symbols.insert(id);
|
||||
continue;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue