File tree 2 files changed +4
-1
lines changed
2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -471,7 +471,6 @@ fn inner_parse_loop(
471
471
// We don't need a separator. Move the "dot" back to the beginning of the matcher
472
472
// and try to match again UNLESS we are only allowed to have _one_ repetition.
473
473
else if item. seq_op != Some ( quoted:: KleeneOp :: ZeroOrOne ) {
474
- // we don't need a separator
475
474
item. match_cur = item. match_lo ;
476
475
item. idx = 0 ;
477
476
cur_items. push ( item) ;
Original file line number Diff line number Diff line change @@ -173,6 +173,8 @@ impl TokenTree {
173
173
/// `ident` are "matchers". They are not present in the body of a macro rule -- just in the
174
174
/// pattern, so we pass a parameter to indicate whether to expect them or not.
175
175
/// - `sess`: the parsing session. Any errors will be emitted to this session.
176
+ /// - `features`, `attrs`: language feature flags and attributes so that we know whether to use
177
+ /// unstable features or not.
176
178
///
177
179
/// # Returns
178
180
///
@@ -242,6 +244,8 @@ pub fn parse(
242
244
/// converting `tree`
243
245
/// - `expect_matchers`: same as for `parse` (see above).
244
246
/// - `sess`: the parsing session. Any errors will be emitted to this session.
247
+ /// - `features`, `attrs`: language feature flags and attributes so that we know whether to use
248
+ /// unstable features or not.
245
249
fn parse_tree < I > (
246
250
tree : tokenstream:: TokenTree ,
247
251
trees : & mut Peekable < I > ,
You can’t perform that action at this time.
0 commit comments