We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
rustc +nightly -Zunstable-options
1 parent 7ba31b9 commit 2cdf8a4Copy full SHA for 2cdf8a4
src/pretty_clif.rs
@@ -225,10 +225,10 @@ pub(crate) fn write_ir_file(
225
let res = std::fs::File::create(clif_file_name).and_then(|mut file| write(&mut file));
226
if let Err(err) = res {
227
// Using early_warn as no Session is available here
228
- rustc_session::early_warn(
+ let handler = rustc_session::EarlyErrorHandler::new(
229
rustc_session::config::ErrorOutputType::default(),
230
- format!("error writing ir file: {}", err),
231
);
+ handler.early_warn(format!("error writing ir file: {}", err));
232
}
233
234
0 commit comments