@@ -21,7 +21,7 @@ fn contains(haystack: str, needle: str) -> bool {
21
21
22
22
fn find_rust_files ( & files: [ str ] , path : str ) {
23
23
if str:: ends_with ( path, ".rs" ) && !contains ( path, "utf8" ) {
24
- // ignoring "utf8" tests: https://github.com/graydon/rust/pull/1470 ?
24
+ // ignoring "utf8" tests because something is broken
25
25
files += [ path] ;
26
26
} else if fs:: path_is_dir ( path)
27
27
&& !contains ( path, "compile-fail" )
@@ -75,10 +75,10 @@ pure fn safe_to_use_expr(e: ast::expr, tm: test_mode) -> bool {
75
75
ast:: expr_for ( _, _, _) { false }
76
76
ast:: expr_while ( _, _) { false }
77
77
78
- // https://github.com/graydon /rust/issues/955
78
+ // https://github.com/mozilla /rust/issues/955
79
79
ast:: expr_do_while ( _, _) { false }
80
80
81
- // https://github.com/graydon /rust/issues/929
81
+ // https://github.com/mozilla /rust/issues/929
82
82
ast:: expr_cast ( _, _) { false }
83
83
ast:: expr_assert ( _) { false }
84
84
ast:: expr_binary ( _, _, _) { false }
@@ -88,17 +88,17 @@ pure fn safe_to_use_expr(e: ast::expr, tm: test_mode) -> bool {
88
88
ast:: expr_fail ( option:: none) { false }
89
89
ast:: expr_ret ( option:: none) { false }
90
90
91
- // https://github.com/graydon /rust/issues/953
91
+ // https://github.com/mozilla /rust/issues/953
92
92
ast:: expr_fail ( option:: some ( _) ) { false }
93
93
94
- // https://github.com/graydon /rust/issues/927
94
+ // https://github.com/mozilla /rust/issues/927
95
95
//ast::expr_assert(_) { false }
96
96
ast:: expr_check ( _, _) { false }
97
97
98
- // https://github.com/graydon /rust/issues/928
98
+ // https://github.com/mozilla /rust/issues/928
99
99
//ast::expr_cast(_, _) { false }
100
100
101
- // https://github.com/graydon /rust/issues/1458
101
+ // https://github.com/mozilla /rust/issues/1458
102
102
ast:: expr_call ( _, _, _) { false }
103
103
104
104
_ { true }
@@ -110,15 +110,15 @@ pure fn safe_to_use_expr(e: ast::expr, tm: test_mode) -> bool {
110
110
111
111
fn safe_to_steal_ty ( t : @ast:: ty , tm : test_mode ) -> bool {
112
112
alt t. node {
113
- // https://github.com/graydon /rust/issues/971
113
+ // https://github.com/mozilla /rust/issues/971
114
114
ast:: ty_constr ( _, _) { false }
115
115
116
116
// Other restrictions happen to be the same.
117
117
_ { safe_to_replace_ty( t. node , tm) }
118
118
}
119
119
}
120
120
121
- // Not type-parameterized: https://github.com/graydon /rust/issues/898
121
+ // Not type-parameterized: https://github.com/mozilla /rust/issues/898 (FIXED)
122
122
fn stash_expr_if ( c : fn @( @ast:: expr , test_mode ) ->bool ,
123
123
es : @mutable [ ast:: expr ] ,
124
124
e : @ast:: expr ,
@@ -154,7 +154,7 @@ fn steal(crate: ast::crate, tm: test_mode) -> stolen_stuff {
154
154
155
155
fn safe_to_replace_expr ( e : ast:: expr_ , _tm : test_mode ) -> bool {
156
156
alt e {
157
- // https://github.com/graydon /rust/issues/652
157
+ // https://github.com/mozilla /rust/issues/652
158
158
ast : : expr_if ( _, _, _) { false }
159
159
ast:: expr_block ( _) { false }
160
160
@@ -344,19 +344,18 @@ fn check_running(exe_filename: str) -> happiness {
344
344
} else if contains ( comb, "leaked memory in rust main loop" ) {
345
345
// might also use exit code 134
346
346
//failed("Leaked")
347
- known_bug ( "https://github.com/graydon /rust/issues/910" )
347
+ known_bug ( "https://github.com/mozilla /rust/issues/910" )
348
348
} else if contains ( comb, "src/rt/" ) {
349
349
failed ( "Mentioned src/rt/" )
350
350
} else if contains ( comb, "malloc" ) {
351
- //failed("Mentioned malloc")
352
- known_bug ( "https://github.com/graydon/rust/issues/1461" )
351
+ failed ( "Mentioned malloc" )
353
352
} else {
354
353
alt p. status {
355
354
0 { passed }
356
355
100 { cleanly_rejected ( "running: explicit fail" ) }
357
356
101 | 247 { cleanly_rejected ( "running: timed out" ) }
358
- 245 | 246 | 138 | 252 { known_bug ( "https://github.com/graydon /rust/issues/1466" ) }
359
- 136 | 248 { known_bug ( "SIGFPE - https://github.com/graydon /rust/issues/944" ) }
357
+ 245 | 246 | 138 | 252 { known_bug ( "https://github.com/mozilla /rust/issues/1466" ) }
358
+ 136 | 248 { known_bug ( "SIGFPE - https://github.com/mozilla /rust/issues/944" ) }
360
359
rc { failed( "Rust program ran but exited with status " + int:: str ( rc) ) }
361
360
}
362
361
}
@@ -369,36 +368,20 @@ fn check_compiling(filename: str) -> happiness {
369
368
370
369
//#error("Status: %d", p.status);
371
370
if p. err != "" {
372
- if contains ( p. err , "Ptr must be a pointer to Val type" ) {
373
- known_bug ( "https://github.com/graydon/rust/issues/897" )
374
- } else if contains ( p. err , "Assertion failed: ((i >= FTy->getNumParams() || FTy->getParamType(i) == Args[i]->getType()) && \" Calling a function with a bad signature!\" ), function init" ) {
375
- known_bug ( "https://github.com/graydon/rust/issues/1459" )
371
+ if false {
372
+ known_bug ( "..." )
376
373
} else {
377
374
log ( error, "Stderr: " + p. err ) ;
378
375
failed ( "Unfamiliar error message" )
379
376
}
380
377
} else if p. status == 0 {
381
378
passed
382
- } else if contains ( p. out , "Out of stack space, sorry" ) {
383
- known_bug ( "Recursive types - https://github.com/graydon/rust/issues/742" )
384
379
} else if contains ( p. out , "Assertion" ) && contains ( p. out , "failed" ) {
385
380
log ( error, "Stdout: " + p. out ) ;
386
381
failed ( "Looks like an llvm assertion failure" )
387
382
388
- } else if contains ( p. out , "upcall fail 'option none'" ) {
389
- known_bug ( "https://github.com/graydon/rust/issues/1463" )
390
- } else if contains ( p. out , "upcall fail 'non-exhaustive match failure', ../src/comp/middle/typeck.rs:1554" ) {
391
- known_bug ( "https://github.com/graydon/rust/issues/1462" )
392
- } else if contains ( p. out , "upcall fail 'Assertion cx.fcx.llupvars.contains_key(did.node) failed'" ) {
393
- known_bug ( "https://github.com/graydon/rust/issues/1467" )
394
383
} else if contains ( p. out , "Taking the value of a method does not work yet (issue #435)" ) {
395
- known_bug ( "https://github.com/graydon/rust/issues/435" )
396
- } else if contains ( p. out , "internal compiler error bit_num: asked for pred constraint, found an init constraint" ) {
397
- known_bug ( "https://github.com/graydon/rust/issues/933" )
398
- } else if contains ( p. out , "internal compiler error" ) && contains ( p. out , "called on non-fn type" ) {
399
- known_bug ( "https://github.com/graydon/rust/issues/1460" )
400
- } else if contains ( p. out , "internal compiler error fail called with unsupported type _|_" ) {
401
- known_bug ( "https://github.com/graydon/rust/issues/1465" )
384
+ known_bug ( "https://github.com/mozilla/rust/issues/435" )
402
385
} else if contains ( p. out , "internal compiler error unimplemented" ) {
403
386
known_bug ( "Something unimplemented" )
404
387
} else if contains ( p. out , "internal compiler error" ) {
@@ -455,7 +438,6 @@ fn has_raw_pointers(c: ast::crate) -> bool {
455
438
fn content_is_dangerous_to_run ( code : str ) -> bool {
456
439
let dangerous_patterns =
457
440
[ "xfail-test" ,
458
- "-> !" , // https://github.com/graydon/rust/issues/897
459
441
"import" , // espeically fs, run
460
442
"native" ,
461
443
"unsafe" ,
@@ -467,12 +449,7 @@ fn content_is_dangerous_to_run(code: str) -> bool {
467
449
468
450
fn content_is_dangerous_to_compile ( code : str ) -> bool {
469
451
let dangerous_patterns =
470
- [ "xfail-test" ,
471
- "-> !" , // https://github.com/graydon/rust/issues/897
472
- "enum" , // typeck hang with ty variants: https://github.com/graydon/rust/issues/742 (from dup #900)
473
- "with" , // tstate hang with expr variants: https://github.com/graydon/rust/issues/948
474
- "import comm" // mysterious hang: https://github.com/graydon/rust/issues/1464
475
- ] ;
452
+ [ "xfail-test" ] ;
476
453
477
454
for p: str in dangerous_patterns { if contains ( code, p) { ret true ; } }
478
455
ret false;
@@ -486,7 +463,7 @@ fn content_might_not_converge(code: str) -> bool {
486
463
"spawn" , // precedence issues?
487
464
"bind" , // precedence issues?
488
465
" be " , // don't want to replace its child with a non-call: "Non-call expression in tail call"
489
- "\n \n \n \n \n " // https://github.com/graydon /rust/issues/850
466
+ "\n \n \n \n \n " // https://github.com/mozilla /rust/issues/850
490
467
] ;
491
468
492
469
for p: str in confusing_patterns { if contains ( code, p) { ret true ; } }
@@ -541,7 +518,7 @@ fn check_convergence(files: [str]) {
541
518
let s = @result:: get ( io:: read_whole_file_str ( file) ) ;
542
519
if !content_might_not_converge ( * s) {
543
520
#error ( "pp converge: %s" , file) ;
544
- // Change from 7u to 2u once https://github.com/graydon /rust/issues/850 is fixed
521
+ // Change from 7u to 2u once https://github.com/mozilla /rust/issues/850 is fixed
545
522
check_roundtrip_convergence ( s, 7 u) ;
546
523
}
547
524
}
0 commit comments