File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -1148,10 +1148,10 @@ pub(crate) fn is_simple_block(
11481148 attrs : Option < & [ ast:: Attribute ] > ,
11491149 source_map : & SourceMap ,
11501150) -> bool {
1151- ( block. stmts . len ( ) == 1
1151+ block. stmts . len ( ) == 1
11521152 && stmt_is_expr ( & block. stmts [ 0 ] )
11531153 && !block_contains_comment ( block, source_map)
1154- && attrs. map_or ( true , |a| a. is_empty ( ) ) )
1154+ && attrs. map_or ( true , |a| a. is_empty ( ) )
11551155}
11561156
11571157/// Checks whether a block contains at most one statement or expression, and no
Original file line number Diff line number Diff line change @@ -2585,7 +2585,7 @@ fn compute_budgets_for_params(
25852585 ret_str_len : usize ,
25862586 fn_brace_style : FnBraceStyle ,
25872587 force_vertical_layout : bool ,
2588- ) -> Option < ( ( usize , usize , Indent ) ) > {
2588+ ) -> Option < ( usize , usize , Indent ) > {
25892589 debug ! (
25902590 "compute_budgets_for_params {} {:?}, {}, {:?}" ,
25912591 result. len( ) ,
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use std::borrow::Cow;
22use std:: collections:: BTreeMap ;
33use std:: path:: { Path , PathBuf } ;
44
5- use rustc_errors:: { Diagnostic , PResult } ;
5+ use rustc_errors:: PResult ;
66use rustc_parse:: { new_sub_parser_from_file, parser, DirectoryOwnership } ;
77use rustc_session:: parse:: ParseSess ;
88use rustc_span:: symbol:: { sym, Symbol } ;
You can’t perform that action at this time.
0 commit comments