Function rustc_lint::types::transparent_newtype_field
source ยท pub fn transparent_newtype_field<'a, 'tcx>(
tcx: TyCtxt<'tcx>,
variant: &'a VariantDef,
) -> Option<&'a FieldDef>
Expand description
repr(transparent)
structs can have a single non-1-ZST field, this function returns that
field.