[INFO] cloning repository https://github.com/ZhongChan/head_first_rust
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ZhongChan/head_first_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZhongChan%2Fhead_first_rust", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZhongChan%2Fhead_first_rust'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] a6a55e1289bc369e951b18969628a1dbe52adcb7
[INFO] documenting ZhongChan/head_first_rust against beta-2025-07-11 for beta-1.89-rustdoc-1
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FZhongChan%2Fhead_first_rust" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/ZhongChan/head_first_rust
[INFO] finished tweaking git repo https://github.com/ZhongChan/head_first_rust
[INFO] tweaked toml for git repo https://github.com/ZhongChan/head_first_rust written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/ZhongChan/head_first_rust on toolchain beta-2025-07-11
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-07-11" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/ZhongChan/head_first_rust already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2025-07-11" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-07-11" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 06adc06814b3e53eb8b05067cd24a04e6649d5dafdf511cea4b83f7e4b1bef75
[INFO] running `Command { std: "docker" "start" "-a" "06adc06814b3e53eb8b05067cd24a04e6649d5dafdf511cea4b83f7e4b1bef75", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "06adc06814b3e53eb8b05067cd24a04e6649d5dafdf511cea4b83f7e4b1bef75", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "06adc06814b3e53eb8b05067cd24a04e6649d5dafdf511cea4b83f7e4b1bef75", kill_on_drop: false }`
[INFO] [stdout] 06adc06814b3e53eb8b05067cd24a04e6649d5dafdf511cea4b83f7e4b1bef75
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2025-07-11" "doc" "--frozen" "--no-deps" "--document-private-items" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 5ae9ef77f1100871bac5494bdebb3b85b0ff036140242e26a020a965d7be8143
[INFO] running `Command { std: "docker" "start" "-a" "5ae9ef77f1100871bac5494bdebb3b85b0ff036140242e26a020a965d7be8143", kill_on_drop: false }`
[INFO] [stderr]    Compiling autocfg v1.3.0
[INFO] [stderr]    Compiling num-traits v0.2.19
[INFO] [stderr]     Checking num-integer v0.1.46
[INFO] [stderr]     Checking num-complex v0.4.6
[INFO] [stderr]     Checking num-bigint v0.4.5
[INFO] [stderr]     Checking num-iter v0.1.45
[INFO] [stderr]     Checking num-rational v0.4.2
[INFO] [stderr]     Checking num v0.4.3
[INFO] [stderr]     Checking head_first_rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]  Documenting head_first_rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unexpected `cfg` condition value: `example`
[INFO] [stdout]    --> src/ch2/8_2_trait.rs:241:7
[INFO] [stdout]     |
[INFO] [stdout] 241 | #[cfg(feature = "example")]
[INFO] [stdout]     |       ^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stdout]     |
[INFO] [stdout]     = note: no expected values for `feature`
[INFO] [stdout]     = help: consider adding `example` as a feature in `Cargo.toml`
[INFO] [stdout]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]     = note: `#[warn(unexpected_cfgs)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `example`
[INFO] [stdout]   --> src/ch2/8_3_trait_obj.rs:20:7
[INFO] [stdout]    |
[INFO] [stdout] 20 | #[cfg(feature = "example")]
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stdout]    |
[INFO] [stdout]    = note: no expected values for `feature`
[INFO] [stdout]    = help: consider adding `example` as a feature in `Cargo.toml`
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `multi_borrow`
[INFO] [stdout]   --> src/ch2/9_1_collection_vec.rs:53:7
[INFO] [stdout]    |
[INFO] [stdout] 53 | #[cfg(feature = "multi_borrow")]
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stdout]    |
[INFO] [stdout]    = note: no expected values for `feature`
[INFO] [stdout]    = help: consider adding `multi_borrow` as a feature in `Cargo.toml`
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `example`
[INFO] [stdout]    --> src/ch2/8_2_trait.rs:241:7
[INFO] [stdout]     |
[INFO] [stdout] 241 | #[cfg(feature = "example")]
[INFO] [stdout]     |       ^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stdout]     |
[INFO] [stdout]     = note: no expected values for `feature`
[INFO] [stdout]     = help: consider adding `example` as a feature in `Cargo.toml`
[INFO] [stdout]     = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout]     = note: `#[warn(unexpected_cfgs)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `example`
[INFO] [stdout]   --> src/ch2/8_3_trait_obj.rs:20:7
[INFO] [stdout]    |
[INFO] [stdout] 20 | #[cfg(feature = "example")]
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stdout]    |
[INFO] [stdout]    = note: no expected values for `feature`
[INFO] [stdout]    = help: consider adding `example` as a feature in `Cargo.toml`
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unexpected `cfg` condition value: `multi_borrow`
[INFO] [stdout]   --> src/ch2/9_1_collection_vec.rs:53:7
[INFO] [stdout]    |
[INFO] [stdout] 53 | #[cfg(feature = "multi_borrow")]
[INFO] [stdout]    |       ^^^^^^^^^^^^^^^^^^^^^^^^ help: remove the condition
[INFO] [stdout]    |
[INFO] [stdout]    = note: no expected values for `feature`
[INFO] [stdout]    = help: consider adding `multi_borrow` as a feature in `Cargo.toml`
[INFO] [stdout]    = note: see <https://doc.rust-lang.org/nightly/rustc/check-cfg/cargo-specifics.html> for more information about checking conditional configuration
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `min,max`
[INFO] [stdout]   --> src/ch2/2_1_number.rs:26:34
[INFO] [stdout]    |
[INFO] [stdout] 26 | /// * saturating_* 方法：计算结果在指定范围内[min,max]
[INFO] [stdout]    |                                               ^^^^^^^ no item named `min,max` in scope
[INFO] [stdout]    |
[INFO] [stdout]    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout]    = note: `#[warn(rustdoc::broken_intra_doc_links)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `i32;5`
[INFO] [stdout]   --> src/ch2/4_5_array.rs:50:12
[INFO] [stdout]    |
[INFO] [stdout] 50 | /// 数组的类型是[i32;5]，简单总结下切片的特点
[INFO] [stdout]    |                  ^^^^^ no item named `i32;5` in scope
[INFO] [stdout]    |
[INFO] [stdout]    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `T`
[INFO] [stdout]   --> src/ch2/4_5_array.rs:53:12
[INFO] [stdout]    |
[INFO] [stdout] 53 | /// * 切片类型[T]拥有不固定的大小，而切片引用类型&[T]则具有固定的大小，
[INFO] [stdout]    |                ^ no item named `T` in scope
[INFO] [stdout]    |
[INFO] [stdout]    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `T`
[INFO] [stdout]   --> src/ch2/4_5_array.rs:53:32
[INFO] [stdout]    |
[INFO] [stdout] 53 | /// * 切片类型[T]拥有不固定的大小，而切片引用类型&[T]则具有固定的大小，
[INFO] [stdout]    |                                                    ^ no item named `T` in scope
[INFO] [stdout]    |
[INFO] [stdout]    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unresolved link to `T`
[INFO] [stdout]   --> src/ch2/4_5_array.rs:55:33
[INFO] [stdout]    |
[INFO] [stdout] 55 | /// 因为 Rust 很多时候都需要固定大小数据类型，因此&[T]更有用,&str字符串切片也同理
[INFO] [stdout]    |                                                     ^ no item named `T` in scope
[INFO] [stdout]    |
[INFO] [stdout]    = help: to escape `[` and `]` characters, add '\' before them like `\[` or `\]`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unclosed HTML tag `T`
[INFO] [stdout]    --> src/ch2/8_2_trait.rs:267:12
[INFO] [stdout]     |
[INFO] [stdout] 267 | /// # 为 Vec<T> 实现外部特征 
[INFO] [stdout]     |             ^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(rustdoc::invalid_html_tags)]` on by default
[INFO] [stdout] help: try marking as source code
[INFO] [stdout]     |
[INFO] [stdout] 267 | /// # 为 `Vec<T>` 实现外部特征 
[INFO] [stdout]     |          +      +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unclosed HTML tag `T`
[INFO] [stdout]    --> src/ch2/8_3_trait_obj.rs:127:19
[INFO] [stdout]     |
[INFO] [stdout] 127 | /// 则调用该函数时传入的 Box<T> 可以被隐式转换成函数参数签名中的 Box<dyn BasicDraw>
[INFO] [stdout]     |                             ^^^
[INFO] [stdout]     |
[INFO] [stdout] help: try marking as source code
[INFO] [stdout]     |
[INFO] [stdout] 127 | /// 则调用该函数时传入的 `Box<T>` 可以被隐式转换成函数参数签名中的 Box<dyn BasicDraw>
[INFO] [stdout]     |                          +      +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unclosed HTML tag `dyn`
[INFO] [stdout]    --> src/ch2/8_3_trait_obj.rs:127:43
[INFO] [stdout]     |
[INFO] [stdout] 127 | /// 则调用该函数时传入的 Box<T> 可以被隐式转换成函数参数签名中的 Box<dyn BasicDraw>
[INFO] [stdout]     |                                                                     ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unclosed HTML tag `dyn`
[INFO] [stdout]    --> src/ch2/8_3_trait_obj.rs:128:21
[INFO] [stdout]     |
[INFO] [stdout] 128 | /// draw1 函数的参数是 Box<dyn Draw> 形式的特征对象，该特征对象是通过 Box::new(x) 的方式创建的
[INFO] [stdout]     |                           ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unclosed HTML tag `dyn`
[INFO] [stdout]    --> src/ch2/8_3_trait_obj.rs:156:41
[INFO] [stdout]     |
[INFO] [stdout] 156 | /// 最常见的是使用引用（如 &dyn Draw）或者一个智能指针（如 Box<dyn Draw>）。
[INFO] [stdout]     |                                                               ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unclosed HTML tag `dyn`
[INFO] [stdout]    --> src/ch2/8_3_trait_obj.rs:161:18
[INFO] [stdout]     |
[INFO] [stdout] 161 | /// * 使用 Box (Box<dyn Draw>) 提供了所有权和灵活性，适用于需要转移所有权或者在堆上存储数据的场景。
[INFO] [stdout]     |                    ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unclosed HTML tag `dyn`
[INFO] [stdout]    --> src/ch2/8_3_trait_obj.rs:245:23
[INFO] [stdout]     |
[INFO] [stdout] 245 | /// * 特质对象通常通过指针（如 Box<dyn Trait> 或 &dyn Trait）来使用。 
[INFO] [stdout]     |                                   ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr] error: could not document `head_first_rust`
[INFO] [stderr] 
[INFO] [stderr] Caused by:
[INFO] [stderr]   process didn't exit successfully: `/opt/rustwide/rustup-home/toolchains/beta-2025-07-11-x86_64-unknown-linux-gnu/bin/rustdoc --edition=2021 --crate-type bin --crate-name ch2_8_4 src/bin/8_4_trait_enhance.rs -o /opt/rustwide/target/doc --check-cfg 'cfg(docsrs,test)' --check-cfg 'cfg(feature, values())' --error-format=json --json=diagnostic-rendered-ansi,artifacts,future-incompat -C metadata=92a29b3ec7fc8881 -L dependency=/opt/rustwide/target/debug/deps --extern head_first_rust=/opt/rustwide/target/debug/deps/libhead_first_rust-a29d428acf864bd5.rmeta --extern num=/opt/rustwide/target/debug/deps/libnum-3ac2feb2ec3246da.rmeta --document-private-items '-Arustdoc::private-intra-doc-links' --cap-lints=warn --crate-version 0.1.0` (signal: 9, SIGKILL: kill)
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] running `Command { std: "docker" "inspect" "5ae9ef77f1100871bac5494bdebb3b85b0ff036140242e26a020a965d7be8143", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "5ae9ef77f1100871bac5494bdebb3b85b0ff036140242e26a020a965d7be8143", kill_on_drop: false }`
[INFO] [stdout] 5ae9ef77f1100871bac5494bdebb3b85b0ff036140242e26a020a965d7be8143
