]> git.lizzy.rs Git - rust.git/commitdiff
Update a few comments
authorMark Mansi <markm@cs.wisc.edu>
Tue, 30 Jan 2018 22:20:46 +0000 (16:20 -0600)
committerMark Mansi <markm@cs.wisc.edu>
Tue, 30 Jan 2018 22:20:46 +0000 (16:20 -0600)
src/libsyntax/ext/tt/macro_parser.rs
src/libsyntax/ext/tt/quoted.rs

index 2a3b96ebcb52b52afd59b30394e7a54cacccb2e3..0621f728e2a9d0fa6a33988977c9e618c9a63959 100644 (file)
@@ -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);
index bde1010b523aba4783dedfd12eef561cbca1476f..982b60b81e47ec7a62219d4889288dc0f8997bd5 100644 (file)
@@ -173,6 +173,8 @@ pub fn span(&self) -> Span {
 ///   `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>,