rust/tests/ui/proc-macro/dollar-crate.stdout
Nicholas Nethercote 4cfdbd328b Add spacing information to delimiters.
This is an extension of the previous commit. It means the output of
something like this:
```
stringify!(let a: Vec<u32> = vec![];)
```
goes from this:
```
let a: Vec<u32> = vec![] ;
```
With this PR, it now produces this string:
```
let a: Vec<u32> = vec![];
```
2023-12-11 09:36:40 +11:00

247 lines
7.3 KiB
Plaintext

PRINT-BANG INPUT (DISPLAY): struct M($crate :: S);
PRINT-BANG RE-COLLECTED (DISPLAY): struct M($crate :: S) ;
PRINT-BANG INPUT (DEBUG): TokenStream [
Ident {
ident: "struct",
span: $DIR/dollar-crate.rs:20:17: 20:23 (#3),
},
Ident {
ident: "M",
span: $DIR/dollar-crate.rs:20:24: 20:25 (#3),
},
Group {
delimiter: Parenthesis,
stream: TokenStream [
Ident {
ident: "$crate",
span: $DIR/dollar-crate.rs:20:26: 20:32 (#3),
},
Punct {
ch: ':',
spacing: Joint,
span: $DIR/dollar-crate.rs:20:32: 20:33 (#3),
},
Punct {
ch: ':',
spacing: Alone,
span: $DIR/dollar-crate.rs:20:33: 20:34 (#3),
},
Ident {
ident: "S",
span: $DIR/dollar-crate.rs:20:34: 20:35 (#3),
},
],
span: $DIR/dollar-crate.rs:20:25: 20:36 (#3),
},
Punct {
ch: ';',
spacing: Alone,
span: $DIR/dollar-crate.rs:20:36: 20:37 (#3),
},
]
PRINT-ATTR INPUT (DISPLAY): struct A($crate :: S);
PRINT-ATTR RE-COLLECTED (DISPLAY): struct A($crate :: S) ;
PRINT-ATTR INPUT (DEBUG): TokenStream [
Ident {
ident: "struct",
span: $DIR/dollar-crate.rs:24:13: 24:19 (#3),
},
Ident {
ident: "A",
span: $DIR/dollar-crate.rs:24:20: 24:21 (#3),
},
Group {
delimiter: Parenthesis,
stream: TokenStream [
Ident {
ident: "$crate",
span: $DIR/dollar-crate.rs:24:22: 24:28 (#3),
},
Punct {
ch: ':',
spacing: Joint,
span: $DIR/dollar-crate.rs:24:28: 24:29 (#3),
},
Punct {
ch: ':',
spacing: Alone,
span: $DIR/dollar-crate.rs:24:29: 24:30 (#3),
},
Ident {
ident: "S",
span: $DIR/dollar-crate.rs:24:30: 24:31 (#3),
},
],
span: $DIR/dollar-crate.rs:24:21: 24:32 (#3),
},
Punct {
ch: ';',
spacing: Alone,
span: $DIR/dollar-crate.rs:24:32: 24:33 (#3),
},
]
PRINT-DERIVE INPUT (DISPLAY): struct D($crate :: S);
PRINT-DERIVE RE-COLLECTED (DISPLAY): struct D($crate :: S) ;
PRINT-DERIVE INPUT (DEBUG): TokenStream [
Ident {
ident: "struct",
span: $DIR/dollar-crate.rs:27:13: 27:19 (#3),
},
Ident {
ident: "D",
span: $DIR/dollar-crate.rs:27:20: 27:21 (#3),
},
Group {
delimiter: Parenthesis,
stream: TokenStream [
Ident {
ident: "$crate",
span: $DIR/dollar-crate.rs:27:22: 27:28 (#3),
},
Punct {
ch: ':',
spacing: Joint,
span: $DIR/dollar-crate.rs:27:28: 27:29 (#3),
},
Punct {
ch: ':',
spacing: Alone,
span: $DIR/dollar-crate.rs:27:29: 27:30 (#3),
},
Ident {
ident: "S",
span: $DIR/dollar-crate.rs:27:30: 27:31 (#3),
},
],
span: $DIR/dollar-crate.rs:27:21: 27:32 (#3),
},
Punct {
ch: ';',
spacing: Alone,
span: $DIR/dollar-crate.rs:27:32: 27:33 (#3),
},
]
PRINT-BANG INPUT (DISPLAY): struct M($crate :: S);
PRINT-BANG RE-COLLECTED (DISPLAY): struct M($crate :: S) ;
PRINT-BANG INPUT (DEBUG): TokenStream [
Ident {
ident: "struct",
span: $DIR/auxiliary/dollar-crate-external.rs:7:13: 7:19 (#14),
},
Ident {
ident: "M",
span: $DIR/auxiliary/dollar-crate-external.rs:7:20: 7:21 (#14),
},
Group {
delimiter: Parenthesis,
stream: TokenStream [
Ident {
ident: "$crate",
span: $DIR/auxiliary/dollar-crate-external.rs:7:22: 7:28 (#14),
},
Punct {
ch: ':',
spacing: Joint,
span: $DIR/auxiliary/dollar-crate-external.rs:7:28: 7:29 (#14),
},
Punct {
ch: ':',
spacing: Alone,
span: $DIR/auxiliary/dollar-crate-external.rs:7:29: 7:30 (#14),
},
Ident {
ident: "S",
span: $DIR/auxiliary/dollar-crate-external.rs:7:30: 7:31 (#14),
},
],
span: $DIR/auxiliary/dollar-crate-external.rs:7:21: 7:32 (#14),
},
Punct {
ch: ';',
spacing: Alone,
span: $DIR/auxiliary/dollar-crate-external.rs:7:32: 7:33 (#14),
},
]
PRINT-ATTR INPUT (DISPLAY): struct A($crate :: S);
PRINT-ATTR RE-COLLECTED (DISPLAY): struct A($crate :: S) ;
PRINT-ATTR INPUT (DEBUG): TokenStream [
Ident {
ident: "struct",
span: $DIR/auxiliary/dollar-crate-external.rs:11:9: 11:15 (#14),
},
Ident {
ident: "A",
span: $DIR/auxiliary/dollar-crate-external.rs:11:16: 11:17 (#14),
},
Group {
delimiter: Parenthesis,
stream: TokenStream [
Ident {
ident: "$crate",
span: $DIR/auxiliary/dollar-crate-external.rs:11:18: 11:24 (#14),
},
Punct {
ch: ':',
spacing: Joint,
span: $DIR/auxiliary/dollar-crate-external.rs:11:24: 11:25 (#14),
},
Punct {
ch: ':',
spacing: Alone,
span: $DIR/auxiliary/dollar-crate-external.rs:11:25: 11:26 (#14),
},
Ident {
ident: "S",
span: $DIR/auxiliary/dollar-crate-external.rs:11:26: 11:27 (#14),
},
],
span: $DIR/auxiliary/dollar-crate-external.rs:11:17: 11:28 (#14),
},
Punct {
ch: ';',
spacing: Alone,
span: $DIR/auxiliary/dollar-crate-external.rs:11:28: 11:29 (#14),
},
]
PRINT-DERIVE INPUT (DISPLAY): struct D($crate :: S);
PRINT-DERIVE RE-COLLECTED (DISPLAY): struct D($crate :: S) ;
PRINT-DERIVE INPUT (DEBUG): TokenStream [
Ident {
ident: "struct",
span: $DIR/auxiliary/dollar-crate-external.rs:14:9: 14:15 (#14),
},
Ident {
ident: "D",
span: $DIR/auxiliary/dollar-crate-external.rs:14:16: 14:17 (#14),
},
Group {
delimiter: Parenthesis,
stream: TokenStream [
Ident {
ident: "$crate",
span: $DIR/auxiliary/dollar-crate-external.rs:14:18: 14:24 (#14),
},
Punct {
ch: ':',
spacing: Joint,
span: $DIR/auxiliary/dollar-crate-external.rs:14:24: 14:25 (#14),
},
Punct {
ch: ':',
spacing: Alone,
span: $DIR/auxiliary/dollar-crate-external.rs:14:25: 14:26 (#14),
},
Ident {
ident: "S",
span: $DIR/auxiliary/dollar-crate-external.rs:14:26: 14:27 (#14),
},
],
span: $DIR/auxiliary/dollar-crate-external.rs:14:17: 14:28 (#14),
},
Punct {
ch: ';',
spacing: Alone,
span: $DIR/auxiliary/dollar-crate-external.rs:14:28: 14:29 (#14),
},
]