Skip to content

Commit

Permalink
Provide more context for rustc +nightly -Zunstable-options on stable
Browse files Browse the repository at this point in the history
  • Loading branch information
jieyouxu committed Jun 27, 2023
1 parent 7ba31b9 commit 2cdf8a4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pretty_clif.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
}
}

Expand Down

0 comments on commit 2cdf8a4

Please sign in to comment.