Skip to content

Commit 1df7641

Browse files
Fix rebase fallout
1 parent 9ebc72f commit 1df7641

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/librustc_ty/needs_drop.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -99,13 +99,13 @@ where
9999
}
100100
}
101101

102-
ty::Generator(def_id, substs, _) => {
102+
ty::Generator(_, substs, _) => {
103103
let substs = substs.as_generator();
104-
for upvar_ty in substs.upvar_tys(def_id, tcx) {
104+
for upvar_ty in substs.upvar_tys() {
105105
queue_type(self, upvar_ty);
106106
}
107107

108-
let witness = substs.witness(def_id, tcx);
108+
let witness = substs.witness();
109109
let interior_tys = match &witness.kind {
110110
ty::GeneratorWitness(tys) => tcx.erase_late_bound_regions(tys),
111111
_ => bug!(),

0 commit comments

Comments
 (0)