pub fn get_fn_safety(tcx: TyCtxt<'_>, def_id: DefId) -> SafetyExpand description
Returns the [Safety] (Safe/Unsafe) of a function’s signature.
pub fn get_fn_safety(tcx: TyCtxt<'_>, def_id: DefId) -> SafetyReturns the [Safety] (Safe/Unsafe) of a function’s signature.