File tree Expand file tree Collapse file tree 2 files changed +61
-7
lines changed Expand file tree Collapse file tree 2 files changed +61
-7
lines changed Original file line number Diff line number Diff line change
1
+ // rustfmt-error_on_line_overflow: false
2
+
1
3
macro_rules! m {
2
4
// a
3
5
( $expr : expr, $( $func : ident ) * ) => {
@@ -50,12 +52,37 @@ macro m2 {
50
52
}
51
53
}
52
54
53
-
54
- // #2438
55
+ // #2438, #2476
56
+ macro_rules! m {
57
+ ( ) => {
58
+ fn foo ( ) {
59
+ this_line_is_98_characters_long_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (
60
+ ) ;
61
+ }
62
+ }
63
+ }
64
+ macro_rules! m {
65
+ ( ) => {
66
+ fn foo( ) {
67
+ this_line_is_99_characters_long_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(
68
+ ) ;
69
+ }
70
+ } ;
71
+ }
72
+ macro_rules! m {
73
+ ( ) => {
74
+ fn foo( ) {
75
+ this_line_is_100_characters_long_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(
76
+ ) ;
77
+ }
78
+ } ;
79
+ }
55
80
macro_rules! m {
56
81
( ) => {
57
- this_line_is_99_characters_long_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (
58
- ) ; // this line is drifting
82
+ fn foo( ) {
83
+ this_line_is_101_characters_long_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(
84
+ ) ;
85
+ }
59
86
} ;
60
87
}
61
88
Original file line number Diff line number Diff line change
1
+ // rustfmt-error_on_line_overflow: false
2
+
1
3
macro_rules! m {
2
4
// a
3
5
( $expr: expr, $( $func: ident) * ) => { {
@@ -42,11 +44,36 @@ macro m2 {
42
44
}
43
45
}
44
46
45
- // #2438
47
+ // #2438, #2476
46
48
macro_rules! m {
47
49
( ) => {
48
- this_line_is_99_characters_long_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx (
49
- ) ; // this line is drifting
50
+ fn foo ( ) {
51
+ this_line_is_98_characters_long_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx ( ) ;
52
+ }
53
+ } ;
54
+ }
55
+ macro_rules! m {
56
+ ( ) => {
57
+ fn foo( ) {
58
+ this_line_is_99_characters_long_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(
59
+ ) ;
60
+ }
61
+ } ;
62
+ }
63
+ macro_rules! m {
64
+ ( ) => {
65
+ fn foo( ) {
66
+ this_line_is_100_characters_long_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(
67
+ ) ;
68
+ }
69
+ } ;
70
+ }
71
+ macro_rules! m {
72
+ ( ) => {
73
+ fn foo( ) {
74
+ this_line_is_101_characters_long_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx(
75
+ ) ;
76
+ }
50
77
} ;
51
78
}
52
79
You can’t perform that action at this time.
0 commit comments