We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34ca2dc commit b1efed4Copy full SHA for b1efed4
compiler/rustc_passes/src/dead.rs
@@ -243,6 +243,12 @@ impl<'tcx> MarkSymbolVisitor<'tcx> {
243
continue;
244
}
245
246
+ // Avoid accessing the HIR for the synthesized associated type generated for RPITITs.
247
+ if self.tcx.opt_rpitit_info(id).is_some() {
248
+ self.live_symbols.insert(id);
249
+ continue;
250
+ }
251
+
252
// in the case of tuple struct constructors we want to check the item, not the generated
253
// tuple struct constructor function
254
let id = self.struct_constructors.get(&id).copied().unwrap_or(id);
0 commit comments