aboutsummaryrefslogtreecommitdiffstats
path: root/testing/tests/ui (unfollow)
Commit message (Collapse)AuthorFilesLines
2022-01-31Remove `panic!()` in `loop.cycle([])`Libravatar René Kijewski2-0/+22
2022-01-31Make is_shadowing_variable() failableLibravatar René Kijewski1-3/+3
2022-01-31Allow comments in `{% match %}` and remove panic!Libravatar René Kijewski2-0/+28
2022-01-13Add unit tests if there is one `#[template(…)]`Libravatar René Kijewski4-0/+36
2021-12-01Fix tests for new error messages in Rust nightlyLibravatar René Kijewski15-1/+27
2021-11-11Implement {{loop.cycle(…)}} similar to JinjaLibravatar René Kijewski2-0/+20
2021-08-30Ensure that {%break%} is only used inside of a loopLibravatar René Kijewski2-0/+19
2021-07-30Better error messages using cutsLibravatar René Kijewski2-0/+19
2021-07-30Use "target()" to parse "when" blockLibravatar René Kijewski2-0/+18
`target()` as used in parsing "let" and "if let" implements parsing nested tuples and structs. But it does not implement parsing literals. The functions `match_variant()` and `with_parameters()` as used in parsing "when" blocks do not implement parsing nested structs, but it implements parsing literals. This PR combines `match_variant()` and `with_parameters()` into `target()`, so that all `{%when%}` support nested structs, too.
2021-07-02Fix expected error message for missing fileLibravatar René Kijewski4-0/+8
rust-lang/rust#82069 made error message that stem macro invocations more verbose. Since Rust 1.54 (currently in beta) the message includes the name of the offending macro. This PR uses version_check to select the appropriate expected error message.
2020-11-02Use `syn::Error::to_compile_error` and add trybuild ui test (#374)Libravatar msrd02-0/+15