[INFO] cloning repository https://github.com/flowerlake/rust_learning [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/flowerlake/rust_learning" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fflowerlake%2Frust_learning", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fflowerlake%2Frust_learning'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 661cfd45417194e68337491e84612e10a276192c [INFO] checking flowerlake/rust_learning against try#099af82bc034c1e4895c90e5407fafdd61976cdb for pr-145457 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fflowerlake%2Frust_learning" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/flowerlake/rust_learning [INFO] finished tweaking git repo https://github.com/flowerlake/rust_learning [INFO] tweaked toml for git repo https://github.com/flowerlake/rust_learning written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/flowerlake/rust_learning on toolchain 099af82bc034c1e4895c90e5407fafdd61976cdb [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+099af82bc034c1e4895c90e5407fafdd61976cdb" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/flowerlake/rust_learning 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" "+099af82bc034c1e4895c90e5407fafdd61976cdb" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+099af82bc034c1e4895c90e5407fafdd61976cdb" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6452382685fac7626db8749da92550e91bc6b4ecc503eb18ccfa87b7806cf6d8 [INFO] running `Command { std: "docker" "start" "-a" "6452382685fac7626db8749da92550e91bc6b4ecc503eb18ccfa87b7806cf6d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6452382685fac7626db8749da92550e91bc6b4ecc503eb18ccfa87b7806cf6d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6452382685fac7626db8749da92550e91bc6b4ecc503eb18ccfa87b7806cf6d8", kill_on_drop: false }` [INFO] [stdout] 6452382685fac7626db8749da92550e91bc6b4ecc503eb18ccfa87b7806cf6d8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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=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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+099af82bc034c1e4895c90e5407fafdd61976cdb" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 3e98c30b61df0f9063cbb14be7b67d1b615f9653a0720b15881a917d26af7b6a [INFO] running `Command { std: "docker" "start" "-a" "3e98c30b61df0f9063cbb14be7b67d1b615f9653a0720b15881a917d26af7b6a", kill_on_drop: false }` [INFO] [stderr] Checking rust_learning v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: struct `SGen` is never constructed [INFO] [stdout] --> src/generic_test.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct SGen { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Generic` is never constructed [INFO] [stdout] --> src/generic_test.rs:5:8 [INFO] [stdout] | [INFO] [stdout] 5 | struct Generic { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get` is never used [INFO] [stdout] --> src/generic_test.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 9 | impl SGen { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 10 | pub fn get(&self) -> &u32 { &self.val } [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get` is never used [INFO] [stdout] --> src/generic_test.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 13 | impl Generic { [INFO] [stdout] | ------------------ method in this implementation [INFO] [stdout] 14 | pub fn get(&self) -> &T { &self.val } [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rary` [INFO] [stdout] --> src/main.rs:175:14 [INFO] [stdout] | [INFO] [stdout] 175 | let res= rary::add(1, 3); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rary` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rary`, use `cargo add rary` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rary2` [INFO] [stdout] --> src/main.rs:177:5 [INFO] [stdout] | [INFO] [stdout] 177 | rary2::indirect_access(); [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `rary2` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/rary2.rs, use `mod rary2` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod rary2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rary` [INFO] [stdout] --> src/main.rs:175:14 [INFO] [stdout] | [INFO] [stdout] 175 | let res= rary::add(1, 3); [INFO] [stdout] | ^^^^ use of unresolved module or unlinked crate `rary` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `rary`, use `cargo add rary` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `rary2` [INFO] [stdout] --> src/main.rs:177:5 [INFO] [stdout] | [INFO] [stdout] 177 | rary2::indirect_access(); [INFO] [stdout] | ^^^^^ use of unresolved module or unlinked crate `rary2` [INFO] [stdout] | [INFO] [stdout] help: to make use of source file src/rary2.rs, use `mod rary2` in this file to declare the module [INFO] [stdout] | [INFO] [stdout] 2 + mod rary2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:116:48 [INFO] [stdout] | [INFO] [stdout] 116 | Color::RGB2(Some(n@ 13..= 20), y, z)=>println!("Option bind {}", n), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:116:48 [INFO] [stdout] | [INFO] [stdout] 116 | Color::RGB2(Some(n@ 13..= 20), y, z)=>println!("Option bind {}", n), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/main.rs:116:51 [INFO] [stdout] | [INFO] [stdout] 116 | Color::RGB2(Some(n@ 13..= 20), y, z)=>println!("Option bind {}", n), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:117:38 [INFO] [stdout] | [INFO] [stdout] 117 | Color::RGB2(Some(n), y, z)=>println!("Option bind2 {}", n), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/main.rs:116:51 [INFO] [stdout] | [INFO] [stdout] 116 | Color::RGB2(Some(n@ 13..= 20), y, z)=>println!("Option bind {}", n), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/main.rs:117:41 [INFO] [stdout] | [INFO] [stdout] 117 | Color::RGB2(Some(n), y, z)=>println!("Option bind2 {}", n), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> src/main.rs:117:38 [INFO] [stdout] | [INFO] [stdout] 117 | Color::RGB2(Some(n), y, z)=>println!("Option bind2 {}", n), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `z` [INFO] [stdout] --> src/main.rs:117:41 [INFO] [stdout] | [INFO] [stdout] 117 | Color::RGB2(Some(n), y, z)=>println!("Option bind2 {}", n), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binary` [INFO] [stdout] --> src/main.rs:136:13 [INFO] [stdout] | [INFO] [stdout] 136 | let binary = match boolean { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `binary` [INFO] [stdout] --> src/main.rs:136:13 [INFO] [stdout] | [INFO] [stdout] 136 | let binary = match boolean { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_binary` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_var` [INFO] [stdout] --> src/main.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | let some_var = Color::RGB(1, 2, 3); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_var` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `some_var` [INFO] [stdout] --> src/main.rs:145:13 [INFO] [stdout] | [INFO] [stdout] 145 | let some_var = Color::RGB(1, 2, 3); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_some_var` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_learning` (bin "rust_learning") due to 2 previous errors; 6 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust_learning` (bin "rust_learning" test) due to 2 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "3e98c30b61df0f9063cbb14be7b67d1b615f9653a0720b15881a917d26af7b6a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3e98c30b61df0f9063cbb14be7b67d1b615f9653a0720b15881a917d26af7b6a", kill_on_drop: false }` [INFO] [stdout] 3e98c30b61df0f9063cbb14be7b67d1b615f9653a0720b15881a917d26af7b6a