[−][src]Function rustc_mir::util::find_self_call

pub fn find_self_call(
    tcx: TyCtxt<'_>,
    body: &Body<'_>,
    local: Local,
    block: BasicBlock
) -> Option<DefId>

Checks if the specified local is used as the self prameter of a method call in the provided BasicBlock. If it is, then the DefId of the called method is returned.