diff options
| author | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-07-20 12:01:10 +0200 |
|---|---|---|
| committer | Oliver Schneider <github35764891676564198441@oli-obk.de> | 2018-07-20 15:59:21 +0200 |
| commit | 3e832b83feebeeec5465504ba048f72b5e84253d (patch) | |
| tree | d309cbc27b381f9f0603ab6a374a9925347fec6c | |
| parent | 56c90774a94e521283030caa12c1bf8d9bc16be4 (diff) | |
| download | rust-3e832b83feebeeec5465504ba048f72b5e84253d.tar.gz rust-3e832b83feebeeec5465504ba048f72b5e84253d.zip | |
Remove outdated comment
| -rw-r--r-- | src/librustc_typeck/check/mod.rs | 3 |
1 files changed, 0 insertions, 3 deletions
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); |
