@@ -119,78 +119,78 @@ pub mod rt {
119
119
impl < ' self > ToSource for & ' self str {
120
120
fn to_source ( & self ) -> @str {
121
121
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 ( )
123
123
}
124
124
}
125
125
126
126
impl ToSource for int {
127
127
fn to_source ( & self ) -> @str {
128
128
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 ( )
130
130
}
131
131
}
132
132
133
133
impl ToSource for i8 {
134
134
fn to_source ( & self ) -> @str {
135
135
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 ( )
137
137
}
138
138
}
139
139
140
140
impl ToSource for i16 {
141
141
fn to_source ( & self ) -> @str {
142
142
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 ( )
144
144
}
145
145
}
146
146
147
147
148
148
impl ToSource for i32 {
149
149
fn to_source ( & self ) -> @str {
150
150
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 ( )
152
152
}
153
153
}
154
154
155
155
impl ToSource for i64 {
156
156
fn to_source ( & self ) -> @str {
157
157
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 ( )
159
159
}
160
160
}
161
161
162
162
impl ToSource for uint {
163
163
fn to_source ( & self ) -> @str {
164
164
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 ( )
166
166
}
167
167
}
168
168
169
169
impl ToSource for u8 {
170
170
fn to_source ( & self ) -> @str {
171
171
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 ( )
173
173
}
174
174
}
175
175
176
176
impl ToSource for u16 {
177
177
fn to_source ( & self ) -> @str {
178
178
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 ( )
180
180
}
181
181
}
182
182
183
183
impl ToSource for u32 {
184
184
fn to_source ( & self ) -> @str {
185
185
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 ( )
187
187
}
188
188
}
189
189
190
190
impl ToSource for u64 {
191
191
fn to_source ( & self ) -> @str {
192
192
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 ( )
194
194
}
195
195
}
196
196
0 commit comments