From 17565f4deafab800d8d87208cff1e27d028e9b0e Mon Sep 17 00:00:00 2001 From: Jonas Schievink Date: Thu, 3 Jun 2021 18:11:33 +0200 Subject: Set enable_proc_attr_macros in hir_ty TestDB --- crates/hir_ty/src/test_db.rs | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'crates') diff --git a/crates/hir_ty/src/test_db.rs b/crates/hir_ty/src/test_db.rs index 381b98ba8..4640ea821 100644 --- a/crates/hir_ty/src/test_db.rs +++ b/crates/hir_ty/src/test_db.rs @@ -22,11 +22,19 @@ use test_utils::extract_annotations; hir_def::db::DefDatabaseStorage, crate::db::HirDatabaseStorage )] -#[derive(Default)] pub(crate) struct TestDB { storage: salsa::Storage, events: Mutex>>, } + +impl Default for TestDB { + fn default() -> Self { + let mut this = Self { storage: Default::default(), events: Default::default() }; + this.set_enable_proc_attr_macros(true); + this + } +} + impl fmt::Debug for TestDB { fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result { f.debug_struct("TestDB").finish() -- cgit v1.2.3