From a85b27915fe8d7b077535cd3fd8a7e1bafb1469d Mon Sep 17 00:00:00 2001 From: Oliver Schneider Date: Wed, 27 Jun 2018 11:24:50 +0200 Subject: [PATCH] Document the `make_ret_async` argument's `NodeId` --- src/librustc/hir/lowering.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/librustc/hir/lowering.rs b/src/librustc/hir/lowering.rs index 50fd8e015805..bf3b377b52dd 100644 --- a/src/librustc/hir/lowering.rs +++ b/src/librustc/hir/lowering.rs @@ -1870,7 +1870,8 @@ impl<'a> LoweringContext<'a> { // This guards against trait declarations and implementations where impl Trait is // disallowed. // make_ret_async: if `Some`, converts `-> T` into `-> impl Future` in the - // return type. This is used for `async fn` declarations. + // return type. This is used for `async fn` declarations. The `NodeId` is the id of the + // return type impl Trait item. fn lower_fn_decl( &mut self, decl: &FnDecl,