2020-11-14 05:47:14 -06:00
|
|
|
PRINT-ATTR INPUT (DISPLAY): #[derive(Print)] struct AttributeDerive { #[cfg(FALSE)] field : u8, }
|
|
|
|
PRINT-ATTR INPUT (DEBUG): TokenStream [
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Alone,
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:15:1: 15:2 (#0),
|
2020-11-14 05:47:14 -06:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "derive",
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:15:3: 15:9 (#0),
|
2020-11-14 05:47:14 -06:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "Print",
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:15:10: 15:15 (#0),
|
2020-11-14 05:47:14 -06:00
|
|
|
},
|
|
|
|
],
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:15:9: 15:16 (#0),
|
2020-11-14 05:47:14 -06:00
|
|
|
},
|
|
|
|
],
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:15:2: 15:17 (#0),
|
2020-11-14 05:47:14 -06:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "struct",
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:16:1: 16:7 (#0),
|
2020-11-14 05:47:14 -06:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "AttributeDerive",
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:16:8: 16:23 (#0),
|
2020-11-14 05:47:14 -06:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Alone,
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:17:5: 17:6 (#0),
|
2020-11-14 05:47:14 -06:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "cfg",
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:17:7: 17:10 (#0),
|
2020-11-14 05:47:14 -06:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "FALSE",
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:17:11: 17:16 (#0),
|
2020-11-14 05:47:14 -06:00
|
|
|
},
|
|
|
|
],
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:17:10: 17:17 (#0),
|
2020-11-14 05:47:14 -06:00
|
|
|
},
|
|
|
|
],
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:17:6: 17:18 (#0),
|
2020-11-14 05:47:14 -06:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "field",
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:18:5: 18:10 (#0),
|
2020-11-14 05:47:14 -06:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ':',
|
|
|
|
spacing: Alone,
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:18:10: 18:11 (#0),
|
2020-11-14 05:47:14 -06:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "u8",
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:18:12: 18:14 (#0),
|
2020-11-14 05:47:14 -06:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ',',
|
|
|
|
spacing: Alone,
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:18:14: 18:15 (#0),
|
2020-11-14 05:47:14 -06:00
|
|
|
},
|
|
|
|
],
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:16:24: 19:2 (#0),
|
2020-11-14 05:47:14 -06:00
|
|
|
},
|
|
|
|
]
|
2021-12-01 13:45:14 -06:00
|
|
|
PRINT-DERIVE INPUT (DISPLAY): struct AttributeDerive {}
|
2020-11-14 05:47:14 -06:00
|
|
|
PRINT-DERIVE INPUT (DEBUG): TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "struct",
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:16:1: 16:7 (#0),
|
2020-11-14 05:47:14 -06:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "AttributeDerive",
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:16:8: 16:23 (#0),
|
2020-11-14 05:47:14 -06:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [],
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:16:24: 19:2 (#0),
|
2020-11-14 05:47:14 -06:00
|
|
|
},
|
|
|
|
]
|
2021-12-01 13:45:14 -06:00
|
|
|
PRINT-DERIVE INPUT (DISPLAY): #[print_attr] struct DeriveAttribute {}
|
2020-11-14 05:47:14 -06:00
|
|
|
PRINT-DERIVE INPUT (DEBUG): TokenStream [
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Alone,
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:22:1: 22:2 (#0),
|
2020-11-14 05:47:14 -06:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "print_attr",
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:22:3: 22:13 (#0),
|
2020-11-14 05:47:14 -06:00
|
|
|
},
|
|
|
|
],
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:22:2: 22:14 (#0),
|
2020-11-14 05:47:14 -06:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "struct",
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:23:1: 23:7 (#0),
|
2020-11-14 05:47:14 -06:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "DeriveAttribute",
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:23:8: 23:23 (#0),
|
2020-11-14 05:47:14 -06:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [],
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:23:24: 26:2 (#0),
|
2020-11-14 05:47:14 -06:00
|
|
|
},
|
|
|
|
]
|
2021-07-17 09:10:03 -05:00
|
|
|
PRINT-ATTR INPUT (DISPLAY): struct DeriveAttribute { #[cfg(FALSE)] field : u8, }
|
2021-04-08 20:35:24 -05:00
|
|
|
PRINT-ATTR INPUT (DEBUG): TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "struct",
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:23:1: 23:7 (#0),
|
2021-04-08 20:35:24 -05:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "DeriveAttribute",
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:23:8: 23:23 (#0),
|
2021-04-08 20:35:24 -05:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
2021-07-17 09:10:03 -05:00
|
|
|
stream: TokenStream [
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Alone,
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:24:5: 24:6 (#0),
|
2021-07-17 09:10:03 -05:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "cfg",
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:24:7: 24:10 (#0),
|
2021-07-17 09:10:03 -05:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "FALSE",
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:24:11: 24:16 (#0),
|
2021-07-17 09:10:03 -05:00
|
|
|
},
|
|
|
|
],
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:24:10: 24:17 (#0),
|
2021-07-17 09:10:03 -05:00
|
|
|
},
|
|
|
|
],
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:24:6: 24:18 (#0),
|
2021-07-17 09:10:03 -05:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "field",
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:25:5: 25:10 (#0),
|
2021-07-17 09:10:03 -05:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ':',
|
|
|
|
spacing: Alone,
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:25:10: 25:11 (#0),
|
2021-07-17 09:10:03 -05:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "u8",
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:25:12: 25:14 (#0),
|
2021-07-17 09:10:03 -05:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ',',
|
|
|
|
spacing: Alone,
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:25:14: 25:15 (#0),
|
2021-07-17 09:10:03 -05:00
|
|
|
},
|
|
|
|
],
|
2021-07-17 09:50:33 -05:00
|
|
|
span: $DIR/attribute-after-derive.rs:23:24: 26:2 (#0),
|
2021-04-08 20:35:24 -05:00
|
|
|
},
|
|
|
|
]
|