2021-02-28 19:51:44 +00:00
|
|
|
PRINT-ATTR_ARGS INPUT (DISPLAY): first
|
|
|
|
PRINT-ATTR_ARGS INPUT (DEBUG): TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "first",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:16:25: 16:30 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
]
|
|
|
|
PRINT-ATTR INPUT (DISPLAY): #[print_target_and_args(second)] fn foo()
|
2021-05-01 19:54:47 +00:00
|
|
|
{ #! [print_target_and_args(third)] #! [print_target_and_args(fourth)] }
|
2021-02-28 19:51:44 +00:00
|
|
|
PRINT-ATTR INPUT (DEBUG): TokenStream [
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Alone,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:17:1: 17:2 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "print_target_and_args",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:17:3: 17:24 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "second",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:17:25: 17:31 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:17:24: 17:32 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:17:2: 17:33 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "fn",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:18:1: 18:3 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "foo",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:18:4: 18:7 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:18:7: 18:9 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Joint,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:19:5: 19:6 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '!',
|
|
|
|
spacing: Alone,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:19:6: 19:7 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "print_target_and_args",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:19:8: 19:29 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "third",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:19:30: 19:35 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:19:29: 19:36 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:19:7: 19:37 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Joint,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:20:5: 20:6 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '!',
|
|
|
|
spacing: Alone,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:20:6: 20:7 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "print_target_and_args",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:20:8: 20:29 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "fourth",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:20:30: 20:36 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:20:29: 20:37 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:20:7: 20:38 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:18:10: 21:2 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
]
|
|
|
|
PRINT-ATTR_ARGS INPUT (DISPLAY): second
|
|
|
|
PRINT-ATTR_ARGS INPUT (DEBUG): TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "second",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:17:25: 17:31 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
]
|
|
|
|
PRINT-ATTR INPUT (DISPLAY): fn foo()
|
2021-05-01 19:54:47 +00:00
|
|
|
{ #! [print_target_and_args(third)] #! [print_target_and_args(fourth)] }
|
2021-02-28 19:51:44 +00:00
|
|
|
PRINT-ATTR INPUT (DEBUG): TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "fn",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:18:1: 18:3 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "foo",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:18:4: 18:7 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:18:7: 18:9 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Joint,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:19:5: 19:6 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '!',
|
|
|
|
spacing: Alone,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:19:6: 19:7 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "print_target_and_args",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:19:8: 19:29 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "third",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:19:30: 19:35 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:19:29: 19:36 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:19:7: 19:37 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Joint,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:20:5: 20:6 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '!',
|
|
|
|
spacing: Alone,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:20:6: 20:7 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "print_target_and_args",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:20:8: 20:29 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "fourth",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:20:30: 20:36 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:20:29: 20:37 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:20:7: 20:38 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:18:10: 21:2 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
]
|
|
|
|
PRINT-ATTR_ARGS INPUT (DISPLAY): third
|
|
|
|
PRINT-ATTR_ARGS INPUT (DEBUG): TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "third",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:19:30: 19:35 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
]
|
2021-05-01 19:54:47 +00:00
|
|
|
PRINT-ATTR INPUT (DISPLAY): fn foo() { #! [print_target_and_args(fourth)] }
|
2021-02-28 19:51:44 +00:00
|
|
|
PRINT-ATTR INPUT (DEBUG): TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "fn",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:18:1: 18:3 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "foo",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:18:4: 18:7 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:18:7: 18:9 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Joint,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:20:5: 20:6 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '!',
|
|
|
|
spacing: Alone,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:20:6: 20:7 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "print_target_and_args",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:20:8: 20:29 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "fourth",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:20:30: 20:36 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:20:29: 20:37 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:20:7: 20:38 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:18:10: 21:2 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
]
|
|
|
|
PRINT-ATTR_ARGS INPUT (DISPLAY): fourth
|
|
|
|
PRINT-ATTR_ARGS INPUT (DEBUG): TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "fourth",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:20:30: 20:36 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
]
|
|
|
|
PRINT-ATTR INPUT (DISPLAY): fn foo() { }
|
|
|
|
PRINT-ATTR INPUT (DEBUG): TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "fn",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:18:1: 18:3 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "foo",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:18:4: 18:7 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:18:7: 18:9 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:18:10: 21:2 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
]
|
2021-04-08 21:01:15 +00:00
|
|
|
PRINT-ATTR_ARGS INPUT (DISPLAY): mod_first
|
|
|
|
PRINT-ATTR_ARGS INPUT (DEBUG): TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "mod_first",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:23:25: 23:34 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
]
|
|
|
|
PRINT-ATTR INPUT (DISPLAY): #[print_target_and_args(mod_second)] mod inline_mod
|
|
|
|
{
|
2021-05-01 19:54:47 +00:00
|
|
|
#! [print_target_and_args(mod_third)] #!
|
2021-04-08 21:01:15 +00:00
|
|
|
[print_target_and_args(mod_fourth)]
|
|
|
|
}
|
|
|
|
PRINT-ATTR INPUT (DEBUG): TokenStream [
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Alone,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:24:1: 24:2 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "print_target_and_args",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:24:3: 24:24 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "mod_second",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:24:25: 24:35 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:24:24: 24:36 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:24:2: 24:37 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "mod",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:25:1: 25:4 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "inline_mod",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:25:5: 25:15 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Joint,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:26:5: 26:6 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '!',
|
|
|
|
spacing: Alone,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:26:6: 26:7 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "print_target_and_args",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:26:8: 26:29 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "mod_third",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:26:30: 26:39 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:26:29: 26:40 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:26:7: 26:41 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Joint,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:27:5: 27:6 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '!',
|
|
|
|
spacing: Alone,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:27:6: 27:7 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "print_target_and_args",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:27:8: 27:29 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "mod_fourth",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:27:30: 27:40 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:27:29: 27:41 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:27:7: 27:42 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:25:16: 28:2 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
]
|
|
|
|
PRINT-ATTR_ARGS INPUT (DISPLAY): mod_second
|
|
|
|
PRINT-ATTR_ARGS INPUT (DEBUG): TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "mod_second",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:24:25: 24:35 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
]
|
|
|
|
PRINT-ATTR INPUT (DISPLAY): mod inline_mod
|
|
|
|
{
|
2021-05-01 19:54:47 +00:00
|
|
|
#! [print_target_and_args(mod_third)] #!
|
2021-04-08 21:01:15 +00:00
|
|
|
[print_target_and_args(mod_fourth)]
|
|
|
|
}
|
|
|
|
PRINT-ATTR INPUT (DEBUG): TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "mod",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:25:1: 25:4 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "inline_mod",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:25:5: 25:15 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Joint,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:26:5: 26:6 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '!',
|
|
|
|
spacing: Alone,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:26:6: 26:7 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "print_target_and_args",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:26:8: 26:29 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "mod_third",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:26:30: 26:39 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:26:29: 26:40 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:26:7: 26:41 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Joint,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:27:5: 27:6 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '!',
|
|
|
|
spacing: Alone,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:27:6: 27:7 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "print_target_and_args",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:27:8: 27:29 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "mod_fourth",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:27:30: 27:40 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:27:29: 27:41 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:27:7: 27:42 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:25:16: 28:2 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
]
|
|
|
|
PRINT-ATTR_ARGS INPUT (DISPLAY): mod_third
|
|
|
|
PRINT-ATTR_ARGS INPUT (DEBUG): TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "mod_third",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:26:30: 26:39 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
]
|
2021-05-01 19:54:47 +00:00
|
|
|
PRINT-ATTR INPUT (DISPLAY): mod inline_mod { #! [print_target_and_args(mod_fourth)] }
|
2021-04-08 21:01:15 +00:00
|
|
|
PRINT-ATTR INPUT (DEBUG): TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "mod",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:25:1: 25:4 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "inline_mod",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:25:5: 25:15 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Joint,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:27:5: 27:6 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '!',
|
|
|
|
spacing: Alone,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:27:6: 27:7 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "print_target_and_args",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:27:8: 27:29 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "mod_fourth",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:27:30: 27:40 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:27:29: 27:41 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:27:7: 27:42 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:25:16: 28:2 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
]
|
|
|
|
PRINT-ATTR_ARGS INPUT (DISPLAY): mod_fourth
|
|
|
|
PRINT-ATTR_ARGS INPUT (DEBUG): TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "mod_fourth",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:27:30: 27:40 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
]
|
|
|
|
PRINT-ATTR INPUT (DISPLAY): mod inline_mod { }
|
|
|
|
PRINT-ATTR INPUT (DEBUG): TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "mod",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:25:1: 25:4 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "inline_mod",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:25:5: 25:15 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:25:16: 28:2 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
]
|
|
|
|
PRINT-DERIVE INPUT (DISPLAY): struct MyDerivePrint
|
|
|
|
{
|
|
|
|
field :
|
2021-05-01 19:54:47 +00:00
|
|
|
[u8 ; { match true { _ => { #! [rustc_dummy(third)] true } } ; 0 }]
|
2021-04-08 21:01:15 +00:00
|
|
|
}
|
|
|
|
PRINT-DERIVE INPUT (DEBUG): TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "struct",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:35:1: 35:7 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "MyDerivePrint",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:35:8: 35:21 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "field",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:36:5: 36:10 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ':',
|
|
|
|
spacing: Alone,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:36:10: 36:11 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "u8",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:36:13: 36:15 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ';',
|
|
|
|
spacing: Alone,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:36:15: 36:16 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "match",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:37:9: 37:14 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "true",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:37:15: 37:19 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "_",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:38:13: 38:14 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '=',
|
|
|
|
spacing: Joint,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:38:15: 38:17 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '>',
|
|
|
|
spacing: Alone,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:38:15: 38:17 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [
|
2020-11-28 23:33:17 +00:00
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Alone,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:39:17: 39:18 (#0),
|
2020-11-28 23:33:17 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '!',
|
|
|
|
spacing: Alone,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:39:18: 39:19 (#0),
|
2020-11-28 23:33:17 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "rustc_dummy",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:39:41: 39:52 (#0),
|
2020-11-28 23:33:17 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "third",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:39:53: 39:58 (#0),
|
2020-11-28 23:33:17 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:39:52: 39:59 (#0),
|
2020-11-28 23:33:17 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:39:17: 39:18 (#0),
|
2020-11-28 23:33:17 +00:00
|
|
|
},
|
2021-04-08 21:01:15 +00:00
|
|
|
Ident {
|
|
|
|
ident: "true",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:40:17: 40:21 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:38:18: 41:14 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:37:20: 42:10 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ';',
|
|
|
|
spacing: Alone,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:42:10: 42:11 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Literal {
|
|
|
|
kind: Integer,
|
|
|
|
symbol: "0",
|
|
|
|
suffix: None,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:43:9: 43:10 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:36:17: 44:6 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:36:12: 44:7 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:35:22: 45:2 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
]
|
|
|
|
PRINT-ATTR_ARGS INPUT (DISPLAY): tuple_attrs
|
|
|
|
PRINT-ATTR_ARGS INPUT (DEBUG): TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "tuple_attrs",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:48:29: 48:40 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
]
|
2021-05-01 19:54:47 +00:00
|
|
|
PRINT-ATTR INPUT (DISPLAY): (3, 4, { #! [cfg_attr(not(FALSE), rustc_dummy(innermost))] 5 }) ;
|
2021-04-08 21:01:15 +00:00
|
|
|
PRINT-ATTR INPUT (DEBUG): TokenStream [
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Literal {
|
|
|
|
kind: Integer,
|
|
|
|
symbol: "3",
|
|
|
|
suffix: None,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:49:9: 49:10 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ',',
|
|
|
|
spacing: Alone,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:49:10: 49:11 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Literal {
|
|
|
|
kind: Integer,
|
|
|
|
symbol: "4",
|
|
|
|
suffix: None,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:49:12: 49:13 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ',',
|
|
|
|
spacing: Alone,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:49:13: 49:14 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Joint,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:50:13: 50:14 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '!',
|
|
|
|
spacing: Alone,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:50:14: 50:15 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "cfg_attr",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:50:16: 50:24 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "not",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:50:25: 50:28 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "FALSE",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:50:29: 50:34 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:50:28: 50:35 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ',',
|
|
|
|
spacing: Alone,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:50:35: 50:36 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "rustc_dummy",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:50:37: 50:48 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "innermost",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:50:49: 50:58 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:50:48: 50:59 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:50:24: 50:60 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:50:15: 50:61 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Literal {
|
|
|
|
kind: Integer,
|
|
|
|
symbol: "5",
|
|
|
|
suffix: None,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:51:13: 51:14 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:49:15: 52:10 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:48:43: 53:6 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ';',
|
|
|
|
spacing: Alone,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:53:6: 53:7 (#0),
|
2021-04-08 21:01:15 +00:00
|
|
|
},
|
|
|
|
]
|
2021-03-01 21:02:09 +00:00
|
|
|
PRINT-ATTR_ARGS INPUT (DISPLAY): tuple_attrs
|
2021-02-28 19:51:44 +00:00
|
|
|
PRINT-ATTR_ARGS INPUT (DEBUG): TokenStream [
|
|
|
|
Ident {
|
2021-03-01 21:02:09 +00:00
|
|
|
ident: "tuple_attrs",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:55:29: 55:40 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
]
|
2021-05-01 19:54:47 +00:00
|
|
|
PRINT-ATTR INPUT (DISPLAY): (3, 4, { #! [cfg_attr(not(FALSE), rustc_dummy(innermost))] 5 }) ;
|
2021-02-28 19:51:44 +00:00
|
|
|
PRINT-ATTR INPUT (DEBUG): TokenStream [
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Literal {
|
|
|
|
kind: Integer,
|
2021-03-01 21:02:09 +00:00
|
|
|
symbol: "3",
|
2021-02-28 19:51:44 +00:00
|
|
|
suffix: None,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:56:9: 56:10 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ',',
|
|
|
|
spacing: Alone,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:56:10: 56:11 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Literal {
|
|
|
|
kind: Integer,
|
2021-03-01 21:02:09 +00:00
|
|
|
symbol: "4",
|
2021-02-28 19:51:44 +00:00
|
|
|
suffix: None,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:56:12: 56:13 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Punct {
|
2021-03-01 21:02:09 +00:00
|
|
|
ch: ',',
|
2021-02-28 19:51:44 +00:00
|
|
|
spacing: Alone,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:56:13: 56:14 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
2021-03-01 21:02:09 +00:00
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Joint,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:57:13: 57:14 (#0),
|
2021-03-01 21:02:09 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '!',
|
|
|
|
spacing: Alone,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:57:14: 57:15 (#0),
|
2021-03-01 21:02:09 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "cfg_attr",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:57:16: 57:24 (#0),
|
2021-03-01 21:02:09 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "not",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:57:25: 57:28 (#0),
|
2021-03-01 21:02:09 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "FALSE",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:57:29: 57:34 (#0),
|
2021-03-01 21:02:09 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:57:28: 57:35 (#0),
|
2021-03-01 21:02:09 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ',',
|
|
|
|
spacing: Alone,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:57:35: 57:36 (#0),
|
2021-03-01 21:02:09 +00:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "rustc_dummy",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:57:37: 57:48 (#0),
|
2021-03-01 21:02:09 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "innermost",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:57:49: 57:58 (#0),
|
2021-03-01 21:02:09 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:57:48: 57:59 (#0),
|
2021-03-01 21:02:09 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:57:24: 57:60 (#0),
|
2021-03-01 21:02:09 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:57:15: 57:61 (#0),
|
2021-03-01 21:02:09 +00:00
|
|
|
},
|
|
|
|
Literal {
|
|
|
|
kind: Integer,
|
|
|
|
symbol: "5",
|
|
|
|
suffix: None,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:58:13: 58:14 (#0),
|
2021-03-01 21:02:09 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:56:15: 59:10 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:55:43: 60:6 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ';',
|
|
|
|
spacing: Alone,
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:60:6: 60:7 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
]
|
|
|
|
PRINT-ATTR_ARGS INPUT (DISPLAY): tenth
|
|
|
|
PRINT-ATTR_ARGS INPUT (DEBUG): TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "tenth",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:82:42: 82:47 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
]
|
|
|
|
PRINT-ATTR INPUT (DISPLAY): fn weird_extern() { }
|
|
|
|
PRINT-ATTR INPUT (DEBUG): TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "fn",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:81:5: 81:7 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "weird_extern",
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:81:8: 81:20 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:81:20: 81:22 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [],
|
2021-03-19 23:52:07 +00:00
|
|
|
span: $DIR/inner-attrs.rs:81:23: 83:6 (#0),
|
2021-02-28 19:51:44 +00:00
|
|
|
},
|
|
|
|
]
|