mirror of
https://github.com/rust-lang/rust.git
synced 2026-04-26 13:01:27 +03:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user