Share packed box diagnostics across native execution

This commit is contained in:
gloamxun committed 2026-11-28 07:43:44 +08:00
1 parent 526ec9b3b0
commit ca3730338e
13 files changed
+126 -22

No files matched your search

@@ -795,7 +795,7 @@ fn empty_alignment_box(width: i64, horizontal: bool, span: Span) -> NativeBox {
} else {
BoxContent::Vertical(Vec::new())
},
diagnostic: Vec::new(),
diagnostic: Default::default(),
setting: GlueSetting::default(),
interword_runs: Vec::new(),
badness: 0,
@@ -1013,7 +1013,7 @@ fn set_alignment_row(
row.excess = 0;
if horizontal {
row.width = prototype.width;
row.diagnostic = super::super::diagnostics::text_nodes(&h);
row.diagnostic = super::super::diagnostics::text_nodes(&h).into();
row.content = BoxContent::Horizontal(h);
} else {
row.height = prototype.height;