diff options
| author | Yacin Tmimi <yacintmimi@gmail.com> | 2022-07-20 13:59:57 -0400 |
|---|---|---|
| committer | Caleb Cartwright <calebcartwright@users.noreply.github.com> | 2022-07-25 20:11:32 -0500 |
| commit | a451a39dec2bd5d7f0822eaa092e1423b42ea1d3 (patch) | |
| tree | 150c96516560b528188df566d2b90e6dc7526d47 | |
| parent | c19b14539b79d44f5f433ac189d70e07fb152354 (diff) | |
| download | rust-a451a39dec2bd5d7f0822eaa092e1423b42ea1d3.tar.gz rust-a451a39dec2bd5d7f0822eaa092e1423b42ea1d3.zip | |
Add test for issue 4350
Closes 4350 Its unclear which commit resolved this, but the original issue is no longer reproducible.
| -rw-r--r-- | tests/target/issue_4350.rs | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/target/issue_4350.rs b/tests/target/issue_4350.rs new file mode 100644 index 00000000000..a94c5c32188 --- /dev/null +++ b/tests/target/issue_4350.rs @@ -0,0 +1,13 @@ +//rustfmt-format_macro_bodies: true + +macro_rules! mto_text_left { + ($buf:ident, $n:ident, $pos:ident, $state:ident) => {{ + let cursor = loop { + state = match iter.next() { + None if $pos == DP::Start => break last_char_idx($buf), + None /*some comment */ => break 0, + }; + }; + Ok(saturate_cursor($buf, cursor)) + }}; +} |
