Skip to content

Commit

Permalink
Add test for issue 4350
Browse files Browse the repository at this point in the history
Closes 4350

Its unclear which commit resolved this, but the original issue is no
longer reproducible.
  • Loading branch information
ytmimi authored and calebcartwright committed Jul 26, 2022
1 parent c19b145 commit a451a39
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions tests/target/issue_4350.rs
Original file line number Diff line number Diff line change
@@ -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))
}};
}

0 comments on commit a451a39

Please sign in to comment.