From: Alex Crichton Date: Wed, 2 Nov 2016 16:36:23 +0000 (-0700) Subject: Add a test for the previous PR X-Git-Tag: archive/raspbian/0.35.0-2+rpi1~3^2^2^2^2^2^2^2~22^2~13^2~22^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=5972b1915be7203a996e44c7c9d0dfa140fb8741;p=cargo.git Add a test for the previous PR --- diff --git a/tests/doc.rs b/tests/doc.rs index 25ef939c8..ba5ea85ac 100644 --- a/tests/doc.rs +++ b/tests/doc.rs @@ -590,3 +590,25 @@ fn document_only_lib() { execs().with_status(0)); assert_that(&p.root().join("target/doc/foo/index.html"), existing_file()); } + +#[test] +fn plugins_no_use_target() { + if !cargotest::is_nightly() { + return + } + let p = project("foo") + .file("Cargo.toml", r#" + [package] + name = "foo" + version = "0.0.1" + authors = [] + + [lib] + proc-macro = true + "#) + .file("src/lib.rs", ""); + assert_that(p.cargo_process("doc") + .arg("--target=x86_64-unknown-openbsd") + .arg("-v"), + execs().with_status(0)); +}