@@ -35,23 +35,23 @@ use a::{c, d::{e}};
35
35
#![no_std]
36
36
#![doc = " another file comment"]
37
37
38
- // AstId: 1
38
+ // AstId: ExternCrate[5A82, 0]
39
39
pub(self) extern crate self as renamed;
40
40
41
- // AstId: 2
41
+ // AstId: ExternCrate[7E1C, 0]
42
42
pub(super) extern crate bli;
43
43
44
- // AstId: 3
44
+ // AstId: Use[0000, 0]
45
45
pub use crate::path::{nested, items as renamed, Trait as _};
46
46
47
- // AstId: 4
47
+ // AstId: Use[0000, 1]
48
48
pub(self) use globs::*;
49
49
50
50
#[doc = " docs on import"]
51
- // AstId: 5
51
+ // AstId: Use[0000, 2]
52
52
pub(self) use crate::{A, B};
53
53
54
- // AstId: 6
54
+ // AstId: Use[0000, 3]
55
55
pub(self) use a::{c, d::{e}};
56
56
"## ] ] ,
57
57
) ;
@@ -75,18 +75,18 @@ extern "C" {
75
75
"# ,
76
76
expect ! [ [ r##"
77
77
#[on_extern_block]
78
- // AstId: 1
78
+ // AstId: ExternBlock[0000, 0]
79
79
extern "C" {
80
80
#[on_extern_type]
81
- // AstId: 2
81
+ // AstId: TypeAlias[9FDF, 0]
82
82
pub(self) type ExType;
83
83
84
84
#[on_extern_static]
85
- // AstId: 3
85
+ // AstId: Static[43C1, 0]
86
86
pub(self) static EX_STATIC = _;
87
87
88
88
#[on_extern_fn]
89
- // AstId: 4
89
+ // AstId: Fn[452D, 0]
90
90
pub(self) fn ex_fn;
91
91
}
92
92
"## ] ] ,
@@ -124,39 +124,39 @@ enum E {
124
124
}
125
125
"# ,
126
126
expect ! [ [ r#"
127
- // AstId: 1
127
+ // AstId: Struct[DFF3, 0]
128
128
pub(self) struct Unit;
129
129
130
130
#[derive(Debug)]
131
- // AstId: 2
131
+ // AstId: Struct[C7A1, 0]
132
132
pub(self) struct Struct {
133
133
#[doc = " fld docs"]
134
134
pub(self) fld,
135
135
}
136
136
137
- // AstId: 3
137
+ // AstId: Struct[DAC2, 0]
138
138
pub(self) struct Tuple(
139
139
#[attr]
140
140
pub(self) 0,
141
141
);
142
142
143
- // AstId: 4
143
+ // AstId: Union[2DBB, 0]
144
144
pub(self) union Ize {
145
145
pub(self) a,
146
146
pub(self) b,
147
147
}
148
148
149
- // AstId: 5
149
+ // AstId: Enum[7FF8, 0]
150
150
pub(self) enum E
151
- // AstId: 6
151
+ // AstId: Variant[C717, 0]
152
152
#[doc = " comment on Unit"]
153
153
Unit,
154
- // AstId: 7
154
+ // AstId: Variant[AEAB, 0]
155
155
#[doc = " comment on Tuple"]
156
156
Tuple(
157
157
pub(self) 0,
158
158
),
159
- // AstId: 8
159
+ // AstId: Variant[4B1B, 0]
160
160
Struct {
161
161
#[doc = " comment on a: u8"]
162
162
pub(self) a,
@@ -185,23 +185,23 @@ trait Tr: SuperTrait + 'lifetime {
185
185
}
186
186
"# ,
187
187
expect ! [ [ r#"
188
- // AstId: 1
188
+ // AstId: Static[B393, 0]
189
189
pub static ST = _;
190
190
191
- // AstId: 2
191
+ // AstId: Const[B309, 0]
192
192
pub(self) const _ = _;
193
193
194
194
#[attr]
195
195
#[inner_attr_in_fn]
196
- // AstId: 3
196
+ // AstId: Fn[75E3, 0]
197
197
pub(self) fn f;
198
198
199
- // AstId: 4
199
+ // AstId: Trait[2998, 0]
200
200
pub(self) trait Tr {
201
- // AstId: 6
201
+ // AstId: TypeAlias[9F08, 0]
202
202
pub(self) type Assoc;
203
203
204
- // AstId: 7
204
+ // AstId: Fn[6C0C, 0]
205
205
pub(self) fn method;
206
206
}
207
207
"# ] ] ,
@@ -226,16 +226,16 @@ mod outline;
226
226
expect ! [ [ r##"
227
227
#[doc = " outer"]
228
228
#[doc = " inner"]
229
- // AstId: 1
229
+ // AstId: Module[CF93, 0]
230
230
pub(self) mod inline {
231
- // AstId: 3
231
+ // AstId: Use[0000, 0]
232
232
pub(self) use super::*;
233
233
234
- // AstId: 4
234
+ // AstId: Fn[1B26, 0]
235
235
pub(self) fn fn_in_module;
236
236
}
237
237
238
- // AstId: 2
238
+ // AstId: Module[8994, 0]
239
239
pub(self) mod outline;
240
240
"## ] ] ,
241
241
) ;
@@ -254,13 +254,13 @@ pub macro m2() {}
254
254
m!();
255
255
"# ,
256
256
expect ! [ [ r#"
257
- // AstId: 1
257
+ // AstId: MacroRules[88CE, 0]
258
258
macro_rules! m { ... }
259
259
260
- // AstId: 2
260
+ // AstId: MacroDef[DC34, 0]
261
261
pub macro m2 { ... }
262
262
263
- // AstId: 3 , SyntaxContextId: ROOT2024, ExpandTo: Items
263
+ // AstId: MacroCall[612F, 0] , SyntaxContextId: ROOT2024, ExpandTo: Items
264
264
m!(...);
265
265
"# ] ] ,
266
266
) ;
@@ -273,7 +273,7 @@ fn pub_self() {
273
273
pub(self) struct S;
274
274
"# ,
275
275
expect ! [ [ r#"
276
- // AstId: 1
276
+ // AstId: Struct[42E2, 0]
277
277
pub(self) struct S;
278
278
"# ] ] ,
279
279
)
0 commit comments