Skip to content

Commit 87735e5

Browse files
committed
Update item tree test output
1 parent ca4baa6 commit 87735e5

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

crates/hir_def/src/item_tree/tests.rs

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ use crate::{A, B};
3030
use a::{c, d::{e}};
3131
"#,
3232
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 }
3636
3737
pub(self) extern crate self as renamed;
3838
@@ -42,7 +42,7 @@ use a::{c, d::{e}};
4242
4343
pub(self) use globs::*;
4444
45-
#[doc = " docs on import"] // AttrId { is_doc_comment: true, ast_index: 0 }
45+
#[doc = " docs on import"] // AttrId { ast_index: 0 }
4646
pub(self) use crate::{A, B};
4747
4848
pub(self) use a::{c, d::{e}};
@@ -67,15 +67,15 @@ extern "C" {
6767
}
6868
"#,
6969
expect![[r##"
70-
#[on_extern_block] // AttrId { is_doc_comment: false, ast_index: 0 }
70+
#[on_extern_block] // AttrId { ast_index: 0 }
7171
extern "C" {
72-
#[on_extern_type] // AttrId { is_doc_comment: false, ast_index: 0 }
72+
#[on_extern_type] // AttrId { ast_index: 0 }
7373
pub(self) type ExType;
7474
75-
#[on_extern_static] // AttrId { is_doc_comment: false, ast_index: 0 }
75+
#[on_extern_static] // AttrId { ast_index: 0 }
7676
pub(self) static EX_STATIC: u8 = _;
7777
78-
#[on_extern_fn] // AttrId { is_doc_comment: false, ast_index: 0 }
78+
#[on_extern_fn] // AttrId { ast_index: 0 }
7979
// flags = 0x20
8080
pub(self) fn ex_fn() -> ();
8181
}
@@ -116,14 +116,14 @@ enum E {
116116
expect![[r##"
117117
pub(self) struct Unit;
118118
119-
#[derive(Debug)] // AttrId { is_doc_comment: false, ast_index: 0 }
119+
#[derive(Debug)] // AttrId { ast_index: 0 }
120120
pub(self) struct Struct {
121-
#[doc = " fld docs"] // AttrId { is_doc_comment: true, ast_index: 0 }
121+
#[doc = " fld docs"] // AttrId { ast_index: 0 }
122122
pub(self) fld: (),
123123
}
124124
125125
pub(self) struct Tuple(
126-
#[attr] // AttrId { is_doc_comment: false, ast_index: 0 }
126+
#[attr] // AttrId { ast_index: 0 }
127127
pub(self) 0: u8,
128128
);
129129
@@ -133,14 +133,14 @@ enum E {
133133
}
134134
135135
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 }
137137
Unit,
138-
#[doc = " comment on Tuple"] // AttrId { is_doc_comment: true, ast_index: 0 }
138+
#[doc = " comment on Tuple"] // AttrId { ast_index: 0 }
139139
Tuple(
140140
pub(self) 0: u8,
141141
),
142142
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 }
144144
pub(self) a: u8,
145145
},
146146
}
@@ -171,11 +171,11 @@ trait Tr: SuperTrait + 'lifetime {
171171
172172
pub(self) const _: Anon = _;
173173
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 }
176176
// flags = 0x2
177177
pub(self) fn f(
178-
#[attr] // AttrId { is_doc_comment: false, ast_index: 0 }
178+
#[attr] // AttrId { ast_index: 0 }
179179
arg: u8,
180180
_: (),
181181
) -> ();
@@ -212,8 +212,8 @@ mod inline {
212212
mod outline;
213213
"#,
214214
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 }
217217
pub(self) mod inline {
218218
pub(self) use super::*;
219219

0 commit comments

Comments
 (0)