Remove feature gate
This commit is contained in:
parent
027d73dcad
commit
382338fe75
1 changed files with 14 additions and 18 deletions
|
@ -186,9 +186,6 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
|||
// };
|
||||
// ```
|
||||
//
|
||||
// FIXME(RFC2229, rust#85435): Remove feature gate once diagnostics are
|
||||
// improved and unsafe checking works properly in closure bodies again.
|
||||
if this.tcx.features().capture_disjoint_fields {
|
||||
for (thir_place, cause, hir_id) in fake_reads.into_iter() {
|
||||
let place_builder =
|
||||
unpack!(block = this.as_place_builder(block, &this.thir[*thir_place]));
|
||||
|
@ -206,7 +203,6 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
|
|||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// see (*) above
|
||||
let operands: Vec<_> = upvars
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue