mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-28 03:07:24 +03:00
7339fc5cec
Tighten the `!range` bounds on alignments in vtables Right now we're only telling LLVM that they're non-zero, but alignments must be powers of two so can't be more than `isize::MAX+1`. And we actually never emit anything beyond LLVM's limit of 2²⁹, so outside of 16-bit targets the limit is that. (Pulled out from rust-lang/rust#152867 which is starting to have too much in it.)
Please read the rustc-dev-guide chapter on Backend Agnostic Codegen.