fix review comments

This commit is contained in:
Evgenii 2019-02-07 10:55:52 +03:00
parent da2d8a4c57
commit 2502939b60
2 changed files with 1 additions and 13 deletions

View File

@ -608,7 +608,7 @@ impl<'b, 'a: 'b> FmtVisitor<'a> {
let first_line = self.source_map.lookup_char_pos(main_span.lo()).line;
// Statement can start after some newlines and/or spaces
// or it can be on the same line as the last attribute.
// So here we need to take a minimum between two.
// So here we need to take a minimum between the two.
let lo = std::cmp::min(attrs_end + 1, first_line);
self.push_rewrite_inner(item_span, None);
let hi = self.line_number + 1;

View File

@ -1,12 +0,0 @@
// rustfmt-error_on_line_overflow: true
macro_rules! test_macro {
($($id:ident),*) => {};
}
fn main() {
#[rustfmt::skip] test_macro! { one, two, three, four, five, six, seven, eight, night, ten, eleven, twelve, thirteen, fourteen, fiveteen };
#[rustfmt::skip]
test_macro! { one, two, three, four, five, six, seven, eight, night, ten, eleven, twelve, thirteen, fourteen, fiveteen };
}