This repository was archived by the owner on May 28, 2025. It is now read-only.
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(
1148
1148
attrs : Option < & [ ast:: Attribute ] > ,
1149
1149
source_map : & SourceMap ,
1150
1150
) -> bool {
1151
- ( block. stmts . len ( ) == 1
1151
+ block. stmts . len ( ) == 1
1152
1152
&& stmt_is_expr ( & block. stmts [ 0 ] )
1153
1153
&& !block_contains_comment ( block, source_map)
1154
- && attrs. map_or ( true , |a| a. is_empty ( ) ) )
1154
+ && attrs. map_or ( true , |a| a. is_empty ( ) )
1155
1155
}
1156
1156
1157
1157
/// 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(
2585
2585
ret_str_len : usize ,
2586
2586
fn_brace_style : FnBraceStyle ,
2587
2587
force_vertical_layout : bool ,
2588
- ) -> Option < ( ( usize , usize , Indent ) ) > {
2588
+ ) -> Option < ( usize , usize , Indent ) > {
2589
2589
debug ! (
2590
2590
"compute_budgets_for_params {} {:?}, {}, {:?}" ,
2591
2591
result. len( ) ,
Original file line number Diff line number Diff line change @@ -2,7 +2,7 @@ use std::borrow::Cow;
2
2
use std:: collections:: BTreeMap ;
3
3
use std:: path:: { Path , PathBuf } ;
4
4
5
- use rustc_errors:: { Diagnostic , PResult } ;
5
+ use rustc_errors:: PResult ;
6
6
use rustc_parse:: { new_sub_parser_from_file, parser, DirectoryOwnership } ;
7
7
use rustc_session:: parse:: ParseSess ;
8
8
use rustc_span:: symbol:: { sym, Symbol } ;
You can’t perform that action at this time.
0 commit comments