[−][src]Function rustc_mir::util::find_self_call::find_self_call
pub fn find_self_call<'tcx>(
tcx: TyCtxt<'tcx>,
body: &Body<'tcx>,
local: Local,
block: BasicBlock
) -> Option<(DefId, SubstsRef<'tcx>)>
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.