From: Oliver Schneider Date: Fri, 20 Jul 2018 10:01:10 +0000 (+0200) Subject: Remove outdated comment X-Git-Url: https://git.lizzy.rs/?a=commitdiff_plain;h=3e832b83feebeeec5465504ba048f72b5e84253d;p=rust.git Remove outdated comment --- diff --git a/src/librustc_typeck/check/mod.rs b/src/librustc_typeck/check/mod.rs index 6e09b83a7b0..afafa6fa437 100644 --- a/src/librustc_typeck/check/mod.rs +++ b/src/librustc_typeck/check/mod.rs @@ -857,9 +857,6 @@ fn typeck_tables_of<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>, fcx.require_type_is_sized(expected_type, body.value.span, traits::ConstSized); // Gather locals in statics (because of block expressions). - // This is technically unnecessary because locals in static items are forbidden, - // but prevents type checking from blowing up before const checking can properly - // emit an error. GatherLocalsVisitor { fcx: &fcx }.visit_body(body); fcx.check_expr_coercable_to_type(&body.value, expected_type);