diff options
| author | Ralf Jung <post@ralfj.de> | 2024-11-02 21:27:13 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-02 21:27:13 +0000 |
| commit | c67ea446048735af7e11ba483820be88895b4c23 (patch) | |
| tree | 0c8759952e9464f0e98bc499c9da790aa416694d /compiler/rustc_codegen_ssa/src/errors.rs | |
| parent | 6630802a1a6f09f9e07ee4113da3414e5e275972 (diff) | |
| parent | c1b8d6611e7a29ed0ad700c28d2873a16760a448 (diff) | |
| download | rust-c67ea446048735af7e11ba483820be88895b4c23.tar.gz rust-c67ea446048735af7e11ba483820be88895b4c23.zip | |
Merge pull request #4009 from RalfJung/rustup
Rustup
Diffstat (limited to 'compiler/rustc_codegen_ssa/src/errors.rs')
| -rw-r--r-- | compiler/rustc_codegen_ssa/src/errors.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/compiler/rustc_codegen_ssa/src/errors.rs b/compiler/rustc_codegen_ssa/src/errors.rs index d67cf0e3a6d..cf8d1cfa0d1 100644 --- a/compiler/rustc_codegen_ssa/src/errors.rs +++ b/compiler/rustc_codegen_ssa/src/errors.rs @@ -2,6 +2,7 @@ use std::borrow::Cow; use std::io::Error; +use std::num::ParseIntError; use std::path::{Path, PathBuf}; use std::process::ExitStatus; @@ -540,6 +541,14 @@ pub(crate) struct UnsupportedArch<'a> { } #[derive(Diagnostic)] +pub(crate) enum AppleDeploymentTarget { + #[diag(codegen_ssa_apple_deployment_target_invalid)] + Invalid { env_var: &'static str, error: ParseIntError }, + #[diag(codegen_ssa_apple_deployment_target_too_low)] + TooLow { env_var: &'static str, version: String, os_min: String }, +} + +#[derive(Diagnostic)] pub(crate) enum AppleSdkRootError<'a> { #[diag(codegen_ssa_apple_sdk_error_sdk_path)] SdkPath { sdk_name: &'a str, error: Error }, |
