2020-11-25 15:58:10 -06:00
|
|
|
PRINT-ATTR INPUT (DISPLAY): #[rustc_dummy] struct Foo { }
|
2020-11-17 13:27:44 -06:00
|
|
|
PRINT-ATTR INPUT (DEBUG): TokenStream [
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Alone,
|
|
|
|
span: $DIR/attr-stmt-expr.rs:28:9: 28:10 (#12),
|
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
2020-11-25 15:58:10 -06:00
|
|
|
ident: "rustc_dummy",
|
|
|
|
span: $DIR/attr-stmt-expr.rs:28:11: 28:22 (#12),
|
2020-11-17 13:27:44 -06:00
|
|
|
},
|
|
|
|
],
|
2020-11-25 15:58:10 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:28:10: 28:23 (#12),
|
2020-11-17 13:27:44 -06:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "struct",
|
|
|
|
span: $DIR/attr-stmt-expr.rs:40:16: 40:22 (#0),
|
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "Foo",
|
|
|
|
span: $DIR/attr-stmt-expr.rs:40:23: 40:26 (#0),
|
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [],
|
|
|
|
span: $DIR/attr-stmt-expr.rs:40:27: 40:29 (#0),
|
|
|
|
},
|
|
|
|
]
|
2020-11-24 13:47:49 -06:00
|
|
|
PRINT-ATTR INPUT (DISPLAY): #[expect_let] let string = "Hello, world!" ;
|
|
|
|
PRINT-ATTR INPUT (DEBUG): TokenStream [
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Alone,
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:43:5: 43:6 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "expect_let",
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:43:7: 43:17 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
],
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:43:6: 43:18 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "let",
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:44:5: 44:8 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "string",
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:44:9: 44:15 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '=',
|
|
|
|
spacing: Alone,
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:44:16: 44:17 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
Literal {
|
|
|
|
kind: Str,
|
|
|
|
symbol: "Hello, world!",
|
|
|
|
suffix: None,
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:44:18: 44:33 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ';',
|
|
|
|
spacing: Alone,
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:44:33: 44:34 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
]
|
|
|
|
PRINT-ATTR INPUT (DISPLAY): #[expect_print_stmt] println ! ("{}", string) ;
|
|
|
|
PRINT-ATTR INPUT (DEBUG): TokenStream [
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Alone,
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:47:5: 47:6 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "expect_print_stmt",
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:47:7: 47:24 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
],
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:47:6: 47:25 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "println",
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:48:5: 48:12 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '!',
|
|
|
|
spacing: Alone,
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:48:12: 48:13 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Literal {
|
|
|
|
kind: Str,
|
|
|
|
symbol: "{}",
|
|
|
|
suffix: None,
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:48:14: 48:18 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ',',
|
|
|
|
spacing: Alone,
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:48:18: 48:19 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "string",
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:48:20: 48:26 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
],
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:48:13: 48:27 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ';',
|
|
|
|
spacing: Alone,
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:48:27: 48:28 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
]
|
|
|
|
PRINT-ATTR INPUT (DISPLAY): second_make_stmt ! (#[allow(dead_code)] struct Bar { }) ;
|
|
|
|
PRINT-ATTR INPUT (DEBUG): TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "second_make_stmt",
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:51:5: 51:21 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '!',
|
|
|
|
spacing: Alone,
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:51:21: 51:22 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Alone,
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:51:23: 51:24 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "allow",
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:51:25: 51:30 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "dead_code",
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:51:31: 51:40 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
],
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:51:30: 51:41 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
],
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:51:24: 51:42 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "struct",
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:51:43: 51:49 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "Bar",
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:51:50: 51:53 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [],
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:51:54: 51:56 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
],
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:51:22: 51:57 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: ';',
|
|
|
|
spacing: Alone,
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:51:57: 51:58 (#0),
|
|
|
|
},
|
|
|
|
]
|
2020-11-25 15:58:10 -06:00
|
|
|
PRINT-ATTR INPUT (DISPLAY): #[rustc_dummy] #[allow(dead_code)] struct Bar { }
|
2020-11-17 13:27:44 -06:00
|
|
|
PRINT-ATTR INPUT (DEBUG): TokenStream [
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Alone,
|
|
|
|
span: $DIR/attr-stmt-expr.rs:28:9: 28:10 (#34),
|
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
2020-11-25 15:58:10 -06:00
|
|
|
ident: "rustc_dummy",
|
|
|
|
span: $DIR/attr-stmt-expr.rs:28:11: 28:22 (#34),
|
2020-11-17 13:27:44 -06:00
|
|
|
},
|
|
|
|
],
|
2020-11-25 15:58:10 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:28:10: 28:23 (#34),
|
2020-11-17 13:27:44 -06:00
|
|
|
},
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Alone,
|
|
|
|
span: $DIR/attr-stmt-expr.rs:51:23: 51:24 (#0),
|
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "allow",
|
|
|
|
span: $DIR/attr-stmt-expr.rs:51:25: 51:30 (#0),
|
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Parenthesis,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "dead_code",
|
|
|
|
span: $DIR/attr-stmt-expr.rs:51:31: 51:40 (#0),
|
|
|
|
},
|
|
|
|
],
|
|
|
|
span: $DIR/attr-stmt-expr.rs:51:30: 51:41 (#0),
|
|
|
|
},
|
|
|
|
],
|
|
|
|
span: $DIR/attr-stmt-expr.rs:51:24: 51:42 (#0),
|
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "struct",
|
|
|
|
span: $DIR/attr-stmt-expr.rs:51:43: 51:49 (#0),
|
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "Bar",
|
|
|
|
span: $DIR/attr-stmt-expr.rs:51:50: 51:53 (#0),
|
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [],
|
|
|
|
span: $DIR/attr-stmt-expr.rs:51:54: 51:56 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
]
|
|
|
|
PRINT-ATTR INPUT (DISPLAY): #[rustc_dummy] struct Other { }
|
|
|
|
PRINT-ATTR INPUT (DEBUG): TokenStream [
|
|
|
|
Punct {
|
|
|
|
ch: '#',
|
|
|
|
spacing: Alone,
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:54:5: 54:6 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Bracket,
|
|
|
|
stream: TokenStream [
|
|
|
|
Ident {
|
|
|
|
ident: "rustc_dummy",
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:54:7: 54:18 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
],
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:54:6: 54:19 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "struct",
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:55:5: 55:11 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
Ident {
|
|
|
|
ident: "Other",
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:55:12: 55:17 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
Group {
|
|
|
|
delimiter: Brace,
|
|
|
|
stream: TokenStream [],
|
2020-11-17 13:27:44 -06:00
|
|
|
span: $DIR/attr-stmt-expr.rs:55:18: 55:20 (#0),
|
2020-11-24 13:47:49 -06:00
|
|
|
},
|
|
|
|
]
|