File tree Expand file tree Collapse file tree 3 files changed +9
-9
lines changed
components/salsa-macro-rules/src Expand file tree Collapse file tree 3 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -109,8 +109,8 @@ macro_rules! setup_tracked_struct {
109
109
impl $zalsa_struct:: Configuration for $Configuration {
110
110
const DEBUG_NAME : & ' static str = stringify!( $Struct) ;
111
111
112
- const FIELD_DEBUG_NAMES : & ' static [ & ' static str ] = & [
113
- $( stringify!( $field_id ) , ) *
112
+ const TRACKED_FIELD_NAMES : & ' static [ & ' static str ] = & [
113
+ $( stringify!( $tracked_id ) , ) *
114
114
] ;
115
115
116
116
const TRACKED_FIELD_INDICES : & ' static [ usize ] = & [
Original file line number Diff line number Diff line change @@ -33,8 +33,8 @@ pub trait Configuration: Sized + 'static {
33
33
/// The debug name of the tracked struct.
34
34
const DEBUG_NAME : & ' static str ;
35
35
36
- /// The debug names of any fields.
37
- const FIELD_DEBUG_NAMES : & ' static [ & ' static str ] ;
36
+ /// The debug names of any tracked fields.
37
+ const TRACKED_FIELD_NAMES : & ' static [ & ' static str ] ;
38
38
39
39
/// The relative indices of any tracked fields.
40
40
const TRACKED_FIELD_INDICES : & ' static [ usize ] ;
@@ -115,10 +115,10 @@ impl<C: Configuration> Jar for JarImpl<C> {
115
115
C :: TRACKED_FIELD_INDICES
116
116
. iter ( )
117
117
. copied ( )
118
- . map ( |relative_tracked_index | {
118
+ . map ( |tracked_index | {
119
119
Box :: new ( <FieldIngredientImpl < C > >:: new (
120
- relative_tracked_index ,
121
- struct_index. successor ( relative_tracked_index ) ,
120
+ tracked_index ,
121
+ struct_index. successor ( tracked_index ) ,
122
122
) ) as _
123
123
} ) ;
124
124
Original file line number Diff line number Diff line change @@ -66,13 +66,13 @@ where
66
66
fmt,
67
67
"{}.{}({:?})" ,
68
68
C :: DEBUG_NAME ,
69
- C :: FIELD_DEBUG_NAMES [ self . field_index] ,
69
+ C :: TRACKED_FIELD_NAMES [ self . field_index] ,
70
70
index
71
71
)
72
72
}
73
73
74
74
fn debug_name ( & self ) -> & ' static str {
75
- C :: FIELD_DEBUG_NAMES [ self . field_index ]
75
+ C :: TRACKED_FIELD_NAMES [ self . field_index ]
76
76
}
77
77
78
78
fn memo_table_types ( & self ) -> Arc < MemoTableTypes > {
You can’t perform that action at this time.
0 commit comments