instrument lower_fn_decl
This commit is contained in:
parent
2de2520e94
commit
67deaf9fea
1 changed files with 1 additions and 9 deletions
|
@ -1382,6 +1382,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
|
||||||
// `make_ret_async`: if `Some`, converts `-> T` into `-> impl Future<Output = T>` in the
|
// `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. This is used for `async fn` declarations. The `NodeId` is the ID of the
|
||||||
// return type `impl Trait` item.
|
// return type `impl Trait` item.
|
||||||
|
#[tracing::instrument(level = "debug", skip(self))]
|
||||||
fn lower_fn_decl(
|
fn lower_fn_decl(
|
||||||
&mut self,
|
&mut self,
|
||||||
decl: &FnDecl,
|
decl: &FnDecl,
|
||||||
|
@ -1389,15 +1390,6 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
|
||||||
kind: FnDeclKind,
|
kind: FnDeclKind,
|
||||||
make_ret_async: Option<NodeId>,
|
make_ret_async: Option<NodeId>,
|
||||||
) -> &'hir hir::FnDecl<'hir> {
|
) -> &'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();
|
let c_variadic = decl.c_variadic();
|
||||||
|
|
||||||
// Skip the `...` (`CVarArgs`) trailing arguments from the AST,
|
// Skip the `...` (`CVarArgs`) trailing arguments from the AST,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue