2021-05-01 14:54:47 -05:00
|
|
|
PRINT-BANG INPUT (DISPLAY): foo! { #[fake_attr] mod bar {
|
2020-11-02 12:22:03 -06:00
|
|
|
#![doc = r" Foo"]
|
|
|
|
} }
|
2022-06-01 19:49:22 -05:00
|
|
|
PRINT-BANG DEEP-RE-COLLECTED (DISPLAY): foo! { #[fake_attr] mod bar { #! [doc = r" Foo"] } }
|
2020-11-02 12:22:03 -06:00
|
|
|
PRINT-BANG INPUT (DEBUG): TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "foo",
|
2023-07-10 17:16:28 -05:00
|
|
|
span: $DIR/issue-78675-captured-inner-attrs.rs:20:9: 20:12 (#3),
|
2020-11-02 12:22:03 -06:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '!',
|
|
|
|
spacing: Alone,
|
2023-07-10 17:16:28 -05:00
|
|
|
span: $DIR/issue-78675-captured-inner-attrs.rs:20:12: 20:13 (#3),
|
2020-11-02 12:22:03 -06:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Alone,
|
2023-07-10 17:16:28 -05:00
|
|
|
span: $DIR/issue-78675-captured-inner-attrs.rs:21:13: 21:14 (#3),
|
2020-11-02 12:22:03 -06:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "fake_attr",
|
2023-07-10 17:16:28 -05:00
|
|
|
span: $DIR/issue-78675-captured-inner-attrs.rs:21:15: 21:24 (#3),
|
2020-11-02 12:22:03 -06:00
|
|
|
},
|
|
|
|
],
|
2023-07-10 17:16:28 -05:00
|
|
|
span: $DIR/issue-78675-captured-inner-attrs.rs:21:14: 21:25 (#3),
|
2020-11-02 12:22:03 -06:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: None,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "mod",
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/issue-78675-captured-inner-attrs.rs:27:5: 27:8 (#0),
|
2020-11-02 12:22:03 -06:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "bar",
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/issue-78675-captured-inner-attrs.rs:27:9: 27:12 (#0),
|
2020-11-02 12:22:03 -06:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
2020-11-28 17:33:17 -06:00
|
|
|
spacing: Alone,
|
|
|
|
span: $DIR/issue-78675-captured-inner-attrs.rs:28:9: 28:16 (#0),
|
2020-11-02 12:22:03 -06:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '!',
|
|
|
|
spacing: Alone,
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/issue-78675-captured-inner-attrs.rs:28:9: 28:16 (#0),
|
2020-11-02 12:22:03 -06:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "doc",
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/issue-78675-captured-inner-attrs.rs:28:9: 28:16 (#0),
|
2020-11-02 12:22:03 -06:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '=',
|
|
|
|
spacing: Alone,
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/issue-78675-captured-inner-attrs.rs:28:9: 28:16 (#0),
|
2020-11-02 12:22:03 -06:00
|
|
|
},
|
|
|
|
Literal {
|
|
|
|
kind: StrRaw(0),
|
|
|
|
symbol: " Foo",
|
|
|
|
suffix: None,
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/issue-78675-captured-inner-attrs.rs:28:9: 28:16 (#0),
|
2020-11-02 12:22:03 -06:00
|
|
|
},
|
|
|
|
],
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/issue-78675-captured-inner-attrs.rs:28:9: 28:16 (#0),
|
2020-11-02 12:22:03 -06:00
|
|
|
},
|
|
|
|
],
|
2020-11-28 17:33:17 -06:00
|
|
|
span: $DIR/issue-78675-captured-inner-attrs.rs:27:13: 29:6 (#0),
|
2020-11-02 12:22:03 -06:00
|
|
|
},
|
|
|
|
],
|
2023-07-10 17:16:28 -05:00
|
|
|
span: $DIR/issue-78675-captured-inner-attrs.rs:22:13: 22:18 (#3),
|
2020-11-02 12:22:03 -06:00
|
|
|
},
|
|
|
|
],
|
2023-07-10 17:16:28 -05:00
|
|
|
span: $DIR/issue-78675-captured-inner-attrs.rs:20:14: 23:10 (#3),
|
2020-11-02 12:22:03 -06:00
|
|
|
},
|
|
|
|
]
|