@@ -119,78 +119,78 @@ pub mod rt {
119119 impl < ' self > ToSource for & ' self str {
120120 fn to_source ( & self ) -> @str {
121121 let lit = dummy_spanned ( ast:: lit_str ( self . to_managed ( ) , ast:: CookedStr ) ) ;
122- pprust:: lit_to_str ( @ lit) . to_managed ( )
122+ pprust:: lit_to_str ( & lit) . to_managed ( )
123123 }
124124 }
125125
126126 impl ToSource for int {
127127 fn to_source ( & self ) -> @str {
128128 let lit = dummy_spanned ( ast:: lit_int ( * self as i64 , ast:: ty_i) ) ;
129- pprust:: lit_to_str ( @ lit) . to_managed ( )
129+ pprust:: lit_to_str ( & lit) . to_managed ( )
130130 }
131131 }
132132
133133 impl ToSource for i8 {
134134 fn to_source ( & self ) -> @str {
135135 let lit = dummy_spanned ( ast:: lit_int ( * self as i64 , ast:: ty_i8) ) ;
136- pprust:: lit_to_str ( @ lit) . to_managed ( )
136+ pprust:: lit_to_str ( & lit) . to_managed ( )
137137 }
138138 }
139139
140140 impl ToSource for i16 {
141141 fn to_source ( & self ) -> @str {
142142 let lit = dummy_spanned ( ast:: lit_int ( * self as i64 , ast:: ty_i16) ) ;
143- pprust:: lit_to_str ( @ lit) . to_managed ( )
143+ pprust:: lit_to_str ( & lit) . to_managed ( )
144144 }
145145 }
146146
147147
148148 impl ToSource for i32 {
149149 fn to_source ( & self ) -> @str {
150150 let lit = dummy_spanned ( ast:: lit_int ( * self as i64 , ast:: ty_i32) ) ;
151- pprust:: lit_to_str ( @ lit) . to_managed ( )
151+ pprust:: lit_to_str ( & lit) . to_managed ( )
152152 }
153153 }
154154
155155 impl ToSource for i64 {
156156 fn to_source ( & self ) -> @str {
157157 let lit = dummy_spanned ( ast:: lit_int ( * self as i64 , ast:: ty_i64) ) ;
158- pprust:: lit_to_str ( @ lit) . to_managed ( )
158+ pprust:: lit_to_str ( & lit) . to_managed ( )
159159 }
160160 }
161161
162162 impl ToSource for uint {
163163 fn to_source ( & self ) -> @str {
164164 let lit = dummy_spanned ( ast:: lit_uint ( * self as u64 , ast:: ty_u) ) ;
165- pprust:: lit_to_str ( @ lit) . to_managed ( )
165+ pprust:: lit_to_str ( & lit) . to_managed ( )
166166 }
167167 }
168168
169169 impl ToSource for u8 {
170170 fn to_source ( & self ) -> @str {
171171 let lit = dummy_spanned ( ast:: lit_uint ( * self as u64 , ast:: ty_u8) ) ;
172- pprust:: lit_to_str ( @ lit) . to_managed ( )
172+ pprust:: lit_to_str ( & lit) . to_managed ( )
173173 }
174174 }
175175
176176 impl ToSource for u16 {
177177 fn to_source ( & self ) -> @str {
178178 let lit = dummy_spanned ( ast:: lit_uint ( * self as u64 , ast:: ty_u16) ) ;
179- pprust:: lit_to_str ( @ lit) . to_managed ( )
179+ pprust:: lit_to_str ( & lit) . to_managed ( )
180180 }
181181 }
182182
183183 impl ToSource for u32 {
184184 fn to_source ( & self ) -> @str {
185185 let lit = dummy_spanned ( ast:: lit_uint ( * self as u64 , ast:: ty_u32) ) ;
186- pprust:: lit_to_str ( @ lit) . to_managed ( )
186+ pprust:: lit_to_str ( & lit) . to_managed ( )
187187 }
188188 }
189189
190190 impl ToSource for u64 {
191191 fn to_source ( & self ) -> @str {
192192 let lit = dummy_spanned ( ast:: lit_uint ( * self as u64 , ast:: ty_u64) ) ;
193- pprust:: lit_to_str ( @ lit) . to_managed ( )
193+ pprust:: lit_to_str ( & lit) . to_managed ( )
194194 }
195195 }
196196
0 commit comments