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