]> git.lizzy.rs Git - rust.git/commitdiff
instrument lower_fn_decl
authorSantiago Pastorino <spastorino@gmail.com>
Wed, 1 Jun 2022 17:48:02 +0000 (14:48 -0300)
committerSantiago Pastorino <spastorino@gmail.com>
Wed, 1 Jun 2022 18:02:15 +0000 (15:02 -0300)
compiler/rustc_ast_lowering/src/lib.rs

index b3aa605283fb3c9310608dc6ec75dfa61d8bc638..2e93ce2f47e160cd268940f37baf9f5a5dca78cb 100644 (file)
@@ -1382,6 +1382,7 @@ fn lower_fn_params_to_names(&mut self, decl: &FnDecl) -> &'hir [Ident] {
     // `make_ret_async`: if `Some`, converts `-> T` into `-> impl Future<Output = T>` in the
     //      return type. This is used for `async fn` declarations. The `NodeId` is the ID of the
     //      return type `impl Trait` item.
+    #[tracing::instrument(level = "debug", skip(self))]
     fn lower_fn_decl(
         &mut self,
         decl: &FnDecl,
@@ -1389,15 +1390,6 @@ fn lower_fn_decl(
         kind: FnDeclKind,
         make_ret_async: Option<NodeId>,
     ) -> &'hir hir::FnDecl<'hir> {
-        debug!(
-            "lower_fn_decl(\
-            fn_decl: {:?}, \
-            fn_node_id: {:?}, \
-            kind: {:?}, \
-            make_ret_async: {:?})",
-            decl, fn_node_id, kind, make_ret_async,
-        );
-
         let c_variadic = decl.c_variadic();
 
         // Skip the `...` (`CVarArgs`) trailing arguments from the AST,