about summary refs log tree commit diff
diff options
context:
space:
mode:
authorOliver Schneider <github35764891676564198441@oli-obk.de>2018-06-27 11:24:50 +0200
committerOliver Schneider <github35764891676564198441@oli-obk.de>2018-06-27 11:24:50 +0200
commita85b27915fe8d7b077535cd3fd8a7e1bafb1469d (patch)
tree0c43a13d1706720d016321d6f61c9eee2d95441e
parenta1f6a613f5236404f52bab95d20f2fb5a76132cb (diff)
downloadrust-a85b27915fe8d7b077535cd3fd8a7e1bafb1469d.tar.gz
rust-a85b27915fe8d7b077535cd3fd8a7e1bafb1469d.zip
Document the `make_ret_async` argument's `NodeId`
-rw-r--r--src/librustc/hir/lowering.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/librustc/hir/lowering.rs b/src/librustc/hir/lowering.rs
index 50fd8e01580..bf3b377b52d 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<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,