about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src
diff options
context:
space:
mode:
author许杰友 Jieyou Xu (Joe) <39484203+jieyouxu@users.noreply.github.com>2024-10-28 13:36:17 +0800
committerGitHub <noreply@github.com>2024-10-28 13:36:17 +0800
commit95a9d496f3f552af7e3bc8ddeb11137f98357e4b (patch)
tree16c43b928958e16e940c5efd3682962f5d0848dd /compiler/rustc_codegen_llvm/src
parentdf4ca44d3fbc9301ee17f30f4d474e6ae4b05252 (diff)
parent6fc7ce43d2f2cd2fef1b75c9c59f13f312e0d9d8 (diff)
downloadrust-95a9d496f3f552af7e3bc8ddeb11137f98357e4b.tar.gz
rust-95a9d496f3f552af7e3bc8ddeb11137f98357e4b.zip
Rollup merge of #131633 - asquared31415:align_isize_max, r=jieyouxu
error on alignments greater than `isize::MAX`

Fixes #131122

On zulip someone had a concern that it was legal to create a type with alignment `isize::MAX + 1`, but I do not believe this should be allowed for `repr(align)`, as `repr(align)` also increases the *size* of the type, and that would be larger than the maximum allowed size of objects.

(cc `@workingjubilee` #131276)
Diffstat (limited to 'compiler/rustc_codegen_llvm/src')
0 files changed, 0 insertions, 0 deletions