rust-analyzer/crates/ra-salsa/tests/macros.rs

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

13 lines
300 B
Rust
Raw Normal View History

2024-10-04 19:48:11 +00:00
#[ra_salsa::query_group(MyStruct)]
trait MyDatabase: ra_salsa::Database {
#[ra_salsa::invoke(another_module::another_name)]
2024-02-07 15:29:46 +00:00
fn my_query(&self, key: ()) -> ();
}
mod another_module {
#[allow(dead_code)]
2024-02-07 15:29:46 +00:00
pub(crate) fn another_name(_: &dyn crate::MyDatabase, (): ()) {}
}
fn main() {}