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:
parent
0fbb6782bb
commit
77be30fa73
@ -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};
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user