From 55fc986be72c0db77b65b0198ed5b26ac918ddad Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Thu, 23 Dec 2021 16:51:24 -0800 Subject: [PATCH] Fix tidy line length lint in stringify tests --- src/test/ui/macros/stringify.rs | 20 ++++++++++++++++---- 1 file changed, 16 insertions(+), 4 deletions(-) diff --git a/src/test/ui/macros/stringify.rs b/src/test/ui/macros/stringify.rs index 39aac34d45a4a..fcf6a9278d8fe 100644 --- a/src/test/ui/macros/stringify.rs +++ b/src/test/ui/macros/stringify.rs @@ -243,7 +243,9 @@ fn test_expr() { #![attr] } ), - "{\n #![attr]\n}", + "{\n\ + \x20 #![attr]\n\ + }", ); // ExprKind::Async @@ -498,7 +500,13 @@ fn test_item() { Struct { t: T }, } ), - "enum Enum where T: 'a {\n Unit,\n Tuple(T),\n Struct {\n t: T,\n },\n}", + "enum Enum where T: 'a {\n\ + \x20 Unit,\n\ + \x20 Tuple(T),\n\ + \x20 Struct {\n\ + \x20 t: T,\n\ + \x20 },\n\ + }", ); // ItemKind::Struct @@ -535,7 +543,9 @@ fn test_item() { t: T, } ), - "struct Struct where T: 'a {\n t: T,\n}", + "struct Struct where T: 'a {\n\ + \x20 t: T,\n\ + }", ); // ItemKind::Union @@ -551,7 +561,9 @@ fn test_item() { t: T, } ), - "union Union where T: 'a {\n t: T,\n}", + "union Union where T: 'a {\n\ + \x20 t: T,\n\ + }", ); // ItemKind::Trait