change #[salsa::query_group] attribute to take a struct name

This commit is contained in:
Niko Matsakis 2019-01-25 10:25:17 -05:00
parent 690a118472
commit 9b5c7eeb5e
23 changed files with 133 additions and 111 deletions

View file

@ -1,4 +1,4 @@
#[salsa::query_group]
#[salsa::query_group(MyStruct)]
trait MyDatabase: salsa::Database {
#[salsa::invoke(another_module::another_name)]
fn my_query(&self, key: ()) -> ();