Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix cargo test --doc with dev-deps #3490

Merged
merged 1 commit into from
Jan 12, 2017

Conversation

alexcrichton
Copy link
Member

Previously Cargo accidentally didn't pull in dev-dependencies due to the way
cargo test --doc was interpreted in terms of top-level targets. This PR
special cases this situation by ensuring that the doctest intention makes its
way all to the backend and the dependencies can be correctly calculated.

Closes #3422

@rust-highfive
Copy link

r? @brson

(rust_highfive has picked a reviewer for you, use r? to override)

@bors
Copy link
Contributor

bors commented Jan 5, 2017

☔ The latest upstream changes (presumably #3468) made this pull request unmergeable. Please resolve the merge conflicts.

Previously Cargo accidentally didn't pull in dev-dependencies due to the way
`cargo test --doc` was interpreted in terms of top-level targets. This PR
special cases this situation by ensuring that the doctest intention makes its
way all to the backend and the dependencies can be correctly calculated.

Closes rust-lang#3422
@brson
Copy link
Contributor

brson commented Jan 12, 2017

@bors r+

@bors
Copy link
Contributor

bors commented Jan 12, 2017

📌 Commit fb1736e has been approved by brson

@bors
Copy link
Contributor

bors commented Jan 12, 2017

⌛ Testing commit fb1736e with merge 5eb9072...

bors added a commit that referenced this pull request Jan 12, 2017
Fix cargo test --doc with dev-deps

Previously Cargo accidentally didn't pull in dev-dependencies due to the way
`cargo test --doc` was interpreted in terms of top-level targets. This PR
special cases this situation by ensuring that the doctest intention makes its
way all to the backend and the dependencies can be correctly calculated.

Closes #3422
@bors
Copy link
Contributor

bors commented Jan 12, 2017

☀️ Test successful - status-appveyor, status-travis
Approved by: brson
Pushing 5eb9072 to master...

@bors bors merged commit fb1736e into rust-lang:master Jan 12, 2017
@alexcrichton alexcrichton deleted the dev-dep-doc-test branch June 15, 2017 18:56
@ehuss ehuss added this to the 1.16.0 milestone Feb 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cargo test --doc can't find crate in dev-dependencies
5 participants