mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-16 13:05:18 +03:00
rustc: Remove comment dating back to the rustboot days from typeck
This commit is contained in:
@@ -1932,7 +1932,7 @@ fn check_for_or_for_each(&@fn_ctxt fcx, &@ast::decl decl,
|
||||
check_call(fcx, expr.span, f, args);
|
||||
|
||||
// Pull the return type out of the type of the function.
|
||||
auto rt_1; // = ty::mk_nil(fcx.ccx.tcx); // FIXME: typestate botch
|
||||
auto rt_1;
|
||||
auto fty = ty::expr_ty(fcx.ccx.tcx, f);
|
||||
alt (structure_of(fcx, expr.span, fty)) {
|
||||
case (ty::ty_fn(_,_,?rt,_, _)) { rt_1 = rt; }
|
||||
|
||||
Reference in New Issue
Block a user