[INFO] cloning repository https://github.com/suhanyujie/rust-cookbook-note [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/suhanyujie/rust-cookbook-note" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuhanyujie%2Frust-cookbook-note", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuhanyujie%2Frust-cookbook-note'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 66acbfcbeae3d5f99905786b9c84192c43e47560 [INFO] building suhanyujie/rust-cookbook-note against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsuhanyujie%2Frust-cookbook-note" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/suhanyujie/rust-cookbook-note on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/suhanyujie/rust-cookbook-note [INFO] finished tweaking git repo https://github.com/suhanyujie/rust-cookbook-note [INFO] tweaked toml for git repo https://github.com/suhanyujie/rust-cookbook-note written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/suhanyujie/rust-cookbook-note 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 6c1c6b059bc87a3ca3ac4faa91f6c037a9ebb92bfb7c098f6c1a2c1917005fc9 [INFO] running `Command { std: "docker" "start" "-a" "6c1c6b059bc87a3ca3ac4faa91f6c037a9ebb92bfb7c098f6c1a2c1917005fc9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6c1c6b059bc87a3ca3ac4faa91f6c037a9ebb92bfb7c098f6c1a2c1917005fc9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c1c6b059bc87a3ca3ac4faa91f6c037a9ebb92bfb7c098f6c1a2c1917005fc9", kill_on_drop: false }` [INFO] [stdout] 6c1c6b059bc87a3ca3ac4faa91f6c037a9ebb92bfb7c098f6c1a2c1917005fc9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Dtail-expr-drop-order" "-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 07e1dbad42ce24dabf7ffe9deab5bd4612a137130e2ef31d60be82c948d3d653 [INFO] running `Command { std: "docker" "start" "-a" "07e1dbad42ce24dabf7ffe9deab5bd4612a137130e2ef31d60be82c948d3d653", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.125 [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling ppv-lite86 v0.2.6 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling unicode-width v0.1.7 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling ansi_term v0.12.1 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling c2-chacha v0.2.3 [INFO] [stderr] Compiling time v0.1.43 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling clap v2.33.0 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling rand_chacha v0.2.1 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling chrono v0.4.13 [INFO] [stderr] Compiling cookbook v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/notes/alpha.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/notes/copy_trait.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Div`, `Mul`, and `Sub` [INFO] [stdout] --> src/notes/op_rhs.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::{Add, Div, Mul, Sub}; [INFO] [stdout] | ^^^ ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `notes::alpha` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use notes::alpha; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/notes/alpha.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(dyn_trait)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 20 | process::exit(-1); [INFO] [stdout] | ----------------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 24 | command::try_with_test_param(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/algorithm.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `status` [INFO] [stdout] --> src/command.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | status, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `status: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stderr` [INFO] [stdout] --> src/command.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | stderr, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `stderr: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p_duck` [INFO] [stdout] --> src/notes/alpha.rs:24:22 [INFO] [stdout] | [INFO] [stdout] 24 | fn print_traitobject(p_duck: &dyn Bird) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_p_duck` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d3` [INFO] [stdout] --> src/notes/alpha.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let d3 = d2 as &dyn Bird; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_d3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v2` [INFO] [stdout] --> src/notes/copy_trait.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let v2 = v1; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/notes/process_data_competition.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | for i in 0..COUNT { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/notes/process_data_competition.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | for i in 0..COUNT { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/notes/process_data_competition.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 63 | MyData(data1) => { [INFO] [stdout] | ------------- matches any value [INFO] [stdout] ... [INFO] [stdout] 83 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/notes/process_data_competition.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | for i in 0..COUNT { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/notes/process_data_competition.rs:74:21 [INFO] [stdout] | [INFO] [stdout] 74 | for i in 0..COUNT { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gen_a_u8_num` is never used [INFO] [stdout] --> src/algorithm.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn gen_a_u8_num() -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gen_a_i32_num` is never used [INFO] [stdout] --> src/algorithm.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn gen_a_i32_num() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gen_random_within_range` is never used [INFO] [stdout] --> src/algorithm.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn gen_random_within_range(min: isize, max: isize) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/algorithm.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 70 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 71 | x: i32, [INFO] [stdout] | ^ [INFO] [stdout] 72 | y: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_random_string` is never used [INFO] [stdout] --> src/algorithm.rs:92:8 [INFO] [stdout] | [INFO] [stdout] 92 | pub fn get_random_string(length: u8) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_random_string_from_customer_str` is never used [INFO] [stdout] --> src/algorithm.rs:111:8 [INFO] [stdout] | [INFO] [stdout] 111 | pub fn get_random_string_from_customer_str(length: u8) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Bird` is never used [INFO] [stdout] --> src/notes/alpha.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | trait Bird { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Duck` is never constructed [INFO] [stdout] --> src/notes/alpha.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Duck; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Swan` is never constructed [INFO] [stdout] --> src/notes/alpha.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Swan; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_traitobject` is never used [INFO] [stdout] --> src/notes/alpha.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn print_traitobject(p_duck: &dyn Bird) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/notes/alpha.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x_value` and `y_value` are never read [INFO] [stdout] --> src/notes/copy_trait.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 11 | x_value: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 12 | y_value: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyData0` is never constructed [INFO] [stdout] --> src/notes/process_data_competition.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct MyData0(Rc); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/notes/process_data_competition.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl MyData0 { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 18 | pub fn new(num: isize) -> MyData0 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/notes/process_data_competition.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct MyData(Arc>); [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `MyData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_resolve_competition` is never used [INFO] [stdout] --> src/notes/process_data_competition.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn test_resolve_competition() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `simple_bubble` is never used [INFO] [stdout] --> src/notes/sort.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn simple_bubble(arr: &mut Vec) -> &Vec { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `insert` is never used [INFO] [stdout] --> src/notes/sort.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn insert(arr: &mut Vec) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shell_sort` is never used [INFO] [stdout] --> src/notes/sort.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn shell_sort(arr: &Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_shell_addition_rate` is never used [INFO] [stdout] --> src/notes/sort.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_shell_addition_rate(l: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `one_file_func` is never used [INFO] [stdout] --> src/notes/test_module/one_file.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn one_file_func() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Human` is never used [INFO] [stdout] --> src/notes/test_module/one_file.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | trait Human { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `name`, and `age` are never read [INFO] [stdout] --> src/notes/test_module/one_file.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Stu { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 13 | id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 14 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | age: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stu` 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 4.89s [INFO] running `Command { std: "docker" "inspect" "07e1dbad42ce24dabf7ffe9deab5bd4612a137130e2ef31d60be82c948d3d653", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "07e1dbad42ce24dabf7ffe9deab5bd4612a137130e2ef31d60be82c948d3d653", kill_on_drop: false }` [INFO] [stdout] 07e1dbad42ce24dabf7ffe9deab5bd4612a137130e2ef31d60be82c948d3d653 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Dtail-expr-drop-order" "-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0850d7edf93ee369e12ab2aeba72d4ad2eafec5c6668d86157e60810c66f005f [INFO] running `Command { std: "docker" "start" "-a" "0850d7edf93ee369e12ab2aeba72d4ad2eafec5c6668d86157e60810c66f005f", kill_on_drop: false }` [INFO] [stderr] Compiling cookbook v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused `#[macro_use]` import [INFO] [stdout] --> src/main.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[macro_use] [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::mem` [INFO] [stdout] --> src/notes/alpha.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::mem; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::Ordering` [INFO] [stdout] --> src/notes/copy_trait.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::Ordering; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Div`, `Mul`, and `Sub` [INFO] [stdout] --> src/notes/op_rhs.rs:1:21 [INFO] [stdout] | [INFO] [stdout] 1 | use std::ops::{Add, Div, Mul, Sub}; [INFO] [stdout] | ^^^ ^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `notes::alpha` [INFO] [stdout] --> src/main.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use notes::alpha; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> src/notes/alpha.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(dyn_trait)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/main.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 20 | process::exit(-1); [INFO] [stdout] | ----------------- any code following this expression is unreachable [INFO] [stdout] ... [INFO] [stdout] 24 | command::try_with_test_param(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/algorithm.rs:93:9 [INFO] [stdout] | [INFO] [stdout] 93 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `status` [INFO] [stdout] --> src/command.rs:47:13 [INFO] [stdout] | [INFO] [stdout] 47 | status, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `status: _` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `stderr` [INFO] [stdout] --> src/command.rs:49:13 [INFO] [stdout] | [INFO] [stdout] 49 | stderr, [INFO] [stdout] | ^^^^^^ help: try ignoring the field: `stderr: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p_duck` [INFO] [stdout] --> src/notes/alpha.rs:24:22 [INFO] [stdout] | [INFO] [stdout] 24 | fn print_traitobject(p_duck: &dyn Bird) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_p_duck` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `d3` [INFO] [stdout] --> src/notes/alpha.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | let d3 = d2 as &dyn Bird; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_d3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `v2` [INFO] [stdout] --> src/notes/copy_trait.rs:20:9 [INFO] [stdout] | [INFO] [stdout] 20 | let v2 = v1; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_v2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/notes/process_data_competition.rs:42:13 [INFO] [stdout] | [INFO] [stdout] 42 | for i in 0..COUNT { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/notes/process_data_competition.rs:50:13 [INFO] [stdout] | [INFO] [stdout] 50 | for i in 0..COUNT { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/notes/process_data_competition.rs:83:9 [INFO] [stdout] | [INFO] [stdout] 63 | MyData(data1) => { [INFO] [stdout] | ------------- matches any value [INFO] [stdout] ... [INFO] [stdout] 83 | _ => { [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/notes/process_data_competition.rs:66:21 [INFO] [stdout] | [INFO] [stdout] 66 | for i in 0..COUNT { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/notes/process_data_competition.rs:74:21 [INFO] [stdout] | [INFO] [stdout] 74 | for i in 0..COUNT { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gen_a_u8_num` is never used [INFO] [stdout] --> src/algorithm.rs:36:8 [INFO] [stdout] | [INFO] [stdout] 36 | pub fn gen_a_u8_num() -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gen_a_i32_num` is never used [INFO] [stdout] --> src/algorithm.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn gen_a_i32_num() -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gen_random_within_range` is never used [INFO] [stdout] --> src/algorithm.rs:53:8 [INFO] [stdout] | [INFO] [stdout] 53 | pub fn gen_random_within_range(min: isize, max: isize) -> isize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x` and `y` are never read [INFO] [stdout] --> src/algorithm.rs:71:5 [INFO] [stdout] | [INFO] [stdout] 70 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 71 | x: i32, [INFO] [stdout] | ^ [INFO] [stdout] 72 | y: i32, [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Bird` is never used [INFO] [stdout] --> src/notes/alpha.rs:5:7 [INFO] [stdout] | [INFO] [stdout] 5 | trait Bird { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Duck` is never constructed [INFO] [stdout] --> src/notes/alpha.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Duck; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Swan` is never constructed [INFO] [stdout] --> src/notes/alpha.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct Swan; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print_traitobject` is never used [INFO] [stdout] --> src/notes/alpha.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn print_traitobject(p_duck: &dyn Bird) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `run` is never used [INFO] [stdout] --> src/notes/alpha.rs:29:8 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn run() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `x_value` and `y_value` are never read [INFO] [stdout] --> src/notes/copy_trait.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 10 | struct Point { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 11 | x_value: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 12 | y_value: i32, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Point` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `MyData0` is never constructed [INFO] [stdout] --> src/notes/process_data_competition.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | struct MyData0(Rc); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/notes/process_data_competition.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 17 | impl MyData0 { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 18 | pub fn new(num: isize) -> MyData0 { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/notes/process_data_competition.rs:24:19 [INFO] [stdout] | [INFO] [stdout] 24 | pub struct MyData(Arc>); [INFO] [stdout] | ------ ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this struct [INFO] [stdout] | [INFO] [stdout] = help: consider removing this field [INFO] [stdout] = note: `MyData` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_resolve_competition` is never used [INFO] [stdout] --> src/notes/process_data_competition.rs:61:8 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn test_resolve_competition() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shell_sort` is never used [INFO] [stdout] --> src/notes/sort.rs:40:8 [INFO] [stdout] | [INFO] [stdout] 40 | pub fn shell_sort(arr: &Vec) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_shell_addition_rate` is never used [INFO] [stdout] --> src/notes/sort.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn get_shell_addition_rate(l: usize) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `one_file_func` is never used [INFO] [stdout] --> src/notes/test_module/one_file.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | pub fn one_file_func() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `Human` is never used [INFO] [stdout] --> src/notes/test_module/one_file.rs:6:7 [INFO] [stdout] | [INFO] [stdout] 6 | trait Human { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `name`, and `age` are never read [INFO] [stdout] --> src/notes/test_module/one_file.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 12 | pub struct Stu { [INFO] [stdout] | --- fields in this struct [INFO] [stdout] 13 | id: i32, [INFO] [stdout] | ^^ [INFO] [stdout] 14 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 15 | age: u8, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Stu` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.80s [INFO] running `Command { std: "docker" "inspect" "0850d7edf93ee369e12ab2aeba72d4ad2eafec5c6668d86157e60810c66f005f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0850d7edf93ee369e12ab2aeba72d4ad2eafec5c6668d86157e60810c66f005f", kill_on_drop: false }` [INFO] [stdout] 0850d7edf93ee369e12ab2aeba72d4ad2eafec5c6668d86157e60810c66f005f