diff options
| author | bors <bors@rust-lang.org> | 2023-06-28 07:13:12 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2023-06-28 07:13:12 +0000 |
| commit | 984d29d26069590786b47424c8ca205e4f4560cb (patch) | |
| tree | a400dcb280046d1e426076bd25df1b468aebe6b5 /compiler/rustc_codegen_cranelift/src | |
| parent | 662388e17fe4f3a4252f63fd84c05cfd54cc13a0 (diff) | |
| parent | de9dc5916456f441286c35452416a3dec0b4c2c0 (diff) | |
| download | rust-984d29d26069590786b47424c8ca205e4f4560cb.tar.gz rust-984d29d26069590786b47424c8ca205e4f4560cb.zip | |
Auto merge of #2944 - oli-obk:rustup, r=oli-obk
Rustup
Diffstat (limited to 'compiler/rustc_codegen_cranelift/src')
| -rw-r--r-- | compiler/rustc_codegen_cranelift/src/pretty_clif.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_codegen_cranelift/src/pretty_clif.rs b/compiler/rustc_codegen_cranelift/src/pretty_clif.rs index 1007b33eca4..5a4f9e80445 100644 --- a/compiler/rustc_codegen_cranelift/src/pretty_clif.rs +++ b/compiler/rustc_codegen_cranelift/src/pretty_clif.rs @@ -225,10 +225,10 @@ pub(crate) fn write_ir_file( let res = std::fs::File::create(clif_file_name).and_then(|mut file| write(&mut file)); if let Err(err) = res { // Using early_warn as no Session is available here - rustc_session::early_warn( + let handler = rustc_session::EarlyErrorHandler::new( rustc_session::config::ErrorOutputType::default(), - format!("error writing ir file: {}", err), ); + handler.early_warn(format!("error writing ir file: {}", err)); } } |
