diff options
| author | Jubilee <workingjubilee@gmail.com> | 2025-06-08 17:17:56 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-06-08 17:17:56 -0700 |
| commit | 48667ddd5a659b3e258436e7cd0ed8c2a5ada4ad (patch) | |
| tree | dcfa85ad0f5837ec97d2aab40d3bf30be1749c0f /compiler/rustc_codegen_llvm/src/errors.rs | |
| parent | 277f57e0a0ec2980a7c1b3edb31d63e9e12fee99 (diff) | |
| parent | a50bd7ca24aa752fee840e83f7090bbd23f3a158 (diff) | |
| download | rust-48667ddd5a659b3e258436e7cd0ed8c2a5ada4ad.tar.gz rust-48667ddd5a659b3e258436e7cd0ed8c2a5ada4ad.zip | |
Rollup merge of #142179 - folkertdev:min-global-align-parse, r=workingjubilee
store `target.min_global_align` as an `Align` Parse the alignment properly when the target is defined/parsed, and error out on invalid alignment values. That means this work doesn't need to happen for every global in each backend.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
| -rw-r--r-- | compiler/rustc_codegen_llvm/src/errors.rs | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/compiler/rustc_codegen_llvm/src/errors.rs b/compiler/rustc_codegen_llvm/src/errors.rs index ecf108f988f..eaafc680712 100644 --- a/compiler/rustc_codegen_llvm/src/errors.rs +++ b/compiler/rustc_codegen_llvm/src/errors.rs @@ -58,18 +58,6 @@ pub(crate) struct SymbolAlreadyDefined<'a> { } #[derive(Diagnostic)] -#[diag(codegen_llvm_invalid_minimum_alignment_not_power_of_two)] -pub(crate) struct InvalidMinimumAlignmentNotPowerOfTwo { - pub align: u64, -} - -#[derive(Diagnostic)] -#[diag(codegen_llvm_invalid_minimum_alignment_too_large)] -pub(crate) struct InvalidMinimumAlignmentTooLarge { - pub align: u64, -} - -#[derive(Diagnostic)] #[diag(codegen_llvm_sanitizer_memtag_requires_mte)] pub(crate) struct SanitizerMemtagRequiresMte; |
