Skip to content

Commit 53c79f4

Browse files
committed
bless format
1 parent affaf53 commit 53c79f4

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

compiler/rustc_hir_analysis/src/errors/wrong_number_of_generic_args.rs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -386,9 +386,12 @@ impl<'a, 'tcx> WrongNumberOfGenericArgs<'a, 'tcx> {
386386
})
387387
| hir::Node::AnonConst(..) = node
388388
{
389-
return std::iter::repeat_n("'static".to_owned(), num_params_to_take.saturating_sub(ret.len()))
390-
.collect::<Vec<_>>()
391-
.join(", ");
389+
return std::iter::repeat_n(
390+
"'static".to_owned(),
391+
num_params_to_take.saturating_sub(ret.len()),
392+
)
393+
.collect::<Vec<_>>()
394+
.join(", ");
392395
}
393396

394397
let params = if let Some(generics) = node.generics() {

compiler/rustc_passes/src/check_attr.rs

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2019,10 +2019,13 @@ impl<'tcx> CheckAttrVisitor<'tcx> {
20192019
}
20202020

20212021
let expected_sig = tcx.mk_fn_sig(
2022-
std::iter::repeat_n(token_stream, match kind {
2023-
ProcMacroKind::Attribute => 2,
2024-
ProcMacroKind::Derive | ProcMacroKind::FunctionLike => 1,
2025-
}),
2022+
std::iter::repeat_n(
2023+
token_stream,
2024+
match kind {
2025+
ProcMacroKind::Attribute => 2,
2026+
ProcMacroKind::Derive | ProcMacroKind::FunctionLike => 1,
2027+
},
2028+
),
20262029
token_stream,
20272030
false,
20282031
Safety::Safe,

0 commit comments

Comments
 (0)