diff options
| author | Dylan DPC <dylan.dpc@gmail.com> | 2020-04-14 15:35:33 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-14 15:35:33 +0200 |
| commit | d249f67a27965d930e75acbd3db6b90e3940331b (patch) | |
| tree | b22a1c74ffa3226a2316c5265c9e5f05b3b248bf | |
| parent | 340b7314e3c95c1e21ba5dd19f08a532cc780ac9 (diff) | |
| parent | 723def25c8cc978100ffb62cff522ae3734323c6 (diff) | |
| download | rust-d249f67a27965d930e75acbd3db6b90e3940331b.tar.gz rust-d249f67a27965d930e75acbd3db6b90e3940331b.zip | |
Rollup merge of #71122 - lcnr:update-docs, r=Mark-Simulacrum
update `FnCtxt::lookup_method` docs Looks like the doc comment was forgotten during a refactor.
| -rw-r--r-- | src/librustc_typeck/check/method/mod.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/librustc_typeck/check/method/mod.rs b/src/librustc_typeck/check/method/mod.rs index 13fc3900e48..c4f53332cb6 100644 --- a/src/librustc_typeck/check/method/mod.rs +++ b/src/librustc_typeck/check/method/mod.rs @@ -171,11 +171,11 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> { /// /// Given a method call like `foo.bar::<T1,...Tn>(...)`: /// - /// * `fcx`: the surrounding `FnCtxt` (!) - /// * `span`: the span for the method call - /// * `method_name`: the name of the method being called (`bar`) + /// * `self`: the surrounding `FnCtxt` (!) /// * `self_ty`: the (unadjusted) type of the self expression (`foo`) - /// * `supplied_method_types`: the explicit method type parameters, if any (`T1..Tn`) + /// * `segment`: the name and generic arguments of the method (`bar::<T1, ...Tn>`) + /// * `span`: the span for the method call + /// * `call_expr`: the complete method call: (`foo.bar::<T1,...Tn>(...)`) /// * `self_expr`: the self expression (`foo`) pub fn lookup_method( &self, |
