summary refs log tree commit diff
path: root/src/librustc/ty/layout.rs
AgeCommit message (Expand)AuthorLines
2018-05-14rustc: don't trip an assertion for enums with present but uninhabited variants.Eduard-Mihai Burtescu-0/+5
2018-05-13rustc: leave space for fields of uninhabited types to allow partial initializ...Eduard-Mihai Burtescu-23/+50
2018-05-06issue-49938: Reference tagged unions discr(iminant) as tagSamuel Wilson-5/+5
2018-05-01Correct initial field alignment for repr(C)/repr(int)varkor-2/+6
2018-05-01Auto merge of #50198 - oli-obk:const_prop, r=eddybbors-1/+1
2018-05-01Removed direct field usage of RangeInclusive in rustc itself.kennytm-24/+20
2018-04-30Merge ConstMathError into EvalErrorKindOliver Schneider-1/+1
2018-04-27Auto merge of #49420 - nox:enum-scalarpair, r=eddybbors-8/+73
2018-04-26Auto merge of #49513 - nox:univariant-fieldless-enum-as-zst, r=eddybbors-5/+4
2018-04-26Fixed tidy errors.Irina Popa-1/+1
2018-04-26Treat repr(Rust) univariant fieldless enums as a ZST (fixes #15747)Anthony Ramine-5/+4
2018-04-26rustc_target: move for_variant and field TyLayout methods to a trait.Irina Popa-80/+39
2018-04-26rustc_target: move LayoutOf's type parameter to an associated type.Irina Popa-5/+7
2018-04-26rustc_target: move in type definitions from ty::layout.Irina Popa-757/+35
2018-04-26Use ScalarPair for tagged enumsAnthony Ramine-8/+73
2018-04-18Auto merge of #49981 - nox:fix-signed-niches, r=eddybbors-5/+6
2018-04-15Make layout_depth thread-safeJohn Kåre Alsaker-12/+17
2018-04-15Properly handle ranges of signed enums using both extremums (fixes #49973)Anthony Ramine-5/+6
2018-04-12Auto merge of #49558 - Zoxc:sync-misc, r=michaelwoeristerbors-1/+1
2018-04-12Auto merge of #48528 - bitshifter:repr_packed, r=eddybbors-26/+52
2018-04-11Implementation of `#[repr(packed(n))]` RFC 1399.Cameron Hart-26/+52
2018-04-10Make recursion_limit and type_length_limit thread-safeJohn Kåre Alsaker-1/+1
2018-04-09Properly look for uninhabitedness of variants in niche-filling checkAnthony Ramine-3/+3
2018-03-26Allow niche-filling dataful variants to be represented as a ScalarPairAnthony Ramine-4/+15
2018-03-22Fix the conversion between bit representations and i128 representationsOliver Schneider-1/+7
2018-03-14remove defaulting to unitAndrew Cann-2/+2
2018-03-13transition various normalization functions to the new methodsNiko Matsakis-6/+6
2018-03-13refactor `ParamEnv::empty(Reveal)` into two distinct methodsNiko Matsakis-4/+4
2018-03-08Decide signdedness on the layout instead of the typeOliver Schneider-0/+11
2018-03-08Accidental pasteOliver Schneider-1/+1
2018-03-08Nuke ConstInt and Const*sizeOliver Schneider-1/+1
2018-03-08Add InterpretInterner to StableHashingContext for AllocId serializationOliver Schneider-10/+10
2018-03-08Produce instead of pointersOliver Schneider-2/+2
2018-03-08Add a variant to ConstVal for storing miri resultsOliver Schneider-1/+1
2018-03-04Fixed #48425Pramod Bisht-2/+2
2018-02-17fix more typos found by codespell.Matthias Krüger-2/+2
2018-02-01rustc: prefer ParamEnvAnd and LayoutCx over tuples for LayoutOf.Eduard-Mihai Burtescu-72/+99
2018-01-23Adds support for immovable generators. Move checking of invalid borrows acros...John Kåre Alsaker-3/+4
2018-01-08Don't look for niches inside generator types. Fixes #47253John Kåre Alsaker-0/+7
2018-01-04rustc: use {U,I}size instead of {U,I}s shorthands.Eduard-Mihai Burtescu-1/+1
2018-01-01Fix docs for future pulldown migrationMalo Jaffré-2/+4
2017-12-26rustc: don't use union layouts for tagged union enums.Eduard-Mihai Burtescu-4/+4
2017-12-24Auto merge of #46859 - gereeter:uninhabited-unions, r=eddybbors-11/+11
2017-12-23Remove unnecessary assert that unions have only one variantJonathan S-3/+0
2017-12-20Never mark unions as uninhabited. Although I think this is wrong, it is certa...Jonathan S-5/+0
2017-12-20rustc: do not raise the alignment of optimized enums to the niche's alignment.Eduard-Mihai Burtescu-7/+5
2017-12-19Only mark unions as uninhabited if all of their fields are uninhabited. Fixes...Jonathan S-11/+19
2017-12-18rustc: ensure optimized enums have a properly aligned size.Eduard-Mihai Burtescu-1/+2
2017-12-17rustc: don't track whether layouts are "packed".Eduard-Mihai Burtescu-52/+11
2017-12-15rustc_trans: approximate ABI alignment for padding/union fillers.Eduard-Mihai Burtescu-2/+15