Why is cargo doc creating wrong links to Arc?

It might be that my project is not configured correctly anymore (because I used nightly for a while), but right now I can’t figure out why the docs create wrong links like this:


Click on Arc e.g. here:


I thought my project is using the default toolchain now:

$ rustup toolchain list
stable-x86_64-unknown-linux-gnu (default)
$ rustc --version
rustc 1.28.0 (9634041f0 2018-07-30)

Can someone shed some light where the nightly comes from in the resulting docs?

This is a known issue with rustdoc: https://github.com/rust-lang/rust/issues/41000

Currently the build system doesn’t include any code to switch the URL for libstd docs based on the release channel.

@mbrubeck Thanks for the link. I hope it gets fixed at some point :wink: