@@ -118,17 +118,17 @@ macro_rules! setup_interned_struct {
118
118
}
119
119
}
120
120
121
- impl salsa :: plumbing :: interned:: Configuration for $StructWithStatic {
121
+ impl $zalsa :: interned:: Configuration for $StructWithStatic {
122
122
const DEBUG_NAME : & ' static str = stringify!( $Struct) ;
123
123
type Fields <' a> = $StructDataIdent<' a>;
124
124
type Struct <' db> = $Struct< $( $db_lt_arg) ? >;
125
125
fn struct_from_id<' db>( id: salsa:: Id ) -> Self :: Struct <' db> {
126
- use salsa :: plumbing :: FromId ;
126
+ use $zalsa :: FromId ;
127
127
$Struct( <$Id>:: from_id( id) , std:: marker:: PhantomData )
128
128
}
129
129
130
130
fn deref_struct( s: Self :: Struct <' _>) -> salsa:: Id {
131
- use salsa :: plumbing :: AsId ;
131
+ use $zalsa :: AsId ;
132
132
s. 0 . as_id( )
133
133
}
134
134
}
@@ -217,7 +217,7 @@ macro_rules! setup_interned_struct {
217
217
// FIXME(rust-lang/rust#65991): The `db` argument *should* have the type `dyn Database`
218
218
$Db: ?Sized + $zalsa:: Database ,
219
219
{
220
- let fields = $Configuration:: ingredient( db) . fields ( db. as_dyn_database ( ) , self ) ;
220
+ let fields = $Configuration:: ingredient( db) . data_zalsa ( db. zalsa ( ) , <$StructWithStatic as $zalsa :: interned :: Configuration > :: deref_struct ( self ) ) ;
221
221
$zalsa:: maybe_clone!(
222
222
$field_option,
223
223
$field_ty,
@@ -229,7 +229,7 @@ macro_rules! setup_interned_struct {
229
229
/// Default debug formatting for this struct (may be useful if you define your own `Debug` impl)
230
230
pub fn default_debug_fmt( this: Self , f: & mut std:: fmt:: Formatter <' _>) -> std:: fmt:: Result {
231
231
$zalsa:: with_attached_database( |db| {
232
- let fields = $Configuration:: ingredient( db) . fields ( db. as_dyn_database ( ) , this) ;
232
+ let fields = $Configuration:: ingredient( db) . data_zalsa ( db. zalsa ( ) , <$StructWithStatic as $zalsa :: interned :: Configuration > :: deref_struct ( this) ) ;
233
233
let mut f = f. debug_struct( stringify!( $Struct) ) ;
234
234
$(
235
235
let f = f. field( stringify!( $field_id) , & fields. $field_index) ;
0 commit comments