Skip to content

Commit

Permalink
make tidy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
Centril committed Oct 16, 2019
1 parent 904168f commit be40bbd
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
12 changes: 10 additions & 2 deletions src/libsyntax/parse/parser/diagnostics.rs
Expand Up @@ -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())
}

Expand Down Expand Up @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion src/libsyntax/parse/parser/stmt.rs
Expand Up @@ -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;
Expand Down

0 comments on commit be40bbd

Please sign in to comment.