Format all the let chains in compiler
This commit is contained in:
@@ -315,7 +315,9 @@ impl<Prov: Provenance> ProvenanceMap<Prov> {
|
||||
self.ptrs.insert_presorted(dest_ptrs.into());
|
||||
}
|
||||
if Prov::OFFSET_IS_ADDR {
|
||||
if let Some(dest_bytes) = copy.dest_bytes && !dest_bytes.is_empty() {
|
||||
if let Some(dest_bytes) = copy.dest_bytes
|
||||
&& !dest_bytes.is_empty()
|
||||
{
|
||||
self.bytes.get_or_insert_with(Box::default).insert_presorted(dest_bytes.into());
|
||||
}
|
||||
} else {
|
||||
|
||||
@@ -99,7 +99,9 @@ impl<'tcx> MirPatch<'tcx> {
|
||||
}
|
||||
|
||||
pub fn terminate_block(&mut self, reason: UnwindTerminateReason) -> BasicBlock {
|
||||
if let Some((cached_bb, cached_reason)) = self.terminate_block && reason == cached_reason {
|
||||
if let Some((cached_bb, cached_reason)) = self.terminate_block
|
||||
&& reason == cached_reason
|
||||
{
|
||||
return cached_bb;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user