mirror of
https://github.com/salsa-rs/salsa.git
synced 2025-08-04 11:00:05 +00:00
remove the DatabaseData
and associated unsafe code
This commit is contained in:
parent
f7a14f2309
commit
07623fb962
6 changed files with 2 additions and 19 deletions
|
@ -145,7 +145,6 @@ pub(crate) fn database(args: TokenStream, input: TokenStream) -> TokenStream {
|
|||
impl salsa::plumbing::DatabaseStorageTypes for #database_name {
|
||||
type DatabaseKey = __SalsaDatabaseKey;
|
||||
type DatabaseStorage = __SalsaDatabaseStorage;
|
||||
type DatabaseData = (#(#database_data),*);
|
||||
}
|
||||
});
|
||||
// ANCHOR_END:DatabaseStorageTypes
|
||||
|
|
|
@ -383,7 +383,7 @@ pub(crate) fn query_group(args: TokenStream, input: TokenStream) -> TokenStream
|
|||
|
||||
// Unsafe proof obligation: that our key/value are a part
|
||||
// of the `GroupData`.
|
||||
unsafe impl<#db> salsa::Query<#db> for #qt
|
||||
impl<#db> salsa::Query<#db> for #qt
|
||||
where
|
||||
DB: #trait_name + #requires,
|
||||
DB: salsa::plumbing::HasQueryGroup<#group_struct>,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue