diff options
| author | Ellis Hoag <ellis.sparky.hoag@gmail.com> | 2022-08-26 20:23:50 -0700 |
|---|---|---|
| committer | Ellis Hoag <ellis.sparky.hoag@gmail.com> | 2022-09-24 10:24:48 -0700 |
| commit | 7277046d84d53a9b31abb4ef8d5b448afa4725f1 (patch) | |
| tree | 540e30609b382b3b388c8a89f2f24c5179174735 /src/errors.rs | |
| parent | 23eae52d45ceace95215e696da13c6f9f57f90f0 (diff) | |
Add LinkageConstOrMutType
Diffstat (limited to 'src/errors.rs')
| -rw-r--r-- | src/errors.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/errors.rs b/src/errors.rs index 1a0e38fc0bb..456a60c6f90 100644 --- a/src/errors.rs +++ b/src/errors.rs @@ -1,7 +1,15 @@ use rustc_macros::SessionDiagnostic; +use rustc_span::Span; #[derive(SessionDiagnostic)] #[diag(codegen_gcc::ranlib_failure)] pub(crate) struct RanlibFailure { pub exit_code: Option<i32> } + +#[derive(SessionDiagnostic)] +#[diag(codegen_gcc::linkage_const_or_mut_type)] +pub(crate) struct LinkageConstOrMutType { + #[primary_span] + pub span: Span +} |
