1
Fork 0

Switch logic to Span instead of HashMap

This commit is contained in:
Guillaume Gomez 2017-01-17 23:54:51 +01:00
parent 409e8ba34e
commit 62fb7fc54a
8 changed files with 54 additions and 63 deletions

View file

@ -154,8 +154,9 @@ pub fn test(input: &str, cfgs: Vec<String>, libs: SearchPaths, externs: Externs,
let mut opts = TestOptions::default();
opts.no_crate_inject = true;
let mut collector = Collector::new(input.to_string(), cfgs, libs, externs,
true, opts, maybe_sysroot, &input_str, "input".to_string());
find_testable_code(&input_str, &mut collector);
true, opts, maybe_sysroot, "input".to_string(),
None);
find_testable_code(&input_str, &mut collector, 0);
test_args.insert(0, "rustdoctest".to_string());
testing::test_main(&test_args, collector.tests);
0