Skip to content

Commit 17565f4

Browse files
Set enable_proc_attr_macros in hir_ty TestDB
1 parent d1c4d28 commit 17565f4

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

crates/hir_ty/src/test_db.rs

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,19 @@ use test_utils::extract_annotations;
2222
hir_def::db::DefDatabaseStorage,
2323
crate::db::HirDatabaseStorage
2424
)]
25-
#[derive(Default)]
2625
pub(crate) struct TestDB {
2726
storage: salsa::Storage<TestDB>,
2827
events: Mutex<Option<Vec<salsa::Event>>>,
2928
}
29+
30+
impl Default for TestDB {
31+
fn default() -> Self {
32+
let mut this = Self { storage: Default::default(), events: Default::default() };
33+
this.set_enable_proc_attr_macros(true);
34+
this
35+
}
36+
}
37+
3038
impl fmt::Debug for TestDB {
3139
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
3240
f.debug_struct("TestDB").finish()

0 commit comments

Comments
 (0)