Skip to main content

has_access_guard

Function has_access_guard 

Source
pub fn has_access_guard<'gcx>(
    gcx: Gcx<'gcx>,
    func_id: FunctionId,
    seen: &mut HashSet<FunctionId>,
) -> bool
Expand description

Whether func_id checks the caller before its _ placeholder (anywhere for functions): a guarding if, a require/assert on an access check, or a call into a function that does. Bodyless declarations (interface functions, virtual modifiers) fall back to a name heuristic.