introduce group storage structs to use from database_storage macro

This also detected a bunch of crate visibility mismatches in the
tests.
This commit is contained in:
Niko Matsakis 2019-01-22 21:53:06 -05:00
parent 3e81f12dd2
commit 238be96432
7 changed files with 95 additions and 56 deletions

View file

@ -1,5 +1,5 @@
#[derive(Default)]
pub struct DatabaseImpl {
struct DatabaseImpl {
runtime: salsa::Runtime<DatabaseImpl>,
}
@ -10,7 +10,7 @@ impl salsa::Database for DatabaseImpl {
}
salsa::database_storage! {
pub struct DatabaseImplStorage for DatabaseImpl {
struct DatabaseImplStorage for DatabaseImpl {
impl Database {
fn memoized_a() for MemoizedAQuery;
fn memoized_b() for MemoizedBQuery;