Merge pull request #46 from tbu-/pr_testwarnings
Fix warnings in `cargo test`
This commit is contained in:
commit
8a0a1bdcd1
@ -12,9 +12,10 @@
|
||||
#![feature(box_patterns)]
|
||||
#![feature(rustc_private)]
|
||||
#![feature(collections)]
|
||||
#![feature(exit_status)]
|
||||
#![feature(str_char)]
|
||||
|
||||
#![cfg_attr(not(test), feature(exit_status))]
|
||||
|
||||
// TODO we're going to allocate a whole bunch of temp Strings, is it worth
|
||||
// keeping some scratch mem for this and running our own StrPool?
|
||||
// TODO for lint violations of names, emit a refactor script
|
||||
@ -253,6 +254,7 @@ fn run(args: Vec<String>, write_mode: WriteMode) {
|
||||
rustc_driver::run_compiler(&args, &mut call_ctxt);
|
||||
}
|
||||
|
||||
#[cfg(not(test))]
|
||||
fn main() {
|
||||
let args: Vec<_> = std::env::args().collect();
|
||||
//run(args, WriteMode::Display);
|
||||
|
Loading…
x
Reference in New Issue
Block a user