require databases and ingredients to be static

This commit is contained in:
Niko Matsakis 2024-07-06 08:15:27 -04:00
parent a1bf3a613f
commit e1920bdda6
27 changed files with 65 additions and 73 deletions

View file

@ -282,9 +282,8 @@ impl<A: AllowedOptions> SalsaStruct<A> {
pub(crate) fn db_dyn_ty(&self) -> syn::Type {
let jar_ty = self.jar_ty();
let lt_db = self.maybe_elided_db_lifetime();
parse_quote! {
<#jar_ty as salsa::jar::Jar< #lt_db >>::DynDb
<#jar_ty as salsa::jar::Jar>::DynDb
}
}