Skip to content

Commit e9eb1a6

Browse files
committed
Fix bad rebase
1 parent 4fb201d commit e9eb1a6

File tree

1 file changed

+2
-2
lines changed
  • src/librustc_typeck/check

1 file changed

+2
-2
lines changed

src/librustc_typeck/check/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1027,8 +1027,8 @@ fn check_fn<'a, 'gcx, 'tcx>(inherited: &'a Inherited<'a, 'gcx, 'tcx>,
10271027
let span = body.value.span;
10281028

10291029
if body.is_generator && can_be_generator.is_some() {
1030-
let yield_ty = fcx.next_ty_var(fcx.next_ty_var(ty::UniverseIndex::ROOT,
1031-
TypeVariableOrigin::TypeInference(span)));
1030+
let yield_ty = fcx.next_ty_var(ty::UniverseIndex::ROOT,
1031+
TypeVariableOrigin::TypeInference(span));
10321032
fcx.require_type_is_sized(yield_ty, span, traits::SizedYieldType);
10331033
fcx.yield_ty = Some(yield_ty);
10341034
}

0 commit comments

Comments
 (0)