From 2f99ab13f7baf76059b00cdad393126a6cbae2b6 Mon Sep 17 00:00:00 2001 From: "Eddy (Eduard) Stefes" Date: Thu, 23 Apr 2026 13:38:21 +0200 Subject: [PATCH] Fix classify_union to return Union for regular unions Commit 623c7d7c4bc accidentally changed the return value from REGULAR_UNION to RegularEnum when converting string literals to enum values. Commit b17670d3de2 then renamed RegularUnion to Union, but the buggy return statement remained unchanged. This caused unions to be misclassified as enums, preventing LLDB from displaying union field contents. --- src/etc/rust_types.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/etc/rust_types.py b/src/etc/rust_types.py index 1ed68458ae3a..ca462654e44e 100644 --- a/src/etc/rust_types.py +++ b/src/etc/rust_types.py @@ -130,4 +130,4 @@ def classify_union(fields: List) -> RustType: assert len(fields) == 1 return RustType.CompressedEnum else: - return RustType.RegularEnum + return RustType.Union