about summary refs log tree commit diff
path: root/src/libsyntax/ext
diff options
context:
space:
mode:
authorMark Mansi <markm@cs.wisc.edu>2018-01-30 16:20:46 -0600
committerMark Mansi <markm@cs.wisc.edu>2018-01-30 16:20:46 -0600
commit549534e438e40439aa43e6580fe31509ea31376f (patch)
tree3007d07d9a912504415700b23ee0ea4a81ae9441 /src/libsyntax/ext
parent786b2ca1556de6d589bfb7d07e4a98e8fdcc6498 (diff)
downloadrust-549534e438e40439aa43e6580fe31509ea31376f.tar.gz
rust-549534e438e40439aa43e6580fe31509ea31376f.zip
Update a few comments
Diffstat (limited to 'src/libsyntax/ext')
-rw-r--r--src/libsyntax/ext/tt/macro_parser.rs1
-rw-r--r--src/libsyntax/ext/tt/quoted.rs4
2 files changed, 4 insertions, 1 deletions
diff --git a/src/libsyntax/ext/tt/macro_parser.rs b/src/libsyntax/ext/tt/macro_parser.rs
index 2a3b96ebcb5..0621f728e2a 100644
--- a/src/libsyntax/ext/tt/macro_parser.rs
+++ b/src/libsyntax/ext/tt/macro_parser.rs
@@ -471,7 +471,6 @@ fn inner_parse_loop(
                 // 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.
                 else if item.seq_op != Some(quoted::KleeneOp::ZeroOrOne) {
-                    // we don't need a separator
                     item.match_cur = item.match_lo;
                     item.idx = 0;
                     cur_items.push(item);
diff --git a/src/libsyntax/ext/tt/quoted.rs b/src/libsyntax/ext/tt/quoted.rs
index bde1010b523..982b60b81e4 100644
--- a/src/libsyntax/ext/tt/quoted.rs
+++ b/src/libsyntax/ext/tt/quoted.rs
@@ -173,6 +173,8 @@ impl TokenTree {
 ///   `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.
 /// - `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
 ///
@@ -242,6 +244,8 @@ pub fn parse(
 ///   converting `tree`
 /// - `expect_matchers`: same as for `parse` (see above).
 /// - `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>(
     tree: tokenstream::TokenTree,
     trees: &mut Peekable<I>,