diff options
| author | Miguel Ojeda <ojeda@kernel.org> | 2025-05-07 15:38:14 +0200 |
|---|---|---|
| committer | Miguel Ojeda <ojeda@kernel.org> | 2025-08-17 16:51:42 +0200 |
| commit | 1a29d9c23ff8df46197f5ebd3df15fe99904d312 (patch) | |
| tree | 5902dc3d038702a438812bb9598f63277f383953 /compiler/rustc_session/src/errors.rs | |
| parent | 1cd7080c3a7f29297675a72a157575ae12717304 (diff) | |
| download | rust-1a29d9c23ff8df46197f5ebd3df15fe99904d312.tar.gz rust-1a29d9c23ff8df46197f5ebd3df15fe99904d312.zip | |
Add `-Zindirect-branch-cs-prefix` option
This is intended to be used for Linux kernel RETPOLINE builds. Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
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 bf95014843d..9471807df01 100644 --- a/compiler/rustc_session/src/errors.rs +++ b/compiler/rustc_session/src/errors.rs @@ -472,6 +472,10 @@ pub(crate) struct FunctionReturnRequiresX86OrX8664; pub(crate) struct FunctionReturnThunkExternRequiresNonLargeCodeModel; #[derive(Diagnostic)] +#[diag(session_indirect_branch_cs_prefix_requires_x86_or_x86_64)] +pub(crate) struct IndirectBranchCsPrefixRequiresX86OrX8664; + +#[derive(Diagnostic)] #[diag(session_unsupported_regparm)] pub(crate) struct UnsupportedRegparm { pub(crate) regparm: u32, |
