about summary refs log tree commit diff
path: root/compiler/rustc_abi/src
AgeCommit message (Expand)AuthorLines
2023-08-03Add `internal_features` lintNilstrieb-0/+1
2023-07-30inline format!() args up to and including rustc_middleMatthias Krüger-17/+10
2023-07-25Rollup merge of #114060 - davidtwco:issue-113279, r=wesleywiserMatthias Krüger-2/+3
2023-07-25abi: unsized field in union - assert to delay bugDavid Wood-2/+3
2023-07-25interpret: refactor projection code to work on a common trait, and use that f...Ralf Jung-1/+1
2023-07-21Revert "Auto merge of #113166 - moulins:ref-niches-initial, r=oli-obk"David Tolnay-98/+10
2023-07-21Track (partial) niche information in `NaiveLayout`Moulins-2/+8
2023-07-21CTFE: move `target_{i, u}size_{min, max)` to `rustc_abi::TargetDataLayout`Moulins-11/+13
2023-07-21recover null-ptr optimization by adding a special case to the niching logicMoulins-8/+12
2023-07-21support non-null pointer niches in CTFEMoulins-0/+37
2023-07-21restrict the valid range of references if `-Z reference-niches` is setMoulins-0/+31
2023-07-21add crate-local `-Z reference_niches` unstable flag (does nothing for now)Moulins-0/+8
2023-07-14i686-windows: make requested alignment > 4 special case apply transitivelyErik Desjardins-29/+25
2023-07-10aarch64-linux: properly handle 128bit aligned aggregatesErik Desjardins-8/+71
2023-07-10repr(align) <= 4 should still be byvalErik Desjardins-17/+17
2023-07-10move has_repr to layout, handle repr(transparent) properlyErik Desjardins-1/+26
2023-07-06clean up struct layout codeLukas Markeffsky-4/+4
2023-06-13Auto merge of #112062 - lukas-code:unsized-layout, r=wesleywiserbors-44/+54
2023-06-08Removed stable/unstable sort arg from into_sorted_stable_ord, fixed a few mis...Andrew Xie-1/+3
2023-06-01Use translatable diagnostics in `rustc_const_eval`Deadbeef-7/+42
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-14/+23
2023-05-05Don't discard preferred alignment in scalar pair.Luqman Aden-4/+2
2023-05-05Factor out checks in layout check and add helper inherent_size.Luqman Aden-1/+22
2023-05-05Incorporate review feedback from 103926.Luqman Aden-38/+33
2023-05-05Add helper methods inherent_align and to_union on Abi.Luqman Aden-1/+26
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-24Split `{Idx, IndexVec, IndexSlice}` into their own modulesMaybe Waffle-1/+1
2023-04-18Store hashes in special types so they aren't accidentally encoded as numbersBen Kimock-4/+6
2023-04-17Rollup merge of #110394 - scottmcm:less-idx-new, r=WaffleLapkinMatthias Krüger-5/+4
2023-04-16Remove the loop in `Align::from_bytes`Scott McMurray-7/+4
2023-04-16Various minor Idx-related tweaksScott McMurray-5/+4
2023-04-09Fix some clippy::complexityNilstrieb-1/+1
2023-04-08Enforce that PointerLike requires a pointer-like ABIMichael Goulet-0/+10
2023-04-04Use `FieldIdx` in `FieldsShape`Scott McMurray-52/+46
2023-04-02Use `&IndexSlice` instead of `&IndexVec` where possibleScott McMurray-3/+3
2023-03-28Move `mir::Field` → `abi::FieldIdx`Scott McMurray-0/+26
2023-03-25Refactor: `VariantIdx::from_u32(0)` -> `FIRST_VARIANT`Scott McMurray-11/+24
2023-02-23Unify validity checks into a single queryNilstrieb-8/+0
2023-02-17Rollup merge of #107592 - workingjubilee:use-16-bit-enum-on-16-bit-targets, r...Matthias Krüger-1/+3
2023-02-16Default repr(C) enums to c_int sizeJubilee Young-1/+3