]> git.lizzy.rs Git - rust.git/commitdiff
Document the `make_ret_async` argument's `NodeId`
authorOliver Schneider <github35764891676564198441@oli-obk.de>
Wed, 27 Jun 2018 09:24:50 +0000 (11:24 +0200)
committerOliver Schneider <github35764891676564198441@oli-obk.de>
Wed, 27 Jun 2018 09:24:50 +0000 (11:24 +0200)
src/librustc/hir/lowering.rs

index 50fd8e01580557167f1c9649240ee96bc991816a..bf3b377b52dd0324a0f1e7b4e56b688c60340c15 100644 (file)
@@ -1870,7 +1870,8 @@ fn lower_fn_args_to_names(&mut self, decl: &FnDecl) -> hir::HirVec<Spanned<Name>
     //      This guards against trait declarations and implementations where impl Trait is
     //      disallowed.
     // make_ret_async: if `Some`, converts `-> T` into `-> impl Future<Output = T>` 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,