| Age | Commit message (Collapse) | Author | Lines | |
|---|---|---|---|---|
| 2023-01-11 | Move /src/test to /tests | Albert Larsan | -2969/+0 | |
| 2023-01-04 | layout_of: `T: Thin` implies `sizeof(&T) == sizeof(usize)` | Michael Goulet | -0/+11 | |
| 2022-11-25 | Add a test for OOB ranges | Oli Scherer | -0/+21 | |
| 2022-11-22 | fix tests, update size asserts | The 8472 | -10/+10 | |
| 2022-09-07 | Change name of "dataful" variant to "untagged" | Michael Benfield | -3/+3 | |
| This is in anticipation of a new enum layout, in which the niche optimization may be applied even when multiple variants have data. | ||||
| 2022-08-03 | Warn about dead tuple struct fields | Fabian Wolff | -2/+2 | |
| 2022-07-31 | reorder fields in Laout debug output | Ralf Jung | -920/+920 | |
| 2022-07-30 | Test another enum niche with multiple ZST alignments | Josh Stone | -3/+132 | |
| 2022-07-30 | Fix the size of niche enums with ZST alignment | Josh Stone | -0/+340 | |
| For enums with an aligned ZST variant, like `[T; 0]`, the niche layout was not computing a sufficient size to be consistent with alignment. Now we pad that size up to the alignment, and also make sure to only use the niche variant's ABI when the size and alignment still match. | ||||
| 2022-07-13 | Limit test to x86 targets for reproducability | Oli Scherer | -0/+1 | |
| 2022-07-12 | Always check Cell alongside with `UnsafeCell` | Oli Scherer | -1/+12 | |
| 2022-07-12 | Use some more visible sigils than `,` | Oli Scherer | -16/+16 | |
| 2022-07-11 | Only check relative sizes on platform specific types | Oli Scherer | -37/+32 | |
| 2022-07-11 | tidy | Oli Scherer | -1/+4 | |
| 2022-07-11 | Simplify size checking | Oli Scherer | -39/+31 | |
| 2022-07-11 | Don't allow accidental runtime-checks | Oli Scherer | -51/+50 | |
| 2022-07-11 | tidy | Oli Scherer | -4/+16 | |
| 2022-07-11 | Make tests work on 32 bit and 64 bit | Oli Scherer | -19/+22 | |
| 2022-07-11 | Show sizes in error output | Oli Scherer | -1/+3 | |
| 2022-07-11 | Rename assertion macro | Oli Scherer | -27/+27 | |
| 2022-07-11 | Simplify assertion macro | Oli Scherer | -29/+28 | |
| 2022-07-11 | Move checks to compile-time | Oli Scherer | -1/+8 | |
| 2022-07-11 | Hide niches in SIMD types, too | Oli Scherer | -0/+8 | |
| 2022-07-08 | Create a custom layout path for UnsafeCell instead of piggy backing on the ↵ | Oli Scherer | -0/+9 | |
| layout_scalar_valid_range logic | ||||
| 2022-07-08 | Add tests for libstd types | Oli Scherer | -5/+17 | |
| 2022-07-07 | `UnsafeCell` now has no niches, ever. | Oli Scherer | -4/+1 | |
| 2022-07-05 | fix the layout of repr(align) enums | Ralf Jung | -0/+191 | |
| 2022-07-01 | Shorten def_span for more items. | Camille GILLOT | -53/+36 | |
| 2022-05-09 | make sure ScalarPair enums have ScalarPair variants; add some layout sanity ↵ | Ralf Jung | -21/+109 | |
| checks | ||||
| 2022-05-06 | make Size and Align debug-printing a bit more compact | Ralf Jung | -521/+190 | |
| 2022-04-22 | normalize out pref_align (copied from another test) | Erik Desjardins | -56/+23 | |
| 2022-04-18 | mark payload fields of ScalarPair enums as Scalar::Union when they're not ↵ | Erik Desjardins | -0/+807 | |
| always initialized | ||||
| 2022-04-05 | Mark scalar layout unions so that backends that do not support partially ↵ | Oli Scherer | -111/+87 | |
| initialized scalars can special case them. | ||||
| 2021-11-20 | Align multiline messages to their label (add left margin) | Esteban Kuber | -1137/+1137 | |
| 2021-08-12 | Add c_enum_min_bits to target spec | Manish Goregaokar | -0/+476 | |
| 2021-07-27 | Make all tests use type_alias_impl_trait feature instead of min | Santiago Pastorino | -1/+1 | |
| 2021-04-13 | Fix ICE during type layout when there's a `[type error]` | Camelid | -0/+58 | |
| Based on estebank's [comment], except I used `delay_span_bug` because it should work in more cases, and I think it expresses its intent more clearly. [comment]: https://github.com/rust-lang/rust/issues/84108#issuecomment-818916848 | ||||
| 2021-03-15 | Replace `type_alias_impl_trait` by `min_type_alias_impl_trait` with no ↵ | Oli Scherer | -2/+2 | |
| actual changes in behaviour This makes `type_alias_impl_trait` not actually do anything anymore | ||||
| 2021-02-22 | Test hexagon-enum only when llvm target is present | Simonas Kazlauskas | -5/+6 | |
| See https://github.com/rust-lang/rust/pull/82379#issuecomment-783439754 | ||||
| 2021-02-22 | Fix sizes of repr(C) enums on hexagon | Simonas Kazlauskas | -0/+475 | |
| Enums on hexagon use a smallest size (but at least 1 byte) that fits all the enumeration values. This is unlike many other ABIs where enums are at least 32 bits. | ||||
| 2020-11-18 | change error for `LayoutErr::SizeOverflow` | Bastian Kauschke | -0/+13 | |
| 2020-05-30 | tag/niche terminology cleanup | Ralf Jung | -6/+6 | |
| 2020-04-16 | rustc_target::abi: add Primitive variant to FieldsShape. | Ana-Maria Mihalache | -3/+1 | |
| 2020-04-06 | tweak rustc_layout debug output | Ralf Jung | -10/+10 | |
| 2020-04-05 | also print type type | Ralf Jung | -5/+5 | |
| 2020-04-05 | also print rustc_layout on impl trait type aliases | Ralf Jung | -2/+41 | |
| 2020-03-25 | Rename LayoutDetails to just Layout. | Ana-Maria Mihalache | -8/+8 | |
| 2020-03-21 | normalize away preferred alignment | Ralf Jung | -28/+13 | |
| 2020-03-20 | make rustc_layout also work for type definitions | Ralf Jung | -6/+228 | |
| 2020-03-20 | add a test for rustc_layout(debug) | Ralf Jung | -0/+127 | |
