-
Notifications
You must be signed in to change notification settings - Fork 13.9k
Description
If I create a new crate with
cargo new --lib rustdocissueThen add a dependency on gfx-backend-empty version 0.5:
[dependencies]
gfx-backend-empty = "0.5"Then run cargo doc on stable:
cargo +stable doc --lib --no-depscargo doc succeeds with warnings. I'm not sure if the warnings are relevant, but the warnings in cargo +stable doc are for some empty blocks in examples that haven't been populated, such as:
/// ```no_run
///
/// ```
Now if I run the same command on nightly (nightly-2020-04-06):
cargo +nightly doc --lib --no-depscargo doc panics with the following error:
thread 'rustc' panicked at 'could not find markdown in source', src/librustdoc/passes/mod.rs:411:31
The panic originates in
rust/src/librustdoc/passes/mod.rs
Line 411 in 1ccb0b4
| let source_line = src_lines.next().expect("could not find markdown in source"); |
Besides stable and nightly, I tried the nightly-2020-03-19 toolchain which succeeds with warnings (like stable).
I also created a repo which reproduces the issue at https://github.com/grovesNL/rustdocissue if it's convenient to clone that instead of following the steps above.