Typecheck pretty-printing test results as libraries. Issue #789

After running source files through the pretty printer, we sanity check them by
running the results through the compiler with the --no-trans flag. Now also
use the --lib flag so that pretty-printer tests don't have to include a main
function.
This commit is contained in:
Brian Anderson 2011-08-01 14:47:24 -07:00
parent 0fbb6782bb
commit 77be30fa73

View File

@ -164,7 +164,7 @@ actual:\n\
fn make_typecheck_args(config: &config, testfile: &str) -> procargs {
let prog = config.rustc_path;
let args = ["-", "--no-trans"];
let args = ["-", "--no-trans", "--lib"];
ret {prog: prog, args: args};
}
}