(def_id: DefId, tcx: TyCtxt<'_>)
| 38 | /// y = std::ptr::read::<T>(x) |
| 39 | #[inline] |
| 40 | pub fn is_ptr_read(def_id: DefId, tcx: TyCtxt<'_>) -> bool { |
| 41 | tcx.def_path_str(def_id).starts_with("std::ptr::read::<") |
| 42 | } |
| 43 | |
| 44 | /// z = <_ as Index<_>>::index(x, y) |
| 45 | #[inline] |