1
1
//! Errors emitted by codegen_ssa
2
2
3
3
use rustc_errors::{DiagnosticArgValue, IntoDiagnosticArg};
4
- use rustc_macros::SessionDiagnostic ;
4
+ use rustc_macros::Diagnostic ;
5
5
use std::borrow::Cow;
6
6
use std::io::Error;
7
7
use std::path::{Path, PathBuf};
8
8
9
- #[derive(SessionDiagnostic )]
9
+ #[derive(Diagnostic )]
10
10
#[diag(codegen_ssa::missing_native_static_library)]
11
11
pub struct MissingNativeStaticLibrary<'a> {
12
12
pub library_name: &'a str,
13
13
}
14
14
15
- #[derive(SessionDiagnostic )]
15
+ #[derive(Diagnostic )]
16
16
#[diag(codegen_ssa::lib_def_write_failure)]
17
17
pub struct LibDefWriteFailure {
18
18
pub error: Error,
19
19
}
20
20
21
- #[derive(SessionDiagnostic )]
21
+ #[derive(Diagnostic )]
22
22
#[diag(codegen_ssa::version_script_write_failure)]
23
23
pub struct VersionScriptWriteFailure {
24
24
pub error: Error,
25
25
}
26
26
27
- #[derive(SessionDiagnostic )]
27
+ #[derive(Diagnostic )]
28
28
#[diag(codegen_ssa::symbol_file_write_failure)]
29
29
pub struct SymbolFileWriteFailure {
30
30
pub error: Error,
31
31
}
32
32
33
- #[derive(SessionDiagnostic )]
33
+ #[derive(Diagnostic )]
34
34
#[diag(codegen_ssa::unsupported_arch)]
35
35
pub struct UnsupportedArch;
36
36
37
- #[derive(SessionDiagnostic )]
37
+ #[derive(Diagnostic )]
38
38
#[diag(codegen_ssa::msvc_path_not_found)]
39
39
pub struct MsvcPathNotFound;
40
40
41
- #[derive(SessionDiagnostic )]
41
+ #[derive(Diagnostic )]
42
42
#[diag(codegen_ssa::link_exe_not_found)]
43
43
pub struct LinkExeNotFound;
44
44
45
- #[derive(SessionDiagnostic )]
45
+ #[derive(Diagnostic )]
46
46
#[diag(codegen_ssa::ld64_unimplemented_modifier)]
47
47
pub struct Ld64UnimplementedModifier;
48
48
49
- #[derive(SessionDiagnostic )]
49
+ #[derive(Diagnostic )]
50
50
#[diag(codegen_ssa::linker_unsupported_modifier)]
51
51
pub struct LinkerUnsupportedModifier;
52
52
53
- #[derive(SessionDiagnostic )]
53
+ #[derive(Diagnostic )]
54
54
#[diag(codegen_ssa::L4Bender_exporting_symbols_unimplemented)]
55
55
pub struct L4BenderExportingSymbolsUnimplemented;
56
56
57
- #[derive(SessionDiagnostic )]
57
+ #[derive(Diagnostic )]
58
58
#[diag(codegen_ssa::no_natvis_directory)]
59
59
pub struct NoNatvisDirectory {
60
60
pub error: Error,
61
61
}
62
62
63
- #[derive(SessionDiagnostic )]
63
+ #[derive(Diagnostic )]
64
64
#[diag(codegen_ssa::copy_path_buf)]
65
65
pub struct CopyPathBuf {
66
66
pub source_file: PathBuf,
@@ -69,7 +69,7 @@ pub struct CopyPathBuf {
69
69
}
70
70
71
71
// Reports Paths using `Debug` implementation rather than Path's `Display` implementation.
72
- #[derive(SessionDiagnostic )]
72
+ #[derive(Diagnostic )]
73
73
#[diag(codegen_ssa::copy_path)]
74
74
pub struct CopyPath<'a> {
75
75
from: DebugArgPath<'a>,
@@ -93,13 +93,13 @@ impl IntoDiagnosticArg for DebugArgPath<'_> {
93
93
}
94
94
}
95
95
96
- #[derive(SessionDiagnostic )]
96
+ #[derive(Diagnostic )]
97
97
#[diag(codegen_ssa::ignoring_emit_path)]
98
98
pub struct IgnoringEmitPath {
99
99
pub extension: String,
100
100
}
101
101
102
- #[derive(SessionDiagnostic )]
102
+ #[derive(Diagnostic )]
103
103
#[diag(codegen_ssa::ignoring_output)]
104
104
pub struct IgnoringOutput {
105
105
pub extension: String,
0 commit comments