File tree Expand file tree Collapse file tree 2 files changed +13
-3
lines changed
src/libsyntax/parse/parser Expand file tree Collapse file tree 2 files changed +13
-3
lines changed Original file line number Diff line number Diff line change @@ -180,7 +180,11 @@ impl<'a> Parser<'a> {
180180 self . sess . span_diagnostic . struct_span_fatal ( sp, m)
181181 }
182182
183- pub ( super ) fn span_fatal_err < S : Into < MultiSpan > > ( & self , sp : S , err : Error ) -> DiagnosticBuilder < ' a > {
183+ pub ( super ) fn span_fatal_err < S : Into < MultiSpan > > (
184+ & self ,
185+ sp : S ,
186+ err : Error ,
187+ ) -> DiagnosticBuilder < ' a > {
184188 err. span_err ( sp, self . diagnostic ( ) )
185189 }
186190
@@ -1174,7 +1178,11 @@ impl<'a> Parser<'a> {
11741178 ///
11751179 /// If `break_on_block` is `Break`, then we will stop consuming tokens
11761180 /// after finding (and consuming) a brace-delimited block.
1177- pub ( super ) fn recover_stmt_ ( & mut self , break_on_semi : SemiColonMode , break_on_block : BlockMode ) {
1181+ pub ( super ) fn recover_stmt_ (
1182+ & mut self ,
1183+ break_on_semi : SemiColonMode ,
1184+ break_on_block : BlockMode ,
1185+ ) {
11781186 let mut brace_depth = 0 ;
11791187 let mut bracket_depth = 0 ;
11801188 let mut in_block = false ;
Original file line number Diff line number Diff line change @@ -372,7 +372,9 @@ impl<'a> Parser<'a> {
372372 }
373373
374374 /// Parses a block. Inner attributes are allowed.
375- pub ( super ) fn parse_inner_attrs_and_block ( & mut self ) -> PResult < ' a , ( Vec < Attribute > , P < Block > ) > {
375+ pub ( super ) fn parse_inner_attrs_and_block (
376+ & mut self
377+ ) -> PResult < ' a , ( Vec < Attribute > , P < Block > ) > {
376378 maybe_whole ! ( self , NtBlock , |x| ( Vec :: new( ) , x) ) ;
377379
378380 let lo = self . token . span ;
You can’t perform that action at this time.
0 commit comments