Fix fast-check target by disabling code snippet printing on warnings (broken on .rc files) and adding an xfail-fast flag for global-scope.rs.
This commit is contained in:
parent
2e827eab24
commit
e53cfb979b
|
@ -63,7 +63,10 @@ fn emit_diagnostic(&option::t[span] sp, &str msg, &str kind, u8 color,
|
|||
alt (sp) {
|
||||
case (some(?ssp)) {
|
||||
ss = span_to_str(ssp, cm);
|
||||
maybe_lines = some(span_to_lines(ssp, cm));
|
||||
|
||||
// FIXME: we're not able to look up lines read from .rc files yet.
|
||||
// maybe_lines = some(span_to_lines(ssp, cm));
|
||||
|
||||
}
|
||||
case (none) { }
|
||||
}
|
||||
|
|
|
@ -25,7 +25,8 @@ for t in os.listdir(run_pass):
|
|||
if t.endswith(".rs"):
|
||||
f = codecs.open(os.path.join(run_pass, t), "r", "utf8")
|
||||
s = f.read()
|
||||
if not ("xfail-stage2" in s):
|
||||
if not ("xfail-stage2" in s or
|
||||
"xfail-fast" in s):
|
||||
stage2_tests.append(t)
|
||||
if "main(vec[str] args)" in s:
|
||||
take_args[t] = True
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
// xfail-stage0
|
||||
// xfail-fast
|
||||
|
||||
fn f() -> int { ret 1; }
|
||||
|
||||
|
|
Loading…
Reference in New Issue