Add docs for FnCtxt::resolve_ufcs
This commit is contained in:
parent
01bdb8e38a
commit
a9dc234c43
1 changed files with 12 additions and 0 deletions
|
@ -468,6 +468,18 @@ impl<'a, 'tcx> FnCtxt<'a, 'tcx> {
|
|||
Some(InferOk { obligations, value: callee })
|
||||
}
|
||||
|
||||
/// Performs "universal function call" lookup. If lookup is successful, it will return the type
|
||||
/// of definition and the [`DefId`] of the found definition.
|
||||
///
|
||||
/// # Arguments
|
||||
///
|
||||
/// Given a function call like `Foo::bar::<T1,...Tn>(...)`:
|
||||
///
|
||||
/// * `self`: the surrounding `FnCtxt` (!)
|
||||
/// * `span`: the span of the entire function call
|
||||
/// * `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
|
||||
#[instrument(level = "debug", skip(self))]
|
||||
pub fn resolve_ufcs(
|
||||
&self,
|
||||
|
|
Loading…
Add table
Reference in a new issue