Re-format let-else per rustfmt update
This commit is contained in:
parent
67b0cfc761
commit
cc907f80b9
162 changed files with 1404 additions and 947 deletions
|
@ -321,7 +321,9 @@ impl<'tcx> GenKillAnalysis<'tcx> for MaybeInitializedPlaces<'_, 'tcx> {
|
|||
|
||||
// Mark all places as "maybe init" if they are mutably borrowed. See #90752.
|
||||
for_each_mut_borrow(statement, location, |place| {
|
||||
let LookupResult::Exact(mpi) = self.move_data().rev_lookup.find(place.as_ref()) else { return };
|
||||
let LookupResult::Exact(mpi) = self.move_data().rev_lookup.find(place.as_ref()) else {
|
||||
return;
|
||||
};
|
||||
on_all_children_bits(self.tcx, self.body, self.move_data(), mpi, |child| {
|
||||
trans.gen(child);
|
||||
})
|
||||
|
@ -343,7 +345,9 @@ impl<'tcx> GenKillAnalysis<'tcx> for MaybeInitializedPlaces<'_, 'tcx> {
|
|||
}
|
||||
|
||||
for_each_mut_borrow(terminator, location, |place| {
|
||||
let LookupResult::Exact(mpi) = self.move_data().rev_lookup.find(place.as_ref()) else { return };
|
||||
let LookupResult::Exact(mpi) = self.move_data().rev_lookup.find(place.as_ref()) else {
|
||||
return;
|
||||
};
|
||||
on_all_children_bits(self.tcx, self.body, self.move_data(), mpi, |child| {
|
||||
trans.gen(child);
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue