about summary refs log tree commit diff
path: root/compiler/rustc_mir/src/transform/promote_consts.rs
AgeCommit message (Expand)AuthorLines
2021-09-07Rename rustc_mir to rustc_const_eval.Camille GILLOT-1092/+0
2021-09-07Move rustc_mir::borrow_check to new crate rustc_borrowck.Camille GILLOT-1/+1
2021-08-26update `TypeFlags` to deal with missing ct substslcnr-0/+1
2021-08-26make unevaluated const substs optionallcnr-7/+11
2021-08-18Remove box syntax from rustc_mirest31-3/+3
2021-06-02Add `Ty::is_union` predicate and use itTomasz Miąsko-4/+2
2021-05-12entirely remove rustc_args_required_const attributeRalf Jung-2/+2
2021-05-12rustc_args_required_const is no longer a promotion siteRalf Jung-161/+28
2021-04-06Use AnonConst for asm! constantsAmanieu d'Antras-65/+17
2021-03-20extract `ConstKind::Unevaluated` into a structlcnr-4/+4
2021-03-12Prepare mir::Constant for ty::Const only supporting valtreesOli Scherer-17/+19
2021-03-08Auto merge of #82727 - oli-obk:shrinkmem, r=pnkfelixbors-1/+1
2021-03-05Shrink the size of Rvalue by 16 bytesOli Scherer-1/+1
2021-03-01Box generator-related Body fieldsDániel Buga-1/+1
2021-02-03added a suggestion to create a `const` item if the `fn` in the array repeat e...Henry Boisdequin-0/+35
2021-01-30Remove const_in_array_rep_exprkadmin-63/+3
2021-01-22do promote array indexing if we know it is in-boundsRalf Jung-15/+49
2021-01-22avoid promoting division, modulo and indexing operations that could failRalf Jung-13/+39
2021-01-16Use PlaceRef more consistently in rustc_mirOlivia Crain-46/+50
2020-12-29fix a commentRalf Jung-1/+1
2020-12-28make more matches exhaustiveRalf Jung-20/+41
2020-12-28merge two match'es for more exhaustivenessRalf Jung-39/+41
2020-12-28promotion: factor some common code into validate_refRalf Jung-57/+50
2020-12-09remove a hack that seems to only benefit a few very special casesRalf Jung-52/+6
2020-10-26interning cleanup: we no longer need to distinguish Const and ConstInner; we ...Ralf Jung-2/+1
2020-10-25Auto merge of #77526 - RalfJung:dont-promote-unions, r=lcnrbors-20/+14
2020-10-14Create a single source scope for promotedsTomasz Miąsko-3/+14
2020-10-04Replace `(Body, WithOptConstParam)` with `Body` where possibleDylan MacKenzie-6/+3
2020-10-04Replace `(Body, DefId)` with `Body` where possibleDylan MacKenzie-3/+5
2020-10-04Remember the `MirSource` for each `Body`Dylan MacKenzie-5/+7
2020-10-04stop promoting union field accesses in 'const'Ralf Jung-20/+14
2020-09-30Validate `rustc_args_required_const`varkor-1/+1
2020-09-21Rollup merge of #76888 - matthiaskrgr:clippy_single_match_2, r=Dylan-DPCecstatic-morse-11/+5
2020-09-20Rollup merge of #76890 - matthiaskrgr:matches_simpl, r=lcnrRalf Jung-1/+1
2020-09-20use if let instead of single match arm expressions to compact code and reduce...Matthias Krüger-11/+5
2020-09-19fix some commentsRalf Jung-6/+7
2020-09-19never promote non-const operations; revert STATIC promotion changeRalf Jung-4/+14
2020-09-19fix doc commentRalf Jung-4/+4
2020-09-19cleanup promotion const_kind checksRalf Jung-30/+28
2020-09-18use matches!() macro for simple if let conditionsMatthias Krüger-1/+1
2020-09-17Default to implicit (not explicit) rules for promotability in `const fn`Dylan MacKenzie-1/+8
2020-09-06do not premote non-ZST mutable references everRalf Jung-16/+2
2020-09-04Change ty.kind to a methodLeSeulArtichaut-10/+10
2020-08-30mv compiler to compiler/mark-0/+1258