Skip to content

Cargo doc broken on nightly-2017-09-11 #44487

Closed

Description

@Lakier15

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/Linux

I 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 doc
cargo doc --open
cargo doc --verbose

but 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 secs

The 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?

Activity

  1. alexcrichton commented on Sep 11, 2017

    @alexcrichton
    Member

    Looks like this is because rustdoc as distributed is an empty file... investigating

  2. alexcrichton commented on Sep 11, 2017

    @alexcrichton
    Member

    Likely caused by #44260

  3. added a commit that references this issue on Sep 11, 2017
    eb26d5b
  4. added a commit that references this issue on Sep 11, 2017
    07d950f
  5. retep998 commented on Sep 12, 2017

    @retep998
    Contributor

    On Appveyor I was getting a much more frustrating error:

       Doc-tests winapi
    error: An unknown error occurred
    To learn more, run the command again with --verbose.
    

    Upon updating to the latest nightly locally I got a more helpful error:

       Doc-tests winapi
    error: command failed: 'rustdoc.exe'
    info: caused by: %1 is not a valid Win32 application. (os error 193)
    

    And as it turns out, rustdoc.exe is empty here as well:

  6. KodrAus commented on Sep 12, 2017

    @KodrAus
    Contributor

    Oh that's why my builds were failing attempting to commit an empty folder full of 'docs'...

  7. Lakier15 commented on Sep 12, 2017

    @Lakier15
    Author

    Thank you guys! That fixed it :)

  8. added this to the 1.22 milestone on Sep 13, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions