@@ -197,51 +197,51 @@ fn check_whole_compiler(code: &str) {
197
197
198
198
//log_err #ifmt(" Status : %d", p. status ) ;
199
199
//log_err "Output: " + p.out;
200
- if p. err != "" {
201
- if contains ( p. err , "argument of incompatible type" ) {
200
+ if p. err != ~ "" {
201
+ if contains ( istr :: to_estr ( p. err ) , "argument of incompatible type" ) {
202
202
log_err "https://github.com/graydon/rust/issues/769" ;
203
- } else if contains ( p. err ,
203
+ } else if contains ( istr :: to_estr ( p. err ) ,
204
204
"Cannot create binary operator with two operands of differing type" )
205
205
{
206
206
log_err "https://github.com/graydon/rust/issues/770" ;
207
- } else if contains ( p. err , "May only branch on boolean predicates!" ) {
207
+ } else if contains ( istr :: to_estr ( p. err ) , "May only branch on boolean predicates!" ) {
208
208
log_err "https://github.com/graydon/rust/issues/770 or https://github.com/graydon/rust/issues/776" ;
209
- } else if contains ( p. err , "Invalid constantexpr cast!" ) &&
209
+ } else if contains ( istr :: to_estr ( p. err ) , "Invalid constantexpr cast!" ) &&
210
210
contains ( code, "!" ) {
211
211
log_err "https://github.com/graydon/rust/issues/777" ;
212
- } else if contains ( p. err ,
212
+ } else if contains ( istr :: to_estr ( p. err ) ,
213
213
"Both operands to ICmp instruction are not of the same type!" )
214
214
&& contains ( code, "!" ) {
215
215
log_err "https://github.com/graydon/rust/issues/777 #issuecomment-1678487" ;
216
- } else if contains ( p. err , "Ptr must be a pointer to Val type!" ) &&
216
+ } else if contains ( istr :: to_estr ( p. err ) , "Ptr must be a pointer to Val type!" ) &&
217
217
contains ( code, "!" ) {
218
218
log_err "https://github.com/graydon/rust/issues/779" ;
219
- } else if contains ( p. err , "Calling a function with bad signature!" ) &&
219
+ } else if contains ( istr :: to_estr ( p. err ) , "Calling a function with bad signature!" ) &&
220
220
( contains ( code, "iter" ) || contains ( code, "range" ) ) {
221
221
log_err "https://github.com/graydon/rust/issues/771 - calling an iter fails" ;
222
- } else if contains ( p. err , "Calling a function with a bad signature!" )
222
+ } else if contains ( istr :: to_estr ( p. err ) , "Calling a function with a bad signature!" )
223
223
&& contains ( code, "empty" ) {
224
224
log_err "https://github.com/graydon/rust/issues/775 - possibly a modification of run-pass/import-glob-crate.rs" ;
225
- } else if contains ( p. err , "Invalid type for pointer element!" ) &&
225
+ } else if contains ( istr :: to_estr ( p. err ) , "Invalid type for pointer element!" ) &&
226
226
contains ( code, "put" ) {
227
227
log_err "https://github.com/graydon/rust/issues/773 - put put ()" ;
228
- } else if contains ( p. err , "pointer being freed was not allocated" ) &&
229
- contains ( p. out , "Out of stack space, sorry" ) {
228
+ } else if contains ( istr :: to_estr ( p. err ) , "pointer being freed was not allocated" ) &&
229
+ contains ( istr :: to_estr ( p. out ) , "Out of stack space, sorry" ) {
230
230
log_err "https://github.com/graydon/rust/issues/768 + https://github.com/graydon/rust/issues/778"
231
231
} else {
232
- log_err "Stderr: " + p. err ;
232
+ log_err ~ "Stderr : " + p.err;
233
233
fail " Unfamiliar error message";
234
234
}
235
- } else if contains ( p. out , "non-exhaustive match failure" ) &&
236
- contains ( p. out , "alias.rs" ) {
235
+ } else if contains( istr :: to_estr ( p. out ) , "non-exhaustive match failure" ) &&
236
+ contains ( istr :: to_estr ( p. out ) , "alias.rs" ) {
237
237
log_err "https://github.com/graydon/rust/issues/772" ;
238
- } else if contains ( p. out , "non-exhaustive match failure" ) &&
239
- contains ( p. out , "trans.rs" ) && contains ( code, "put" ) {
238
+ } else if contains ( istr :: to_estr ( p. out ) , "non-exhaustive match failure" ) &&
239
+ contains ( istr :: to_estr ( p. out ) , "trans.rs" ) && contains ( code, "put" ) {
240
240
log_err "https://github.com/graydon/rust/issues/774" ;
241
- } else if contains ( p. out , "Out of stack space, sorry" ) {
241
+ } else if contains ( istr :: to_estr ( p. out ) , "Out of stack space, sorry" ) {
242
242
log_err "Possibly a variant of https://github.com/graydon/rust/issues/768" ;
243
243
} else if p. status == 256 {
244
- if !contains ( p. out , "error:" ) {
244
+ if !contains ( istr :: to_estr ( p. out ) , "error:" ) {
245
245
fail "Exited with status 256 without a span-error" ;
246
246
}
247
247
} else if p. status == 11 {
0 commit comments