From 238e4bbad7712ccc3a3ea4a5b09c63bd147c692e Mon Sep 17 00:00:00 2001 From: René Kijewski Date: Thu, 28 Sep 2023 17:09:29 +0200 Subject: Limit nesting in parser nodes, too --- testing/tests/ui/excessive_nesting.stderr | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 testing/tests/ui/excessive_nesting.stderr (limited to 'testing/tests/ui/excessive_nesting.stderr') diff --git a/testing/tests/ui/excessive_nesting.stderr b/testing/tests/ui/excessive_nesting.stderr new file mode 100644 index 0000000..d83cd3b --- /dev/null +++ b/testing/tests/ui/excessive_nesting.stderr @@ -0,0 +1,8 @@ +error: problems parsing template source at row 8, column 36 near: + "{%if 1%}{%if 1%}{%if 1%}{%if 1%}{%if 1%}"... + --> tests/ui/excessive_nesting.rs:3:10 + | +3 | #[derive(Template)] + | ^^^^^^^^ + | + = note: this error originates in the derive macro `Template` (in Nightly builds, run with -Z macro-backtrace for more info) -- cgit