diff options
| author | Yuri Astrakhan <YuriAstrakhan@gmail.com> | 2024-08-02 12:16:52 -0400 |
|---|---|---|
| committer | Yuri Astrakhan <YuriAstrakhan@gmail.com> | 2024-08-02 13:22:28 -0400 |
| commit | 84e261e5cb47f637b1d94f03fc65b80c8f45add4 (patch) | |
| tree | 02a454e33ae0bcaab9f1da9c112e1c5af2c328dc | |
| parent | 53676730146e38e4697b6204c2ee61a9fd6b7e51 (diff) | |
| download | rust-84e261e5cb47f637b1d94f03fc65b80c8f45add4.tar.gz rust-84e261e5cb47f637b1d94f03fc65b80c8f45add4.zip | |
chore: use shorthand initializer
| -rw-r--r-- | compiler/rustc_builtin_macros/src/alloc_error_handler.rs | 2 | ||||
| -rw-r--r-- | compiler/rustc_query_system/src/query/job.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/compiler/rustc_builtin_macros/src/alloc_error_handler.rs b/compiler/rustc_builtin_macros/src/alloc_error_handler.rs index 09d892768b4..1df2812e0c8 100644 --- a/compiler/rustc_builtin_macros/src/alloc_error_handler.rs +++ b/compiler/rustc_builtin_macros/src/alloc_error_handler.rs @@ -80,7 +80,7 @@ fn generate_handler(cx: &ExtCtxt<'_>, handler: Ident, span: Span, sig_span: Span let params = thin_vec![cx.param(span, size, ty_usize.clone()), cx.param(span, align, ty_usize)]; let decl = cx.fn_decl(params, never); let header = FnHeader { safety: Safety::Unsafe(span), ..FnHeader::default() }; - let sig = FnSig { decl, header, span: span }; + let sig = FnSig { decl, header, span }; let body = Some(cx.block_expr(call)); let kind = ItemKind::Fn(Box::new(Fn { diff --git a/compiler/rustc_query_system/src/query/job.rs b/compiler/rustc_query_system/src/query/job.rs index 761d6acdbae..ca3efc11201 100644 --- a/compiler/rustc_query_system/src/query/job.rs +++ b/compiler/rustc_query_system/src/query/job.rs @@ -588,7 +588,7 @@ pub fn report_cycle<'a>( cycle_stack, stack_bottom: stack[0].query.description.to_owned(), alias, - cycle_usage: cycle_usage, + cycle_usage, stack_count, note_span: (), }; |
