diff options
| author | Jacob Bramley <jacob.bramley@arm.com> | 2022-11-21 16:05:51 +0000 |
|---|---|---|
| committer | Jacob Bramley <jacob.bramley@arm.com> | 2022-12-06 15:51:57 +0000 |
| commit | 49f3c0b73689eed49df9ef822f9fd437db93ce9e (patch) | |
| tree | 2d0f6319ecfa15ba1b4de2d805dc7c8920fcef0f /compiler/rustc_session/src/errors.rs | |
| parent | 203c8765ea33c65d888febe0e8219c4bb11b0d89 (diff) | |
| download | rust-49f3c0b73689eed49df9ef822f9fd437db93ce9e.tar.gz rust-49f3c0b73689eed49df9ef822f9fd437db93ce9e.zip | |
Check AArch64 branch-protection earlier in the pipeline.
As suggested in #93516.
Diffstat (limited to 'compiler/rustc_session/src/errors.rs')
| -rw-r--r-- | compiler/rustc_session/src/errors.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/rustc_session/src/errors.rs b/compiler/rustc_session/src/errors.rs index 8cb9e1a6f1a..fd7dabf75ef 100644 --- a/compiler/rustc_session/src/errors.rs +++ b/compiler/rustc_session/src/errors.rs @@ -116,6 +116,10 @@ pub struct StackProtectorNotSupportedForTarget<'a> { } #[derive(Diagnostic)] +#[diag(session_branch_protection_requires_aarch64)] +pub(crate) struct BranchProtectionRequiresAArch64; + +#[derive(Diagnostic)] #[diag(session_split_debuginfo_unstable_platform)] pub struct SplitDebugInfoUnstablePlatform { pub debuginfo: SplitDebuginfo, |
