Skip to content

Win32: can't find crate for std during doc-tests #352

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

Closed
tomaka opened this issue Aug 8, 2014 · 2 comments
Closed

Win32: can't find crate for std during doc-tests #352

tomaka opened this issue Aug 8, 2014 · 2 comments

Comments

@tomaka
Copy link
Contributor

tomaka commented Aug 8, 2014

How to reproduce:

cargo new test
cd test
cargo test

Produces this:

   Compiling test v0.0.1 (file:///C:/Users/tomaka/Projets/test)
     Running target\test\test-324ea734a31af282.exe

running 1 test
test it_works ... ok

test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured

   Doc-tests test
C:\Users\tomaka\Projets\test\src\lib.rs:1:1: 1:1 error: can't find crate for `std`
C:\Users\tomaka\Projets\test\src\lib.rs:1 #[test]
                                            ^
error: aborting due to previous error
task '<main>' failed at 'Box<Any>', C:\bot\slave\nightly-win\build\src\libsyntax\ast_util.rs:784
Could not execute process `rustdoc --test C:\Users\tomaka\Projets\test\src\lib.rs --crate-name test -L target/test -L target/test/deps` (status=101)

EDIT: for some reason I thought that it was working when manually running rustdoc, while in fact it doesn't. So this is a rustdoc issue, not cargo (see rust-lang/rust#11792).
Should I close this?

@alexcrichton
Copy link
Member

What's the exact version of rustdoc you're using? (discoverable through rustc -v).

This should have been fixed by rust-lang/rust@cb8bd83 which was a pretty recent commit. I don't believe that this is an instance of rust-lang/rust#11792

@tomaka
Copy link
Contributor Author

tomaka commented Aug 9, 2014

I don't know which version I was using, but I upgraded rustc before your answer, and it fixed it!

@tomaka tomaka closed this as completed Aug 9, 2014
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

No branches or pull requests

2 participants