Skip to content

Commit

Permalink
Fix tidy line length lint in stringify tests
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Dec 24, 2021
1 parent ac43ba8 commit 55fc986
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions src/test/ui/macros/stringify.rs
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,9 @@ fn test_expr() {
#![attr]
}
),
"{\n #![attr]\n}",
"{\n\
\x20 #![attr]\n\
}",
);

// ExprKind::Async
Expand Down Expand Up @@ -498,7 +500,13 @@ fn test_item() {
Struct { t: T },
}
),
"enum Enum<T> where T: 'a {\n Unit,\n Tuple(T),\n Struct {\n t: T,\n },\n}",
"enum Enum<T> where T: 'a {\n\
\x20 Unit,\n\
\x20 Tuple(T),\n\
\x20 Struct {\n\
\x20 t: T,\n\
\x20 },\n\
}",
);

// ItemKind::Struct
Expand Down Expand Up @@ -535,7 +543,9 @@ fn test_item() {
t: T,
}
),
"struct Struct<T> where T: 'a {\n t: T,\n}",
"struct Struct<T> where T: 'a {\n\
\x20 t: T,\n\
}",
);

// ItemKind::Union
Expand All @@ -551,7 +561,9 @@ fn test_item() {
t: T,
}
),
"union Union<T> where T: 'a {\n t: T,\n}",
"union Union<T> where T: 'a {\n\
\x20 t: T,\n\
}",
);

// ItemKind::Trait
Expand Down

0 comments on commit 55fc986

Please sign in to comment.