Skip to content

Commit

Permalink
Ugly commit 29.31
Browse files Browse the repository at this point in the history
  • Loading branch information
vakaras committed Feb 4, 2024
1 parent d6ceef4 commit 0c631d2
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,11 @@ pub fn apply_patch_to_borrowck<'tcx>(
match data.terminator().kind {
mir::TerminatorKind::Drop { place, .. } => {
let point = lt_patcher.start_point(block.index(), data.statements.len());
let variable = place.as_local().unwrap();
borrowck_input_facts.var_dropped_at.push((variable, point));
if let Some(variable) = place.as_local() {
borrowck_input_facts.var_dropped_at.push((variable, point));
} else {
// FIXME.
}
}
_ => {}
}
Expand Down

0 comments on commit 0c631d2

Please sign in to comment.