Skip to content

Instantly share code, notes, and snippets.

@tshepang
Created September 9, 2019 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tshepang/8ea90950fb2e7164e6fe650ad373921b to your computer and use it in GitHub Desktop.
Save tshepang/8ea90950fb2e7164e6fe650ad373921b to your computer and use it in GitHub Desktop.
❯ ./x.py doc --stage 0
Updating only changed submodules
Submodules updated in 0.02 seconds
Finished dev [unoptimized] target(s) in 0.10s
Generating unstable book md files (x86_64-unknown-linux-gnu)
Building stage0 tool unstable-book-gen (x86_64-unknown-linux-gnu)
Finished release [optimized] target(s) in 0.09s
Building stage0 tool rustbook (x86_64-unknown-linux-gnu)
Finished release [optimized] target(s) in 0.15s
Rustbook (x86_64-unknown-linux-gnu) - unstable-book
Documenting standalone (x86_64-unknown-linux-gnu)
Documenting book redirect pages (x86_64-unknown-linux-gnu)
Documenting stage0 std (x86_64-unknown-linux-gnu)
Building stage0 std artifacts (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu)
Finished release [optimized] target(s) in 0.23s
Copying stage0 std from stage0 (x86_64-unknown-linux-gnu -> x86_64-unknown-linux-gnu / x86_64-unknown-linux-gnu)
Documenting alloc v0.0.0 (/home/tshepang/rust/rustc/src/liballoc)
error: cannot find attribute macro `rustc_diagnostic_item` in this scope
--> src/liballoc/vec.rs:294:44
|
294 | #[cfg_attr(all(not(bootstrap), not(test)), rustc_diagnostic_item = "vec_type")]
| ^^^^^^^^^^^^^^^^^^^^^
error: Compilation failed, aborting rustdoc
error: aborting due to 2 previous errors
error: Could not document `alloc`.
Caused by:
process didn't exit successfully: `/home/tshepang/rust/rustc/build/bootstrap/debug/rustdoc --edition=2018 --crate-name alloc src/liballoc/lib.rs --target x86_64-unknown-linux-gnu -o /home/tshepang/rust/rustc/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/doc --cfg 'feature="compiler-builtins-c"' --color always --markdown-css rust.css --markdown-no-toc --generate-redirect-pages --resource-suffix 1.39.0 --index-page /home/tshepang/rust/rustc/src/doc/index.md -L dependency=/home/tshepang/rust/rustc/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps -L dependency=/home/tshepang/rust/rustc/build/x86_64-unknown-linux-gnu/stage0-std/release/deps --extern compiler_builtins=/home/tshepang/rust/rustc/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps/libcompiler_builtins-b0baf6535d3364d0.rmeta --extern core=/home/tshepang/rust/rustc/build/x86_64-unknown-linux-gnu/stage0-std/x86_64-unknown-linux-gnu/release/deps/libcore-0ab73bd8d2d63a35.rmeta` (exit code: 1)
command did not execute successfully: "/home/tshepang/rust/rustc/build/x86_64-unknown-linux-gnu/stage0/bin/cargo" "rustdoc" "--target" "x86_64-unknown-linux-gnu" "-Zbinary-dep-depinfo" "-j" "8" "--release" "--features" "panic-unwind backtrace compiler-builtins-c" "--manifest-path" "/home/tshepang/rust/rustc/src/libtest/Cargo.toml" "-Z" "unstable-options" "-p" "alloc" "--" "--markdown-css" "rust.css" "--markdown-no-toc" "--generate-redirect-pages" "--resource-suffix" "1.39.0" "--index-page" "/home/tshepang/rust/rustc/src/doc/index.md"
expected success, got: exit code: 101
failed to run: /home/tshepang/rust/rustc/build/bootstrap/debug/bootstrap doc --stage 0
Build completed unsuccessfully in 0:00:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment