@@ -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 { is_doc_comment: true, ast_index: 0 }
34
- #![no_std] // AttrId { is_doc_comment: false, ast_index: 0 }
35
- #![doc = " another file comment"] // AttrId { is_doc_comment: true, ast_index: 1 }
33
+ #![doc = " file comment"] // AttrId { ast_index: 0 }
34
+ #![no_std] // AttrId { ast_index: 1 }
35
+ #![doc = " another file comment"] // AttrId { ast_index: 2 }
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 { is_doc_comment: true, ast_index: 0 }
45
+ #[doc = " docs on import"] // AttrId { ast_index: 0 }
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 { is_doc_comment: false, ast_index: 0 }
70
+ #[on_extern_block] // AttrId { ast_index: 0 }
71
71
extern "C" {
72
- #[on_extern_type] // AttrId { is_doc_comment: false, ast_index: 0 }
72
+ #[on_extern_type] // AttrId { ast_index: 0 }
73
73
pub(self) type ExType;
74
74
75
- #[on_extern_static] // AttrId { is_doc_comment: false, ast_index: 0 }
75
+ #[on_extern_static] // AttrId { ast_index: 0 }
76
76
pub(self) static EX_STATIC: u8 = _;
77
77
78
- #[on_extern_fn] // AttrId { is_doc_comment: false, ast_index: 0 }
78
+ #[on_extern_fn] // AttrId { ast_index: 0 }
79
79
// flags = 0x20
80
80
pub(self) fn ex_fn() -> ();
81
81
}
@@ -116,14 +116,14 @@ enum E {
116
116
expect ! [ [ r##"
117
117
pub(self) struct Unit;
118
118
119
- #[derive(Debug)] // AttrId { is_doc_comment: false, ast_index: 0 }
119
+ #[derive(Debug)] // AttrId { ast_index: 0 }
120
120
pub(self) struct Struct {
121
- #[doc = " fld docs"] // AttrId { is_doc_comment: true, ast_index: 0 }
121
+ #[doc = " fld docs"] // AttrId { ast_index: 0 }
122
122
pub(self) fld: (),
123
123
}
124
124
125
125
pub(self) struct Tuple(
126
- #[attr] // AttrId { is_doc_comment: false, ast_index: 0 }
126
+ #[attr] // AttrId { ast_index: 0 }
127
127
pub(self) 0: u8,
128
128
);
129
129
@@ -133,14 +133,14 @@ enum E {
133
133
}
134
134
135
135
pub(self) enum E {
136
- #[doc = " comment on Unit"] // AttrId { is_doc_comment: true, ast_index: 0 }
136
+ #[doc = " comment on Unit"] // AttrId { ast_index: 0 }
137
137
Unit,
138
- #[doc = " comment on Tuple"] // AttrId { is_doc_comment: true, ast_index: 0 }
138
+ #[doc = " comment on Tuple"] // AttrId { ast_index: 0 }
139
139
Tuple(
140
140
pub(self) 0: u8,
141
141
),
142
142
Struct {
143
- #[doc = " comment on a: u8"] // AttrId { is_doc_comment: true, ast_index: 0 }
143
+ #[doc = " comment on a: u8"] // AttrId { ast_index: 0 }
144
144
pub(self) a: u8,
145
145
},
146
146
}
@@ -171,11 +171,11 @@ trait Tr: SuperTrait + 'lifetime {
171
171
172
172
pub(self) const _: Anon = _;
173
173
174
- #[attr] // AttrId { is_doc_comment: false, ast_index: 0 }
175
- #[inner_attr_in_fn] // AttrId { is_doc_comment: false, ast_index: 1 }
174
+ #[attr] // AttrId { ast_index: 0 }
175
+ #[inner_attr_in_fn] // AttrId { ast_index: 1 }
176
176
// flags = 0x2
177
177
pub(self) fn f(
178
- #[attr] // AttrId { is_doc_comment: false, ast_index: 0 }
178
+ #[attr] // AttrId { ast_index: 0 }
179
179
arg: u8,
180
180
_: (),
181
181
) -> ();
@@ -212,8 +212,8 @@ mod inline {
212
212
mod outline;
213
213
"# ,
214
214
expect ! [ [ r##"
215
- #[doc = " outer"] // AttrId { is_doc_comment: true, ast_index: 0 }
216
- #[doc = " inner"] // AttrId { is_doc_comment: true, ast_index: 1 }
215
+ #[doc = " outer"] // AttrId { ast_index: 0 }
216
+ #[doc = " inner"] // AttrId { ast_index: 1 }
217
217
pub(self) mod inline {
218
218
pub(self) use super::*;
219
219
0 commit comments