1
Fork 0

Start moving rustc_driver to SessionDiagnostic

This commit is contained in:
Adrian Tombu 2022-08-22 23:43:09 +02:00
parent 4d45b0745a
commit dbe39d835e
No known key found for this signature in database
GPG key ID: 9CD8E979D3A943FE
6 changed files with 57 additions and 5 deletions

View file

@ -0,0 +1,25 @@
use rustc_macros::SessionDiagnostic;
use rustc_span::Span;
#[derive(SessionDiagnostic)]
#[error(driver::rlink_unable_to_read)]
pub(crate) struct RlinkUnableToRead {
#[primary_span]
pub span: Span,
pub error_message: String,
}
#[derive(SessionDiagnostic)]
#[error(driver::rlink_unable_to_deserialize)]
pub(crate) struct RlinkUnableToDeserialize {
#[primary_span]
pub span: Span,
pub error_message: String,
}
#[derive(SessionDiagnostic)]
#[error(driver::rlink_no_a_file)]
pub(crate) struct RlinkNotAFile {
#[primary_span]
pub span: Span,
}