Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit c41a157

Browse files
jam1garnernikomatsakis
authored andcommitted
Fix incorrect argument description on FnCtxt::resolve_ufcs
1 parent 35af383 commit c41a157

File tree

1 file changed

+2
-2
lines changed
  • compiler/rustc_typeck/src/check/method

1 file changed

+2
-2
lines changed

compiler/rustc_typeck/src/check/method/mod.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -469,14 +469,14 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
469469
}
470470

471471
/// Performs "universal function call" lookup. If lookup is successful, it will return the type
472-
/// of definition and the [`DefId`] of the found definition.
472+
/// of definition and the [`DefId`] of the found function definition.
473473
///
474474
/// # Arguments
475475
///
476476
/// Given a function call like `Foo::bar::<T1,...Tn>(...)`:
477477
///
478478
/// * `self`: the surrounding `FnCtxt` (!)
479-
/// * `span`: the span of the entire function call
479+
/// * `span`: the span of the call, excluding arguments (`Foo::bar::<T1, ...Tn>`)
480480
/// * `method_name`: the identifier of the function within the container type (`bar`)
481481
/// * `self_ty`: the type to search within (`Foo`)
482482
/// * `expr_id`: the [`hir::HirId`] of the expression composing the entire call

0 commit comments

Comments
 (0)