fix review comments
This commit is contained in:
parent
da2d8a4c57
commit
2502939b60
@ -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;
|
||||
|
@ -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 };
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user