Skip to content

Commit 44065e4

Browse files
authored
Rollup merge of #105375 - WaffleLapkin:docfix, r=cjgillot
Fix an outdated comment mentioning parameter that doesn't exist anymore I'm not too familiar with the code in question, but from what I see I think the new comment makes sense. r? `@cjgillot` (you touched these arguments lately https://github.com/rust-lang/rust/pull/91557/files#diff-ad0c15bbde97a607d4758ec7eaf88248be5d6b8ae084dfc84127f81e3f7a9bb4L1702, https://github.com/rust-lang/rust/pull/104048/files#diff-ad0c15bbde97a607d4758ec7eaf88248be5d6b8ae084dfc84127f81e3f7a9bb4L1682)
2 parents 298d763 + d87a834 commit 44065e4

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

+2-4
Original file line numberDiff line numberDiff line change
@@ -1656,9 +1656,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
16561656
// Lowers a function declaration.
16571657
//
16581658
// `decl`: the unlowered (AST) function declaration.
1659-
// `fn_def_id`: if `Some`, impl Trait arguments are lowered into generic parameters on the
1660-
// given DefId, otherwise impl Trait is disallowed. Must be `Some` if
1661-
// `make_ret_async` is also `Some`.
1659+
// `fn_node_id`: `impl Trait` arguments are lowered into generic parameters on the given `NodeId`.
16621660
// `make_ret_async`: if `Some`, converts `-> T` into `-> impl Future<Output = T>` in the
16631661
// return type. This is used for `async fn` declarations. The `NodeId` is the ID of the
16641662
// return type `impl Trait` item, and the `Span` points to the `async` keyword.
@@ -1789,7 +1787,7 @@ impl<'a, 'hir> LoweringContext<'a, 'hir> {
17891787
// type OpaqueTy<generics_from_parent_fn> = impl Future<Output = T>;
17901788
//
17911789
// `output`: unlowered output type (`T` in `-> T`)
1792-
// `fn_def_id`: `DefId` of the parent function (used to create child impl trait definition)
1790+
// `fn_node_id`: `NodeId` of the parent function (used to create child impl trait definition)
17931791
// `opaque_ty_node_id`: `NodeId` of the opaque `impl Trait` type that should be created
17941792
#[instrument(level = "debug", skip(self))]
17951793
fn lower_async_fn_ret_ty(

0 commit comments

Comments
 (0)