use --edition for doctests, rather than just the crate

This commit is contained in:
QuietMisdreavus
2018-03-28 13:54:05 +02:00
parent a0e48dde7c
commit d9bf37a5ae
3 changed files with 17 additions and 8 deletions

View File

@@ -446,7 +446,7 @@ pub fn main_args(args: &[String]) -> isize {
match (should_test, markdown_input) {
(true, true) => {
return markdown::test(input, cfgs, libs, externs, test_args, maybe_sysroot,
display_warnings, linker)
display_warnings, linker, edition)
}
(true, false) => {
return test::run(Path::new(input), cfgs, libs, externs, test_args, crate_name,