Rollup merge of #155738 - Walnut356:tuple_fields, r=jieyouxu

Pass fields to `is_tuple_fields` instead of `SBValue` object

straightforward fix for a logic error. `is_tuple_fields` expects a `list`, so we pass that in instead of the value object.

Coincidentally, this also fixes one of the 3 DI tests that fails on `x86_64-pc-windows-gnu` (`tests/debuginfo/union-smoke.rs`)
This commit is contained in:
Jacob Pratt
2026-04-25 01:21:54 -04:00
committed by GitHub
+1 -1
View File
@@ -268,7 +268,7 @@ def aggregate_field_summary(valobj: SBValue, _dict) -> Generator[str, None, None
if summary is None:
summary = child.value
if summary is None:
if is_tuple_fields(child):
if is_tuple_fields(child.GetType().fields):
summary = TupleSummaryProvider(child, _dict)
else:
summary = StructSummaryProvider(child, _dict)