1 // rustfmt-error_on_line_overflow: false
6 ( $ m1 : ident , $ m2 : ident , $ x : ident ) => ();
7 ( $($beginning:ident),*;$middle:ident;$($end:ident),* ) => ();
8 ( $($beginning: ident),*; $middle: ident; $($end: ident),*; $($beginning: ident),*; $middle: ident; $($end: ident),* ) => {};
9 ( $ name : ident ( $ ( $ dol : tt $ var : ident ) * ) $ ( $ body : tt ) * ) => ();
14 ($expr :expr, $( $func : ident ) * ) => {
34 mod macro_item { struct $item ; }
40 ($expr :expr, $( $func : ident ) * ) => {
60 mod macro_item { struct $item ; }
68 this_line_is_98_characters_long_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(
76 this_line_is_99_characters_long_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(
84 this_line_is_100_characters_long_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(
92 this_line_is_101_characters_long_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(
100 ($line0_xxxxxxxxxxxxxxxxx: expr, $line1_xxxxxxxxxxxxxxxxx: expr, $line2_xxxxxxxxxxxxxxxxx: expr, $line3_xxxxxxxxxxxxxxxxx: expr,) => {};
104 // Skip formatting `macro_rules!` that are not using `{}`.
113 macro foo($type_name: ident, $docs: expr) {
114 #[allow(non_camel_case_types)]
116 #[derive(Debug, Clone, Copy)]
117 pub struct $type_name;
121 macro_rules! add_message_to_notes {
123 let mut lines = message.lines();
124 notes.push_str(&format!("\n{}: {}", level, lines.next().unwrap()));
126 notes.push_str(&format!(
127 "\n{:indent$}{line}",
129 indent = level.len() + 2,