2021-03-06 12:33:02 -06:00
|
|
|
PRINT-ATTR INPUT (DISPLAY): struct S1 { #[cfg(all())] #[allow()] field_true : u8, }
|
|
|
|
PRINT-ATTR INPUT (DEBUG): TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "struct",
|
|
|
|
span: $DIR/cfg-eval.rs:17:1: 24:2 (#0),
|
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "S1",
|
|
|
|
span: $DIR/cfg-eval.rs:17:1: 24:2 (#0),
|
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Alone,
|
|
|
|
span: $DIR/cfg-eval.rs:17:1: 24:2 (#0),
|
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "cfg",
|
|
|
|
span: $DIR/cfg-eval.rs:17:1: 24:2 (#0),
|
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "all",
|
|
|
|
span: $DIR/cfg-eval.rs:17:1: 24:2 (#0),
|
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [],
|
|
|
|
span: $DIR/cfg-eval.rs:17:1: 24:2 (#0),
|
|
|
|
},
|
|
|
|
],
|
|
|
|
span: $DIR/cfg-eval.rs:17:1: 24:2 (#0),
|
|
|
|
},
|
|
|
|
],
|
|
|
|
span: $DIR/cfg-eval.rs:17:1: 24:2 (#0),
|
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Alone,
|
|
|
|
span: $DIR/cfg-eval.rs:17:1: 24:2 (#0),
|
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "allow",
|
|
|
|
span: $DIR/cfg-eval.rs:17:1: 24:2 (#0),
|
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [],
|
|
|
|
span: $DIR/cfg-eval.rs:17:1: 24:2 (#0),
|
|
|
|
},
|
|
|
|
],
|
|
|
|
span: $DIR/cfg-eval.rs:17:1: 24:2 (#0),
|
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "field_true",
|
|
|
|
span: $DIR/cfg-eval.rs:17:1: 24:2 (#0),
|
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ':',
|
|
|
|
spacing: Alone,
|
|
|
|
span: $DIR/cfg-eval.rs:17:1: 24:2 (#0),
|
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "u8",
|
|
|
|
span: $DIR/cfg-eval.rs:17:1: 24:2 (#0),
|
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ',',
|
|
|
|
spacing: Alone,
|
|
|
|
span: $DIR/cfg-eval.rs:17:1: 24:2 (#0),
|
|
|
|
},
|
|
|
|
],
|
|
|
|
span: $DIR/cfg-eval.rs:17:1: 24:2 (#0),
|
|
|
|
},
|
|
|
|
]
|
2021-04-08 16:01:15 -05:00
|
|
|
PRINT-ATTR INPUT (DISPLAY): #[rustc_dummy] (#[cfg(all())] 1,)
|
2021-03-06 12:33:02 -06:00
|
|
|
PRINT-ATTR INPUT (DEBUG): TokenStream [
|
2021-04-08 16:01:15 -05:00
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Alone,
|
|
|
|
span: $DIR/cfg-eval.rs:36:5: 36:48 (#0),
|
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "rustc_dummy",
|
|
|
|
span: $DIR/cfg-eval.rs:36:5: 36:48 (#0),
|
|
|
|
},
|
|
|
|
],
|
|
|
|
span: $DIR/cfg-eval.rs:36:5: 36:48 (#0),
|
|
|
|
},
|
2021-03-06 12:33:02 -06:00
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Alone,
|
2021-04-08 16:01:15 -05:00
|
|
|
span: $DIR/cfg-eval.rs:36:5: 36:48 (#0),
|
2021-03-06 12:33:02 -06:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "cfg",
|
2021-04-08 16:01:15 -05:00
|
|
|
span: $DIR/cfg-eval.rs:36:5: 36:48 (#0),
|
2021-03-06 12:33:02 -06:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "all",
|
2021-04-08 16:01:15 -05:00
|
|
|
span: $DIR/cfg-eval.rs:36:5: 36:48 (#0),
|
2021-03-06 12:33:02 -06:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [],
|
2021-04-08 16:01:15 -05:00
|
|
|
span: $DIR/cfg-eval.rs:36:5: 36:48 (#0),
|
2021-03-06 12:33:02 -06:00
|
|
|
},
|
|
|
|
],
|
2021-04-08 16:01:15 -05:00
|
|
|
span: $DIR/cfg-eval.rs:36:5: 36:48 (#0),
|
2021-03-06 12:33:02 -06:00
|
|
|
},
|
|
|
|
],
|
2021-04-08 16:01:15 -05:00
|
|
|
span: $DIR/cfg-eval.rs:36:5: 36:48 (#0),
|
2021-03-06 12:33:02 -06:00
|
|
|
},
|
|
|
|
Literal {
|
|
|
|
kind: Integer,
|
|
|
|
symbol: "1",
|
|
|
|
suffix: None,
|
2021-04-08 16:01:15 -05:00
|
|
|
span: $DIR/cfg-eval.rs:36:5: 36:48 (#0),
|
2021-03-06 12:33:02 -06:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ',',
|
|
|
|
spacing: Alone,
|
2021-04-08 16:01:15 -05:00
|
|
|
span: $DIR/cfg-eval.rs:36:5: 36:48 (#0),
|
2021-03-06 12:33:02 -06:00
|
|
|
},
|
|
|
|
],
|
2021-04-08 16:01:15 -05:00
|
|
|
span: $DIR/cfg-eval.rs:36:5: 36:48 (#0),
|
2021-03-06 12:33:02 -06:00
|
|
|
},
|
|
|
|
]
|