@@ -158,25 +158,25 @@ impl<'a> FnLikeNode<'a> {
158158
159159 pub fn body ( self ) -> ast:: BodyId {
160160 self . handle ( |i : ItemFnParts < ' a > | i. body ,
161- |_, _, _: & ' a ast:: MethodSig , _, body : ast:: BodyId , _, _| body,
161+ |_, _, _: & ' a ast:: FnSig , _, body : ast:: BodyId , _, _| body,
162162 |c : ClosureParts < ' a > | c. body )
163163 }
164164
165165 pub fn decl ( self ) -> & ' a FnDecl {
166166 self . handle ( |i : ItemFnParts < ' a > | & * i. decl ,
167- |_, _, sig : & ' a ast:: MethodSig , _, _, _, _| & sig. decl ,
167+ |_, _, sig : & ' a ast:: FnSig , _, _, _, _| & sig. decl ,
168168 |c : ClosureParts < ' a > | c. decl )
169169 }
170170
171171 pub fn span ( self ) -> Span {
172172 self . handle ( |i : ItemFnParts < ' _ > | i. span ,
173- |_, _, _: & ' a ast:: MethodSig , _, _, span, _| span,
173+ |_, _, _: & ' a ast:: FnSig , _, _, span, _| span,
174174 |c : ClosureParts < ' _ > | c. span )
175175 }
176176
177177 pub fn id ( self ) -> ast:: HirId {
178178 self . handle ( |i : ItemFnParts < ' _ > | i. id ,
179- |id, _, _: & ' a ast:: MethodSig , _, _, _, _| id,
179+ |id, _, _: & ' a ast:: FnSig , _, _, _, _| id,
180180 |c : ClosureParts < ' _ > | c. id )
181181 }
182182
@@ -199,7 +199,7 @@ impl<'a> FnLikeNode<'a> {
199199 let closure = |c : ClosureParts < ' a > | {
200200 FnKind :: Closure ( c. attrs )
201201 } ;
202- let method = |_, ident : Ident , sig : & ' a ast:: MethodSig , vis, _, _, attrs| {
202+ let method = |_, ident : Ident , sig : & ' a ast:: FnSig , vis, _, _, attrs| {
203203 FnKind :: Method ( ident, sig, vis, attrs)
204204 } ;
205205 self . handle ( item, method, closure)
@@ -209,7 +209,7 @@ impl<'a> FnLikeNode<'a> {
209209 I : FnOnce ( ItemFnParts < ' a > ) -> A ,
210210 M : FnOnce ( ast:: HirId ,
211211 Ident ,
212- & ' a ast:: MethodSig ,
212+ & ' a ast:: FnSig ,
213213 Option < & ' a ast:: Visibility > ,
214214 ast:: BodyId ,
215215 Span ,
@@ -219,16 +219,16 @@ impl<'a> FnLikeNode<'a> {
219219 {
220220 match self . node {
221221 map:: Node :: Item ( i) => match i. kind {
222- ast:: ItemKind :: Fn ( ref decl , header , ref generics, block) =>
222+ ast:: ItemKind :: Fn ( ref sig , ref generics, block) =>
223223 item_fn ( ItemFnParts {
224224 id : i. hir_id ,
225225 ident : i. ident ,
226- decl : & decl,
226+ decl : & sig . decl ,
227227 body : block,
228228 vis : & i. vis ,
229229 span : i. span ,
230230 attrs : & i. attrs ,
231- header,
231+ header : sig . header ,
232232 generics,
233233 } ) ,
234234 _ => bug ! ( "item FnLikeNode that is not fn-like" ) ,
0 commit comments