Skip to content

Commit 549534e

Browse files
committed
Update a few comments
1 parent 786b2ca commit 549534e

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

src/libsyntax/ext/tt/macro_parser.rs

-1
Original file line numberDiff line numberDiff 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);

src/libsyntax/ext/tt/quoted.rs

+4
Original file line numberDiff line numberDiff 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.
245249
fn parse_tree<I>(
246250
tree: tokenstream::TokenTree,
247251
trees: &mut Peekable<I>,

0 commit comments

Comments
 (0)