(place_ref: PlaceRef<'tcx>)
| 480 | } |
| 481 | |
| 482 | fn process_place(place_ref: PlaceRef<'tcx>) -> AccessPattern<'tcx> { |
| 483 | match place_ref { |
| 484 | PlaceRef { |
| 485 | local: l, |
| 486 | projection: [ProjectionElem::Deref, ref remain @ ..], |
| 487 | } => AccessPattern::Indirect(PlaceRef { |
| 488 | local: l, |
| 489 | projection: remain, |
| 490 | }), |
| 491 | _ => AccessPattern::Direct(place_ref), |
| 492 | } |
| 493 | } |
| 494 | |
| 495 | fn process_operand(operand: &Operand<'tcx>) -> Option<AccessPattern<'tcx>> { |
| 496 | match operand { |
nothing calls this directly
no outgoing calls
no test coverage detected