We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1c4d28 commit 17565f4Copy full SHA for 17565f4
crates/hir_ty/src/test_db.rs
@@ -22,11 +22,19 @@ use test_utils::extract_annotations;
22
hir_def::db::DefDatabaseStorage,
23
crate::db::HirDatabaseStorage
24
)]
25
-#[derive(Default)]
26
pub(crate) struct TestDB {
27
storage: salsa::Storage<TestDB>,
28
events: Mutex<Option<Vec<salsa::Event>>>,
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
38
impl fmt::Debug for TestDB {
39
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
40
f.debug_struct("TestDB").finish()
0 commit comments