Repository navigation
Cargo doc broken on nightly-2017-09-11 #44487
Copy link
Copy link
Closed
Labels
regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Milestone
Description
Cargo doc runs on nightly-2017-09-11 without displaying any errors or warnings, yet, it doesn't produce any outputs.
I am on nightly-unknown-linux-gnu on Linux Mint.
alexgasbarroni@alexgasbarroni-Mint ~/git/sc3_firmware $ uname -a
Linux alexgasbarroni-Mint 4.8.0-54-generic #57~16.04.1-Ubuntu SMP Wed May 24 16:22:28 UTC 2017 x86_64 x86_64 x86_64 GNU/LinuxI tried with different nightly toolchains to see if it was a problem of my code, or if it was a problem of the toolchain.
- [OK] nightly-2017-09-08-x86_64-unknown-linux-gnu
- [OK] nightly-2017-09-09-x86_64-unknown-linux-gnu
- [OK] nightly-2017-09-10-x86_64-unknown-linux-gnu
- [Broken] nightly-2017-09-11-x86_64-unknown-linux-gnu
I also tried on different machines and the result is the same.
I tried:
cargo doccargo doc --opencargo doc --verbosebut I cannot find any pointer to the problem.
Example output when running cargo doc --open
alexgasbarroni@alexgasbarroni-Mint ~/git/sc3_firmware $ cargo doc --open
Documenting freerustos v0.1.0 (file:///home/alexgasbarroni/git/sc3_firmware/src/freerustos)
Documenting tools v0.1.0 (file:///home/alexgasbarroni/git/sc3_firmware/src/tools)
Documenting unicode-xid v0.0.4
Documenting odds v0.2.25
Documenting nodrop-union v0.1.9
Documenting serde v1.0.11
Documenting numtoa v0.0.7
Documenting encode_unicode v0.3.1
Documenting quote v0.3.15
Documenting synom v0.11.3
Documenting nodrop v0.1.9
Documenting ssmarshal v1.0.0
Documenting syn v0.11.11
Documenting arrayvec v0.4.0
Documenting serde_derive_internals v0.15.1
Documenting serde_derive v1.0.11
Documenting common v0.1.0 (file:///home/alexgasbarroni/git/sc3_firmware/src/common)
Documenting peripheral_layer v0.1.0 (file:///home/alexgasbarroni/git/sc3_firmware/src/peripheral_layer)
Documenting pal v0.1.0 (file:///home/alexgasbarroni/git/sc3_firmware/src/pal)
Documenting pubsub v0.1.1 (file:///home/alexgasbarroni/git/sc3_firmware/src/pubsub)
Documenting rc_inputs v0.1.0 (file:///home/alexgasbarroni/git/sc3_firmware/src/rc_inputs)
Documenting fusion v0.1.0 (file:///home/alexgasbarroni/git/sc3_firmware/src/fusion)
Documenting mixer v0.1.0 (file:///home/alexgasbarroni/git/sc3_firmware/src/mixer)
Documenting imu_stream v0.1.0 (file:///home/alexgasbarroni/git/sc3_firmware/src/imu_stream)
Documenting magnetic_declination v0.1.0 (file:///home/alexgasbarroni/git/sc3_firmware/src/magnetic_declination)
Documenting device_layer v0.1.0 (file:///home/alexgasbarroni/git/sc3_firmware/src/device_layer)
Documenting controllers v0.1.0 (file:///home/alexgasbarroni/git/sc3_firmware/src/controllers)
Documenting actuators v0.1.0 (file:///home/alexgasbarroni/git/sc3_firmware/src/actuators)
Documenting sensor_manager v0.1.0 (file:///home/alexgasbarroni/git/sc3_firmware/src/sensor_manager)
Documenting pbit v0.1.0 (file:///home/alexgasbarroni/git/sc3_firmware/src/pbit)
Documenting magnetometer v0.1.0 (file:///home/alexgasbarroni/git/sc3_firmware/src/magnetometer)
Documenting accelerometer v0.1.0 (file:///home/alexgasbarroni/git/sc3_firmware/src/accelerometer)
Documenting gyroscope v0.1.0 (file:///home/alexgasbarroni/git/sc3_firmware/src/gyroscope)
Documenting console v0.1.0 (file:///home/alexgasbarroni/git/sc3_firmware/src/console)
Documenting sc3_firmware v0.0.0 (file:///home/alexgasbarroni/git/sc3_firmware)
Finished dev [unoptimized + debuginfo] target(s) in 0.14 secsThe browser window doesn't open, the target/doc folder is empty and the usual xdg-open command is missing.
Does anybody else have the same problem?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
regression-from-stable-to-nightlyPerformance or correctness regression from stable to nightly.Performance or correctness regression from stable to nightly.
Activity
alexcrichton commentedon Sep 11, 2017
Looks like this is because
rustdocas distributed is an empty file... investigatingalexcrichton commentedon Sep 11, 2017
Likely caused by #44260
rustbuild: Fix a distribution bug with rustdoc
Auto merge of #44498 - alexcrichton:fix-nightlies, r=alexcrichton
retep998 commentedon Sep 12, 2017
On Appveyor I was getting a much more frustrating error:
Upon updating to the latest nightly locally I got a more helpful error:
And as it turns out,

rustdoc.exeis empty here as well:KodrAus commentedon Sep 12, 2017
Oh that's why my builds were failing attempting to commit an empty folder full of 'docs'...
Lakier15 commentedon Sep 12, 2017
Thank you guys! That fixed it :)