about summary refs log tree commit diff
path: root/compiler/rustc_abi/src/layout.rs
AgeCommit message (Expand)AuthorLines
2025-07-29Reuse `sign_extend` helperOli Scherer-2/+2
2025-07-29Pick the largest niche even if the largest niche is wrapped aroundOli Scherer-24/+58
2025-07-24Remove dead code and extend test coverage and diagnostics around itOli Scherer-10/+2
2025-06-20compiler: Rename LayoutS to LayoutData in commentsZachary S-6/+6
2025-06-08Remove rustc's notion of "preferred" alignment AKA `__alignof`Jubilee Young-13/+7
2025-06-03Change `tag_field` to `FieldIdx` in `Variants::Multiple`Scott McMurray-2/+2
2025-04-13Initial `UnsafePinned`/`UnsafeUnpin` impl [Part 1: Libs]Sky-4/+4
2025-03-08Move coroutine layout logic to `rustc_abi`Moulins-0/+30
2025-03-08Move SIMD layout logic to `rustc_abi`Moulins-12/+85
2025-03-08Remove most manual LayoutData creations and move them to `rustc_abi`Moulins-52/+23
2025-02-28rename BackendRepr::Vector → SimdVectorRalf Jung-4/+8
2025-02-20compiler: `BackendRepr::inherent_{size,align} -> scalar_{size,align}`Jubilee Young-14/+23
2025-02-20Remove `BackendRepr::Uninhabited`, replaced with an `uninhabited: bool` field...Zachary S-11/+12
2025-02-16Move hashes from rustc_data_structure to rustc_hashes so they can be shared w...Ben Kimock-1/+1
2025-02-15Replace some u64 hashes with Hash64Ben Kimock-4/+5
2025-01-10exclude unsizable tail from randomization seed calculationThe 8472-13/+9
2025-01-10Foo<T> != Foo<U> under layout randomizationThe 8472-2/+35
2024-12-18make no-variant types a dedicated Variants variantRalf Jung-9/+10
2024-12-18Variants::Single: do not use invalid VariantIdx for uninhabited enumsRalf Jung-7/+7
2024-10-29compiler: `rustc_abi::Abi` => `BackendRepr`Jubilee Young-51/+53
2024-10-28Rollup merge of #132255 - workingjubilee:layout-is-🏚️, r=compiler-errorsJubilee-2/+2
2024-10-28compiler: Add `is_uninhabited` and use LayoutS accessorsJubilee Young-2/+2
2024-10-27compiler: Rename LayoutS to LayoutDataJubilee Young-21/+21
2024-10-21Make rustc_abi compile on stable againLukas Wirth-0/+2
2024-10-20compiler: Reject impossible reprs during enum layoutJubilee Young-0/+9
2024-10-19compiler: Adopt rust-analyzer impls for `LayoutCalculatorError`Jubilee Young-1/+26
2024-10-11compiler: Wire `{TyAnd,}Layout` into `rustc_abi`Jubilee Young-0/+4
2024-09-22Reformat using the new identifier sorting from rustfmtMichael Goulet-1/+1
2024-09-18Get rid of niche selection's dependence on fields's orderAdwin White-9/+4
2024-09-17get rid of an old hackLukas Markeffsky-1/+5
2024-09-17assert that unexpectedly unsized fields are sized in the param envLukas Markeffsky-27/+34
2024-09-16layout computation: eagerly error for unexpected unsized fieldsLukas Markeffsky-918/+939
2024-08-31inhibit layout randomization for BoxThe 8472-4/+7
2024-07-29Reformat `use` declarations.Nicholas Nethercote-5/+4
2024-07-04Rollup merge of #123043 - GoldsteinE:fix/repr-c-dead-branches, r=oli-obkMatthias Krüger-2/+2
2024-06-28Disable dead variant removal for `#[repr(C)]` enums.Goldstein-2/+2
2024-05-21don't inhibit random field reordering on repr(packed(1))Ralf Jung-4/+6
2024-05-18Temporarily revert to NonZeroUsize in rustc-abi to fix building on stableLaurențiu Nicola-4/+3
2024-05-08Use generic `NonZero`.Markus Reiter-3/+4
2024-04-28Rename `inihibit_union_abi_opt()` to `inihibits_union_abi_opt()`Gurinder Singh-1/+1
2024-03-13Auto merge of #121668 - erikdesjardins:commonprim, r=scottmcm,oli-obkbors-6/+28
2024-03-05Change message type in bug functions.Nicholas Nethercote-2/+5
2024-02-28simplify common prim computationErik Desjardins-16/+9
2024-02-27allow using scalarpair with a common prim of ptr/ptr-sized-intErik Desjardins-6/+35
2024-02-26fix some references to no-longer-existing ReprOptions.layout_seedRalf Jung-1/+1
2023-12-16Extract fn layout_of_structJubilee Young-102/+130
2023-12-16Extract fn layout_of_enumJubilee Young-476/+496
2023-12-16Manually inline scalar_unitJubilee Young-7/+3
2023-12-16Hoist fn absentJubilee Young-12/+18
2023-12-15Annotate panic! reasons during enum layoutJubilee Young-6/+14