From c41a157b908743812fc179e64654dbe0a65caaca Mon Sep 17 00:00:00 2001 From: jam1garner <8260240+jam1garner@users.noreply.github.com> Date: Thu, 27 May 2021 00:56:37 -0400 Subject: [PATCH] Fix incorrect argument description on FnCtxt::resolve_ufcs --- compiler/rustc_typeck/src/check/method/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compiler/rustc_typeck/src/check/method/mod.rs b/compiler/rustc_typeck/src/check/method/mod.rs index 1d9ee4595d10..ced08734bcf3 100644 --- a/compiler/rustc_typeck/src/check/method/mod.rs +++ b/compiler/rustc_typeck/src/check/method/mod.rs @@ -469,14 +469,14 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> { } /// Performs "universal function call" lookup. If lookup is successful, it will return the type - /// of definition and the [`DefId`] of the found definition. + /// of definition and the [`DefId`] of the found function definition. /// /// # Arguments /// /// Given a function call like `Foo::bar::(...)`: /// /// * `self`: the surrounding `FnCtxt` (!) - /// * `span`: the span of the entire function call + /// * `span`: the span of the call, excluding arguments (`Foo::bar::`) /// * `method_name`: the identifier of the function within the container type (`bar`) /// * `self_ty`: the type to search within (`Foo`) /// * `expr_id`: the [`hir::HirId`] of the expression composing the entire call