@@ -110,11 +110,11 @@ pub(crate) fn tracked_impl(
110110        . iter_mut ( ) 
111111        . filter_map ( |item| { 
112112            let  item_method = match  item { 
113-                 syn:: ImplItem :: Method ( item_method)  => item_method, 
113+                 syn:: ImplItem :: Fn ( item_method)  => item_method, 
114114                _ => return  None , 
115115            } ; 
116116            let  salsa_tracked_attr = item_method. attrs . iter ( ) . position ( |attr| { 
117-                 let  path = & attr. path . segments ; 
117+                 let  path = & attr. path ( ) . segments ; 
118118                path. len ( )  == 2 
119119                    && path[ 0 ] . arguments  == syn:: PathArguments :: None 
120120                    && path[ 0 ] . ident  == "salsa" 
@@ -185,7 +185,7 @@ impl crate::options::AllowedOptions for TrackedImpl {
185185fn  tracked_method ( 
186186    outer_args :  & ImplArgs , 
187187    mut  args :  FnArgs , 
188-     item_method :  & mut  syn:: ImplItemMethod , 
188+     item_method :  & mut  syn:: ImplItemFn , 
189189    self_type :  & syn:: TypePath , 
190190    name :  & str , 
191191)  -> syn:: Result < TokenStream >  { 
@@ -633,7 +633,7 @@ fn setter_fn(
633633    args :  & FnArgs , 
634634    item_fn :  & syn:: ItemFn , 
635635    config_ty :  & syn:: Type , 
636- )  -> syn:: Result < syn:: ImplItemMethod >  { 
636+ )  -> syn:: Result < syn:: ImplItemFn >  { 
637637    // The setter has *always* the same signature as the original: 
638638    // but it takes a value arg and has no return type. 
639639    let  jar_ty = args. jar_ty ( ) ; 
@@ -654,7 +654,7 @@ fn setter_fn(
654654    let  value_arg = syn:: Ident :: new ( "__value" ,  item_fn. sig . output . span ( ) ) ; 
655655    setter_sig. inputs . push ( parse_quote ! ( #value_arg:  #value_ty) ) ; 
656656    setter_sig. output  = ReturnType :: Default ; 
657-     Ok ( syn:: ImplItemMethod  { 
657+     Ok ( syn:: ImplItemFn  { 
658658        attrs :  vec ! [ ] , 
659659        vis :  item_fn. vis . clone ( ) , 
660660        defaultness :  None , 
@@ -685,7 +685,7 @@ fn setter_fn(
685685fn  set_lru_capacity_fn ( 
686686    args :  & FnArgs , 
687687    config_ty :  & syn:: Type , 
688- )  -> syn:: Result < Option < syn:: ImplItemMethod > >  { 
688+ )  -> syn:: Result < Option < syn:: ImplItemFn > >  { 
689689    if  args. lru . is_none ( )  { 
690690        return  Ok ( None ) ; 
691691    } 
@@ -707,7 +707,7 @@ fn specify_fn(
707707    args :  & FnArgs , 
708708    item_fn :  & syn:: ItemFn , 
709709    config_ty :  & syn:: Type , 
710- )  -> syn:: Result < Option < syn:: ImplItemMethod > >  { 
710+ )  -> syn:: Result < Option < syn:: ImplItemFn > >  { 
711711    if  args. specify . is_none ( )  { 
712712        return  Ok ( None ) ; 
713713    } 
@@ -722,7 +722,7 @@ fn specify_fn(
722722    let  value_arg = syn:: Ident :: new ( "__value" ,  item_fn. sig . output . span ( ) ) ; 
723723    setter_sig. inputs . push ( parse_quote ! ( #value_arg:  #value_ty) ) ; 
724724    setter_sig. output  = ReturnType :: Default ; 
725-     Ok ( Some ( syn:: ImplItemMethod  { 
725+     Ok ( Some ( syn:: ImplItemFn  { 
726726        attrs :  vec ! [ ] , 
727727        vis :  item_fn. vis . clone ( ) , 
728728        defaultness :  None , 
@@ -746,7 +746,7 @@ fn make_fn_return_ref(mut fn_sig: &mut syn::Signature) -> syn::Result<()> {
746746    let  ( db_lifetime,  _)  = db_lifetime_and_ty ( fn_sig) ?; 
747747
748748    let  ( right_arrow,  elem)  = match  fn_sig. output . clone ( )  { 
749-         ReturnType :: Default  => ( syn:: Token ![ ->] ( fn_sig. paren_token . span ) ,  parse_quote ! ( ( ) ) ) , 
749+         ReturnType :: Default  => ( syn:: Token ![ ->] ( [ fn_sig. paren_token . span ] ) ,  parse_quote ! ( ( ) ) ) , 
750750        ReturnType :: Type ( rarrow,  ty)  => ( rarrow,  ty) , 
751751    } ; 
752752
@@ -783,7 +783,7 @@ fn db_lifetime_and_ty(func: &mut syn::Signature) -> syn::Result<(syn::Lifetime,
783783                    let  ident = syn:: Ident :: new ( "__db" ,  and_token_span) ; 
784784                    func. generics . params . insert ( 
785785                        0 , 
786-                         syn:: LifetimeDef  { 
786+                         syn:: LifetimeParam  { 
787787                            attrs :  vec ! [ ] , 
788788                            lifetime :  syn:: Lifetime  { 
789789                                apostrophe :  and_token_span, 
0 commit comments