[INFO] cloning repository https://github.com/aleksandrpak/rust-talk [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/aleksandrpak/rust-talk" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faleksandrpak%2Frust-talk", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faleksandrpak%2Frust-talk'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] ed25c7d85040ef552d038547bcd9f4d6476184ca [INFO] checking aleksandrpak/rust-talk against master#db1fb85cff63ad5fffe435e17128f99f9e1d970c for pr-89056 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faleksandrpak%2Frust-talk" "/workspace/builds/worker-80/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-80/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/aleksandrpak/rust-talk on toolchain db1fb85cff63ad5fffe435e17128f99f9e1d970c [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/aleksandrpak/rust-talk [INFO] finished tweaking git repo https://github.com/aleksandrpak/rust-talk [INFO] tweaked toml for git repo https://github.com/aleksandrpak/rust-talk written to /workspace/builds/worker-80/source/Cargo.toml [INFO] crate git repo https://github.com/aleksandrpak/rust-talk already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "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-80/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-80/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] acbc11656439b38c3470dc9a9cae1b8f9a11334bad26cdb9316ae721a311f5eb [INFO] running `Command { std: "docker" "start" "-a" "acbc11656439b38c3470dc9a9cae1b8f9a11334bad26cdb9316ae721a311f5eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "acbc11656439b38c3470dc9a9cae1b8f9a11334bad26cdb9316ae721a311f5eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "acbc11656439b38c3470dc9a9cae1b8f9a11334bad26cdb9316ae721a311f5eb", kill_on_drop: false }` [INFO] [stdout] acbc11656439b38c3470dc9a9cae1b8f9a11334bad26cdb9316ae721a311f5eb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-80/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-80/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:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+db1fb85cff63ad5fffe435e17128f99f9e1d970c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 504777ec8e3e31e752c0c12c1fb8c36db4a679eebccb39abd85d9f413e2a0501 [INFO] running `Command { std: "docker" "start" "-a" "504777ec8e3e31e752c0c12c1fb8c36db4a679eebccb39abd85d9f413e2a0501", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Checking rust-talk v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0373]: closure may outlive the current function, but it borrows `foo`, which is owned by the current function [INFO] [stdout] --> examples/mutex.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 21 | thread::spawn(|| { [INFO] [stdout] | ^^ may outlive borrowed value `foo` [INFO] [stdout] 22 | foo.increment(); [INFO] [stdout] | --- `foo` is borrowed here [INFO] [stdout] | [INFO] [stdout] note: function requires argument type to outlive `'static` [INFO] [stdout] --> examples/mutex.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | / thread::spawn(|| { [INFO] [stdout] 22 | | foo.increment(); [INFO] [stdout] 23 | | }); [INFO] [stdout] | |______^ [INFO] [stdout] help: to force the closure to take ownership of `foo` (and any other referenced variables), use the `move` keyword [INFO] [stdout] | [INFO] [stdout] 21 | thread::spawn(move || { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0373`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-talk` due to 2 previous errors [INFO] [stdout] error[E0382]: borrow of moved value: `vec` [INFO] [stdout] --> examples/for.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 2 | let mut vec = vec![1, 2, 3]; [INFO] [stdout] | ------- move occurs because `vec` has type `Vec`, which does not implement the `Copy` trait [INFO] [stdout] 3 | [INFO] [stdout] 4 | for item in vec { [INFO] [stdout] | --- [INFO] [stdout] | | [INFO] [stdout] | `vec` moved due to this implicit call to `.into_iter()` [INFO] [stdout] | help: consider borrowing to avoid moving into the for loop: `&vec` [INFO] [stdout] ... [INFO] [stdout] 8 | vec[0] = 0; [INFO] [stdout] | ^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: this function takes ownership of the receiver `self`, which moves `vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: field is never read: `bar` [INFO] [stdout] --> examples/string_second.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | bar: String, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> examples/mut.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | let mut foo = Foo::new(); [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] error[E0594]: cannot assign to `bar.counter`, which is behind a `&` reference [INFO] [stdout] --> examples/mut.rs:27:9 [INFO] [stdout] | [INFO] [stdout] 26 | let mut bar = foo.get_bar(); [INFO] [stdout] | ------- help: consider changing this to be a mutable reference: `&mut Bar` [INFO] [stdout] 27 | bar.counter += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ `bar` is a `&` reference, so the data it refers to cannot be written [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0594`. [INFO] [stdout] [INFO] [stdout] warning: field is never read: `bar` [INFO] [stdout] --> examples/string_third.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | bar: Cow<'a, str>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> examples/string_first.rs:13:24 [INFO] [stdout] | [INFO] [stdout] 13 | let foo = Foo::new("bar"); [INFO] [stdout] | ^^^^^- help: try using a conversion method: `.to_string()` [INFO] [stdout] | | [INFO] [stdout] | expected struct `String`, found `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "504777ec8e3e31e752c0c12c1fb8c36db4a679eebccb39abd85d9f413e2a0501", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "504777ec8e3e31e752c0c12c1fb8c36db4a679eebccb39abd85d9f413e2a0501", kill_on_drop: false }` [INFO] [stdout] 504777ec8e3e31e752c0c12c1fb8c36db4a679eebccb39abd85d9f413e2a0501