mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-27 18:57:42 +03:00
change "error finalizing incremental compilation" from warning to note
The warning has no error code, so in a `-D warnings` environment, it's impossible to ignore if it consistently breaks your build. Change it to a note so it is still visible, but doesn't break the build
This commit is contained in:
@@ -366,7 +366,7 @@ pub fn finalize_session_directory(sess: &Session, svh: Option<Svh>) {
|
||||
}
|
||||
Err(e) => {
|
||||
// Warn about the error. However, no need to abort compilation now.
|
||||
sess.dcx().emit_warn(errors::Finalize { path: &incr_comp_session_dir, err: e });
|
||||
sess.dcx().emit_note(errors::Finalize { path: &incr_comp_session_dir, err: e });
|
||||
|
||||
debug!("finalize_session_directory() - error, marking as invalid");
|
||||
// Drop the file lock, so we can garage collect
|
||||
|
||||
Reference in New Issue
Block a user