Rollup merge of #105050 - WaffleLapkin:uselessrefign, r=jyn514
Remove useless borrows and derefs They are nothing more than noise. <sub>These are not all of them, but my clippy started crashing (stack overflow), so rip :(</sub>
This commit is contained in:
commit
1a2f79b82c
42 changed files with 157 additions and 158 deletions
|
@ -78,7 +78,7 @@ fn arg_scalar_pair<C>(
|
|||
where
|
||||
C: HasDataLayout,
|
||||
{
|
||||
data = arg_scalar(cx, &scalar1, offset, data);
|
||||
data = arg_scalar(cx, scalar1, offset, data);
|
||||
match (scalar1.primitive(), scalar2.primitive()) {
|
||||
(abi::F32, _) => offset += Reg::f32().size,
|
||||
(_, abi::F64) => offset += Reg::f64().size,
|
||||
|
@ -90,7 +90,7 @@ where
|
|||
if (offset.bytes() % 4) != 0 && scalar2.primitive().is_float() {
|
||||
offset += Size::from_bytes(4 - (offset.bytes() % 4));
|
||||
}
|
||||
data = arg_scalar(cx, &scalar2, offset, data);
|
||||
data = arg_scalar(cx, scalar2, offset, data);
|
||||
return data;
|
||||
}
|
||||
|
||||
|
|
|
@ -2658,7 +2658,7 @@ impl Target {
|
|||
|
||||
// Additionally look in the sysroot under `lib/rustlib/<triple>/target.json`
|
||||
// as a fallback.
|
||||
let rustlib_path = crate::target_rustlib_path(&sysroot, &target_triple);
|
||||
let rustlib_path = crate::target_rustlib_path(sysroot, target_triple);
|
||||
let p = PathBuf::from_iter([
|
||||
Path::new(sysroot),
|
||||
Path::new(&rustlib_path),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue