@@ -30,9 +30,9 @@ use crate::{A, B};
30
30
use a::{c, d::{e}};
31
31
"# ,
32
32
expect ! [ [ r##"
33
- #![doc = " file comment"] // AttrId { ast_index: 0 }
34
- #![no_std] // AttrId { ast_index: 1 }
35
- #![doc = " another file comment"] // AttrId { ast_index: 2 }
33
+ #![doc = " file comment"]
34
+ #![no_std]
35
+ #![doc = " another file comment"]
36
36
37
37
pub(self) extern crate self as renamed;
38
38
@@ -42,7 +42,7 @@ use a::{c, d::{e}};
42
42
43
43
pub(self) use globs::*;
44
44
45
- #[doc = " docs on import"] // AttrId { ast_index: 0 }
45
+ #[doc = " docs on import"]
46
46
pub(self) use crate::{A, B};
47
47
48
48
pub(self) use a::{c, d::{e}};
@@ -67,15 +67,15 @@ extern "C" {
67
67
}
68
68
"# ,
69
69
expect ! [ [ r##"
70
- #[on_extern_block] // AttrId { ast_index: 0 }
70
+ #[on_extern_block]
71
71
extern "C" {
72
- #[on_extern_type] // AttrId { ast_index: 0 }
72
+ #[on_extern_type]
73
73
pub(self) type ExType;
74
74
75
- #[on_extern_static] // AttrId { ast_index: 0 }
75
+ #[on_extern_static]
76
76
pub(self) static EX_STATIC: u8 = _;
77
77
78
- #[on_extern_fn] // AttrId { ast_index: 0 }
78
+ #[on_extern_fn]
79
79
pub(self) fn ex_fn() -> ();
80
80
}
81
81
"## ] ] ,
@@ -115,14 +115,14 @@ enum E {
115
115
expect ! [ [ r##"
116
116
pub(self) struct Unit;
117
117
118
- #[derive(Debug)] // AttrId { ast_index: 0 }
118
+ #[derive(Debug)]
119
119
pub(self) struct Struct {
120
- #[doc = " fld docs"] // AttrId { ast_index: 0 }
120
+ #[doc = " fld docs"]
121
121
pub(self) fld: (),
122
122
}
123
123
124
124
pub(self) struct Tuple(
125
- #[attr] // AttrId { ast_index: 0 }
125
+ #[attr]
126
126
pub(self) 0: u8,
127
127
);
128
128
@@ -132,14 +132,14 @@ enum E {
132
132
}
133
133
134
134
pub(self) enum E {
135
- #[doc = " comment on Unit"] // AttrId { ast_index: 0 }
135
+ #[doc = " comment on Unit"]
136
136
Unit,
137
- #[doc = " comment on Tuple"] // AttrId { ast_index: 0 }
137
+ #[doc = " comment on Tuple"]
138
138
Tuple(
139
139
pub(self) 0: u8,
140
140
),
141
141
Struct {
142
- #[doc = " comment on a: u8"] // AttrId { ast_index: 0 }
142
+ #[doc = " comment on a: u8"]
143
143
pub(self) a: u8,
144
144
},
145
145
}
@@ -170,14 +170,13 @@ trait Tr: SuperTrait + 'lifetime {
170
170
171
171
pub(self) const _: Anon = _;
172
172
173
- #[attr] // AttrId { ast_index: 0 }
174
- #[inner_attr_in_fn] // AttrId { ast_index: 1 }
175
- // flags = 0x2
173
+ #[attr]
174
+ #[inner_attr_in_fn]
176
175
pub(self) fn f(
177
- #[attr] // AttrId { ast_index: 0 }
176
+ #[attr]
178
177
arg: u8,
179
178
_: (),
180
- ) -> ();
179
+ ) -> () { ... }
181
180
182
181
pub(self) trait Tr<Self>
183
182
where
@@ -186,9 +185,8 @@ trait Tr: SuperTrait + 'lifetime {
186
185
{
187
186
pub(self) type Assoc: AssocBound = Default;
188
187
189
- // flags = 0x1
190
188
pub(self) fn method(
191
- _: &Self,
189
+ _: &Self, // self
192
190
) -> ();
193
191
}
194
192
"## ] ] ,
@@ -211,13 +209,12 @@ mod inline {
211
209
mod outline;
212
210
"# ,
213
211
expect ! [ [ r##"
214
- #[doc = " outer"] // AttrId { ast_index: 0 }
215
- #[doc = " inner"] // AttrId { ast_index: 1 }
212
+ #[doc = " outer"]
213
+ #[doc = " inner"]
216
214
pub(self) mod inline {
217
215
pub(self) use super::*;
218
216
219
- // flags = 0x2
220
- pub(self) fn fn_in_module() -> ();
217
+ pub(self) fn fn_in_module() -> () { ... }
221
218
}
222
219
223
220
pub(self) mod outline;
@@ -338,12 +335,11 @@ trait Tr<'a, T: 'a>: Super where Self: for<'a> Tr<'a, T> {}
338
335
T: 'a,
339
336
T: 'b
340
337
{
341
- // flags = 0x2
342
338
pub(self) fn f<G>(
343
339
arg: impl Copy,
344
340
) -> impl Copy
345
341
where
346
- G: 'a;
342
+ G: 'a { ... }
347
343
}
348
344
349
345
pub(self) enum Enum<'a, T, const U: u8> {
@@ -392,10 +388,9 @@ pub(crate) trait Tr {
392
388
pub(crate) trait Tr<Self> {
393
389
pub(crate) fn f() -> ();
394
390
395
- // flags = 0x3
396
391
pub(crate) fn method(
397
- _: &Self,
398
- ) -> ();
392
+ _: &Self, // self
393
+ ) -> () { ... }
399
394
}
400
395
"# ] ] ,
401
396
)
0 commit comments