We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 11a315a commit 6e5642fCopy full SHA for 6e5642f
compiler/rustc_passes/src/dead.rs
@@ -243,6 +243,11 @@ impl<'tcx> MarkSymbolVisitor<'tcx> {
243
continue;
244
}
245
246
+ if self.tcx.opt_rpitit_info(id).is_some() {
247
+ self.live_symbols.insert(id);
248
+ continue;
249
+ }
250
+
251
// in the case of tuple struct constructors we want to check the item, not the generated
252
// tuple struct constructor function
253
let id = self.struct_constructors.get(&id).copied().unwrap_or(id);
0 commit comments