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:
@@ -63,7 +63,10 @@ fn emit_diagnostic(&option::t[span] sp, &str msg, &str kind, u8 color,
|
|||||||
alt (sp) {
|
alt (sp) {
|
||||||
case (some(?ssp)) {
|
case (some(?ssp)) {
|
||||||
ss = span_to_str(ssp, cm);
|
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) { }
|
case (none) { }
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -25,7 +25,8 @@ for t in os.listdir(run_pass):
|
|||||||
if t.endswith(".rs"):
|
if t.endswith(".rs"):
|
||||||
f = codecs.open(os.path.join(run_pass, t), "r", "utf8")
|
f = codecs.open(os.path.join(run_pass, t), "r", "utf8")
|
||||||
s = f.read()
|
s = f.read()
|
||||||
if not ("xfail-stage2" in s):
|
if not ("xfail-stage2" in s or
|
||||||
|
"xfail-fast" in s):
|
||||||
stage2_tests.append(t)
|
stage2_tests.append(t)
|
||||||
if "main(vec[str] args)" in s:
|
if "main(vec[str] args)" in s:
|
||||||
take_args[t] = True
|
take_args[t] = True
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
// xfail-stage0
|
// xfail-stage0
|
||||||
|
// xfail-fast
|
||||||
|
|
||||||
fn f() -> int { ret 1; }
|
fn f() -> int { ret 1; }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user