Update tokenstream whitespace for proc-macro2 1.0.20

This commit is contained in:
David Tolnay 2020-09-03 19:19:24 -07:00
parent aad8e4b431
commit ec38881e57
No known key found for this signature in database
GPG Key ID: F9BA143B95FF6D82
5 changed files with 6 additions and 6 deletions

View File

@ -46,7 +46,7 @@ fn test_struct() {
},
],
},
tokens: TokenStream(`( Debug , Clone )`),
tokens: TokenStream(`(Debug , Clone)`),
},
],
vis: Visibility::Public,
@ -378,7 +378,7 @@ fn test_attr_with_path() {
},
],
},
tokens: TokenStream(`fn main ( ) { assert_eq ! ( foo ( ) , "Hello, world!" ) ; }`),
tokens: TokenStream(`fn main () { assert_eq ! (foo () , "Hello, world!") ; }`),
},
],
vis: Inherited,

View File

@ -265,7 +265,7 @@ fn test_fn_precedence_in_where_clause() {
assert_eq!(predicate.bounds.len(), 2, "{:#?}", predicate.bounds);
let first_bound = &predicate.bounds[0];
assert_eq!(quote!(#first_bound).to_string(), "FnOnce ( ) -> i32");
assert_eq!(quote!(#first_bound).to_string(), "FnOnce () -> i32");
let second_bound = &predicate.bounds[1];
assert_eq!(quote!(#second_bound).to_string(), "Send");

View File

@ -23,7 +23,7 @@ fn test_grouping() {
TokenTree::Literal(Literal::i32_suffixed(4)),
]);
assert_eq!(tokens.to_string(), "1i32 + 2i32 + 3i32 * 4i32");
assert_eq!(tokens.to_string(), "1i32 + 2i32 + 3i32 * 4i32");
snapshot!(tokens as Expr, @r###"
Expr::Binary {

View File

@ -40,7 +40,7 @@ fn test_comment() {
},
],
},
tokens: TokenStream(`( dead_code )`),
tokens: TokenStream(`(dead_code)`),
},
],
items: [

View File

@ -17,7 +17,7 @@ fn test_struct() {
snapshot!(input as TokenStream, @r###"
TokenStream(
`# [ derive ( Debug , Clone ) ] pub struct Item { pub ident : Ident , pub attrs : Vec < Attribute >, }`,
`# [derive (Debug , Clone)] pub struct Item { pub ident : Ident , pub attrs : Vec < Attribute >, }`,
)
"###);
}