Skip to content

Commit

Permalink
Fix rebase fallout
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-schievink committed Mar 23, 2020
1 parent 9ebc72f commit 1df7641
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/librustc_ty/needs_drop.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,13 +99,13 @@ where
}
}

ty::Generator(def_id, substs, _) => {
ty::Generator(_, substs, _) => {
let substs = substs.as_generator();
for upvar_ty in substs.upvar_tys(def_id, tcx) {
for upvar_ty in substs.upvar_tys() {
queue_type(self, upvar_ty);
}

let witness = substs.witness(def_id, tcx);
let witness = substs.witness();
let interior_tys = match &witness.kind {
ty::GeneratorWitness(tys) => tcx.erase_late_bound_regions(tys),
_ => bug!(),
Expand Down

0 comments on commit 1df7641

Please sign in to comment.