Skip to content

Commit

Permalink
Mark the variant itself as a live symbol
Browse files Browse the repository at this point in the history
  • Loading branch information
m-ysk committed Nov 17, 2024
1 parent 8a65eb9 commit bd0faf4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions compiler/rustc_passes/src/dead.rs
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,7 @@ impl<'tcx> MarkSymbolVisitor<'tcx> {
}
self.insert_def_id(variant.fields[FieldIdx::from_usize(idx)].did);
}
self.insert_def_id(variant.def_id);
}

fn handle_offset_of(&mut self, expr: &'tcx hir::Expr<'tcx>) {
Expand Down

0 comments on commit bd0faf4

Please sign in to comment.