1 // rustfmt-error_on_line_overflow: false
6 ($m1: ident, $m2: ident, $x: ident) => {};
7 ($($beginning: ident),*; $middle: ident; $($end: ident),*) => {};
9 $($beginning: ident),*;
12 $($beginning: ident),*;
16 ($name: ident($($dol: tt $var: ident)*) $($body: tt)*) => {};
21 ($expr: expr, $($func: ident)*) => {{
43 ($expr: expr, $($func: ident)*) => {{
67 this_line_is_98_characters_long_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx();
74 this_line_is_99_characters_long_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(
82 this_line_is_100_characters_long_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(
90 this_line_is_101_characters_long_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(
99 $line0_xxxxxxxxxxxxxxxxx: expr,
100 $line1_xxxxxxxxxxxxxxxxx: expr,
101 $line2_xxxxxxxxxxxxxxxxx: expr,
102 $line3_xxxxxxxxxxxxxxxxx: expr,
107 // Skip formatting `macro_rules!` that are not using `{}`.
116 macro foo($type_name: ident, $docs: expr) {
117 #[allow(non_camel_case_types)]
119 #[derive(Debug, Clone, Copy)]
120 pub struct $type_name;
124 macro_rules! add_message_to_notes {
126 let mut lines = message.lines();
127 notes.push_str(&format!("\n{}: {}", level, lines.next().unwrap()));
129 notes.push_str(&format!(
130 "\n{:indent$}{line}",
132 indent = level.len() + 2,