about summary refs log tree commit diff
path: root/src/librustc_mir/transform
AgeCommit message (Expand)AuthorLines
2019-11-03Don't extend lifetime of temp in `Repeat` expressionsDylan MacKenzie-18/+11
2019-11-03Mark entire local as promoted even if only part is usedDylan MacKenzie-18/+16
2019-11-02Auto merge of #63810 - oli-obk:const_offset_from, r=RalfJung,nikicbors-0/+1
2019-11-02Don't double-count `simd_shuffle` promotion candidatesDylan MacKenzie-0/+2
2019-11-02Simplify various `Symbol` use points.Nicholas Nethercote-9/+9
2019-11-01Rollup merge of #65946 - ecstatic-morse:refactor-promotion2, r=eddybTyler Mandry-17/+26
2019-10-29Stop emitting error in `qualify_consts` if promotion failsDylan MacKenzie-11/+3
2019-10-29Emit errors in `promote_consts` when required promotion failsDylan MacKenzie-1/+11
2019-10-29Add method to `Candidate` that determines its promotability rulesDylan MacKenzie-5/+12
2019-10-28suggest `const_in_array_repeat_expression` flagDavid Wood-7/+39
2019-10-28Rollup merge of #65664 - anp:panic-location, r=eddybMazdak Farrokhzad-0/+1
2019-10-27Implementation of const caller_location.Adam Perry-0/+1
2019-10-25Remove `QualifResolver` abstractionDylan MacKenzie-206/+112
2019-10-25Use `is_lang_panic_fn` from `check_consts` in `promote_consts`Dylan MacKenzie-8/+4
2019-10-25Deduplicate `promote_consts::Validator` and `check_consts::Item`Dylan MacKenzie-48/+30
2019-10-25Make `Item` fields pubDylan MacKenzie-5/+5
2019-10-25Make `check_consts::Item` work on non-const fnsDylan MacKenzie-120/+105
2019-10-26rustc_mir: use the new validator's Qualif in promotion.Eduard-Mihai Burtescu-49/+120
2019-10-26rustc_mir: double-check const-promotion candidates for sanity.Eduard-Mihai Burtescu-30/+691
2019-10-25Don't cast directly from `&[T; N]` to `*const T`Matthew Jasper-1/+2
2019-10-25Rollup merge of #65315 - spastorino:intern-place-projection, r=oli-obkMazdak Farrokhzad-354/+419
2019-10-23Rollup merge of #65657 - nnethercote:rm-InternedString-properly, r=eddybMazdak Farrokhzad-14/+13
2019-10-22Move Place::elem methods and friends to TyCtxtSantiago Pastorino-4/+4
2019-10-22Intern place projectionSantiago Pastorino-82/+166
2019-10-22Pattern match over PlaceRef rather than PlaceSantiago Pastorino-275/+256
2019-10-20Improve SimplifyLocals pass so it can remove unused constsWesley Wiser-29/+54
2019-10-20Cleanup `ConstProp::visit_statement()`Wesley Wiser-10/+9
2019-10-21Convert `InternedString`s to `Symbols` in `UnsafetyViolation`.Nicholas Nethercote-14/+13
2019-10-20skip all refs-to-uninit-local, not just argumentsRalf Jung-5/+6
2019-10-19clarify const_prop ICE protection commentRalf Jung-8/+10
2019-10-19Auto merge of #64890 - wesleywiser:const_prop_rvalue, r=oli-obkbors-74/+84
2019-10-19Rollup merge of #65485 - ecstatic-morse:const-validation-mismatch-ugliness, r...Mazdak Farrokhzad-17/+58
2019-10-18Improve comments and structure of `ConstProp::const_prop()`Wesley Wiser-32/+50
2019-10-18Cleanup const_prop() someWesley Wiser-72/+75
2019-10-18[const-prop] Handle MIR Rvalue::BoxWesley Wiser-18/+1
2019-10-18Rollup merge of #65535 - eddyb:sliced-predicates, r=nikomatsakisTyler Mandry-1/+1
2019-10-18Use Cow to handle modifications of projection in preparation for interningSantiago Pastorino-31/+34
2019-10-18[const-prop] Handle MIR Rvalue::DiscriminantWesley Wiser-2/+2
2019-10-18[const-prop] Handle MIR Rvalue::AggregatesWesley Wiser-1/+7
2019-10-18[const-prop] Handle MIR Rvalue::RepeatWesley Wiser-1/+1
2019-10-17Add process_* place hooks to improve code reutilizationSantiago Pastorino-60/+37
2019-10-17Prepare erase_regions MutVisitor to have projections internedSantiago Pastorino-1/+20
2019-10-17Prepare generator MutVisitor to have projections internedSantiago Pastorino-7/+45
2019-10-17Prepare inline MutVisitor to have projections internedSantiago Pastorino-16/+35
2019-10-17Prepare simplify MutVisitor to have projections internedSantiago Pastorino-0/+20
2019-10-17Prepare promote_consts MutVisitor to have projections internedSantiago Pastorino-1/+25
2019-10-17super_ty on MutVisitor is empty so avoid the callSantiago Pastorino-1/+0
2019-10-18rustc: arena-allocate the slice in `ty::GenericsPredicate`, not the whole str...Eduard-Mihai Burtescu-1/+1
2019-10-16Suppress validation mismatch ICE in the presence of mut borrowsDylan MacKenzie-17/+58
2019-10-11Make <*const/mut T>::offset_from `const fn`Oliver Scherer-0/+1