about summary refs log tree commit diff
path: root/compiler/rustc_abi/src/layout.rs
AgeCommit message (Expand)AuthorLines
2023-12-15Annotate panic! reasons during enum layoutJubilee Young-6/+14
2023-12-02Rename `LayoutCalculator::delay_bug` as `LayoutCalculator::delayed_bug`.Nicholas Nethercote-3/+3
2023-11-21Fix `clippy::needless_borrow` in the compilerNilstrieb-3/+3
2023-11-05Make the randomize feature of rustc_abi additivehkalbasi-3/+2
2023-10-27fix failure to detect a too-big-type after adding paddingRalf Jung-0/+5
2023-10-04Remove unnecessary features from rustc_abiLukas Wirth-0/+1
2023-10-02Fix incorrect inlining of RangeInclusive::size_hintLukas Wirth-1/+1
2023-10-02Add VariantIdx backLukas Wirth-27/+55
2023-10-02Bring back generic FieldIdxLukas Wirth-84/+89
2023-10-02Unglob rustc_abi importsLukas Wirth-8/+10
2023-10-02Name some local variables more consistently.Nicholas Nethercote-6/+6
2023-10-01Minor comment and whitespace tweaks.Nicholas Nethercote-32/+32
2023-08-29there seems to be no reason to treat ZST specially in these casesRalf Jung-12/+2
2023-08-29rustc_abi: audit uses of is_zst; fix a case of giving an enum insufficient al...Ralf Jung-7/+18
2023-07-30inline format!() args up to and including rustc_middleMatthias Krüger-5/+3
2023-07-25abi: unsized field in union - assert to delay bugDavid Wood-1/+3
2023-07-14i686-windows: make requested alignment > 4 special case apply transitivelyErik Desjardins-22/+18
2023-07-10aarch64-linux: properly handle 128bit aligned aggregatesErik Desjardins-7/+50
2023-07-10repr(align) <= 4 should still be byvalErik Desjardins-9/+9
2023-07-10move has_repr to layout, handle repr(transparent) properlyErik Desjardins-0/+14
2023-07-06clean up struct layout codeLukas Markeffsky-4/+4
2023-05-29disable some layout optimizations for unsizable structsThe 8472-42/+48
2023-05-29Make struct layout not depend on unsizeable tailLukas Markeffsky-2/+6
2023-05-16Avoid `&format("...")` calls in error message code.Nicholas Nethercote-2/+2
2023-05-05Reorder to keep duplicate checks in sync.Luqman Aden-7/+12
2023-05-05Review feedbackLuqman Aden-13/+22
2023-05-05Incorporate review feedback from 103926.Luqman Aden-38/+33
2023-05-05Do not use scalar layout if there are ZSTs with alignment > 1Oli Scherer-20/+42
2023-04-28layout-alignment-promotion logic should depend on the niche-biasThe 8472-7/+22
2023-04-28[review] add comments, turn flag into enumThe 8472-23/+44
2023-04-27add tracing for layout optimizationsThe 8472-0/+44
2023-04-27don't promote large fields to higher alignments if that would affect niche pl...The 8472-13/+24
2023-04-27try two different niche-placement strategies when layouting univariant structsThe 8472-6/+70
2023-04-27refactor: extract functionThe 8472-214/+220
2023-04-18Store hashes in special types so they aren't accidentally encoded as numbersBen Kimock-1/+2
2023-04-16Various minor Idx-related tweaksScott McMurray-4/+3
2023-04-04Use `FieldIdx` in `FieldsShape`Scott McMurray-40/+35
2023-04-02Use `&IndexSlice` instead of `&IndexVec` where possibleScott McMurray-2/+2
2023-03-25Refactor: `VariantIdx::from_u32(0)` -> `FIRST_VARIANT`Scott McMurray-9/+9
2023-01-21Remove some superfluous type parameters from layout.rs.Michael Benfield-75/+71
2022-12-01Remove useless borrows and derefsMaybe Waffle-5/+5
2022-11-25Simplify and document range layout computationOli Scherer-13/+11
2022-11-24move things from rustc_target::abi to rustc_abihkalbasi-0/+947