@@ -99,7 +99,7 @@ macro_rules! setup_interned_struct {
9999 #[ allow( clippy:: all) ]
100100 #[ allow( dead_code) ]
101101 const _: ( ) = {
102- use salsa:: plumbing as $zalsa;
102+ use :: salsa:: plumbing as $zalsa;
103103 use $zalsa:: interned as $zalsa_struct;
104104
105105 type $Configuration = $StructWithStatic;
@@ -120,7 +120,7 @@ macro_rules! setup_interned_struct {
120120 #[ derive( Hash ) ]
121121 struct StructKey <$db_lt, $( $indexed_ty) ,* >(
122122 $( $indexed_ty, ) *
123- std:: marker:: PhantomData <& $db_lt ( ) >,
123+ :: std:: marker:: PhantomData <& $db_lt ( ) >,
124124 ) ;
125125
126126 impl <$db_lt, $( $indexed_ty, ) * > $zalsa:: interned:: HashEqLike <StructKey <$db_lt, $( $indexed_ty) ,* >>
@@ -129,7 +129,7 @@ macro_rules! setup_interned_struct {
129129 $( $field_ty: $zalsa:: interned:: HashEqLike <$indexed_ty>) ,*
130130 {
131131
132- fn hash<H : std:: hash:: Hasher >( & self , h: & mut H ) {
132+ fn hash<H : :: std:: hash:: Hasher >( & self , h: & mut H ) {
133133 $( $zalsa:: interned:: HashEqLike :: <$indexed_ty>:: hash( & self . $field_index, & mut * h) ; ) *
134134 }
135135
@@ -147,7 +147,7 @@ macro_rules! setup_interned_struct {
147147 }
148148 }
149149
150- impl salsa :: plumbing :: interned:: Configuration for $StructWithStatic {
150+ impl $zalsa :: interned:: Configuration for $StructWithStatic {
151151 const LOCATION : $zalsa:: Location = $zalsa:: Location {
152152 file: file!( ) ,
153153 line: line!( ) ,
@@ -171,7 +171,7 @@ macro_rules! setup_interned_struct {
171171 fn serialize<S : $zalsa:: serde:: Serializer >(
172172 fields: & Self :: Fields <' _>,
173173 serializer: S ,
174- ) -> Result <S :: Ok , S :: Error > {
174+ ) -> :: std :: result :: Result <S :: Ok , S :: Error > {
175175 $zalsa:: macro_if! {
176176 if $persist {
177177 $( $serialize_fn( fields, serializer) ) ?
@@ -183,7 +183,7 @@ macro_rules! setup_interned_struct {
183183
184184 fn deserialize<' de, D : $zalsa:: serde:: Deserializer <' de>>(
185185 deserializer: D ,
186- ) -> Result <Self :: Fields <' static >, D :: Error > {
186+ ) -> :: std :: result :: Result <Self :: Fields <' static >, D :: Error > {
187187 $zalsa:: macro_if! {
188188 if $persist {
189189 $( $deserialize_fn( deserializer) ) ?
@@ -210,14 +210,14 @@ macro_rules! setup_interned_struct {
210210 }
211211
212212 impl < $( $db_lt_arg) ? > $zalsa:: AsId for $Struct< $( $db_lt_arg) ? > {
213- fn as_id( & self ) -> salsa:: Id {
213+ fn as_id( & self ) -> :: salsa:: Id {
214214 self . 0 . as_id( )
215215 }
216216 }
217217
218218 impl < $( $db_lt_arg) ? > $zalsa:: FromId for $Struct< $( $db_lt_arg) ? > {
219- fn from_id( id: salsa:: Id ) -> Self {
220- Self ( <$Id>:: from_id( id) , std:: marker:: PhantomData )
219+ fn from_id( id: :: salsa:: Id ) -> Self {
220+ Self ( <$Id>:: from_id( id) , :: std:: marker:: PhantomData )
221221 }
222222 }
223223
@@ -226,8 +226,8 @@ macro_rules! setup_interned_struct {
226226 unsafe impl < $( $db_lt_arg) ? > Sync for $Struct< $( $db_lt_arg) ? > { }
227227
228228 $zalsa:: macro_if! { $generate_debug_impl =>
229- impl < $( $db_lt_arg) ? > std:: fmt:: Debug for $Struct< $( $db_lt_arg) ? > {
230- fn fmt( & self , f: & mut std:: fmt:: Formatter <' _>) -> std:: fmt:: Result {
229+ impl < $( $db_lt_arg) ? > :: std:: fmt:: Debug for $Struct< $( $db_lt_arg) ? > {
230+ fn fmt( & self , f: & mut :: std:: fmt:: Formatter <' _>) -> :: std:: fmt:: Result {
231231 Self :: default_debug_fmt( * self , f)
232232 }
233233 }
@@ -269,7 +269,7 @@ macro_rules! setup_interned_struct {
269269
270270 $zalsa:: macro_if! { $persist =>
271271 impl <$( $db_lt_arg) ?> $zalsa:: serde:: Serialize for $Struct<$( $db_lt_arg) ?> {
272- fn serialize<S >( & self , serializer: S ) -> Result <S :: Ok , S :: Error >
272+ fn serialize<S >( & self , serializer: S ) -> :: std :: result :: Result <S :: Ok , S :: Error >
273273 where
274274 S : $zalsa:: serde:: Serializer ,
275275 {
@@ -278,7 +278,7 @@ macro_rules! setup_interned_struct {
278278 }
279279
280280 impl <' de, $( $db_lt_arg) ?> $zalsa:: serde:: Deserialize <' de> for $Struct<$( $db_lt_arg) ?> {
281- fn deserialize<D >( deserializer: D ) -> Result <Self , D :: Error >
281+ fn deserialize<D >( deserializer: D ) -> :: std :: result :: Result <Self , D :: Error >
282282 where
283283 D : $zalsa:: serde:: Deserializer <' de>,
284284 {
@@ -301,17 +301,17 @@ macro_rules! setup_interned_struct {
301301 }
302302
303303 impl <$db_lt> $Struct< $( $db_lt_arg) ? > {
304- pub fn $new_fn<$Db, $( $indexed_ty: $zalsa:: interned:: Lookup <$field_ty> + std:: hash:: Hash , ) * >( db: & $db_lt $Db, $( $field_id: $indexed_ty) ,* ) -> Self
304+ pub fn $new_fn<$Db, $( $indexed_ty: $zalsa:: interned:: Lookup <$field_ty> + :: std:: hash:: Hash , ) * >( db: & $db_lt $Db, $( $field_id: $indexed_ty) ,* ) -> Self
305305 where
306306 // FIXME(rust-lang/rust#65991): The `db` argument *should* have the type `dyn Database`
307- $Db: ?Sized + salsa:: Database ,
307+ $Db: ?Sized + :: salsa:: Database ,
308308 $(
309309 $field_ty: $zalsa:: interned:: HashEqLike <$indexed_ty>,
310310 ) *
311311 {
312312 let ( zalsa, zalsa_local) = db. zalsas( ) ;
313313 $Configuration:: ingredient( zalsa) . intern( zalsa, zalsa_local,
314- StructKey :: <$db_lt>( $( $field_id, ) * std:: marker:: PhantomData :: default ( ) ) , |_, data| ( $( $zalsa:: interned:: Lookup :: into_owned( data. $field_index) , ) * ) )
314+ StructKey :: <$db_lt>( $( $field_id, ) * :: std:: marker:: PhantomData :: default ( ) ) , |_, data| ( $( $zalsa:: interned:: Lookup :: into_owned( data. $field_index) , ) * ) )
315315 }
316316
317317 $(
@@ -337,11 +337,11 @@ macro_rules! setup_interned_struct {
337337 iftt ( $( $db_lt_arg) ?) {
338338 impl $Struct<' _> {
339339 /// Default debug formatting for this struct (may be useful if you define your own `Debug` impl)
340- pub fn default_debug_fmt( this: Self , f: & mut std:: fmt:: Formatter <' _>) -> std:: fmt:: Result
340+ pub fn default_debug_fmt( this: Self , f: & mut :: std:: fmt:: Formatter <' _>) -> :: std:: fmt:: Result
341341 where
342342 // rustc rejects trivial bounds, but it cannot see through higher-ranked bounds
343343 // with its check :^)
344- $( for <$db_lt> $field_ty: std:: fmt:: Debug ) ,*
344+ $( for <$db_lt> $field_ty: :: std:: fmt:: Debug ) ,*
345345 {
346346 $zalsa:: with_attached_database( |db| {
347347 let zalsa = db. zalsa( ) ;
@@ -361,11 +361,11 @@ macro_rules! setup_interned_struct {
361361 } else {
362362 impl $Struct {
363363 /// Default debug formatting for this struct (may be useful if you define your own `Debug` impl)
364- pub fn default_debug_fmt( this: Self , f: & mut std:: fmt:: Formatter <' _>) -> std:: fmt:: Result
364+ pub fn default_debug_fmt( this: Self , f: & mut :: std:: fmt:: Formatter <' _>) -> :: std:: fmt:: Result
365365 where
366366 // rustc rejects trivial bounds, but it cannot see through higher-ranked bounds
367367 // with its check :^)
368- $( for <$db_lt> $field_ty: std:: fmt:: Debug ) ,*
368+ $( for <$db_lt> $field_ty: :: std:: fmt:: Debug ) ,*
369369 {
370370 $zalsa:: with_attached_database( |db| {
371371 let zalsa = db. zalsa( ) ;
0 commit comments