(&self, other: &Instance<'tcx>)
| 57 | CallGraphNode::WithBody(inst) | CallGraphNode::WithoutBody(inst) => inst, |
| 58 | } |
| 59 | } |
| 60 | |
| 61 | pub fn match_instance(&self, other: &Instance<'tcx>) -> bool { |
| 62 | matches!(self, CallGraphNode::WithBody(inst) | CallGraphNode::WithoutBody(inst) if inst == other) |
| 63 | } |
| 64 | } |