remove FIXME(#30046) and infer moves on pattern matching
This commit is contained in:
@@ -117,10 +117,9 @@ impl<'a, 'gcx, 'tcx> Builder<'a, 'gcx, 'tcx> {
|
|||||||
// Evaluate the initializer, if present.
|
// Evaluate the initializer, if present.
|
||||||
if let Some(init) = initializer {
|
if let Some(init) = initializer {
|
||||||
unpack!(block = this.in_opt_scope(
|
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);
|
let scope = (init_scope, source_info);
|
||||||
this.in_scope(scope, lint_level, block, move |this| {
|
this.in_scope(scope, lint_level, block, |this| {
|
||||||
// FIXME #30046 ^~~~
|
|
||||||
this.expr_into_pattern(block, pattern, init)
|
this.expr_into_pattern(block, pattern, init)
|
||||||
})
|
})
|
||||||
}));
|
}));
|
||||||
|
|||||||
@@ -2879,7 +2879,6 @@ impl<'a, 'gcx, 'tcx> FnCtxt<'a, 'gcx, 'tcx> {
|
|||||||
// just trying to get hints here.
|
// just trying to get hints here.
|
||||||
self.save_and_restore_in_snapshot_flag(|_| {
|
self.save_and_restore_in_snapshot_flag(|_| {
|
||||||
let mut fulfill = FulfillmentContext::new();
|
let mut fulfill = FulfillmentContext::new();
|
||||||
let ok = ok; // FIXME(#30046)
|
|
||||||
for obligation in ok.obligations {
|
for obligation in ok.obligations {
|
||||||
fulfill.register_predicate_obligation(self, obligation);
|
fulfill.register_predicate_obligation(self, obligation);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user