about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-10-12 06:12:00 +0200
committerMazdak Farrokhzad <twingoow@gmail.com>2019-10-16 11:19:39 +0200
commitbe40bbd2fb7e077b27d346a0b9249d309b9ca690 (patch)
tree693339fa3673a13ae29ac563792d8fb72e124598 /src
parent904168fe144b5ebabe6d691930a59127b049ac74 (diff)
downloadrust-be40bbd2fb7e077b27d346a0b9249d309b9ca690.tar.gz
rust-be40bbd2fb7e077b27d346a0b9249d309b9ca690.zip
make tidy happy
Diffstat (limited to 'src')
-rw-r--r--src/libsyntax/parse/parser/diagnostics.rs12
-rw-r--r--src/libsyntax/parse/parser/stmt.rs4
2 files changed, 13 insertions, 3 deletions
diff --git a/src/libsyntax/parse/parser/diagnostics.rs b/src/libsyntax/parse/parser/diagnostics.rs
index 6a4a6c0f16f..06982c789db 100644
--- a/src/libsyntax/parse/parser/diagnostics.rs
+++ b/src/libsyntax/parse/parser/diagnostics.rs
@@ -180,7 +180,11 @@ impl<'a> Parser<'a> {
         self.sess.span_diagnostic.struct_span_fatal(sp, m)
     }
 
-    pub(super) fn span_fatal_err<S: Into<MultiSpan>>(&self, sp: S, err: Error) -> DiagnosticBuilder<'a> {
+    pub(super) fn span_fatal_err<S: Into<MultiSpan>>(
+        &self,
+        sp: S,
+        err: Error,
+    ) -> DiagnosticBuilder<'a> {
         err.span_err(sp, self.diagnostic())
     }
 
@@ -1174,7 +1178,11 @@ impl<'a> Parser<'a> {
     ///
     /// If `break_on_block` is `Break`, then we will stop consuming tokens
     /// after finding (and consuming) a brace-delimited block.
-    pub(super) fn recover_stmt_(&mut self, break_on_semi: SemiColonMode, break_on_block: BlockMode) {
+    pub(super) fn recover_stmt_(
+        &mut self,
+        break_on_semi: SemiColonMode,
+        break_on_block: BlockMode,
+    ) {
         let mut brace_depth = 0;
         let mut bracket_depth = 0;
         let mut in_block = false;
diff --git a/src/libsyntax/parse/parser/stmt.rs b/src/libsyntax/parse/parser/stmt.rs
index 4b1fdb2eef3..d54d9c4b8e9 100644
--- a/src/libsyntax/parse/parser/stmt.rs
+++ b/src/libsyntax/parse/parser/stmt.rs
@@ -372,7 +372,9 @@ impl<'a> Parser<'a> {
     }
 
     /// Parses a block. Inner attributes are allowed.
-    pub(super) fn parse_inner_attrs_and_block(&mut self) -> PResult<'a, (Vec<Attribute>, P<Block>)> {
+    pub(super) fn parse_inner_attrs_and_block(
+        &mut self
+    ) -> PResult<'a, (Vec<Attribute>, P<Block>)> {
         maybe_whole!(self, NtBlock, |x| (Vec::new(), x));
 
         let lo = self.token.span;