Remove some internal ~[] from several libraries.
Some straggling instances of `~[]` across a few different libs. Also, remove some public ones from workcache.
This commit is contained in:
parent
32cf4a188c
commit
6e63b12f5f
12 changed files with 34 additions and 31 deletions
|
@ -161,12 +161,12 @@ pub fn render(input: &str, mut output: Path, matches: &getopts::Matches) -> int
|
|||
}
|
||||
|
||||
/// Run any tests/code examples in the markdown file `input`.
|
||||
pub fn test(input: &str, libs: HashSet<Path>, mut test_args: ~[~str]) -> int {
|
||||
pub fn test(input: &str, libs: HashSet<Path>, mut test_args: Vec<~str>) -> int {
|
||||
let input_str = load_or_return!(input, 1, 2);
|
||||
|
||||
let mut collector = Collector::new(input.to_owned(), libs, true, true);
|
||||
find_testable_code(input_str, &mut collector);
|
||||
test_args.unshift(~"rustdoctest");
|
||||
testing::test_main(test_args, collector.tests);
|
||||
testing::test_main(test_args.as_slice(), collector.tests);
|
||||
0
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue