I think these are already deprecated from scattered comments on issues, but it would be nice to have an accepted issue to point to.
Intbit_countis_signedFloatbit_countPointerChildalignmentArrayChildlenErrorUnionPayloadErrorSetOptionalChildFnReturnTypeis_var_argsarg_countNotably, if we remove these (which I think we should), they should be removed from error messages too.
Infact, the change in error messages can occur first.
I think the only time it shows up in error messages is for the name of an inferred error set:
buf_appendf(&err_set_type->name, "@TypeOf(%s).ReturnType.ErrorSet", buf_ptr(&fn_entry->symbol_name));
Not sure what to replace it with.
Duplicate of #2117 assuming it applies to all the other redundant fields.
@Vexu would it be possible to have zig fmt replace usages of these deprecated fields with their standard library equivalents?
No. zig fmt doesn't know anything about types and would just lead to more breakage. However I believe these are quite rare in anything made after the introduction of @typeInfo.
Most helpful comment
No.
zig fmtdoesn't know anything about types and would just lead to more breakage. However I believe these are quite rare in anything made after the introduction of@typeInfo.