diff options
| author | Niv Kaminer <nivkner@zoho.com> | 2018-03-17 01:00:40 +0200 |
|---|---|---|
| committer | Niv Kaminer <nivkner@zoho.com> | 2018-03-17 20:24:49 +0200 |
| commit | 69d12a2b97f4f09dba2e09542c74da48ea88ba08 (patch) | |
| tree | 4ebca31e279c893e93f61571f2cf5d2289c6b713 /src | |
| parent | 622c44510fcc65ad4038beb1714cf8950f96a2a0 (diff) | |
| download | rust-69d12a2b97f4f09dba2e09542c74da48ea88ba08.tar.gz rust-69d12a2b97f4f09dba2e09542c74da48ea88ba08.zip | |
remove FIXME(#30046) and infer moves on pattern matching
Diffstat (limited to 'src')
| -rw-r--r-- | src/librustc_mir/build/block.rs | 5 | ||||
| -rw-r--r-- | src/librustc_typeck/check/mod.rs | 1 |
2 files changed, 2 insertions, 4 deletions
diff --git a/src/librustc_mir/build/block.rs b/src/librustc_mir/build/block.rs index ef30b1e4522..7281fb59663 100644 --- a/src/librustc_mir/build/block.rs +++ b/src/librustc_mir/build/block.rs @@ -117,10 +117,9 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> { // Evaluate the initializer, if present. if let Some(init) = initializer { unpack!(block = this.in_opt_scope( - opt_destruction_scope.map(|de|(de, source_info)), block, move |this| { + opt_destruction_scope.map(|de|(de, source_info)), block, |this| { let scope = (init_scope, source_info); - this.in_scope(scope, lint_level, block, move |this| { - // FIXME #30046 ^~~~ + this.in_scope(scope, lint_level, block, |this| { this.expr_into_pattern(block, pattern, init) }) })); diff --git a/src/librustc_typeck/check/mod.rs b/src/librustc_typeck/check/mod.rs index f0f1064752d..c99e49256fa 100644 --- a/src/librustc_typeck/check/mod.rs +++ b/src/librustc_typeck/check/mod.rs @@ -2879,7 +2879,6 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> { // just trying to get hints here. self.save_and_restore_in_snapshot_flag(|_| { let mut fulfill = FulfillmentContext::new(); - let ok = ok; // FIXME(#30046) for obligation in ok.obligations { fulfill.register_predicate_obligation(self, obligation); } |
