about summary refs log tree commit diff
path: root/src/tools/rust-analyzer/crates/salsa/tests/macros.rs
blob: 3d818e53c8e938e8bc8a76b4652bb5b9a96b3829 (plain)
1
2
3
4
5
6
7
8
9
10
11
#[salsa::query_group(MyStruct)]
trait MyDatabase: salsa::Database {
    #[salsa::invoke(another_module::another_name)]
    fn my_query(&self, key: ()) -> ();
}

mod another_module {
    pub(crate) fn another_name(_: &dyn crate::MyDatabase, (): ()) {}
}

fn main() {}