MCPcopy Create free account
hub / github.com/CodeSentryAI/lockbud / is_ptr_read

Function is_ptr_read

src/interest/memory/ownership.rs:40–42  ·  view source on GitHub ↗
(def_id: DefId, tcx: TyCtxt<'_>)

Source from the content-addressed store, hash-verified

38/// y = std::ptr::read::<T>(x)
39#[inline]
40pub 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]

Callers 1

visit_terminatorMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected