diff options
| author | Andrew Zhogin <andrew.zhogin@gmail.com> | 2024-09-16 22:14:35 +0700 |
|---|---|---|
| committer | Andrew Zhogin <andrew.zhogin@gmail.com> | 2024-10-18 00:29:31 +0700 |
| commit | b3ae64d24fc323365bd09fe6ac8b7438f5713078 (patch) | |
| tree | f45202a805c0864b5b0ac4a635043d3beb3820cb /compiler/rustc_session/src/errors.rs | |
| parent | a0c2aba29aa9ea50a7c45c3391dd446f856bef7b (diff) | |
| download | rust-b3ae64d24fc323365bd09fe6ac8b7438f5713078.tar.gz rust-b3ae64d24fc323365bd09fe6ac8b7438f5713078.zip | |
rust_for_linux: -Zregparm=<N> commandline flag for X86 (#116972)
Diffstat (limited to 'compiler/rustc_session/src/errors.rs')
| -rw-r--r-- | compiler/rustc_session/src/errors.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/compiler/rustc_session/src/errors.rs b/compiler/rustc_session/src/errors.rs index dbb74d1e244..20e8fb38b88 100644 --- a/compiler/rustc_session/src/errors.rs +++ b/compiler/rustc_session/src/errors.rs @@ -486,6 +486,16 @@ pub(crate) struct FunctionReturnRequiresX86OrX8664; pub(crate) struct FunctionReturnThunkExternRequiresNonLargeCodeModel; #[derive(Diagnostic)] +#[diag(session_unsupported_regparm)] +pub(crate) struct UnsupportedRegparm { + pub(crate) regparm: u32, +} + +#[derive(Diagnostic)] +#[diag(session_unsupported_regparm_arch)] +pub(crate) struct UnsupportedRegparmArch; + +#[derive(Diagnostic)] #[diag(session_failed_to_create_profiler)] pub(crate) struct FailedToCreateProfiler { pub(crate) err: String, |
