diff options
| author | Chuck Lever <cel@kernel.org> | 2026-09-08 11:15:36 -0400 |
|---|---|---|
| committer | Chuck Lever <cel@kernel.org> | 2026-10-04 21:15:29 -0400 |
| commit | aa41b1bc7520da91c2483e6237fd4658c69daf25 (patch) | |
| tree | 017871d5353be1ec4e62589362676f4070f2860c /rust | |
| parent | 1e7f9d30d519d3df6953d4ab6a045063bb8b5896 (diff) | |
xdrgen: Reject a "pragma pages" union arm declared as an opaque
check_pages_directives() rejects a union arm declared directly as
a string, with a diagnostic pointing at the directive, but accepts
one declared directly as a variable-length opaque. The union
generator has no arm representation for a direct opaque, so
generation fails with an AttributeError from
emit_union_case_spec_definition() instead. A direct opaque arm was
never generated correctly, marked or not, but the pages validation
exists to report such a directive at its source position.
Extend the union-arm check to a direct variable-length opaque, so
both forms draw the same diagnostic.
Signed-off-by: Chuck Lever <cel@kernel.org>
Diffstat (limited to 'rust')
0 files changed, 0 insertions, 0 deletions
