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 bd0faf4 commit 47d326fCopy full SHA for 47d326f
compiler/rustc_passes/src/dead.rs
@@ -265,7 +265,11 @@ impl<'tcx> MarkSymbolVisitor<'tcx> {
265
}
266
self.insert_def_id(variant.fields[FieldIdx::from_usize(idx)].did);
267
268
- self.insert_def_id(variant.def_id);
+ if let Some(def_id) = variant.def_id.as_local() {
269
+ if should_explore(self.tcx, def_id) {
270
+ self.insert_def_id(variant.def_id);
271
+ }
272
273
274
275
fn handle_offset_of(&mut self, expr: &'tcx hir::Expr<'tcx>) {
0 commit comments