Skip to content

Commit d87a834

Browse files
committed
Fix an outdated comment mentioning parameter that doesn't exist anymore
1 parent c5351ad commit d87a834

File tree

1 file changed

+2
-4
lines changed
  • compiler/rustc_ast_lowering/src

1 file changed

+2
-4
lines changed

compiler/rustc_ast_lowering/src/lib.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1670,9 +1670,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
16701670
// Lowers a function declaration.
16711671
//
16721672
// `decl`: the unlowered (AST) function declaration.
1673-
// `fn_def_id`: if `Some`, impl Trait arguments are lowered into generic parameters on the
1674-
// given DefId, otherwise impl Trait is disallowed. Must be `Some` if
1675-
// `make_ret_async` is also `Some`.
1673+
// `fn_node_id`: `impl Trait` arguments are lowered into generic parameters on the given `NodeId`.
16761674
// `make_ret_async`: if `Some`, converts `-> T` into `-> impl Future<Output = T>` in the
16771675
// return type. This is used for `async fn` declarations. The `NodeId` is the ID of the
16781676
// return type `impl Trait` item, and the `Span` points to the `async` keyword.
@@ -1796,7 +1794,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
17961794
// type OpaqueTy<generics_from_parent_fn> = impl Future<Output = T>;
17971795
//
17981796
// `output`: unlowered output type (`T` in `-> T`)
1799-
// `fn_def_id`: `DefId` of the parent function (used to create child impl trait definition)
1797+
// `fn_node_id`: `NodeId` of the parent function (used to create child impl trait definition)
18001798
// `opaque_ty_node_id`: `NodeId` of the opaque `impl Trait` type that should be created
18011799
#[instrument(level = "debug", skip(self))]
18021800
fn lower_async_fn_ret_ty(

0 commit comments

Comments
 (0)