Skip to content

Commit 2cdf8a4

Browse files
committed
Provide more context for rustc +nightly -Zunstable-options on stable
1 parent 7ba31b9 commit 2cdf8a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/pretty_clif.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -225,10 +225,10 @@ pub(crate) fn write_ir_file(
225225
let res = std::fs::File::create(clif_file_name).and_then(|mut file| write(&mut file));
226226
if let Err(err) = res {
227227
// Using early_warn as no Session is available here
228-
rustc_session::early_warn(
228+
let handler = rustc_session::EarlyErrorHandler::new(
229229
rustc_session::config::ErrorOutputType::default(),
230-
format!("error writing ir file: {}", err),
231230
);
231+
handler.early_warn(format!("error writing ir file: {}", err));
232232
}
233233
}
234234

0 commit comments

Comments
 (0)