Skip to main content

fn_has_alias_requires

Function fn_has_alias_requires 

Source
fn fn_has_alias_requires(tcx: TyCtxt<'_>, def_id: DefId) -> bool
Expand description

Whether the caller declares an Alias assumption in its #[rapx::requires] (directly or via a compound like Ptr2Ref). Such a function relies on its caller-guaranteed precondition rather than on field encapsulation, so the field-encapsulation escape check must not fire on it.