about summary refs log tree commit diff
path: root/compiler/rustc_mir_build/src/thir/pattern
AgeCommit message (Expand)AuthorLines
2020-11-01The need for `Single` to cover `Unlistable` was a hackNadrieril-18/+13
2020-11-01Fix #78549Nadrieril-16/+44
2020-10-30Fix even more clippy warningsJoshua Nelson-16/+4
2020-10-28Apply suggestions from code reviewNadrieril-23/+20
2020-10-27Simplify slice splitting a bitNadrieril-41/+28
2020-10-27Deduplicate work between splitting and subtractionNadrieril-216/+87
2020-10-27Be honest about being able to list constructorsNadrieril-33/+41
2020-10-27Simplify specialize_constructorNadrieril-175/+13
2020-10-27Unify the paths through `is_useful`Nadrieril-103/+53
2020-10-27Recompute `MissingConstructors` when neededNadrieril-39/+56
2020-10-27Pass more things through `PatCtxt`Nadrieril-128/+75
2020-10-27Let MissingConstructors handle the subtleties of missing constructorsNadrieril-89/+72
2020-10-27Cache head constructor in PatStackNadrieril-68/+62
2020-10-27Unify the two kinds of specialization by adding a Wildcard ctorNadrieril-97/+80
2020-10-27Inline `specialize_one_pattern`Nadrieril-51/+39
2020-10-27Factor out the two specialization stepsNadrieril-80/+107
2020-10-27Clarify specialization into two stepsNadrieril-56/+48
2020-10-27Use pat_constructor to simplify specialize_one_patternNadrieril-105/+71
2020-10-27Split `split_grouped_constructor` into smaller functionsNadrieril-329/+345
2020-10-24Rollup merge of #78072 - Nadrieril:cleanup-constant-matching, r=varkorJonas Schievink-345/+126
2020-10-21Clean up and improve some docsCamelid-8/+32
2020-10-21Explain the `Opaque` special case in specializationNadrieril-1/+18
2020-10-18Add commentNadrieril-0/+3
2020-10-18The only remaining constant patterns are opaqueNadrieril-28/+48
2020-10-18Treat string literals separately from other constantsNadrieril-3/+9
2020-10-18Handle ranges of float consistentlyNadrieril-57/+48
2020-10-18Fix commentNadrieril-0/+1
2020-10-18Treat booleans as integers with valid range 0..=1Oliver Scherer-4/+3
2020-10-18A ConstantValue constructor with a slice pattern is an errorNadrieril-1/+0
2020-10-18Destructure byte slices and remove all the workaroundsOliver Scherer-243/+9
2020-10-18Destructure byte array constants to array patterns instead of keeping them op...Oliver Scherer-32/+11
2020-10-16Lower inline const down to MIRSantiago Pastorino-0/+5
2020-10-16Rollup merge of #76119 - Amjad50:stabilizing-move_ref_pattern, r=nikomatsakisDylan DPC-66/+4
2020-10-13Replace absolute paths with relative onesest31-6/+6
2020-09-26Speed up `IntRange::from_pat`Dylan MacKenzie-3/+27
2020-09-26Auto merge of #70743 - oli-obk:eager_const_to_pat_conversion, r=eddybbors-110/+340
2020-09-24Auto merge of #76918 - ishitatsuyuki:match-fastpath, r=oli-obkbors-22/+165
2020-09-24Document `FallbackToConstRef` and make sure we don't accidentally use itOliver Scherer-4/+19
2020-09-24Deduplicate the "needs partialeq derive" message creation sitesOliver Scherer-21/+13
2020-09-24Use correct type in diagnostics againOliver Scherer-48/+45
2020-09-23Make sure we keep emitting a hard errorOliver Scherer-18/+36
2020-09-23Make sure we report a future incompat error in all casesOliver Scherer-1/+19
2020-09-23Name function correctlyOliver Scherer-3/+3
2020-09-23Make sure we don't hide errors just because a lint has been emittedOliver Scherer-7/+20
2020-09-23Deduplicate errors in const to pat conversionOliver Scherer-5/+28
2020-09-23Talk about unpredictable instead of "not deterministic"Oliver Scherer-2/+2
2020-09-23Remove the "lift constant to reference" logicOliver Scherer-12/+27
2020-09-22Add debug assertions against slow path reference resultsIshi Tatsuyuki-10/+37
2020-09-21Improve code and documentation clarityIshi Tatsuyuki-41/+75
2020-09-20Use precise errors during const to pat conversion instead of a catch-all on t...Oliver Scherer-12/+73