]> git.lizzy.rs Git - rust.git/blob - compiler/rustc_codegen_ssa/src/errors.rs
UPDATE - migrate linker.rs to new diagnostics infra
[rust.git] / compiler / rustc_codegen_ssa / src / errors.rs
1 //! Errors emitted by codegen_ssa
2
3 use rustc_macros::SessionDiagnostic;
4 use std::io::Error;
5
6 #[derive(SessionDiagnostic)]
7 #[diag(codegen_ssa::missing_native_static_library)]
8 pub struct MissingNativeStaticLibrary<'a> {
9     pub library_name: &'a str,
10 }
11
12 #[derive(SessionDiagnostic)]
13 #[diag(codegen_ssa::lib_def_write_failure)]
14 pub struct LibDefWriteFailure {
15     pub error: Error,
16 }
17
18 #[derive(SessionDiagnostic)]
19 #[diag(codegen_ssa::version_script_write_failure)]
20 pub struct VersionScriptWriteFailure {
21     pub error: Error,
22 }
23
24 #[derive(SessionDiagnostic)]
25 #[diag(codegen_ssa::symbol_file_write_failure)]
26 pub struct SymbolFileWriteFailure {
27     pub error: Error,
28 }
29
30 #[derive(SessionDiagnostic)]
31 #[diag(codegen_ssa::unsupported_arch)]
32 pub struct UnsupportedArch;
33
34 #[derive(SessionDiagnostic)]
35 #[diag(codegen_ssa::msvc_path_not_found)]
36 pub struct MsvcPathNotFound;
37
38 #[derive(SessionDiagnostic)]
39 #[diag(codegen_ssa::link_exe_not_found)]
40 pub struct LinkExeNotFound;
41
42 #[derive(SessionDiagnostic)]
43 #[diag(codegen_ssa::ld64_unimplemented_modifier)]
44 pub struct Ld64UnimplementedModifier;
45
46 #[derive(SessionDiagnostic)]
47 #[diag(codegen_ssa::linker_unsupported_modifier)]
48 pub struct LinkerUnsupportedModifier;
49
50 #[derive(SessionDiagnostic)]
51 #[diag(codegen_ssa::L4Bender_exporting_symbols_unimplemented)]
52 pub struct L4BenderExportingSymbolsUnimplemented;
53
54 #[derive(SessionDiagnostic)]
55 #[diag(codegen_ssa::no_natvis_directory)]
56 pub struct NoNatvisDirectory {
57     pub error: Error,
58 }