File tree Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Expand file tree Collapse file tree 2 files changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -87,7 +87,6 @@ macro_rules! setup_tracked_struct {
87
87
$Configuration: ident,
88
88
$CACHE: ident,
89
89
$Db: ident,
90
- $NonNull: ident,
91
90
$Revision: ident,
92
91
]
93
92
) => {
@@ -104,7 +103,6 @@ macro_rules! setup_tracked_struct {
104
103
use salsa:: plumbing as $zalsa;
105
104
use $zalsa:: tracked_struct as $zalsa_struct;
106
105
use $zalsa:: Revision as $Revision;
107
- use std:: ptr:: NonNull as $NonNull;
108
106
109
107
type $Configuration = $Struct<' static >;
110
108
@@ -207,8 +205,8 @@ macro_rules! setup_tracked_struct {
207
205
208
206
#[ inline]
209
207
fn cast( id: $zalsa:: Id , type_id: $zalsa:: TypeId ) -> $zalsa:: Option <Self > {
210
- if type_id == $zalsa:: TypeId :: of:: <$Struct>( ) {
211
- $zalsa:: Some ( <$Struct as $zalsa:: FromId >:: from_id( id) )
208
+ if type_id == $zalsa:: TypeId :: of:: <$Struct< ' static > >( ) {
209
+ $zalsa:: Some ( <$Struct< ' static > as $zalsa:: FromId >:: from_id( id) )
212
210
} else {
213
211
$zalsa:: None
214
212
}
@@ -289,6 +287,7 @@ macro_rules! setup_tracked_struct {
289
287
) *
290
288
}
291
289
290
+ #[ allow( unused_lifetimes) ]
292
291
impl <' _db> $Struct<' _db> {
293
292
/// Default debug formatting for this struct (may be useful if you define your own `Debug` impl)
294
293
pub fn default_debug_fmt( this: Self , f: & mut std:: fmt:: Formatter <' _>) -> std:: fmt:: Result
Original file line number Diff line number Diff line change @@ -119,7 +119,6 @@ impl Macro {
119
119
let Configuration = self . hygiene . ident ( "Configuration" ) ;
120
120
let CACHE = self . hygiene . ident ( "CACHE" ) ;
121
121
let Db = self . hygiene . ident ( "Db" ) ;
122
- let NonNull = self . hygiene . ident ( "NonNull" ) ;
123
122
let Revision = self . hygiene . ident ( "Revision" ) ;
124
123
125
124
Ok ( crate :: debug:: dump_tokens (
@@ -160,7 +159,6 @@ impl Macro {
160
159
#Configuration ,
161
160
#CACHE ,
162
161
#Db ,
163
- #NonNull ,
164
162
#Revision ,
165
163
]
166
164
) ;
You can’t perform that action at this time.
0 commit comments