Function rustc_mir_transform::util::find_self_call [−][src]
pub fn find_self_call(
tcx: TyCtxt<'tcx>,
body: &Body<'tcx>,
local: Local,
block: BasicBlock
) -> Option<(DefId, &'tcx List<GenericArg<'tcx>>)>Expand description
Checks if the specified local is used as the self parameter of a method call
in the provided BasicBlock. If it is, then the DefId of the called method is
returned.