diff options
| author | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-08-15 09:13:23 +1000 |
|---|---|---|
| committer | Nicholas Nethercote <n.nethercote@gmail.com> | 2025-09-01 08:52:34 +1000 |
| commit | d7faa5630daf13c3d298e81ac329bf048a0d5a01 (patch) | |
| tree | dc6f4653c701460aff4f0f1a0983ab7295043915 /compiler/rustc_codegen_cranelift/src/base.rs | |
| parent | 3a0d0be586c0135bff8e8e2a280ee647337a07e7 (diff) | |
| download | rust-d7faa5630daf13c3d298e81ac329bf048a0d5a01.tar.gz rust-d7faa5630daf13c3d298e81ac329bf048a0d5a01.zip | |
Avoid unnecessary `mut`-ness for various closures.
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src/base.rs')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/base.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/base.rs b/compiler/rustc_codegen_cranelift/src/base.rs index bc0a0f034b2..aefb9c9a115 100644 --- a/compiler/rustc_codegen_cranelift/src/base.rs +++ b/compiler/rustc_codegen_cranelift/src/base.rs @@ -46,7 +46,7 @@ pub(crate) fn codegen_fn<'tcx>( with_no_trimmed_paths!({ use rustc_middle::mir::pretty; let options = pretty::PrettyPrintMirOptions::from_cli(tcx); - pretty::write_mir_fn(tcx, mir, &mut |_, _| Ok(()), &mut buf, options).unwrap(); + pretty::write_mir_fn(tcx, mir, &|_, _| Ok(()), &mut buf, options).unwrap(); }); String::from_utf8_lossy(&buf).into_owned() }); |
