Skip to content

Commit 3e832b8

Browse files
committed
Remove outdated comment
1 parent 56c9077 commit 3e832b8

File tree

1 file changed

+0
-3
lines changed
  • src/librustc_typeck/check

1 file changed

+0
-3
lines changed

src/librustc_typeck/check/mod.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -857,9 +857,6 @@ fn typeck_tables_of<'a, 'tcx>(tcx: TyCtxt<'a, 'tcx, 'tcx>,
857857
fcx.require_type_is_sized(expected_type, body.value.span, traits::ConstSized);
858858

859859
// Gather locals in statics (because of block expressions).
860-
// This is technically unnecessary because locals in static items are forbidden,
861-
// but prevents type checking from blowing up before const checking can properly
862-
// emit an error.
863860
GatherLocalsVisitor { fcx: &fcx }.visit_body(body);
864861

865862
fcx.check_expr_coercable_to_type(&body.value, expected_type);

0 commit comments

Comments
 (0)