File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
Expand file tree Collapse file tree 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(
471471 // We don't need a separator. Move the "dot" back to the beginning of the matcher
472472 // and try to match again UNLESS we are only allowed to have _one_ repetition.
473473 else if item. seq_op != Some ( quoted:: KleeneOp :: ZeroOrOne ) {
474- // we don't need a separator
475474 item. match_cur = item. match_lo ;
476475 item. idx = 0 ;
477476 cur_items. push ( item) ;
Original file line number Diff line number Diff line change @@ -173,6 +173,8 @@ impl TokenTree {
173173/// `ident` are "matchers". They are not present in the body of a macro rule -- just in the
174174/// pattern, so we pass a parameter to indicate whether to expect them or not.
175175/// - `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.
176178///
177179/// # Returns
178180///
@@ -242,6 +244,8 @@ pub fn parse(
242244/// converting `tree`
243245/// - `expect_matchers`: same as for `parse` (see above).
244246/// - `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.
245249fn parse_tree < I > (
246250 tree : tokenstream:: TokenTree ,
247251 trees : & mut Peekable < I > ,
You can’t perform that action at this time.
0 commit comments