Skip to main content

item_is_validated

Function item_is_validated 

Source
pub fn item_is_validated(tcx: TyCtxt<'_>, def_id: DefId) -> ValidatedStatus
Expand description

Shared between rustc_lint and rustc_codegen_ssa attr parsing.

This analysis needs to be conservative. If you don’t have enough information to determine the status, assume it’s unvalidated.