File tree Expand file tree Collapse file tree
rustc_builtin_macros/src/deriving/generic Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1052,7 +1052,7 @@ impl<'a> MethodDef<'a> {
10521052
10531053 let args = {
10541054 let self_arg = explicit_self. map ( |explicit_self| {
1055- let ident = Ident :: with_dummy_span ( kw:: SelfLower ) . with_span_pos ( span) ;
1055+ let ident = Ident :: new ( kw:: SelfLower , span) ;
10561056 ast:: Param :: from_self ( ast:: AttrVec :: default ( ) , explicit_self, ident)
10571057 } ) ;
10581058 let nonself_args =
Original file line number Diff line number Diff line change @@ -315,7 +315,7 @@ impl<'a> ExtCtxt<'a> {
315315 self . expr_path ( self . path_ident ( span, id) )
316316 }
317317 pub fn expr_self ( & self , span : Span ) -> Box < ast:: Expr > {
318- self . expr_ident ( span, Ident :: with_dummy_span ( kw:: SelfLower ) )
318+ self . expr_ident ( span, Ident :: new ( kw:: SelfLower , span ) )
319319 }
320320
321321 pub fn expr_macro_call ( & self , span : Span , call : Box < ast:: MacCall > ) -> Box < ast:: Expr > {
You can’t perform that action at this time.
0 commit comments