about summary refs log tree commit diff
path: root/src/libsyntax/parse/parser.rs
diff options
context:
space:
mode:
authorkeatinge <willy.keatinge@gmail.com>2018-01-06 15:29:08 -0500
committerkeatinge <willy.keatinge@gmail.com>2018-01-06 15:29:08 -0500
commit6aafdc3781c7adca6270b8e712152bed160b6071 (patch)
tree84593c252adbb12f7c0594669f60455f836ab82a /src/libsyntax/parse/parser.rs
parenta9b746bb2371a39d77bcea431415fa0a6ddca548 (diff)
downloadrust-6aafdc3781c7adca6270b8e712152bed160b6071.tar.gz
rust-6aafdc3781c7adca6270b8e712152bed160b6071.zip
Fix tidy error
Diffstat (limited to 'src/libsyntax/parse/parser.rs')
-rw-r--r--src/libsyntax/parse/parser.rs7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/libsyntax/parse/parser.rs b/src/libsyntax/parse/parser.rs
index adaa5670e80..3bc8a3021cb 100644
--- a/src/libsyntax/parse/parser.rs
+++ b/src/libsyntax/parse/parser.rs
@@ -3433,8 +3433,11 @@ impl<'a> Parser<'a> {
             pats.push(self.parse_pat()?);
 
             if self.token == token::OrOr {
-                let mut err = self.struct_span_err(self.span, "unexpected token `||` after pattern");
-                err.span_suggestion(self.span, "use a single `|` to specify multiple patterns", "|".to_owned());
+                let mut err = self.struct_span_err(self.span,
+                                                   "unexpected token `||` after pattern");
+                err.span_suggestion(self.span,
+                                    "use a single `|` to specify multiple patterns",
+                                    "|".to_owned());
                 err.emit();
                 self.bump();
             } else if self.check(&token::BinOp(token::Or)) {