Skip to content

Commit a451a39

Browse files
ytmimicalebcartwright
authored andcommitted
Add test for issue 4350
Closes 4350 Its unclear which commit resolved this, but the original issue is no longer reproducible.
1 parent c19b145 commit a451a39

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

Diff for: tests/target/issue_4350.rs

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
//rustfmt-format_macro_bodies: true
2+
3+
macro_rules! mto_text_left {
4+
($buf:ident, $n:ident, $pos:ident, $state:ident) => {{
5+
let cursor = loop {
6+
state = match iter.next() {
7+
None if $pos == DP::Start => break last_char_idx($buf),
8+
None /*some comment */ => break 0,
9+
};
10+
};
11+
Ok(saturate_cursor($buf, cursor))
12+
}};
13+
}

0 commit comments

Comments
 (0)