Provide more context for rustc +nightly -Zunstable-options
on stable
This commit is contained in:
parent
f42f19b6d3
commit
cef812bd95
19 changed files with 509 additions and 471 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue