[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/ed25c7d85040ef552d038547bcd9f4d6476184ca against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faleksandrpak%2Frust-talk" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/aleksandrpak/rust-talk on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "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-6-tc1/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: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 14eb5c089f785389201cb0cf7ee935bd6caf8f783302c6ba1cdc4c05a023a04d [INFO] running `Command { std: "docker" "start" "-a" "14eb5c089f785389201cb0cf7ee935bd6caf8f783302c6ba1cdc4c05a023a04d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "14eb5c089f785389201cb0cf7ee935bd6caf8f783302c6ba1cdc4c05a023a04d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "14eb5c089f785389201cb0cf7ee935bd6caf8f783302c6ba1cdc4c05a023a04d", kill_on_drop: false }` [INFO] [stdout] 14eb5c089f785389201cb0cf7ee935bd6caf8f783302c6ba1cdc4c05a023a04d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "-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:ceb6ea022f8a89cebbe621bb4987e73a935bd40dfbb726f832cfff4742a5b95a" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b1fcf05830497bad51679020b76ffb517a43eac9838b956c1623552b1bc03563 [INFO] running `Command { std: "docker" "start" "-a" "b1fcf05830497bad51679020b76ffb517a43eac9838b956c1623552b1bc03563", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking rust-talk v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `bar` is never read [INFO] [stdout] --> examples/string_second.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Foo { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 3 | bar: String, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Foo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 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] warning: variable does not need to be mutable [INFO] [stdout] --> examples/mut.rs:26:13 [INFO] [stdout] | [INFO] [stdout] 26 | let mut bar = foo.get_bar(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [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] 27 | bar.counter += 1; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ `bar` is a `&` reference, so the data it refers to cannot be written [INFO] [stdout] | [INFO] [stdout] help: consider annotating `Bar` with `#[derive(Clone)]` [INFO] [stdout] | [INFO] [stdout] 2 + #[derive(Clone)] [INFO] [stdout] 3 | struct Bar { [INFO] [stdout] | [INFO] [stdout] help: consider specifying this binding's type [INFO] [stdout] | [INFO] [stdout] 26 | let mut bar: &mut Bar = foo.get_bar(); [INFO] [stdout] | ++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `bar` is never read [INFO] [stdout] --> examples/string_third.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Foo<'a> { [INFO] [stdout] | --- field in this struct [INFO] [stdout] 5 | bar: Cow<'a, str>, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Foo` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0594`. [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [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] | --- `vec` moved due to this implicit call to `.into_iter()` [INFO] [stdout] ... [INFO] [stdout] 8 | vec[0] = 0; [INFO] [stdout] | ^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: `into_iter` takes ownership of the receiver `self`, which moves `vec` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/core/src/iter/traits/collect.rs:346:18 [INFO] [stdout] help: consider iterating over a slice of the `Vec`'s content to avoid moving into the `for` loop [INFO] [stdout] | [INFO] [stdout] 4 | for item in &vec { [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0382`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-talk` (example "mut") due to 2 previous errors; 2 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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 `String`, found `&str` [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> examples/string_first.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn new(bar: String) -> Foo { [INFO] [stdout] | ^^^ ----------- [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-talk` (example "for") due to 2 previous errors [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-talk` (example "string_first") due to 2 previous errors [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 1 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` (example "mutex") due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "b1fcf05830497bad51679020b76ffb517a43eac9838b956c1623552b1bc03563", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b1fcf05830497bad51679020b76ffb517a43eac9838b956c1623552b1bc03563", kill_on_drop: false }` [INFO] [stdout] b1fcf05830497bad51679020b76ffb517a43eac9838b956c1623552b1bc03563