Skip to content

Commit a85b279

Browse files
committed
Document the make_ret_async argument's NodeId
1 parent a1f6a61 commit a85b279

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/librustc/hir/lowering.rs

+2-1
Original file line numberDiff line numberDiff line change
@@ -1870,7 +1870,8 @@ impl<'a> LoweringContext<'a> {
18701870
// This guards against trait declarations and implementations where impl Trait is
18711871
// disallowed.
18721872
// make_ret_async: if `Some`, converts `-> T` into `-> impl Future<Output = T>` in the
1873-
// return type. This is used for `async fn` declarations.
1873+
// return type. This is used for `async fn` declarations. The `NodeId` is the id of the
1874+
// return type impl Trait item.
18741875
fn lower_fn_decl(
18751876
&mut self,
18761877
decl: &FnDecl,

0 commit comments

Comments
 (0)