Skip to content

Commit c8c266a

Browse files
committed
Convert &mut to & since the reference didn't need to be mutable
1 parent 66279d1 commit c8c266a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/librustc_codegen_ssa/mir/analyze.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ use super::FunctionCx;
1717
use crate::traits::*;
1818

1919
pub fn non_ssa_locals<'a, 'b, 'c, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
20-
fx: &mut FunctionCx<'a, 'b, 'tcx, Bx>,
20+
fx: &FunctionCx<'a, 'b, 'tcx, Bx>,
2121
mir: &'c mut BodyCache<&'b Body<'tcx>>,
2222
) -> BitSet<mir::Local> {
2323
let mut analyzer = LocalAnalyzer::new(fx, mir);

src/librustc_codegen_ssa/mir/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ pub fn codegen_mir<'a, 'tcx, Bx: BuilderMethods<'a, 'tcx>>(
174174
per_local_var_debug_info: debuginfo::per_local_var_debug_info(cx.tcx(), mir),
175175
};
176176

177-
let memory_locals = analyze::non_ssa_locals(&mut fx, &mut mir);
177+
let memory_locals = analyze::non_ssa_locals(&fx, &mut mir);
178178

179179
// Allocate variable and temp allocas
180180
fx.locals = {

0 commit comments

Comments
 (0)