[INFO] cloning repository https://github.com/spigelli/rust-practice [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/spigelli/rust-practice" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fspigelli%2Frust-practice", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fspigelli%2Frust-practice'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 49408b1bd04b75e6b58dbf43a6a36fb210665bd4 [INFO] building spigelli/rust-practice 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%2Fspigelli%2Frust-practice" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/spigelli/rust-practice 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/spigelli/rust-practice [INFO] finished tweaking git repo https://github.com/spigelli/rust-practice [INFO] tweaked toml for git repo https://github.com/spigelli/rust-practice written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/spigelli/rust-practice 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] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded libc v0.2.139 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 6ff8b232b49a13a1feb17cd6cc0a2543aeeb5b5ce1c09e512b340f23e3472c46 [INFO] running `Command { std: "docker" "start" "-a" "6ff8b232b49a13a1feb17cd6cc0a2543aeeb5b5ce1c09e512b340f23e3472c46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6ff8b232b49a13a1feb17cd6cc0a2543aeeb5b5ce1c09e512b340f23e3472c46", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6ff8b232b49a13a1feb17cd6cc0a2543aeeb5b5ce1c09e512b340f23e3472c46", kill_on_drop: false }` [INFO] [stdout] 6ff8b232b49a13a1feb17cd6cc0a2543aeeb5b5ce1c09e512b340f23e3472c46 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 484591591d4f16ac61504b2c0cea358e7081ebed19295ad8d2214fae46518944 [INFO] running `Command { std: "docker" "start" "-a" "484591591d4f16ac61504b2c0cea358e7081ebed19295ad8d2214fae46518944", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling ppv-lite86 v0.2.17 [INFO] [stderr] Compiling slice_type v0.1.0 (/opt/rustwide/workdir/slice_type) [INFO] [stderr] Compiling collections v0.1.0 (/opt/rustwide/workdir/collections) [INFO] [stderr] Compiling control_flow v0.1.0 (/opt/rustwide/workdir/control_flow) [INFO] [stderr] Compiling modules v0.1.0 (/opt/rustwide/workdir/modules) [INFO] [stderr] Compiling data_types v0.1.0 (/opt/rustwide/workdir/data_types) [INFO] [stderr] Compiling iflet v0.1.0 (/opt/rustwide/workdir/iflet) [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> slice_type/src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let hello = &s[0..5]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> slice_type/src/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let world = &s[6..11]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first_word` is never used [INFO] [stdout] --> slice_type/src/main.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn first_word(s: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `slice` is never used [INFO] [stdout] --> slice_type/src/main.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn slice() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `count` is never read [INFO] [stdout] --> iflet/src/main.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 38 | _ => count += 1, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `configmax` is never used [INFO] [stdout] --> iflet/src/main.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn configmax() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `UsState` is never used [INFO] [stdout] --> iflet/src/main.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | enum UsState { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Coin` is never used [INFO] [stdout] --> iflet/src/main.rs:25:6 [INFO] [stdout] | [INFO] [stdout] 25 | enum Coin { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> modules/src/main.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let c: Asparagus = String::from(" [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `coin` is never used [INFO] [stdout] --> iflet/src/main.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn coin() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling option_enum_practice v0.1.0 (/opt/rustwide/workdir/option_enum_practice) [INFO] [stderr] Compiling ownership v0.1.0 (/opt/rustwide/workdir/ownership) [INFO] [stderr] Compiling enum_match v0.1.0 (/opt/rustwide/workdir/enum_match) [INFO] [stderr] Compiling enums v0.1.0 (/opt/rustwide/workdir/enums) [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> ownership/src/main.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let y = x; [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: `s2` [INFO] [stdout] --> ownership/src/main.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let s2 = s1; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> ownership/src/main.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let s2 = s1.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ownership_rules` is never used [INFO] [stdout] --> ownership/src/main.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn ownership_rules() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `variable_scope` is never used [INFO] [stdout] --> ownership/src/main.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn variable_scope() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string_type` is never used [INFO] [stdout] --> ownership/src/main.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn string_type() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `data_move` is never used [INFO] [stdout] --> ownership/src/main.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn data_move() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `consume_example` is never used [INFO] [stdout] --> ownership/src/main.rs:93:4 [INFO] [stdout] | [INFO] [stdout] 93 | fn consume_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_and_give_back` is never used [INFO] [stdout] --> ownership/src/main.rs:104:4 [INFO] [stdout] | [INFO] [stdout] 104 | fn take_and_give_back() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `four` [INFO] [stdout] --> enums/src/main.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let four = IpAddressKind::V4; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_four` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `UsState` is never used [INFO] [stdout] --> enum_match/src/main.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum UsState { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> enums/src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let six = IpAddressKind::V6; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `myIp` [INFO] [stdout] --> enums/src/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let myIp = IpAddress { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_myIp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `address` are never read [INFO] [stdout] --> enums/src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 20 | struct IpAddress{ [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 21 | kind: IpAddressKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Warning` is never constructed [INFO] [stdout] --> enums/src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 25 | enum Log { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] 26 | Info, [INFO] [stdout] 27 | Warning, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `myIp` should have a snake case name [INFO] [stdout] --> enums/src/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let myIp = IpAddress { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `my_ip` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Coin` is never used [INFO] [stdout] --> enum_match/src/main.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 13 | enum Coin { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value_in_cents` is never used [INFO] [stdout] --> enum_match/src/main.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl Coin { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 21 | fn value_in_cents(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `die` is never used [INFO] [stdout] --> enum_match/src/main.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn die() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling compound_types v0.1.0 (/opt/rustwide/workdir/compound_types) [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> compound_types/src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let a = [1, 2, 3, 4, 5]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling references_and_borrowing v0.1.0 (/opt/rustwide/workdir/references_and_borrowing) [INFO] [stderr] Compiling hello_cargo v0.1.0 (/opt/rustwide/workdir/hello_cargo) [INFO] [stderr] Compiling variables_and_mutability v0.1.0 (/opt/rustwide/workdir/variables_and_mutability) [INFO] [stderr] Compiling structs v0.1.0 (/opt/rustwide/workdir/structs) [INFO] [stdout] warning: function `referenceString` is never used [INFO] [stdout] --> references_and_borrowing/src/main.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn referenceString() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_length` is never used [INFO] [stdout] --> references_and_borrowing/src/main.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn calculate_length(s: &String) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mutableReference` is never used [INFO] [stdout] --> references_and_borrowing/src/main.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn mutableReference() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `referenceString` should have a snake case name [INFO] [stdout] --> references_and_borrowing/src/main.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn referenceString() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `reference_string` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mutableReference` should have a snake case name [INFO] [stdout] --> references_and_borrowing/src/main.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn mutableReference() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `mutable_reference` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling functions v0.1.0 (/opt/rustwide/workdir/functions) [INFO] [stdout] warning: unused variable: `black` [INFO] [stdout] --> structs/src/main.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let black = RGB(0, 0, 0); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_black` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `white` [INFO] [stdout] --> structs/src/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let white = RGB(255, 255, 255); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_white` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RGB` is never constructed [INFO] [stdout] --> structs/src/main.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | struct RGB(u8, u8, u8); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tuple_struct` is never used [INFO] [stdout] --> structs/src/main.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn tuple_struct() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling getrandom v0.2.8 [INFO] [stderr] Compiling rand_core v0.6.4 [INFO] [stderr] Compiling rand_chacha v0.3.1 [INFO] [stderr] Compiling rand v0.8.5 [INFO] [stderr] Compiling guessing_game v0.1.0 (/opt/rustwide/workdir/guessing_game) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.59s [INFO] running `Command { std: "docker" "inspect" "484591591d4f16ac61504b2c0cea358e7081ebed19295ad8d2214fae46518944", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "484591591d4f16ac61504b2c0cea358e7081ebed19295ad8d2214fae46518944", kill_on_drop: false }` [INFO] [stdout] 484591591d4f16ac61504b2c0cea358e7081ebed19295ad8d2214fae46518944 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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] 3a231adc25b910e1947a479d6caf0608712405197a63993c8d51e7b9d7723413 [INFO] running `Command { std: "docker" "start" "-a" "3a231adc25b910e1947a479d6caf0608712405197a63993c8d51e7b9d7723413", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling modules v0.1.0 (/opt/rustwide/workdir/modules) [INFO] [stderr] Compiling collections v0.1.0 (/opt/rustwide/workdir/collections) [INFO] [stderr] Compiling enum_match v0.1.0 (/opt/rustwide/workdir/enum_match) [INFO] [stderr] Compiling enums v0.1.0 (/opt/rustwide/workdir/enums) [INFO] [stderr] Compiling structs v0.1.0 (/opt/rustwide/workdir/structs) [INFO] [stderr] Compiling slice_type v0.1.0 (/opt/rustwide/workdir/slice_type) [INFO] [stderr] Compiling data_types v0.1.0 (/opt/rustwide/workdir/data_types) [INFO] [stderr] Compiling guessing_game v0.1.0 (/opt/rustwide/workdir/guessing_game) [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> modules/src/main.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 7 | let c: Asparagus = String::from(" [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `four` [INFO] [stdout] --> enums/src/main.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let four = IpAddressKind::V4; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_four` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `six` [INFO] [stdout] --> enums/src/main.rs:4:9 [INFO] [stdout] | [INFO] [stdout] 4 | let six = IpAddressKind::V6; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_six` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `myIp` [INFO] [stdout] --> enums/src/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let myIp = IpAddress { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_myIp` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `kind` and `address` are never read [INFO] [stdout] --> enums/src/main.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 20 | struct IpAddress{ [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 21 | kind: IpAddressKind, [INFO] [stdout] | ^^^^ [INFO] [stdout] 22 | address: String, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `black` [INFO] [stdout] --> structs/src/main.rs:66:9 [INFO] [stdout] | [INFO] [stdout] 66 | let black = RGB(0, 0, 0); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_black` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `white` [INFO] [stdout] --> structs/src/main.rs:67:9 [INFO] [stdout] | [INFO] [stdout] 67 | let white = RGB(255, 255, 255); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_white` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Warning` is never constructed [INFO] [stdout] --> enums/src/main.rs:27:5 [INFO] [stdout] | [INFO] [stdout] 25 | enum Log { [INFO] [stdout] | --- variant in this enum [INFO] [stdout] 26 | Info, [INFO] [stdout] 27 | Warning, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable `myIp` should have a snake case name [INFO] [stdout] --> enums/src/main.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let myIp = IpAddress { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `my_ip` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RGB` is never constructed [INFO] [stdout] --> structs/src/main.rs:64:8 [INFO] [stdout] | [INFO] [stdout] 64 | struct RGB(u8, u8, u8); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `tuple_struct` is never used [INFO] [stdout] --> structs/src/main.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn tuple_struct() { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `UsState` is never used [INFO] [stdout] --> enum_match/src/main.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 6 | enum UsState { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Coin` is never used [INFO] [stdout] --> enum_match/src/main.rs:13:6 [INFO] [stdout] | [INFO] [stdout] 13 | enum Coin { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value_in_cents` is never used [INFO] [stdout] --> enum_match/src/main.rs:21:8 [INFO] [stdout] | [INFO] [stdout] 20 | impl Coin { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 21 | fn value_in_cents(&self) -> u8 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `die` is never used [INFO] [stdout] --> enum_match/src/main.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn die() { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `hello` [INFO] [stdout] --> slice_type/src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let hello = &s[0..5]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_hello` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `world` [INFO] [stdout] --> slice_type/src/main.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let world = &s[6..11]; [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_world` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `first_word` is never used [INFO] [stdout] --> slice_type/src/main.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn first_word(s: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `slice` is never used [INFO] [stdout] --> slice_type/src/main.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn slice() { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling variables_and_mutability v0.1.0 (/opt/rustwide/workdir/variables_and_mutability) [INFO] [stderr] Compiling option_enum_practice v0.1.0 (/opt/rustwide/workdir/option_enum_practice) [INFO] [stderr] Compiling control_flow v0.1.0 (/opt/rustwide/workdir/control_flow) [INFO] [stderr] Compiling functions v0.1.0 (/opt/rustwide/workdir/functions) [INFO] [stderr] Compiling hello_cargo v0.1.0 (/opt/rustwide/workdir/hello_cargo) [INFO] [stderr] Compiling references_and_borrowing v0.1.0 (/opt/rustwide/workdir/references_and_borrowing) [INFO] [stderr] Compiling compound_types v0.1.0 (/opt/rustwide/workdir/compound_types) [INFO] [stderr] Compiling ownership v0.1.0 (/opt/rustwide/workdir/ownership) [INFO] [stdout] warning: function `referenceString` is never used [INFO] [stdout] --> references_and_borrowing/src/main.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn referenceString() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_length` is never used [INFO] [stdout] --> references_and_borrowing/src/main.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn calculate_length(s: &String) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mutableReference` is never used [INFO] [stdout] --> references_and_borrowing/src/main.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn mutableReference() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `referenceString` should have a snake case name [INFO] [stdout] --> references_and_borrowing/src/main.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn referenceString() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `reference_string` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `mutableReference` should have a snake case name [INFO] [stdout] --> references_and_borrowing/src/main.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn mutableReference() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `mutable_reference` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> compound_types/src/main.rs:19:9 [INFO] [stdout] | [INFO] [stdout] 19 | let a = [1, 2, 3, 4, 5]; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `y` [INFO] [stdout] --> ownership/src/main.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 34 | let y = x; [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: `s2` [INFO] [stdout] --> ownership/src/main.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let s2 = s1; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s2` [INFO] [stdout] --> ownership/src/main.rs:70:13 [INFO] [stdout] | [INFO] [stdout] 70 | let s2 = s1.clone(); [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ownership_rules` is never used [INFO] [stdout] --> ownership/src/main.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn ownership_rules() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `variable_scope` is never used [INFO] [stdout] --> ownership/src/main.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn variable_scope() { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string_type` is never used [INFO] [stdout] --> ownership/src/main.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn string_type() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `data_move` is never used [INFO] [stdout] --> ownership/src/main.rs:31:4 [INFO] [stdout] | [INFO] [stdout] 31 | fn data_move() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `consume_example` is never used [INFO] [stdout] --> ownership/src/main.rs:93:4 [INFO] [stdout] | [INFO] [stdout] 93 | fn consume_example() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `take_and_give_back` is never used [INFO] [stdout] --> ownership/src/main.rs:104:4 [INFO] [stdout] | [INFO] [stdout] 104 | fn take_and_give_back() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling iflet v0.1.0 (/opt/rustwide/workdir/iflet) [INFO] [stdout] warning: value assigned to `count` is never read [INFO] [stdout] --> iflet/src/main.rs:38:14 [INFO] [stdout] | [INFO] [stdout] 38 | _ => count += 1, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `configmax` is never used [INFO] [stdout] --> iflet/src/main.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn configmax() { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `UsState` is never used [INFO] [stdout] --> iflet/src/main.rs:19:6 [INFO] [stdout] | [INFO] [stdout] 19 | enum UsState { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Coin` is never used [INFO] [stdout] --> iflet/src/main.rs:25:6 [INFO] [stdout] | [INFO] [stdout] 25 | enum Coin { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `coin` is never used [INFO] [stdout] --> iflet/src/main.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn coin() { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.45s [INFO] running `Command { std: "docker" "inspect" "3a231adc25b910e1947a479d6caf0608712405197a63993c8d51e7b9d7723413", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3a231adc25b910e1947a479d6caf0608712405197a63993c8d51e7b9d7723413", kill_on_drop: false }` [INFO] [stdout] 3a231adc25b910e1947a479d6caf0608712405197a63993c8d51e7b9d7723413