You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/tools/cargo/src/cargo/ops/cargo_compile/mod.rs:595:21note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
$ cargo +nightly-2022-12-18 rustdoc -Zrustdoc-scrape-examplesthread 'main' panicked at 'called `Option::unwrap()` on a `None` value', src/tools/cargo/src/cargo/ops/cargo_compile/mod.rs:595:21note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
If the library crate is not a proc macro, or if there is no example crate included in the package, then it does not crash.
Thanks for the report @dtolnay I will investigate this today. Your minimal example did not reproduce the issue on my machine, but I cloning the automod repo and running did. I could reproduce the error and will fix it soon.
Problem
rust-lang/docs.rs#1954 enabled
-Zrustdoc-scrape-examples
, which caused docs of theautomod
crate to fail to build.https://docs.rs/crate/automod/1.0.5/builds/703499
Steps
// src/lib.rs (empty)
If the library crate is not a proc macro, or if there is no example crate included in the package, then it does not crash.
Possible Solution(s)
No response
Notes
FYI @willcrichton
Version
The text was updated successfully, but these errors were encountered: