rust/tests/target/issue-4152.rs
hafiz c77c6a405d Compare code block line indentation with config whitespace (#4166)
Previously the indetation of a line was compared with the configured
number of spaces per tab, which could cause lines that were formatted
with hard tabs not to be recognized as indented ("\t".len() < "    ".len()).

Closes #4152
2020-11-29 13:26:58 -06:00

19 lines
187 B
Rust

// rustfmt-hard_tabs: true
macro_rules! bit {
($bool:expr) => {
if $bool {
1;
1
} else {
0;
0
}
};
}
macro_rules! add_one {
($vec:expr) => {{
$vec.push(1);
}};
}