Just bumped onto this with ./x.py doc, even after ./x.py clean:
error[E0460]: found possibly newer version of crate `std` which `synstructure` depends on
--> src/librustc_macros/src/lib.rs:4:5
|
4 | use synstructure::decl_derive;
| ^^^^^^^^^^^^
|
= note: perhaps that crate needs to be recompiled?
= note: the following crate versions were found:
crate `std`: /home/tshepang/rust/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-95e90a1be2e66993.rlib
crate `std`: /home/tshepang/rust/build/x86_64-unknown-linux-gnu/stage0-sysroot/lib/rustlib/x86_64-unknown-linux-gnu/lib/libstd-95e90a1be2e66993.so
crate `synstructure`: /home/tshepang/rust/build/x86_64-unknown-linux-gnu/stage0-rustc/release/deps/libsynstructure-7a0d29a374b01f60.rmeta
Here is my config.toml
[build]
compiler-docs = true
extended = true
tools = [ "clippy", "rustfmt", "rust-analyzer" ]
target = [ "wasm32-unknown-unknown" ]
[rust]
incremental = true
_Originally posted by @tshepang in https://github.com/rust-lang/rust/issues/59105#issuecomment-667036879_
If you pass --stage 1 does it work? The default was recently changed to 0 so that might have uncovered a latent bug.
@jyn514 that worked
Fixing this properly looks like it will be quite tricky. Some of the complexity stems from the fact that the rustc wrapper does not set the sysroot without a --target flag, which is what happens when running cargo doc (see here). However, the rustdoc wrapper always sets the sysroot here. This means that dependencies that are built with rustc (for .rmeta) use the beta sysroot (stage0), and rustdoc is using the stage0-sysroot folder with the newly built std.
As an aside, if this is fixed to support stage0, this line will probably need to be changed to Std, not Rustc. There's no need to build Rustc to document itself.
I suspect that rustdoc always setting the sysroot might in fact be a bug, or at least unintentional - it seems like the two should be the same probably?
x.py doc --stage 1 does not work anymore
``
...
Documenting std v0.0.0 (/home/tshepang/rust/library/std)
error: unresolved link tocrate::os::unix::ffi::OsStrExt
--> library/std/src/ffi/mod.rs:134:22
|
134 | //! [unix.OsStrExt]: crate::os::unix::ffi::OsStrExt
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unresolved link
|
= note:-D broken-intra-doc-linksimplied by-D warnings
= help: to escape[and]characters, add '\' before them like[or]`
...
What platform are you on? There might be some weird cfgs going on that weren't caught by CI for https://github.com/rust-lang/rust/pull/75501. Feel free to make a PR reverting the links to ext, if you don't get around to it today I'll try to make a PR by the end of the week.
I am on x86_64-unknown-linux-gnu, Debian unstable.
Hmm, I can't reproduce locally and I have the same link in library/std. Not sure what's going on, I'm on x86_64-unknown-linux-gnu as well.
This makes it seem like it should be independent of the platform: https://github.com/rust-lang/rust/blob/5b04bbfcbb79ed7325ea2b580458a80d95da6bbb/library/std/src/os/mod.rs#L7-L22
https://github.com/rust-lang/rust/blob/5b04bbfcbb79ed7325ea2b580458a80d95da6bbb/library/std/src/sys/mod.rs#L60-L82
Here is my config.toml, just in case that makes a difference
```toml
[build]
compiler-docs = true
extended = true
tools = [ "clippy", "rustfmt", "rust-analyzer" ]
target = [ "wasm32-unknown-unknown" ]
[rust]
incremental = true
lld = true
Ah ok, this is because you're targeting wasm - if you look at https://github.com/rust-lang/rust/blob/5b04bbfcbb79ed7325ea2b580458a80d95da6bbb/library/std/src/sys/mod.rs#L68 it doesn't have unix_ext at all for that target.
The different from before is that the links would fail silently; now they are failing noisily. I'm not sure the best way to fix this ... from the comments it seems like adding unix_ext for that target is not trivial. Maybe you could export RUSTFLAGS="-A broken_intra_doc_links"? Or set warnings not to be errors?
Is there a way of specifying which target to build docs for in x.py?
x.py doc --stage 1 --target x86_64-unknown-linux-gnu
Note also that I no longer experience the initial issue... no need to specify --stage 1 anymore.
I caught this bug.
My config.toml:
[llvm]
optimize = true
release-debuginfo = false
assertions = false
ninja = true
targets = "X86;Mips;NVPTX;RISCV;BPF;AArch64;WebAssembly"
experimental-targets = ""
link-shared = true
[build]
build = "x86_64-unknown-linux-gnu"
host = ["x86_64-unknown-linux-gnu"]
target = ["i686-unknown-linux-gnu","x86_64-unknown-linux-gnu","wasm32-unknown-unknown"]
docs = true
compiler-docs = true
submodules = false
python = "python3.7"
locked-deps = true
vendor = false
extended = true
tools = ["rust-analyzer","rustfmt","rls","miri","clippy","cargo",]
verbose = 2
sanitizers = false
profiler = false
cargo-native-static = false
[install]
prefix = "/usr"
libdir = "lib64/rust-9999"
docdir = "share/doc/rust-9999"
mandir = "share/rust-9999/man"
[rust]
optimize = true
debug = false
debug-assertions = false
debuginfo-level-rustc = 0
backtrace = true
incremental = false
default-linker = "x86_64-pc-linux-gnu-gcc"
parallel-compiler = false
rpath = false
verbose-tests = true
optimize-tests = true
codegen-tests = true
dist-src = false
ignore-git = false
lld = false
backtrace-on-ice = true
jemalloc = false
[dist]
src-tarball = false
[target.i686-unknown-linux-gnu]
cc = "x86_64-pc-linux-gnu-gcc"
cxx = "x86_64-pc-linux-gnu-g++"
linker = "x86_64-pc-linux-gnu-gcc"
ar = "x86_64-pc-linux-gnu-ar"
llvm-config = "/usr/lib/llvm/10/bin/llvm-config"
[target.x86_64-unknown-linux-gnu]
cc = "x86_64-pc-linux-gnu-gcc"
cxx = "x86_64-pc-linux-gnu-g++"
linker = "x86_64-pc-linux-gnu-gcc"
ar = "x86_64-pc-linux-gnu-ar"
llvm-config = "/usr/lib/llvm/10/bin/llvm-config"
[target.wasm32-unknown-unknown]
linker = "lld"
Failed command:
error: Could not document `std`.
Caused by:
process didn't exit successfully: `/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/bootstrap/debug/rustdoc --edition=2018 --crate-type dylib --crate-type rlib --crate-name std library/std/src/lib.rs --target wasm32-unknown-unknown -o /tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/doc --cfg 'feature="addr2line"' --cfg 'feature="backtrace"' --cfg 'feature="gimli-symbolize"' --cfg 'feature="miniz_oxide"' --cfg 'feature="object"' --cfg 'feature="panic_unwind"' --cfg 'feature="std_detect_dlsym_getauxval"' --cfg 'feature="std_detect_file_io"' --error-format=json --json=diagnostic-rendered-ansi --markdown-css rust.css --markdown-no-toc -Z unstable-options --resource-suffix 1.48.0 --index-page /tmp/portage/dev-lang/rust-9999/work/rust-git-src/src/doc/index.md -L dependency=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps -L dependency=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/release/deps --extern addr2line=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libaddr2line-9c90916959ed47dc.rmeta --extern alloc=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/liballoc-f10d36e19a6b4a6c.rmeta --extern cfg_if=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcfg_if-30857b79c73f7fff.rmeta --extern compiler_builtins=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcompiler_builtins-1b00cc16184366d5.rmeta --extern core=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcore-1c0d17d595f10ad8.rmeta --extern dlmalloc=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libdlmalloc-d3a093304a3f5ed3.rmeta --extern hashbrown=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libhashbrown-8e4f0f970969b8bf.rmeta --extern libc=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/liblibc-e07644d41b7e931f.rmeta --extern miniz_oxide=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libminiz_oxide-5d75d119f5f9ea26.rmeta --extern object=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libobject-1b2bee7d52f5d55c.rmeta --extern panic_abort=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libpanic_abort-37cc5afa0a6b8ae3.rmeta --extern panic_unwind=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libpanic_unwind-4cac7c7e34360602.rmeta --extern rustc_demangle=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/librustc_demangle-a4be1769e9ac3e0f.rmeta --extern unwind=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libunwind-efdde7ebbb0e90a3.rmeta -Lnative=/usr/lib/llvm/10/lib64 -Dwarnings -Winvalid_codeblock_attributes --crate-version '1.48.0-dev
(683d1bcd4
2020-09-09)' --cfg backtrace_in_libstd` (exit code: 1)
command did not execute successfully: "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustdoc" "--target" "wasm32-unknown-unknown" "-Zbinary-dep-depinfo" "-j" "7" "-v" "--release" "--locked" "--features" "panic-unwind backtrace" "--manifest-path" "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/library/test/Cargo.toml" "-p" "std" "--" "--markdown-css" "rust.css" "--markdown-no-toc" "-Z" "unstable-options" "--resource-suffix" "1.48.0" "--index-page" "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/src/doc/index.md"
expected success, got: exit code: 101
Commit: 683d1bcd405727fcc9209f64845bd3b9104878b8
@o01eg that's not enough info to be sure it's the same bug - can you post the output about 5 lines up that says _why_ it failed to document?
@jyn514 Part of log with error:
c Rustdoc { compiler: Compiler { stage: 2, host: TargetSelection { triple: "x86_64-unknown-linux-gnu", file: None } } }
c Sysroot { compiler: Compiler { stage: 2, host: TargetSelection { triple: "x86_64-unknown-linux-gnu", file: None } } }
c Sysroot { compiler: Compiler { stage: 2, host: TargetSelection { triple: "x86_64-unknown-linux-gnu", file: None } } }
c Sysroot { compiler: Compiler { stage: 2, host: TargetSelection { triple: "x86_64-unknown-linux-gnu", file: None } } }
c Rustdoc { compiler: Compiler { stage: 2, host: TargetSelection { triple: "x86_64-unknown-linux-gnu", file: None } } }
c Sysroot { compiler: Compiler { stage: 2, host: TargetSelection { triple: "x86_64-unknown-linux-gnu", file: None } } }
running: "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustdoc" "--target" "wasm32-unknown-unknown" "-Zbinary-dep-depinfo" "-j" "7" "-v" "--release" "--locked" "--features" "panic-unwind backtrace" "--manifest-path" "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/library/test/Cargo.toml" "-p" "std" "--" "--markdown-css" "rust.css" "--markdown-no-toc" "-Z" "unstable-options" "--resource-suffix" "1.47.0" "--index-page" "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/src/doc/index.md"
...
Documenting std v0.0.0 (/tmp/portage/dev-lang/rust-9999/work/rust-git-src/library/std)
Running `/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/bootstrap/debug/rustdoc --edition=2018 --crate-type dylib --crate-type rlib --crate-name std library/std/src/lib.rs --target wasm32-unknown-unknown -o /tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/doc --cfg 'feature="addr2line"' --cfg 'feature="backtrace"' --cfg 'feature="gimli-symbolize"' --cfg 'feature="miniz_oxide"' --cfg 'feature="object"' --cfg 'feature="panic_unwind"' --cfg 'feature="std_detect_dlsym_getauxval"' --cfg 'feature="std_detect_file_io"' --error-format=json --json=diagnostic-rendered-ansi --markdown-css rust.css --markdown-no-toc -Z unstable-options --resource-suffix 1.47.0 --index-page /tmp/portage/dev-lang/rust-9999/work/rust-git-src/src/doc/index.md -L dependency=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps -L dependency=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/release/deps --extern addr2line=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libaddr2line-8229f5c2a688b6e3.rmeta --extern alloc=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/liballoc-74f910f193e7b336.rmeta --extern cfg_if=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcfg_if-fd0d852fc79171d8.rmeta --extern compiler_builtins=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcompiler_builtins-db2ee1dfa27e3e7f.rmeta --extern core=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcore-5a47466fe4fc98f4.rmeta --extern dlmalloc=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libdlmalloc-b7e449ca03644816.rmeta --extern hashbrown=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libhashbrown-7583e9f834c306b7.rmeta --extern libc=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/liblibc-cf6ced52b7f0305e.rmeta --extern miniz_oxide=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libminiz_oxide-393b4807a077fca1.rmeta --extern object=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libobject-9e197139924657b6.rmeta --extern panic_abort=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libpanic_abort-ac1891acc12bd958.rmeta --extern panic_unwind=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libpanic_unwind-ab0162dc30186b39.rmeta --extern rustc_demangle=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/librustc_demangle-f73103bf135d5d64.rmeta --extern unwind=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libunwind-8d9aa4ec2b106ff0.rmeta -Lnative=/usr/lib/llvm/10/lib64 -Dwarnings -Winvalid_codeblock_attributes --crate-version '1.47.0-dev
(49d39e559
2020-08-17)' --cfg backtrace_in_libstd`
rustdoc command: "LD_LIBRARY_PATH"="/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2/lib64/rust-9999:/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/release/deps:/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage0/lib" "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2/bin/rustdoc" "--edition=2018" "--crate-type" "dylib" "--crate-type" "rlib" "--crate-name" "std" "library/std/src/lib.rs" "--target" "wasm32-unknown-unknown" "-o" "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/doc" "--cfg" "feature=\"addr2line\"" "--cfg" "feature=\"backtrace\"" "--cfg" "feature=\"gimli-symbolize\"" "--cfg" "feature=\"miniz_oxide\"" "--cfg" "feature=\"object\"" "--cfg" "feature=\"panic_unwind\"" "--cfg" "feature=\"std_detect_dlsym_getauxval\"" "--cfg" "feature=\"std_detect_file_io\"" "--error-format=json" "--json=diagnostic-rendered-ansi" "--markdown-css" "rust.css" "--markdown-no-toc" "-Z" "unstable-options" "--resource-suffix" "1.47.0" "--index-page" "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/src/doc/index.md" "-L" "dependency=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps" "-L" "dependency=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/release/deps" "--extern" "addr2line=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libaddr2line-8229f5c2a688b6e3.rmeta" "--extern" "alloc=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/liballoc-74f910f193e7b336.rmeta" "--extern" "cfg_if=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcfg_if-fd0d852fc79171d8.rmeta" "--extern" "compiler_builtins=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcompiler_builtins-db2ee1dfa27e3e7f.rmeta" "--extern" "core=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libcore-5a47466fe4fc98f4.rmeta" "--extern" "dlmalloc=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libdlmalloc-b7e449ca03644816.rmeta" "--extern" "hashbrown=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libhashbrown-7583e9f834c306b7.rmeta" "--extern" "libc=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/liblibc-cf6ced52b7f0305e.rmeta" "--extern" "miniz_oxide=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libminiz_oxide-393b4807a077fca1.rmeta" "--extern" "object=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libobject-9e197139924657b6.rmeta" "--extern" "panic_abort=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libpanic_abort-ac1891acc12bd958.rmeta" "--extern" "panic_unwind=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libpanic_unwind-ab0162dc30186b39.rmeta" "--extern" "rustc_demangle=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/librustc_demangle-f73103bf135d5d64.rmeta" "--extern" "unwind=/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2-std/wasm32-unknown-unknown/release/deps/libunwind-8d9aa4ec2b106ff0.rmeta" "-Lnative=/usr/lib/llvm/10/lib64" "-Dwarnings" "-Winvalid_codeblock_attributes" "--crate-version" "1.47.0-dev\n(49d39e559\n2020-08-17)" "--cfg" "backtrace_in_libstd" "--cfg" "stage2" "--cfg" "dox" "--sysroot" "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2" "-Z" "force-unstable-if-unmarked"
sysroot: "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2"
libdir: "/tmp/portage/dev-lang/rust-9999/work/rust-git-src/build/x86_64-unknown-linux-gnu/stage2/lib64/rust-9999"
error: unresolved link to `crate::os::unix::ffi::OsStrExt`
--> library/std/src/ffi/mod.rs:134:22
|
134 | //! [unix.OsStrExt]: crate::os::unix::ffi::OsStrExt
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unresolved link
|
= note: `-D broken-intra-doc-links` implied by `-D warnings`
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
error: unresolved link to `crate::os::unix::ffi::OsStrExt::from_bytes`
--> library/std/src/ffi/mod.rs:135:21
|
135 | //! [`from_bytes`]: crate::os::unix::ffi::OsStrExt::from_bytes
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unresolved link
|
= help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
Same issue as https://github.com/rust-lang/rust/issues/74976#issuecomment-676555522, don't pass --target wasm32.
It's a part of x.py install I cannot disable it.
Set deny-warnings = false, then: https://github.com/rust-lang/rust/blob/master/config.toml.example#L442. If you want to fix the root issue please open a separate bug for that, it's not trivial to fix and is not related to the issue you're commenting on.