[INFO] cloning repository https://github.com/TimothyMendezFeliciano/rust-ownership [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/TimothyMendezFeliciano/rust-ownership" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTimothyMendezFeliciano%2Frust-ownership", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTimothyMendezFeliciano%2Frust-ownership'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] caefb0662823df7bec1e9155fc9b20339edd8397 [INFO] checking TimothyMendezFeliciano/rust-ownership against try#78c81ee3917a99dcff6e2e6822800f0492c415c3 for pr-148967 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTimothyMendezFeliciano%2Frust-ownership" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/TimothyMendezFeliciano/rust-ownership [INFO] finished tweaking git repo https://github.com/TimothyMendezFeliciano/rust-ownership [INFO] tweaked toml for git repo https://github.com/TimothyMendezFeliciano/rust-ownership written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/TimothyMendezFeliciano/rust-ownership on toolchain 78c81ee3917a99dcff6e2e6822800f0492c415c3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+78c81ee3917a99dcff6e2e6822800f0492c415c3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/TimothyMendezFeliciano/rust-ownership 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" "+78c81ee3917a99dcff6e2e6822800f0492c415c3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking TimothyMendezFeliciano/rust-ownership against try#78c81ee3917a99dcff6e2e6822800f0492c415c3 for pr-148967 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTimothyMendezFeliciano%2Frust-ownership" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/TimothyMendezFeliciano/rust-ownership [INFO] finished tweaking git repo https://github.com/TimothyMendezFeliciano/rust-ownership [INFO] tweaked toml for git repo https://github.com/TimothyMendezFeliciano/rust-ownership written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/TimothyMendezFeliciano/rust-ownership on toolchain 78c81ee3917a99dcff6e2e6822800f0492c415c3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+78c81ee3917a99dcff6e2e6822800f0492c415c3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/TimothyMendezFeliciano/rust-ownership 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" "+78c81ee3917a99dcff6e2e6822800f0492c415c3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+78c81ee3917a99dcff6e2e6822800f0492c415c3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f3c2d1d69088606636db40186c9efe330072f9ed491f9f68fcbb556ab7c7af30 [INFO] running `Command { std: "docker" "start" "-a" "f3c2d1d69088606636db40186c9efe330072f9ed491f9f68fcbb556ab7c7af30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f3c2d1d69088606636db40186c9efe330072f9ed491f9f68fcbb556ab7c7af30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f3c2d1d69088606636db40186c9efe330072f9ed491f9f68fcbb556ab7c7af30", kill_on_drop: false }` [INFO] [stdout] f3c2d1d69088606636db40186c9efe330072f9ed491f9f68fcbb556ab7c7af30 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+78c81ee3917a99dcff6e2e6822800f0492c415c3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4685e9c1a0a2de1974adf02e981cd99623c123a7b816b3d0e685ab2f8b1ee7df [INFO] running `Command { std: "docker" "start" "-a" "4685e9c1a0a2de1974adf02e981cd99623c123a7b816b3d0e685ab2f8b1ee7df", kill_on_drop: false }` [INFO] [stderr] Checking ownership v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: value assigned to `y` is never read [INFO] [stdout] --> src/ownership_string.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | let mut y = x; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `y` is never read [INFO] [stdout] --> src/ownership_string.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 20 | let mut y = x; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> src/ownership_functions.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let s1 = gives_ownership(); //moves its return value into s1 [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s1` [INFO] [stdout] --> src/ownership_functions.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | let s1 = gives_ownership(); //moves its return value into s1 [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s1` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s3` [INFO] [stdout] --> src/ownership_functions.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let s3 = takes_and_gives_back(s2); // s2 is moved into, which also moves its return value into s3. [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `s3` [INFO] [stdout] --> src/ownership_functions.rs:29:9 [INFO] [stdout] | [INFO] [stdout] 29 | let s3 = takes_and_gives_back(s2); // s2 is moved into, which also moves its return value into s3. [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_s3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/borrowing.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let mut t = String::from("hello"); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/borrowing.rs:46:9 [INFO] [stdout] | [INFO] [stdout] 46 | let mut t = String::from("hello"); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/borrowing.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let mut f = String::from("Formula"); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/borrowing.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let mut f = String::from("Formula"); [INFO] [stdout] | ----^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> src/borrowing.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let r1 = &mut s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p1` [INFO] [stdout] --> src/borrowing.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let p1 = &mut p; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `r1` [INFO] [stdout] --> src/borrowing.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let r1 = &mut s; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_r1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p1` [INFO] [stdout] --> src/borrowing.rs:41:13 [INFO] [stdout] | [INFO] [stdout] 41 | let p1 = &mut p; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p2` [INFO] [stdout] --> src/borrowing.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let p2 = &mut p; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `p2` [INFO] [stdout] --> src/borrowing.rs:44:9 [INFO] [stdout] | [INFO] [stdout] 44 | let p2 = &mut p; [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_p2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t1` [INFO] [stdout] --> src/borrowing.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let t1 = &t; // no problem [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_t1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t1` [INFO] [stdout] --> src/borrowing.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | let t1 = &t; // no problem [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_t1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t2` [INFO] [stdout] --> src/borrowing.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let t2 = &t; // no problem [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_t2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t2` [INFO] [stdout] --> src/borrowing.rs:49:9 [INFO] [stdout] | [INFO] [stdout] 49 | let t2 = &t; // no problem [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_t2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `actual_value_of_something` [INFO] [stdout] --> src/dangling.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let actual_value_of_something = no_dangle(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_actual_value_of_something` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `actual_value_of_something` [INFO] [stdout] --> src/dangling.rs:5:9 [INFO] [stdout] | [INFO] [stdout] 5 | let actual_value_of_something = no_dangle(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_actual_value_of_something` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word` [INFO] [stdout] --> src/slices.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let word = first_word(&s); //word will get the value 5. [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `word` [INFO] [stdout] --> src/slices.rs:3:9 [INFO] [stdout] | [INFO] [stdout] 3 | let word = first_word(&s); //word will get the value 5. [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_word` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ownership_functions` is never used [INFO] [stdout] --> src/ownership_functions.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn ownership_functions() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ownership_functions` is never used [INFO] [stdout] --> src/ownership_functions.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn ownership_functions() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `takes_ownership` is never used [INFO] [stdout] --> src/ownership_functions.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn takes_ownership(some_string: String) { // some_string comes into scope [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `takes_ownership` is never used [INFO] [stdout] --> src/ownership_functions.rs:15:4 [INFO] [stdout] | [INFO] [stdout] 15 | fn takes_ownership(some_string: String) { // some_string comes into scope [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `makes_copy` is never used [INFO] [stdout] --> src/ownership_functions.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn makes_copy(some_integer: i32) { // some_integer comes into scope [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `makes_copy` is never used [INFO] [stdout] --> src/ownership_functions.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn makes_copy(some_integer: i32) { // some_integer comes into scope [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] running `Command { std: "docker" "inspect" "4685e9c1a0a2de1974adf02e981cd99623c123a7b816b3d0e685ab2f8b1ee7df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4685e9c1a0a2de1974adf02e981cd99623c123a7b816b3d0e685ab2f8b1ee7df", kill_on_drop: false }` [INFO] [stdout] 4685e9c1a0a2de1974adf02e981cd99623c123a7b816b3d0e685ab2f8b1ee7df