]> git.lizzy.rs Git - rust.git/commit
Clarify and fix the explanation of the algorithm
authorNadrieril <nadrieril@gmail.com>
Mon, 23 Sep 2019 08:01:57 +0000 (10:01 +0200)
committerNadrieril <nadrieril@gmail.com>
Sun, 27 Oct 2019 17:34:21 +0000 (17:34 +0000)
commit2665b6434e6c851f6bffecf83e35db22ee6bf6bd
treee608b443726e18f3fda3ff873fee1d8299d05c4c
parent79865994170321d0237e13fbd57aced2090f16f5
Clarify and fix the explanation of the algorithm

There was a bit of confusion between individual patterns and lists of
patterns, and index mismatches linked to that. This introduces a
vocabulary of "pattern-stacks" to provide a clearer mental model of what
is happening. This also adds examples.
src/librustc_mir/hair/pattern/_match.rs