2021-04-08 16:01:15 -05:00
|
|
|
PRINT-ATTR INPUT (DISPLAY): impl Foo <
|
|
|
|
[u8 ;
|
2022-01-21 03:34:06 -06:00
|
|
|
{
|
|
|
|
#! [rustc_dummy(cursed_inner)] #! [allow(unused)] struct Inner
|
|
|
|
{ field : [u8 ; { #! [rustc_dummy(another_cursed_inner)] 1 }] } 0
|
|
|
|
}] > { #! [rustc_dummy(evaluated_attr)] fn bar() {} }
|
2021-04-08 16:01:15 -05:00
|
|
|
PRINT-ATTR INPUT (DEBUG): TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "impl",
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:18:1: 18:5 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "Foo",
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:18:6: 18:9 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '<',
|
|
|
|
spacing: Alone,
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:18:9: 18:10 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "u8",
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:18:11: 18:13 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ';',
|
|
|
|
spacing: Alone,
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:18:13: 18:14 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
2020-11-28 17:33:17 -06:00
|
|
|
spacing: Alone,
|
|
|
|
span: $DIR/cfg-eval-inner.rs:19:5: 19:6 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '!',
|
|
|
|
spacing: Alone,
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:19:6: 19:7 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "rustc_dummy",
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:19:29: 19:40 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "cursed_inner",
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:19:41: 19:53 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
],
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:19:40: 19:54 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
],
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:19:5: 19:6 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Joint,
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:20:5: 20:6 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '!',
|
|
|
|
spacing: Alone,
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:20:6: 20:7 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "allow",
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:20:8: 20:13 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "unused",
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:20:14: 20:20 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
],
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:20:13: 20:21 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
],
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:20:7: 20:22 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "struct",
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:21:5: 21:11 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "Inner",
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:21:12: 21:17 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "field",
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:22:9: 22:14 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ':',
|
|
|
|
spacing: Alone,
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:22:14: 22:15 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "u8",
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:22:17: 22:19 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ';',
|
|
|
|
spacing: Alone,
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:22:19: 22:20 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
2020-11-28 17:33:17 -06:00
|
|
|
spacing: Alone,
|
|
|
|
span: $DIR/cfg-eval-inner.rs:23:13: 23:14 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '!',
|
|
|
|
spacing: Alone,
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:23:14: 23:15 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "rustc_dummy",
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:23:37: 23:48 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "another_cursed_inner",
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:23:49: 23:69 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
],
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:23:48: 23:70 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
],
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:23:13: 23:14 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Literal {
|
|
|
|
kind: Integer,
|
|
|
|
symbol: "1",
|
|
|
|
suffix: None,
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:24:13: 24:14 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
],
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:22:21: 25:10 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
],
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:22:16: 25:11 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
],
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:21:18: 26:6 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Literal {
|
|
|
|
kind: Integer,
|
|
|
|
symbol: "0",
|
|
|
|
suffix: None,
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:28:5: 28:6 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
],
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:18:15: 29:2 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
],
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:18:10: 29:3 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '>',
|
|
|
|
spacing: Alone,
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:29:3: 29:4 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
2020-11-28 17:33:17 -06:00
|
|
|
spacing: Alone,
|
|
|
|
span: $DIR/cfg-eval-inner.rs:32:5: 32:6 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '!',
|
|
|
|
spacing: Alone,
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:32:6: 32:7 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "rustc_dummy",
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:32:29: 32:40 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "evaluated_attr",
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:32:41: 32:55 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
],
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:32:40: 32:56 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
],
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:32:5: 32:6 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "fn",
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:34:5: 34:7 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "bar",
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:34:8: 34:11 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [],
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:34:11: 34:13 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [],
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:34:14: 36:6 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
],
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/cfg-eval-inner.rs:29:5: 37:2 (#0),
|
2021-04-08 16:01:15 -05:00
|
|
|
},
|
|
|
|
]
|