fork/rust

git clone https://git.julia.blue/fork/rust

borsAuto merge of #103046 - JanBeh:PR_clarify_cmp_terminology, r=workingjubilee3bcad65fbf6

master
3.6 KiB87 linesraw
1PRINT-BANG INPUT (DISPLAY): foo! { #[fake_attr] mod bar {
2    #![doc = r" Foo"]
3} }
4PRINT-BANG DEEP-RE-COLLECTED (DISPLAY): foo! { #[fake_attr] mod bar { #! [doc = r" Foo"] } }
5PRINT-BANG INPUT (DEBUG): TokenStream [
6    Ident {
7        ident: "foo",
8        span: $DIR/issue-78675-captured-inner-attrs.rs:20:9: 20:12 (#3),
9    },
10    Punct {
11        ch: '!',
12        spacing: Alone,
13        span: $DIR/issue-78675-captured-inner-attrs.rs:20:12: 20:13 (#3),
14    },
15    Group {
16        delimiter: Brace,
17        stream: TokenStream [
18            Punct {
19                ch: '#',
20                spacing: Alone,
21                span: $DIR/issue-78675-captured-inner-attrs.rs:21:13: 21:14 (#3),
22            },
23            Group {
24                delimiter: Bracket,
25                stream: TokenStream [
26                    Ident {
27                        ident: "fake_attr",
28                        span: $DIR/issue-78675-captured-inner-attrs.rs:21:15: 21:24 (#3),
29                    },
30                ],
31                span: $DIR/issue-78675-captured-inner-attrs.rs:21:14: 21:25 (#3),
32            },
33            Group {
34                delimiter: None,
35                stream: TokenStream [
36                    Ident {
37                        ident: "mod",
38                        span: $DIR/issue-78675-captured-inner-attrs.rs:27:5: 27:8 (#0),
39                    },
40                    Ident {
41                        ident: "bar",
42                        span: $DIR/issue-78675-captured-inner-attrs.rs:27:9: 27:12 (#0),
43                    },
44                    Group {
45                        delimiter: Brace,
46                        stream: TokenStream [
47                            Punct {
48                                ch: '#',
49                                spacing: Alone,
50                                span: $DIR/issue-78675-captured-inner-attrs.rs:28:9: 28:16 (#0),
51                            },
52                            Punct {
53                                ch: '!',
54                                spacing: Alone,
55                                span: $DIR/issue-78675-captured-inner-attrs.rs:28:9: 28:16 (#0),
56                            },
57                            Group {
58                                delimiter: Bracket,
59                                stream: TokenStream [
60                                    Ident {
61                                        ident: "doc",
62                                        span: $DIR/issue-78675-captured-inner-attrs.rs:28:9: 28:16 (#0),
63                                    },
64                                    Punct {
65                                        ch: '=',
66                                        spacing: Alone,
67                                        span: $DIR/issue-78675-captured-inner-attrs.rs:28:9: 28:16 (#0),
68                                    },
69                                    Literal {
70                                        kind: StrRaw(0),
71                                        symbol: " Foo",
72                                        suffix: None,
73                                        span: $DIR/issue-78675-captured-inner-attrs.rs:28:9: 28:16 (#0),
74                                    },
75                                ],
76                                span: $DIR/issue-78675-captured-inner-attrs.rs:28:9: 28:16 (#0),
77                            },
78                        ],
79                        span: $DIR/issue-78675-captured-inner-attrs.rs:27:13: 29:6 (#0),
80                    },
81                ],
82                span: $DIR/issue-78675-captured-inner-attrs.rs:22:13: 22:18 (#3),
83            },
84        ],
85        span: $DIR/issue-78675-captured-inner-attrs.rs:20:14: 23:10 (#3),
86    },
87]