Skip to content

Commit 67deaf9

Browse files
committed
instrument lower_fn_decl
1 parent 2de2520 commit 67deaf9

File tree

1 file changed

+1
-9
lines changed
  • compiler/rustc_ast_lowering/src

1 file changed

+1
-9
lines changed

Diff for: compiler/rustc_ast_lowering/src/lib.rs

+1-9
Original file line numberDiff line numberDiff line change
@@ -1382,22 +1382,14 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
13821382
// `make_ret_async`: if `Some`, converts `-> T` into `-> impl Future<Output = T>` in the
13831383
// return type. This is used for `async fn` declarations. The `NodeId` is the ID of the
13841384
// return type `impl Trait` item.
1385+
#[tracing::instrument(level = "debug", skip(self))]
13851386
fn lower_fn_decl(
13861387
&mut self,
13871388
decl: &FnDecl,
13881389
fn_node_id: Option<NodeId>,
13891390
kind: FnDeclKind,
13901391
make_ret_async: Option<NodeId>,
13911392
) -> &'hir hir::FnDecl<'hir> {
1392-
debug!(
1393-
"lower_fn_decl(\
1394-
fn_decl: {:?}, \
1395-
fn_node_id: {:?}, \
1396-
kind: {:?}, \
1397-
make_ret_async: {:?})",
1398-
decl, fn_node_id, kind, make_ret_async,
1399-
);
1400-
14011393
let c_variadic = decl.c_variadic();
14021394

14031395
// Skip the `...` (`CVarArgs`) trailing arguments from the AST,

0 commit comments

Comments
 (0)