about summary refs log tree commit diff
path: root/src/libsyntax
diff options
context:
space:
mode:
authorMark Mansi <markm@cs.wisc.edu>2018-01-18 21:18:04 -0600
committerMark Mansi <markm@cs.wisc.edu>2018-01-30 12:38:02 -0600
commit5ac48ec82623433bc6dbf62ce8c101eeec12648d (patch)
tree34063e233cdd141229c9f43126d2a028602de0d6 /src/libsyntax
parent711f71cfa909808334d6b5d9024e8745ab62b19d (diff)
downloadrust-5ac48ec82623433bc6dbf62ce8c101eeec12648d.tar.gz
rust-5ac48ec82623433bc6dbf62ce8c101eeec12648d.zip
Run rustfmt on macro_parser.rs
Diffstat (limited to 'src/libsyntax')
-rw-r--r--src/libsyntax/ext/tt/macro_parser.rs10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/libsyntax/ext/tt/macro_parser.rs b/src/libsyntax/ext/tt/macro_parser.rs
index 88144b19609..e067bbecce2 100644
--- a/src/libsyntax/ext/tt/macro_parser.rs
+++ b/src/libsyntax/ext/tt/macro_parser.rs
@@ -487,7 +487,9 @@ fn inner_parse_loop(
                 // Need to descend into a sequence
                 TokenTree::Sequence(sp, seq) => {
                     // Examine the case where there are 0 matches of this sequence
-                    if seq.op == quoted::KleeneOp::ZeroOrMore || seq.op == quoted::KleeneOp::ZeroOrOne {
+                    if seq.op == quoted::KleeneOp::ZeroOrMore
+                        || seq.op == quoted::KleeneOp::ZeroOrOne
+                    {
                         let mut new_item = item.clone();
                         new_item.match_cur += seq.num_captures;
                         new_item.idx += 1;
@@ -500,9 +502,9 @@ fn inner_parse_loop(
                     // For ZeroOrMore and OneOrMore, we want to examine the case were there is at
                     // least one match. For ZeroOrOne, we only want the case where there is exactly
                     // one match.
-                    if (seq.op == quoted::KleeneOp::ZeroOrOne && seq.num_captures == 1) ||
-                        seq.op != quoted::KleeneOp::ZeroOrOne {
-
+                    if (seq.op == quoted::KleeneOp::ZeroOrOne && seq.num_captures == 1)
+                        || seq.op != quoted::KleeneOp::ZeroOrOne
+                    {
                         let matches = create_matches(item.matches.len());
                         cur_items.push(Box::new(MatcherPos {
                             stack: vec![],