diff options
| author | bors <bors@rust-lang.org> | 2025-09-01 04:37:39 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2025-09-01 04:37:39 +0000 |
| commit | be4e9b77ab5502b7beda0b787fb3c978a7b4db79 (patch) | |
| tree | dd1d9cf867518d0207b9d269a940ef67201eeebc /compiler/rustc_codegen_cranelift | |
| parent | 828e45ad11ce4ab56dd64e93f1fb5dd8f0c0ae93 (diff) | |
| parent | 0dbd8e68b129ca35df99eae7bc824f26d5098336 (diff) | |
| download | rust-be4e9b77ab5502b7beda0b787fb3c978a7b4db79.tar.gz rust-be4e9b77ab5502b7beda0b787fb3c978a7b4db79.zip | |
Auto merge of #146072 - Zalathar:rollup-0svnrfe, r=Zalathar
Rollup of 6 pull requests Successful merges: - rust-lang/rust#145421 (`dump_mir` cleanups) - rust-lang/rust#145968 (Add `Bound::copied`) - rust-lang/rust#146004 (resolve: Refactor `struct ExternPreludeEntry`) - rust-lang/rust#146042 (Detect negative literal inferred to unsigned integer) - rust-lang/rust#146046 (Suggest method name with maybe ty mismatch) - rust-lang/rust#146051 (Change std f32 test to pass under Miri) r? `@ghost` `@rustbot` modify labels: rollup
Diffstat (limited to 'compiler/rustc_codegen_cranelift')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/base.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/base.rs b/compiler/rustc_codegen_cranelift/src/base.rs index bc0a0f034b2..3a28dd7e73c 100644 --- a/compiler/rustc_codegen_cranelift/src/base.rs +++ b/compiler/rustc_codegen_cranelift/src/base.rs @@ -44,9 +44,8 @@ pub(crate) fn codegen_fn<'tcx>( let _mir_guard = crate::PrintOnPanic(|| { let mut buf = Vec::new(); 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(); + let writer = pretty::MirWriter::new(tcx); + writer.write_mir_fn(mir, &mut buf).unwrap(); }); String::from_utf8_lossy(&buf).into_owned() }); |
