Move OutFileName writing into rustc_session

This commit is contained in:
David Tolnay
2023-07-16 22:13:08 -07:00
parent 32cac2e002
commit f2e3d3fc63
7 changed files with 24 additions and 22 deletions

View File

@@ -163,6 +163,13 @@ pub struct FileIsNotWriteable<'a> {
pub file: &'a std::path::Path,
}
#[derive(Diagnostic)]
#[diag(session_file_write_fail)]
pub(crate) struct FileWriteFail<'a> {
pub path: &'a std::path::Path,
pub err: String,
}
#[derive(Diagnostic)]
#[diag(session_crate_name_does_not_match)]
pub struct CrateNameDoesNotMatch {