Files
rust/compiler/rustc_codegen_llvm/src
Jacob Pratt 9272c6d92a Rollup merge of #158542 - scottmcm:scalar-but-packed, r=workingjubilee
Rename `align` to `default_align` on `Scalar` and `Primitive`

To emphasize that just because you see a `Scalar(I32)` that doesn't really tell you anything about the alignment it has -- one should be looking at the type (well, the place) for that.

(The `size` method doesn't really have that problem -- i32 is always 4 bytes, no matter the context -- so is left untouched.)

No actual layout or behaviour changes in *this* PR.  Just the rename and some comments.

r? @workingjubilee
2026-07-01 01:03:18 -04:00
..
…
2026-06-10 09:57:20 +02:00
2026-06-26 13:24:13 +00:00
…
2026-06-26 13:24:13 +00:00
2026-06-26 13:24:13 +00:00
…
2026-06-02 19:56:40 +02:00
…
…