diff options
| author | David Tolnay <dtolnay@gmail.com> | 2023-07-16 22:13:08 -0700 |
|---|---|---|
| committer | David Tolnay <dtolnay@gmail.com> | 2023-07-20 11:04:31 -0700 |
| commit | f2e3d3fc63ea238385aecbb77f633fd451b9470a (patch) | |
| tree | 58ee29dcca80a28dddd5987dc11417b05b13ef5c /compiler/rustc_session/src/errors.rs | |
| parent | 32cac2e0024aa4d02661859f9bfc69d33e6e8ba9 (diff) | |
| download | rust-f2e3d3fc63ea238385aecbb77f633fd451b9470a.tar.gz rust-f2e3d3fc63ea238385aecbb77f633fd451b9470a.zip | |
Move OutFileName writing into rustc_session
Diffstat (limited to 'compiler/rustc_session/src/errors.rs')
| -rw-r--r-- | compiler/rustc_session/src/errors.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/compiler/rustc_session/src/errors.rs b/compiler/rustc_session/src/errors.rs index 4a3e668da11..dd15ad45145 100644 --- a/compiler/rustc_session/src/errors.rs +++ b/compiler/rustc_session/src/errors.rs @@ -164,6 +164,13 @@ pub struct FileIsNotWriteable<'a> { } #[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 { #[primary_span] |
