summary refs log tree commit diff
path: root/compiler/rustc_middle/src/ty/layout.rs
AgeCommit message (Collapse)AuthorLines
2020-09-26Return values up to 128 bits in registersJonas Schievink-4/+8
2020-09-25Auto merge of #73453 - erikdesjardins:tuplayout, r=eddybbors-65/+47
Ignore ZST offsets when deciding whether to use Scalar/ScalarPair layout This is important because Scalar/ScalarPair layout previously would not be used if any ZST had nonzero offset. For example, before this change, only `((), u128)` would be laid out like `u128`, not `(u128, ())`. Fixes #63244
2020-09-20do not ICE on `ty::Bound` in Layout::computeBastian Kauschke-2/+2
2020-09-04Change ty.kind to a methodLeSeulArtichaut-14/+16
2020-09-02Fix some unwanted uses of Debug formatting on user-facing messagesDan Aloni-2/+2
While formatting for user diagnostics used `Display` for all most cases, some small amount of cases used `Debug` instead. Until now, `Display` and `Debug` yielded the same output for many types. However, with path trimming, we want to show a shorter path for the user, these cases need fixing.
2020-08-30ignore zst offsets insteadErik Desjardins-78/+53
2020-08-30allow reordering of the last field of a MaybeUnsized struct if it's a ZSTErik Desjardins-6/+13
2020-08-30mv compiler to compiler/mark-0/+2829