[INFO] cloning repository https://github.com/zhangblue/rust_official_tutorial [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/zhangblue/rust_official_tutorial" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhangblue%2Frust_official_tutorial", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhangblue%2Frust_official_tutorial'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a39a58e10991bddae9b569c47fb5d8bd17e6569a [INFO] checking zhangblue/rust_official_tutorial against master#d49be02cf6d2e2a01264fcdef1e20c826710c0f5 for pr-133570-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fzhangblue%2Frust_official_tutorial" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/zhangblue/rust_official_tutorial on toolchain d49be02cf6d2e2a01264fcdef1e20c826710c0f5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d49be02cf6d2e2a01264fcdef1e20c826710c0f5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/zhangblue/rust_official_tutorial [INFO] finished tweaking git repo https://github.com/zhangblue/rust_official_tutorial [INFO] tweaked toml for git repo https://github.com/zhangblue/rust_official_tutorial written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/zhangblue/rust_official_tutorial 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" "+d49be02cf6d2e2a01264fcdef1e20c826710c0f5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+d49be02cf6d2e2a01264fcdef1e20c826710c0f5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cb6edf46d5a9f44e142b37517bfb03047dc6a912d467e29191ad48179a887219 [INFO] running `Command { std: "docker" "start" "-a" "cb6edf46d5a9f44e142b37517bfb03047dc6a912d467e29191ad48179a887219", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cb6edf46d5a9f44e142b37517bfb03047dc6a912d467e29191ad48179a887219", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cb6edf46d5a9f44e142b37517bfb03047dc6a912d467e29191ad48179a887219", kill_on_drop: false }` [INFO] [stdout] cb6edf46d5a9f44e142b37517bfb03047dc6a912d467e29191ad48179a887219 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+d49be02cf6d2e2a01264fcdef1e20c826710c0f5" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a2cd119f668497ac480a7a465e85dc0f7fb0821e4258ea51c839943f64d65c50 [INFO] running `Command { std: "docker" "start" "-a" "a2cd119f668497ac480a7a465e85dc0f7fb0821e4258ea51c839943f64d65c50", kill_on_drop: false }` [INFO] [stderr] Checking ch16 v0.1.0 (/opt/rustwide/workdir/ch16) [INFO] [stderr] Checking ch17 v0.1.0 (/opt/rustwide/workdir/ch17) [INFO] [stderr] Checking ch15 v0.1.0 (/opt/rustwide/workdir/ch15) [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> ch16/src/ch16_02_message_passing.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let handle = thread::spawn(move || { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `list` [INFO] [stdout] --> ch15/src/ch15_01_box.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let list = Cons(1, Box::new(Cons(2, Box::new(Cons(3, Box::new(Nil)))))); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_thread_use_spawn` is never used [INFO] [stdout] --> ch16/src/ch16_01_threads.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn create_thread_use_spawn() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `wait_thread_use_join` is never used [INFO] [stdout] --> ch16/src/ch16_01_threads.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn wait_thread_use_join() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `thead_ownership_movement` is never used [INFO] [stdout] --> ch16/src/ch16_01_threads.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn thead_ownership_movement() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_channel_and_send_single_value` is never used [INFO] [stdout] --> ch16/src/ch16_02_message_passing.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn create_channel_and_send_single_value() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_mutex_lock_in_single_thread` is never used [INFO] [stdout] --> ch16/src/ch16_03_shared_state.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | fn create_mutex_lock_in_single_thread() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyBox` is never constructed [INFO] [stdout] --> ch15/src/ch15_02_deref.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | struct MyBox(T); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> ch15/src/ch15_02_deref.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 22 | impl MyBox { [INFO] [stdout] | ---------------- associated function in this implementation [INFO] [stdout] 23 | fn new(x: T) -> MyBox { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `List` is never used [INFO] [stdout] --> ch15/src/ch15_04_rc.rs:11:6 [INFO] [stdout] | [INFO] [stdout] 11 | enum List { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> ch15/src/ch15_05_interior_mutability.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | Cons(Rc>, Rc), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 54 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `List` is never used [INFO] [stdout] --> ch15/src/ch15_06_reference_cycles.rs:9:6 [INFO] [stdout] | [INFO] [stdout] 9 | enum List { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `tail` is never used [INFO] [stdout] --> ch15/src/ch15_06_reference_cycles.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 14 | impl List { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 15 | /// 用于获取List中的第二个值 [INFO] [stdout] 16 | fn tail(&self) -> Option<&RefCell>> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Node` is never constructed [INFO] [stdout] --> ch15/src/ch15_06_reference_cycles.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | struct Node { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `handle` [INFO] [stdout] --> ch16/src/ch16_02_message_passing.rs:26:9 [INFO] [stdout] | [INFO] [stdout] 26 | let handle = thread::spawn(move || { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_handle` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Checking main v0.1.0 (/opt/rustwide/workdir/main) [INFO] [stdout] warning: unused variable: `list` [INFO] [stdout] --> ch15/src/ch15_01_box.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | let list = Cons(1, Box::new(Cons(2, Box::new(Cons(3, Box::new(Nil)))))); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_list` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> ch15/src/ch15_03_drop.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let c = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d` [INFO] [stdout] --> ch15/src/ch15_03_drop.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let d = CustomSmartPointer { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_d` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> ch15/src/ch15_04_rc.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let b = Cons(3, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> ch15/src/ch15_04_rc.rs:27:13 [INFO] [stdout] | [INFO] [stdout] 27 | let c = Cons(4, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> ch15/src/ch15_04_rc.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let b = Cons(3, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> ch15/src/ch15_04_rc.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | let c = Cons(4, Rc::clone(&a)); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ch16::ch16_02_message_passing` [INFO] [stdout] --> main/src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ch16::ch16_02_message_passing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ch16::ch16_02_message_passing` [INFO] [stdout] --> main/src/main.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ch16::ch16_02_message_passing; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> ch15/src/ch15_04_rc.rs:12:10 [INFO] [stdout] | [INFO] [stdout] 12 | Cons(i32, Rc), [INFO] [stdout] | ---- ^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 12 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `0` and `1` are never read [INFO] [stdout] --> ch15/src/ch15_05_interior_mutability.rs:54:10 [INFO] [stdout] | [INFO] [stdout] 54 | Cons(Rc>, Rc), [INFO] [stdout] | ---- ^^^^^^^^^^^^^^^^ ^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields [INFO] [stdout] | [INFO] [stdout] 54 | Cons((), ()), [INFO] [stdout] | ~~ ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> ch15/src/ch15_06_reference_cycles.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 10 | Cons(i32, RefCell>), [INFO] [stdout] | ---- ^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `List` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 10 | Cons((), RefCell>), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `value` and `children` are never read [INFO] [stdout] --> ch15/src/ch15_06_reference_cycles.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 28 | struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 29 | value: i32, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 32 | children: RefCell>>, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Node` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.32s [INFO] running `Command { std: "docker" "inspect" "a2cd119f668497ac480a7a465e85dc0f7fb0821e4258ea51c839943f64d65c50", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a2cd119f668497ac480a7a465e85dc0f7fb0821e4258ea51c839943f64d65c50", kill_on_drop: false }` [INFO] [stdout] a2cd119f668497ac480a7a465e85dc0f7fb0821e4258ea51c839943f64d65c50