Update compiler/rustc_hir_analysis/src/check/callee.rs

Co-authored-by: nils <48135649+Nilstrieb@users.noreply.github.com>
This commit is contained in:
Michael Goulet 2022-10-05 10:13:47 -07:00 committed by GitHub
parent 61cf3bfaf6
commit ea3837072c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -473,7 +473,7 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
fn_sig.output()
}
/// Attempts to reinterpret `method(rcvr, args...)` as `method.rcvr(args...)`
/// Attempts to reinterpret `method(rcvr, args...)` as `rcvr.method(args...)`
/// and suggesting the fix if the method probe is successful.
fn suggest_call_as_method(
&self,