[−][src]Function rustc_lint::types::transparent_newtype_field

pub fn transparent_newtype_field<'a, 'tcx>(
    tcx: TyCtxt<'tcx>,
    variant: &'a VariantDef
) -> Option<&'a FieldDef>

repr(transparent) structs can have a single non-ZST field, this function returns that field.