Update a few comments
This commit is contained in:
parent
786b2ca155
commit
549534e438
2 changed files with 4 additions and 1 deletions
|
@ -471,7 +471,6 @@ fn inner_parse_loop(
|
||||||
// We don't need a separator. Move the "dot" back to the beginning of the matcher
|
// We don't need a separator. Move the "dot" back to the beginning of the matcher
|
||||||
// and try to match again UNLESS we are only allowed to have _one_ repetition.
|
// and try to match again UNLESS we are only allowed to have _one_ repetition.
|
||||||
else if item.seq_op != Some(quoted::KleeneOp::ZeroOrOne) {
|
else if item.seq_op != Some(quoted::KleeneOp::ZeroOrOne) {
|
||||||
// we don't need a separator
|
|
||||||
item.match_cur = item.match_lo;
|
item.match_cur = item.match_lo;
|
||||||
item.idx = 0;
|
item.idx = 0;
|
||||||
cur_items.push(item);
|
cur_items.push(item);
|
||||||
|
|
|
@ -173,6 +173,8 @@ impl TokenTree {
|
||||||
/// `ident` are "matchers". They are not present in the body of a macro rule -- just in the
|
/// `ident` are "matchers". They are not present in the body of a macro rule -- just in the
|
||||||
/// pattern, so we pass a parameter to indicate whether to expect them or not.
|
/// pattern, so we pass a parameter to indicate whether to expect them or not.
|
||||||
/// - `sess`: the parsing session. Any errors will be emitted to this session.
|
/// - `sess`: the parsing session. Any errors will be emitted to this session.
|
||||||
|
/// - `features`, `attrs`: language feature flags and attributes so that we know whether to use
|
||||||
|
/// unstable features or not.
|
||||||
///
|
///
|
||||||
/// # Returns
|
/// # Returns
|
||||||
///
|
///
|
||||||
|
@ -242,6 +244,8 @@ pub fn parse(
|
||||||
/// converting `tree`
|
/// converting `tree`
|
||||||
/// - `expect_matchers`: same as for `parse` (see above).
|
/// - `expect_matchers`: same as for `parse` (see above).
|
||||||
/// - `sess`: the parsing session. Any errors will be emitted to this session.
|
/// - `sess`: the parsing session. Any errors will be emitted to this session.
|
||||||
|
/// - `features`, `attrs`: language feature flags and attributes so that we know whether to use
|
||||||
|
/// unstable features or not.
|
||||||
fn parse_tree<I>(
|
fn parse_tree<I>(
|
||||||
tree: tokenstream::TokenTree,
|
tree: tokenstream::TokenTree,
|
||||||
trees: &mut Peekable<I>,
|
trees: &mut Peekable<I>,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue