You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Auto-generate rbs_ast_ruby_annotations_t union from config.yml
The union `rbs_ast_ruby_annotations_t` was previously maintained by
hand in ast.h.erb with only 6 members, while 14 annotation structs
existed and were all cast to this union pointer in parser.c. This
drift went unnoticed because downstream code only touches `.base`
and never instantiates the union as a value.
Generate the union members from the annotation entries in config.yml
so future additions stay in sync automatically.
As a side benefit, ruby-rbs-sys/build.rs can now allowlist the union
type alone and rely on bindgen's transitive allowlisting to pull in
every `rbs_ast_ruby_annotations_*_t` member, replacing the
hand-maintained list of 13 individual allowlist entries (which had
itself drifted by missing module_self_annotation_t).
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
0 commit comments