about summary refs log tree commit diff
path: root/compiler/rustc_codegen_cranelift/src/base.rs
diff options
context:
space:
mode:
authorNicholas Nethercote <n.nethercote@gmail.com>2025-08-15 09:13:23 +1000
committerNicholas Nethercote <n.nethercote@gmail.com>2025-09-01 08:52:34 +1000
commitd7faa5630daf13c3d298e81ac329bf048a0d5a01 (patch)
treedc6f4653c701460aff4f0f1a0983ab7295043915 /compiler/rustc_codegen_cranelift/src/base.rs
parent3a0d0be586c0135bff8e8e2a280ee647337a07e7 (diff)
downloadrust-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.rs2
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()
     });