2021-02-28 19:51:44 +00:00
|
|
|
PRINT-DERIVE INPUT (DISPLAY): struct Foo
|
2023-08-08 01:43:44 +00:00
|
|
|
{ my_array: [bool; { struct Inner { non_removed_inner_field: usize } 0 }] }
|
|
|
|
PRINT-DERIVE DEEP-RE-COLLECTED (DISPLAY): struct Foo
|
2023-11-10 03:34:56 +00:00
|
|
|
{ my_array : [bool; { struct Inner { non_removed_inner_field : usize } 0 }] }
|
2021-02-28 19:51:44 +00:00
|
|
|
PRINT-DERIVE INPUT (DEBUG): TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "struct",
|
2020-11-28 23:33:17 +00:00
|
|
|
span: $DIR/nested-derive-cfg.rs:12:1: 12:7 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "Foo",
|
2020-11-28 23:33:17 +00:00
|
|
|
span: $DIR/nested-derive-cfg.rs:12:8: 12:11 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "my_array",
|
2020-11-28 23:33:17 +00:00
|
|
|
span: $DIR/nested-derive-cfg.rs:14:5: 14:13 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ':',
|
|
|
|
spacing: Alone,
|
2020-11-28 23:33:17 +00:00
|
|
|
span: $DIR/nested-derive-cfg.rs:14:13: 14:14 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "bool",
|
2020-11-28 23:33:17 +00:00
|
|
|
span: $DIR/nested-derive-cfg.rs:14:16: 14:20 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ';',
|
|
|
|
spacing: Alone,
|
2020-11-28 23:33:17 +00:00
|
|
|
span: $DIR/nested-derive-cfg.rs:14:20: 14:21 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "struct",
|
2020-11-28 23:33:17 +00:00
|
|
|
span: $DIR/nested-derive-cfg.rs:15:9: 15:15 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "Inner",
|
2020-11-28 23:33:17 +00:00
|
|
|
span: $DIR/nested-derive-cfg.rs:15:16: 15:21 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "non_removed_inner_field",
|
2020-11-28 23:33:17 +00:00
|
|
|
span: $DIR/nested-derive-cfg.rs:17:13: 17:36 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ':',
|
|
|
|
spacing: Alone,
|
2020-11-28 23:33:17 +00:00
|
|
|
span: $DIR/nested-derive-cfg.rs:17:36: 17:37 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "usize",
|
2020-11-28 23:33:17 +00:00
|
|
|
span: $DIR/nested-derive-cfg.rs:17:38: 17:43 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
],
|
2020-11-28 23:33:17 +00:00
|
|
|
span: $DIR/nested-derive-cfg.rs:15:22: 18:10 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Literal {
|
|
|
|
kind: Integer,
|
|
|
|
symbol: "0",
|
|
|
|
suffix: None,
|
2020-11-28 23:33:17 +00:00
|
|
|
span: $DIR/nested-derive-cfg.rs:19:9: 19:10 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
],
|
2020-11-28 23:33:17 +00:00
|
|
|
span: $DIR/nested-derive-cfg.rs:14:22: 20:6 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
],
|
2020-11-28 23:33:17 +00:00
|
|
|
span: $DIR/nested-derive-cfg.rs:14:15: 20:7 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
],
|
2020-11-28 23:33:17 +00:00
|
|
|
span: $DIR/nested-derive-cfg.rs:12:12: 21:2 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
]
|