[INFO] cloning repository https://github.com/chokri/rust-basics [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/chokri/rust-basics" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchokri%2Frust-basics", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchokri%2Frust-basics'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6d3e8d46516a9c6b9045c0067939a50b8c43ece9 [INFO] checking chokri/rust-basics against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchokri%2Frust-basics" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/chokri/rust-basics on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/chokri/rust-basics [INFO] finished tweaking git repo https://github.com/chokri/rust-basics [INFO] tweaked toml for git repo https://github.com/chokri/rust-basics written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/chokri/rust-basics already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded blowfish v0.4.0 [INFO] [stderr] Downloaded bcrypt v0.4.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e0a0e89367002c44076e206736704a431fa9e0f86315e070ab4793ecaadb6ef9 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "e0a0e89367002c44076e206736704a431fa9e0f86315e070ab4793ecaadb6ef9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e0a0e89367002c44076e206736704a431fa9e0f86315e070ab4793ecaadb6ef9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e0a0e89367002c44076e206736704a431fa9e0f86315e070ab4793ecaadb6ef9", kill_on_drop: false }` [INFO] [stdout] e0a0e89367002c44076e206736704a431fa9e0f86315e070ab4793ecaadb6ef9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 55cda27b5a37ef3f0a8d3eb374e28dbc41b1809ae3316191f12c1162332e66af [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "55cda27b5a37ef3f0a8d3eb374e28dbc41b1809ae3316191f12c1162332e66af", kill_on_drop: false }` [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking block-cipher-trait v0.6.2 [INFO] [stderr] Checking blowfish v0.4.0 [INFO] [stderr] Checking base64 v0.10.1 [INFO] [stderr] Checking bcrypt v0.4.0 [INFO] [stderr] Checking rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/vars.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let name = "chokri"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `age` [INFO] [stdout] --> src/vars.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let age = 34; // We can't change this [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_age` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `year` [INFO] [stdout] --> src/vars.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let year = 2019; // This can be changed [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_year` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sport` [INFO] [stdout] --> src/vars.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | let (sport, activity) = ("Basketball", "Playing"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_sport` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `activity` [INFO] [stdout] --> src/vars.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | let (sport, activity) = ("Basketball", "Playing"); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_activity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/person.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let mut person = Person::new("Chuck", "Norris", "male", 38); [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: associated function is never used: `full_name` [INFO] [stdout] --> src/person.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn full_name (&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `name` [INFO] [stdout] --> src/vars.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | let name = "chokri"; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_name` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `age` [INFO] [stdout] --> src/vars.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | let age = 34; // We can't change this [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_age` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `year` [INFO] [stdout] --> src/vars.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | let year = 2019; // This can be changed [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_year` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `sport` [INFO] [stdout] --> src/vars.rs:21:10 [INFO] [stdout] | [INFO] [stdout] 21 | let (sport, activity) = ("Basketball", "Playing"); [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_sport` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `activity` [INFO] [stdout] --> src/vars.rs:21:17 [INFO] [stdout] | [INFO] [stdout] 21 | let (sport, activity) = ("Basketball", "Playing"); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_activity` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `str::::replace` that must be used [INFO] [stdout] --> src/vars.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | title.replace("world", "there"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this returns the replaced string as a new allocation, without modifying the original [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/person.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let mut person = Person::new("Chuck", "Norris", "male", 38); [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: associated function is never used: `full_name` [INFO] [stdout] --> src/person.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | fn full_name (&self) -> String { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `str::::replace` that must be used [INFO] [stdout] --> src/vars.rs:36:5 [INFO] [stdout] | [INFO] [stdout] 36 | title.replace("world", "there"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this returns the replaced string as a new allocation, without modifying the original [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 8 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 7.23s [INFO] running `Command { std: "docker" "inspect" "55cda27b5a37ef3f0a8d3eb374e28dbc41b1809ae3316191f12c1162332e66af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "55cda27b5a37ef3f0a8d3eb374e28dbc41b1809ae3316191f12c1162332e66af", kill_on_drop: false }` [INFO] [stdout] 55cda27b5a37ef3f0a8d3eb374e28dbc41b1809ae3316191f12c1162332e66af