mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-02 07:22:42 +00:00
1fbabeeb2e
There are a number of cases where we erroneously omit the space between two tokens, all involving an exception to a more general case. The affected tokens are `$`, `!`, `.`, `,`, and `let` followed by a parenthesis. This fixes a lot of FIXME comments.
63 lines
2.2 KiB
Plaintext
63 lines
2.2 KiB
Plaintext
PRINT-ATTR INPUT (DISPLAY): fn main() { match () { | () => () } }
|
|
PRINT-ATTR INPUT (DEBUG): TokenStream [
|
|
Ident {
|
|
ident: "fn",
|
|
span: $DIR/issue-76182-leading-vert-pat.rs:14:1: 14:3 (#0),
|
|
},
|
|
Ident {
|
|
ident: "main",
|
|
span: $DIR/issue-76182-leading-vert-pat.rs:14:4: 14:8 (#0),
|
|
},
|
|
Group {
|
|
delimiter: Parenthesis,
|
|
stream: TokenStream [],
|
|
span: $DIR/issue-76182-leading-vert-pat.rs:14:8: 14:10 (#0),
|
|
},
|
|
Group {
|
|
delimiter: Brace,
|
|
stream: TokenStream [
|
|
Ident {
|
|
ident: "match",
|
|
span: $DIR/issue-76182-leading-vert-pat.rs:15:5: 15:10 (#0),
|
|
},
|
|
Group {
|
|
delimiter: Parenthesis,
|
|
stream: TokenStream [],
|
|
span: $DIR/issue-76182-leading-vert-pat.rs:15:11: 15:13 (#0),
|
|
},
|
|
Group {
|
|
delimiter: Brace,
|
|
stream: TokenStream [
|
|
Punct {
|
|
ch: '|',
|
|
spacing: Alone,
|
|
span: $DIR/issue-76182-leading-vert-pat.rs:15:16: 15:17 (#0),
|
|
},
|
|
Group {
|
|
delimiter: Parenthesis,
|
|
stream: TokenStream [],
|
|
span: $DIR/issue-76182-leading-vert-pat.rs:15:18: 15:20 (#0),
|
|
},
|
|
Punct {
|
|
ch: '=',
|
|
spacing: Joint,
|
|
span: $DIR/issue-76182-leading-vert-pat.rs:15:21: 15:22 (#0),
|
|
},
|
|
Punct {
|
|
ch: '>',
|
|
spacing: Alone,
|
|
span: $DIR/issue-76182-leading-vert-pat.rs:15:22: 15:23 (#0),
|
|
},
|
|
Group {
|
|
delimiter: Parenthesis,
|
|
stream: TokenStream [],
|
|
span: $DIR/issue-76182-leading-vert-pat.rs:15:24: 15:26 (#0),
|
|
},
|
|
],
|
|
span: $DIR/issue-76182-leading-vert-pat.rs:15:14: 15:28 (#0),
|
|
},
|
|
],
|
|
span: $DIR/issue-76182-leading-vert-pat.rs:14:11: 16:2 (#0),
|
|
},
|
|
]
|