Compare commits

...

2 Commits

Author SHA1 Message Date
Tobias Schmitz
254a849fec
test: update test 2025-05-10 14:24:57 +02:00
Tobias Schmitz
067f62c778
feat: change error message 2025-05-10 14:22:37 +02:00
2 changed files with 2 additions and 8 deletions

View File

@ -679,12 +679,7 @@ fn visit_grouping_rules<'a>(
// by the show rule, and so on. The two must be at an equilibrium,
// otherwise either the "maximum show rule depth" or "maximum
// grouping depth" errors are triggered.
bail!(
content.span(),
"maximum realization iterations exceeded";
hint: "maybe there is a cycle between a show rule that produces content, \
which is matched by a grouping rule that triggers the show rule",
);
bail!(content.span(), "maximum grouping depth exceeded");
}
}

View File

@ -260,8 +260,7 @@ I am *strong*, I am _emphasized_, and I am #[special<special>].
*strong*
--- issue-5690-oom-par-box ---
// Error: 3:6-5:1 maximum realization iterations exceeded
// Hint: 3:6-5:1 maybe there is a cycle between a show rule that produces content, which is matched by a grouping rule that triggers the show rule
// Error: 3:6-5:1 maximum grouping depth exceeded
#show par: box
Hello