mirror of
https://github.com/rust-lang/rust-analyzer
synced 2024-12-28 14:03:35 +00:00
12 lines
300 B
Rust
12 lines
300 B
Rust
#[ra_salsa::query_group(MyStruct)]
|
|
trait MyDatabase: ra_salsa::Database {
|
|
#[ra_salsa::invoke(another_module::another_name)]
|
|
fn my_query(&self, key: ()) -> ();
|
|
}
|
|
|
|
mod another_module {
|
|
#[allow(dead_code)]
|
|
pub(crate) fn another_name(_: &dyn crate::MyDatabase, (): ()) {}
|
|
}
|
|
|
|
fn main() {}
|