about summary refs log tree commit diff
diff options
context:
space:
mode:
authorjam1garner <8260240+jam1garner@users.noreply.github.com>2021-05-27 00:56:37 -0400
committerNiko Matsakis <niko@alum.mit.edu>2021-06-14 13:27:24 -0400
commitc41a157b908743812fc179e64654dbe0a65caaca (patch)
treea327832312e72a41e112b6b24e3ea23bb40e9483
parent35af38353e928c0d244e9bf0daaeaea8bf064fbf (diff)
downloadrust-c41a157b908743812fc179e64654dbe0a65caaca.tar.gz
rust-c41a157b908743812fc179e64654dbe0a65caaca.zip
Fix incorrect argument description on FnCtxt::resolve_ufcs
-rw-r--r--compiler/rustc_typeck/src/check/method/mod.rs4
1 files 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 1d9ee4595d1..ced08734bcf 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::<T1,...Tn>(...)`:
     ///
     /// * `self`:                  the surrounding `FnCtxt` (!)
-    /// * `span`:                  the span of the entire function call
+    /// * `span`:                  the span of the call, excluding arguments (`Foo::bar::<T1, ...Tn>`)
     /// * `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