Repo for testing here: https://github.com/theindigamer/plex-issue
I’m using the nightly compiler from about a month back (I suppose that shouldn’t make a difference). When I run
cargo build, it successfully builds but when I run
cargo test it fails with
can't find crate for the plex crate.
I ran it with verbose and the problem seems to be with running doc-tests, it says:
running 1 test test tests::it_works ... ok test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out Doc-tests plex-issue Running `rustdoc --test /home/varun/Code/plex-issue/src/lib.rs --crate-name plex_issue -L dependency=/home/varun/Code/plex-issue/target/debug/deps -L dependency=/home/varun/Code/plex-issue/target/debug/deps --extern lalrpop_util=/home/varun/Code/plex-issue/target/debug/deps/liblalrpop_util-54d74d0bd4bcca12.rlib --extern plex_issue=/home/varun/Code/plex-issue/target/debug/deps/libplex_issue-bbd84cf4bc8ab2b6.rlib --extern regex=/home/varun/Code/plex-issue/target/debug/deps/libregex-75ed02f74557cedd.rlib` error[E0463]: can't find crate for `plex` --> /home/varun/Code/plex-issue/src/lib.rs:5:1 | 5 | extern crate plex; | ^^^^^^^^^^^^^^^^^^ can't find crate error: test failed, to rerun pass '--doc'
Any suggestions on what might be going wrong/how to debug this further?