]> git.lizzy.rs Git - rust.git/commitdiff
Remove outdated comment
authorOliver Schneider <github35764891676564198441@oli-obk.de>
Fri, 20 Jul 2018 10:01:10 +0000 (12:01 +0200)
committerOliver Schneider <github35764891676564198441@oli-obk.de>
Fri, 20 Jul 2018 13:59:21 +0000 (15:59 +0200)
src/librustc_typeck/check/mod.rs

index 6e09b83a7b059dffe330c6a56026fd11e07020c8..afafa6fa43780a5331d13b72d0830797c08fdf56 100644 (file)
@@ -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);