summaryrefslogtreecommitdiffstats
path: root/src/tools/rustfmt/tests/target/issue_4350.rs
blob: a94c5c32188d2498afaaf9b20137bb62bb998527 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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))
    }};
}