From e9badca2573a8e6f89e14a75446e1c890ebd843f Mon Sep 17 00:00:00 2001 From: René Kijewski Date: Fri, 2 Jul 2021 09:47:15 +0200 Subject: Replace rust_macro test to work on nightly The current rust_test uses `stringify!()`. The documentation gives us the warning: > Note that the expanded results of the input tokens may change in the > future. You should be careful if you rely on the output. In the current nightly rust the result was indeed changed, so the test not fails. This PR replaces the test with another macro, that does not depend on `stringify!()`. Closes issue #504. --- testing/templates/rust-macro-args.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'testing/templates') diff --git a/testing/templates/rust-macro-args.html b/testing/templates/rust-macro-args.html index 9dca314..11aef54 100644 --- a/testing/templates/rust-macro-args.html +++ b/testing/templates/rust-macro-args.html @@ -1,3 +1,3 @@ -{{ call_a_or_b_on_tail!((a: compute_len, b: zero), call b: only the terminal rules care.) }} -{{ call_a_or_b_on_tail!((a: compute_len, b: zero), call a: some ninety one!) }} -{{ call_a_or_b_on_tail!((a: compute_len, b: zero), call a: some ninety "(\"()"nine!) }} +{{ call_a_or_b_on_tail!((a: year, b: month, c: day), call a: 2021, "July", (0+2)) }} +{{ call_a_or_b_on_tail!((a: year, b: month, c: day), call b: 2021, "July", (0+2)) }} +{{ call_a_or_b_on_tail!((a: year, b: day, c: month), call b: 2021, "July", (0+2)) }} -- cgit