Skip to content

Commit 4501327

Browse files
Fix clippy lint in cg_gcc
1 parent 4c6544b commit 4501327

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

compiler/rustc_codegen_gcc/src/builder.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -500,11 +500,11 @@ impl<'gcc, 'tcx> BackendTypes for Builder<'_, 'gcc, 'tcx> {
500500
}
501501

502502
fn set_rvalue_location<'a, 'gcc, 'tcx>(
503-
bx: &mut Builder<'a, 'gcc, 'tcx>,
503+
_bx: &mut Builder<'a, 'gcc, 'tcx>,
504504
rvalue: RValue<'gcc>,
505505
) -> RValue<'gcc> {
506-
if let Some(location) = bx.location {
507-
#[cfg(feature = "master")]
506+
#[cfg(feature = "master")]
507+
if let Some(location) = _bx.location {
508508
rvalue.set_location(location);
509509
}
510510
rvalue

0 commit comments

Comments
 (0)