Auto merge of #144469 - Kivooeo:chains-cleanup, r=SparrowLii
Some `let chains` clean-up Not sure if this kind of clean-up is welcoming because of size, but I decided to try out one r? compiler
This commit is contained in:
@@ -505,10 +505,10 @@ fn thin_lto(
|
||||
|
||||
// Save the current ThinLTO import information for the next compilation
|
||||
// session, overwriting the previous serialized data (if any).
|
||||
if let Some(path) = key_map_path {
|
||||
if let Err(err) = curr_key_map.save_to_file(&path) {
|
||||
return Err(write::llvm_err(dcx, LlvmError::WriteThinLtoKey { err }));
|
||||
}
|
||||
if let Some(path) = key_map_path
|
||||
&& let Err(err) = curr_key_map.save_to_file(&path)
|
||||
{
|
||||
return Err(write::llvm_err(dcx, LlvmError::WriteThinLtoKey { err }));
|
||||
}
|
||||
|
||||
Ok((opt_jobs, copy_jobs))
|
||||
|
||||
@@ -687,10 +687,10 @@ impl<'a, 'll, 'tcx> BuilderMethods<'a, 'tcx> for Builder<'a, 'll, 'tcx> {
|
||||
bx.nonnull_metadata(load);
|
||||
}
|
||||
|
||||
if let Some(pointee) = layout.pointee_info_at(bx, offset) {
|
||||
if let Some(_) = pointee.safe {
|
||||
bx.align_metadata(load, pointee.align);
|
||||
}
|
||||
if let Some(pointee) = layout.pointee_info_at(bx, offset)
|
||||
&& let Some(_) = pointee.safe
|
||||
{
|
||||
bx.align_metadata(load, pointee.align);
|
||||
}
|
||||
}
|
||||
abi::Primitive::Float(_) => {}
|
||||
|
||||
Reference in New Issue
Block a user