UPDATE - migrate linker.rs to new diagnostics infra

This commit is contained in:
Jhonny Bill Mena 2022-10-07 10:03:45 -04:00
parent 0a2d7f83cb
commit 086e70f13e
3 changed files with 77 additions and 18 deletions

View file

@ -14,3 +14,45 @@ pub struct MissingNativeStaticLibrary<'a> {
pub struct LibDefWriteFailure {
pub error: Error,
}
#[derive(SessionDiagnostic)]
#[diag(codegen_ssa::version_script_write_failure)]
pub struct VersionScriptWriteFailure {
pub error: Error,
}
#[derive(SessionDiagnostic)]
#[diag(codegen_ssa::symbol_file_write_failure)]
pub struct SymbolFileWriteFailure {
pub error: Error,
}
#[derive(SessionDiagnostic)]
#[diag(codegen_ssa::unsupported_arch)]
pub struct UnsupportedArch;
#[derive(SessionDiagnostic)]
#[diag(codegen_ssa::msvc_path_not_found)]
pub struct MsvcPathNotFound;
#[derive(SessionDiagnostic)]
#[diag(codegen_ssa::link_exe_not_found)]
pub struct LinkExeNotFound;
#[derive(SessionDiagnostic)]
#[diag(codegen_ssa::ld64_unimplemented_modifier)]
pub struct Ld64UnimplementedModifier;
#[derive(SessionDiagnostic)]
#[diag(codegen_ssa::linker_unsupported_modifier)]
pub struct LinkerUnsupportedModifier;
#[derive(SessionDiagnostic)]
#[diag(codegen_ssa::L4Bender_exporting_symbols_unimplemented)]
pub struct L4BenderExportingSymbolsUnimplemented;
#[derive(SessionDiagnostic)]
#[diag(codegen_ssa::no_natvis_directory)]
pub struct NoNatvisDirectory {
pub error: Error,
}