Document the make_ret_async argument's NodeId

This commit is contained in:
Oliver Schneider 2018-06-27 11:24:50 +02:00
parent a1f6a613f5
commit a85b27915f

View file

@ -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,