@@ -95,9 +95,8 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
95
95
debug ! ( simplified = ?match_pairs, "simplify_match_pairs" ) ;
96
96
}
97
97
98
- /// Given `candidate` that has a single or-pattern for its match-pairs,
99
- /// creates a fresh candidate for each of its input subpatterns passed via
100
- /// `pats`.
98
+ /// Create a new candidate for each pattern in `pats`, and recursively simplify tje
99
+ /// single-or-pattern case.
101
100
pub ( super ) fn create_or_subcandidates < ' pat > (
102
101
& mut self ,
103
102
place : & PlaceBuilder < ' tcx > ,
@@ -119,11 +118,9 @@ impl<'a, 'tcx> Builder<'a, 'tcx> {
119
118
. collect ( )
120
119
}
121
120
122
- /// Tries to simplify `match_pair`, returning `Ok(())` if
123
- /// successful. If successful, new match pairs and bindings will
124
- /// have been pushed into the candidate. If no simplification is
125
- /// possible, `Err` is returned and no changes are made to
126
- /// candidate.
121
+ /// Tries to simplify `match_pair`, returning `Ok(())` if successful. If successful, new match
122
+ /// pairs and bindings will have been pushed into the respective `Vec`s. If no simplification is
123
+ /// possible, `Err` is returned.
127
124
fn simplify_match_pair < ' pat > (
128
125
& mut self ,
129
126
mut match_pair : MatchPair < ' pat , ' tcx > ,
0 commit comments