[INFO] cloning repository https://github.com/rylynchen/rust-example [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/rylynchen/rust-example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frylynchen%2Frust-example", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frylynchen%2Frust-example'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a25facbe2ad273e24f98cd9c66aa8af705995996 [INFO] building rylynchen/rust-example against try#615edd3ad1cf6871c977dc900317cb6c2070fd6b for pr-97334 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Frylynchen%2Frust-example" "/workspace/builds/worker-16/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-16/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/rylynchen/rust-example on toolchain 615edd3ad1cf6871c977dc900317cb6c2070fd6b [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/rylynchen/rust-example [INFO] finished tweaking git repo https://github.com/rylynchen/rust-example [INFO] tweaked toml for git repo https://github.com/rylynchen/rust-example written to /workspace/builds/worker-16/source/Cargo.toml [INFO] crate git repo https://github.com/rylynchen/rust-example already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d0a01614ce1b490a8b15ccf7f992a95a7abda21d625990f6a73a9ef4137db3ca [INFO] running `Command { std: "docker" "start" "-a" "d0a01614ce1b490a8b15ccf7f992a95a7abda21d625990f6a73a9ef4137db3ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d0a01614ce1b490a8b15ccf7f992a95a7abda21d625990f6a73a9ef4137db3ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d0a01614ce1b490a8b15ccf7f992a95a7abda21d625990f6a73a9ef4137db3ca", kill_on_drop: false }` [INFO] [stdout] d0a01614ce1b490a8b15ccf7f992a95a7abda21d625990f6a73a9ef4137db3ca [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/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" "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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 579a3398d2c4c40458a4bd8dc3591287352f05d23b6cd7da6cf777a868025758 [INFO] running `Command { std: "docker" "start" "-a" "579a3398d2c4c40458a4bd8dc3591287352f05d23b6cd7da6cf777a868025758", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.21 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling syn v1.0.41 [INFO] [stderr] Compiling libc v0.2.77 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Compiling cc v1.0.60 [INFO] [stderr] Compiling pkg-config v0.3.18 [INFO] [stderr] Compiling fnv v1.0.7 [INFO] [stderr] Compiling itoa v0.4.6 [INFO] [stderr] Compiling bytes v0.5.6 [INFO] [stderr] Compiling futures-core v0.3.5 [INFO] [stderr] Compiling pin-project-internal v0.4.23 [INFO] [stderr] Compiling arc-swap v0.4.7 [INFO] [stderr] Compiling serde_derive v1.0.116 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling pin-project-lite v0.1.7 [INFO] [stderr] Compiling tinyvec v0.3.4 [INFO] [stderr] Compiling matches v0.1.8 [INFO] [stderr] Compiling once_cell v1.4.1 [INFO] [stderr] Compiling serde v1.0.116 [INFO] [stderr] Compiling percent-encoding v2.1.0 [INFO] [stderr] Compiling const_fn v0.4.2 [INFO] [stderr] Compiling proc-macro-hack v0.5.18 [INFO] [stderr] Compiling openssl v0.10.30 [INFO] [stderr] Compiling foreign-types-shared v0.1.1 [INFO] [stderr] Compiling futures-sink v0.3.5 [INFO] [stderr] Compiling futures-io v0.3.5 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling pin-utils v0.1.0 [INFO] [stderr] Compiling httparse v1.3.4 [INFO] [stderr] Compiling native-tls v0.2.4 [INFO] [stderr] Compiling hashbrown v0.9.0 [INFO] [stderr] Compiling openssl-probe v0.1.2 [INFO] [stderr] Compiling serde_json v1.0.57 [INFO] [stderr] Compiling regex-syntax v0.6.18 [INFO] [stderr] Compiling try-lock v0.2.3 [INFO] [stderr] Compiling tower-service v0.3.0 [INFO] [stderr] Compiling httpdate v0.3.2 [INFO] [stderr] Compiling encoding_rs v0.8.24 [INFO] [stderr] Compiling dtoa v0.4.6 [INFO] [stderr] Compiling mime v0.3.16 [INFO] [stderr] Compiling ipnet v2.3.0 [INFO] [stderr] Compiling base64 v0.12.3 [INFO] [stderr] Compiling tracing-core v0.1.16 [INFO] [stderr] Compiling futures-channel v0.3.5 [INFO] [stderr] Compiling foreign-types v0.3.2 [INFO] [stderr] Compiling unicode-bidi v0.3.4 [INFO] [stderr] Compiling futures-task v0.3.5 [INFO] [stderr] Compiling standback v0.2.10 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Compiling time v0.2.22 [INFO] [stderr] Compiling cookie v0.14.2 [INFO] [stderr] Compiling indexmap v1.6.0 [INFO] [stderr] Compiling unicode-normalization v0.1.13 [INFO] [stderr] Compiling http v0.2.1 [INFO] [stderr] Compiling tracing v0.1.19 [INFO] [stderr] Compiling want v0.3.0 [INFO] [stderr] Compiling mime_guess v2.0.3 [INFO] [stderr] Compiling openssl-sys v0.9.58 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling iovec v0.1.4 [INFO] [stderr] Compiling net2 v0.2.35 [INFO] [stderr] Compiling num_cpus v1.13.0 [INFO] [stderr] Compiling signal-hook-registry v1.2.1 [INFO] [stderr] Compiling socket2 v0.3.15 [INFO] [stderr] Compiling regex v1.3.9 [INFO] [stderr] Compiling idna v0.2.0 [INFO] [stderr] Compiling mio v0.6.22 [INFO] [stderr] Compiling mio-uds v0.6.8 [INFO] [stderr] Compiling url v2.1.1 [INFO] [stderr] Compiling http-body v0.3.1 [INFO] [stderr] Compiling publicsuffix v1.5.4 [INFO] [stderr] Compiling tokio-macros v0.2.5 [INFO] [stderr] Compiling time-macros-impl v0.1.1 [INFO] [stderr] Compiling time-macros v0.1.0 [INFO] [stderr] Compiling tokio v0.2.22 [INFO] [stderr] Compiling pin-project v0.4.23 [INFO] [stderr] Compiling futures-util v0.3.5 [INFO] [stderr] Compiling tokio-util v0.3.1 [INFO] [stderr] Compiling tokio-tls v0.3.1 [INFO] [stderr] Compiling h2 v0.2.6 [INFO] [stderr] Compiling serde_urlencoded v0.6.1 [INFO] [stderr] Compiling cookie_store v0.12.0 [INFO] [stderr] Compiling hyper v0.13.8 [INFO] [stderr] Compiling hyper-tls v0.4.3 [INFO] [stderr] Compiling reqwest v0.10.8 [INFO] [stderr] Compiling example v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variant is never constructed: `Subtract` [INFO] [stdout] --> src/bin/alias.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | Subtract, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/bin/if_let.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let b = Foo::Baz; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Green` [INFO] [stdout] --> src/bin/alias.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | Green = 0x00ff00, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Blue` [INFO] [stdout] --> src/bin/alias.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | Blue = 0x0000ff, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/bin/if_let.rs:24:21 [INFO] [stdout] | [INFO] [stdout] 24 | if let Foo::Qux(value @ 100) = c { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/bin/loop.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | 'inner : loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/bin/loop.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 4 | break 'outer; [INFO] [stdout] | ------------ any code following this expression is unreachable [INFO] [stdout] 5 | } [INFO] [stdout] 6 | println!("This point will never be reached"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `noisy_unused` [INFO] [stdout] --> src/bin/variable.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let noisy_unused = 2u32; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_noisy_unused` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::UdpSocket` [INFO] [stdout] --> src/bin/struct.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::UdpSocket; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/bin/struct.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | name: &'a str, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/bin/struct.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `age` [INFO] [stdout] --> src/bin/struct.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | age: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/bin/struct.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Unit` [INFO] [stdout] --> src/bin/struct.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Unit; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Pair` [INFO] [stdout] --> src/bin/struct.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Pair(i32, i32); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Point` [INFO] [stdout] --> src/bin/struct.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let num = vec![1, 1, 2, 2, 3]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to <[T; N] as IntoIterator>::into_iter in Rust 2021 [INFO] [stdout] --> src/bin/iterator_any.rs:10:40 [INFO] [stdout] | [INFO] [stdout] 10 | println!("2 in array2: {}", array2.into_iter().any(|&x| x == 2)); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 10 | println!("2 in array2: {}", array2.iter().any(|&x| x == 2)); [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 10 | println!("2 in array2: {}", IntoIterator::into_iter(array2).any(|&x| x == 2)); [INFO] [stdout] | ++++++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/main.rs:32:9 [INFO] [stdout] | [INFO] [stdout] 32 | name: &'a str, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `age` [INFO] [stdout] --> src/main.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | age: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/main.rs:30:14 [INFO] [stdout] | [INFO] [stdout] 30 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SET_COOKIE` [INFO] [stdout] --> src/bin/reqwest.rs:1:55 [INFO] [stdout] | [INFO] [stdout] 1 | use reqwest::header::{HeaderMap, HeaderValue, COOKIE, SET_COOKIE}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/bin/reqwest.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use serde_derive::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/bin/reqwest.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `code` [INFO] [stdout] --> src/bin/reqwest.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | code: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Resp` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/bin/reqwest.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `message` [INFO] [stdout] --> src/bin/reqwest.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | message: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Resp` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/bin/reqwest.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `data` [INFO] [stdout] --> src/bin/reqwest.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | data: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Resp` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/bin/reqwest.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 34.89s [INFO] running `Command { std: "docker" "inspect" "579a3398d2c4c40458a4bd8dc3591287352f05d23b6cd7da6cf777a868025758", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "579a3398d2c4c40458a4bd8dc3591287352f05d23b6cd7da6cf777a868025758", kill_on_drop: false }` [INFO] [stdout] 579a3398d2c4c40458a4bd8dc3591287352f05d23b6cd7da6cf777a868025758 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-16/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" "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:ac0d0aa6ec8ed129e241004a6179c99fa0d2616f50ba759c5b60bd26d0fafa02" "/opt/rustwide/cargo-home/bin/cargo" "+615edd3ad1cf6871c977dc900317cb6c2070fd6b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6c32520352058e48470c07fa80be2d61b881257684ad553e404ccb7ade7f228d [INFO] running `Command { std: "docker" "start" "-a" "6c32520352058e48470c07fa80be2d61b881257684ad553e404ccb7ade7f228d", kill_on_drop: false }` [INFO] [stderr] Compiling example v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/main.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::net::UdpSocket` [INFO] [stdout] --> src/bin/struct.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::net::UdpSocket; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num` [INFO] [stdout] --> src/main.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let num = vec![1, 1, 2, 2, 3]; [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_num` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `name` [INFO] [stdout] --> src/bin/struct.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | name: &'a str, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/bin/struct.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `age` [INFO] [stdout] --> src/bin/struct.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | age: u8, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Person` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/bin/struct.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | #[derive(Debug)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Unit` [INFO] [stdout] --> src/bin/struct.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | struct Unit; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Pair` [INFO] [stdout] --> src/bin/struct.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | struct Pair(i32, i32); [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Point` [INFO] [stdout] --> src/bin/struct.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 13 | struct Point { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `b` [INFO] [stdout] --> src/bin/if_let.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | let b = Foo::Baz; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_b` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/bin/if_let.rs:24:21 [INFO] [stdout] | [INFO] [stdout] 24 | if let Foo::Qux(value @ 100) = c { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/bin/loop.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | 'inner : loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Subtract` [INFO] [stdout] --> src/bin/alias.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | Subtract, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Green` [INFO] [stdout] --> src/bin/alias.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 25 | Green = 0x00ff00, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `Blue` [INFO] [stdout] --> src/bin/alias.rs:26:5 [INFO] [stdout] | [INFO] [stdout] 26 | Blue = 0x0000ff, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/bin/loop.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 4 | break 'outer; [INFO] [stdout] | ------------ any code following this expression is unreachable [INFO] [stdout] 5 | } [INFO] [stdout] 6 | println!("This point will never be reached"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] = note: this warning originates in the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: this method call resolves to `<&[T; N] as IntoIterator>::into_iter` (due to backwards compatibility), but will resolve to <[T; N] as IntoIterator>::into_iter in Rust 2021 [INFO] [stdout] --> src/bin/iterator_any.rs:10:40 [INFO] [stdout] | [INFO] [stdout] 10 | println!("2 in array2: {}", array2.into_iter().any(|&x| x == 2)); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(array_into_iter)]` on by default [INFO] [stdout] = warning: this changes meaning in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: use `.iter()` instead of `.into_iter()` to avoid ambiguity [INFO] [stdout] | [INFO] [stdout] 10 | println!("2 in array2: {}", array2.iter().any(|&x| x == 2)); [INFO] [stdout] | ~~~~ [INFO] [stdout] help: or use `IntoIterator::into_iter(..)` instead of `.into_iter()` to explicitly iterate by value [INFO] [stdout] | [INFO] [stdout] 10 | println!("2 in array2: {}", IntoIterator::into_iter(array2).any(|&x| x == 2)); [INFO] [stdout] | ++++++++++++++++++++++++ ~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `noisy_unused` [INFO] [stdout] --> src/bin/variable.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let noisy_unused = 2u32; [INFO] [stdout] | ^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_noisy_unused` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `SET_COOKIE` [INFO] [stdout] --> src/bin/reqwest.rs:1:55 [INFO] [stdout] | [INFO] [stdout] 1 | use reqwest::header::{HeaderMap, HeaderValue, COOKIE, SET_COOKIE}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Serialize` [INFO] [stdout] --> src/bin/reqwest.rs:2:33 [INFO] [stdout] | [INFO] [stdout] 2 | use serde_derive::{Deserialize, Serialize}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `serde_json` [INFO] [stdout] --> src/bin/reqwest.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use serde_json; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `code` [INFO] [stdout] --> src/bin/reqwest.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | code: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] note: `Resp` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/bin/reqwest.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `message` [INFO] [stdout] --> src/bin/reqwest.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | message: String, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Resp` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/bin/reqwest.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `data` [INFO] [stdout] --> src/bin/reqwest.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 10 | data: Option, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] note: `Resp` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] --> src/bin/reqwest.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Debug, Deserialize)] [INFO] [stdout] | ^^^^^ [INFO] [stdout] = note: this warning originates in the derive macro `Debug` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 6.26s [INFO] [stderr] Executable unittests src/bin/alias.rs (/opt/rustwide/target/debug/deps/alias-f3e1413f4d68f5bf) [INFO] [stderr] Executable unittests src/bin/array.rs (/opt/rustwide/target/debug/deps/array-a435c6f6d62ef60e) [INFO] [stderr] Executable unittests src/bin/closure.rs (/opt/rustwide/target/debug/deps/closure-b4156013961cf194) [INFO] [stderr] Executable unittests src/bin/constant.rs (/opt/rustwide/target/debug/deps/constant-1a5204d2fb9823b0) [INFO] [stderr] Executable unittests src/bin/enums.rs (/opt/rustwide/target/debug/deps/enums-17ef313368f580b7) [INFO] [stderr] Executable unittests src/main.rs (/opt/rustwide/target/debug/deps/example-413ee5ad0de468a3) [INFO] [stderr] Executable unittests src/bin/for.rs (/opt/rustwide/target/debug/deps/for-84a86f185f5e69d3) [INFO] [stderr] Executable unittests src/bin/from.rs (/opt/rustwide/target/debug/deps/from-be3e0ba3e503808e) [INFO] [stderr] Executable unittests src/bin/hofs.rs (/opt/rustwide/target/debug/deps/hofs-c0b93362eb67ce01) [INFO] [stderr] Executable unittests src/bin/if_let.rs (/opt/rustwide/target/debug/deps/if_let-77ed4eccc15d5cd9) [INFO] [stderr] Executable unittests src/bin/input_param.rs (/opt/rustwide/target/debug/deps/input_param-72cb39032cb0c8b9) [INFO] [stderr] Executable unittests src/bin/iterator_any.rs (/opt/rustwide/target/debug/deps/iterator_any-61a8ad1a64e76afc) [INFO] [stderr] Executable unittests src/bin/iterator_find.rs (/opt/rustwide/target/debug/deps/iterator_find-8d99950e970f61cd) [INFO] [stderr] Executable unittests src/bin/list.rs (/opt/rustwide/target/debug/deps/list-0b281dea41c957ea) [INFO] [stderr] Executable unittests src/bin/loop.rs (/opt/rustwide/target/debug/deps/loop-2e7c6d32b725a846) [INFO] [stderr] Executable unittests src/bin/match.rs (/opt/rustwide/target/debug/deps/match-865a7cd88a18069c) [INFO] [stderr] Executable unittests src/bin/output_param.rs (/opt/rustwide/target/debug/deps/output_param-1464fd86d4d673ad) [INFO] [stderr] Executable unittests src/bin/primitives.rs (/opt/rustwide/target/debug/deps/primitives-348d84d62355dd7a) [INFO] [stderr] Executable unittests src/bin/reqwest.rs (/opt/rustwide/target/debug/deps/reqwest-bd64a7925a21e9a6) [INFO] [stderr] Executable unittests src/bin/struct.rs (/opt/rustwide/target/debug/deps/struct-1870b9bdbdfd3872) [INFO] [stderr] Executable unittests src/bin/to_from_string.rs (/opt/rustwide/target/debug/deps/to_from_string-3442ca4ffbeffee9) [INFO] [stderr] Executable unittests src/bin/try_from.rs (/opt/rustwide/target/debug/deps/try_from-eef68c668cb47c92) [INFO] [stderr] Executable unittests src/bin/variable.rs (/opt/rustwide/target/debug/deps/variable-1d5e085e318ff167) [INFO] [stderr] Executable unittests src/bin/while_let.rs (/opt/rustwide/target/debug/deps/while_let-86f1ef8c12e0fb9c) [INFO] running `Command { std: "docker" "inspect" "6c32520352058e48470c07fa80be2d61b881257684ad553e404ccb7ade7f228d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c32520352058e48470c07fa80be2d61b881257684ad553e404ccb7ade7f228d", kill_on_drop: false }` [INFO] [stdout] 6c32520352058e48470c07fa80be2d61b881257684ad553e404ccb7ade7f228d