[INFO] updating cached repository https://github.com/aleksandrpak/rust-talk [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] ed25c7d85040ef552d038547bcd9f4d6476184ca [INFO] checking aleksandrpak/rust-talk against master#6dee5f1126dfd5c9314ee5ae9d9eb010e35ef257 for pr-70872 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Faleksandrpak%2Frust-talk" "/workspace/builds/worker-0/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/aleksandrpak/rust-talk on toolchain 6dee5f1126dfd5c9314ee5ae9d9eb010e35ef257 [INFO] running `"/workspace/cargo-home/bin/cargo" "+6dee5f1126dfd5c9314ee5ae9d9eb010e35ef257" "read-manifest" "--manifest-path" "Cargo.toml"` [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-0/source/Cargo.toml [INFO] crate git repo https://github.com/aleksandrpak/rust-talk already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+6dee5f1126dfd5c9314ee5ae9d9eb010e35ef257" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+6dee5f1126dfd5c9314ee5ae9d9eb010e35ef257" "check" "--frozen" "--all" "--all-targets"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 3e65ca0eb5f61fd83ef02cb8e9460ff21ee09b821360f85fa19c9fce01d0977a [INFO] running `"docker" "start" "-a" "3e65ca0eb5f61fd83ef02cb8e9460ff21ee09b821360f85fa19c9fce01d0977a"` [INFO] [stderr] Checking rust-talk v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0308]: mismatched types [INFO] [stderr] --> examples/string_first.rs:13:24 [INFO] [stderr] | [INFO] [stderr] 13 | let foo = Foo::new("bar"); [INFO] [stderr] | ^^^^^ [INFO] [stderr] | | [INFO] [stderr] | expected struct `std::string::String`, found `&str` [INFO] [stderr] | help: try using a conversion method: `"bar".to_string()` [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0308`. [INFO] [stderr] error: could not compile `rust-talk`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> examples/mut.rs:22:9 [INFO] [stderr] | [INFO] [stderr] 22 | let mut foo = Foo::new(); [INFO] [stderr] | ----^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0594]: cannot assign to `bar.counter` which is behind a `&` reference [INFO] [stderr] --> examples/mut.rs:27:9 [INFO] [stderr] | [INFO] [stderr] 26 | let mut bar = foo.get_bar(); [INFO] [stderr] | ------- help: consider changing this to be a mutable reference: `&mut Bar` [INFO] [stderr] 27 | bar.counter += 1; [INFO] [stderr] | ^^^^^^^^^^^^^^^^ `bar` is a `&` reference, so the data it refers to cannot be written [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0594`. [INFO] [stderr] error: could not compile `rust-talk`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0382]: borrow of moved value: `vec` [INFO] [stderr] --> examples/for.rs:8:5 [INFO] [stderr] | [INFO] [stderr] 2 | let mut vec = vec![1, 2, 3]; [INFO] [stderr] | ------- move occurs because `vec` has type `std::vec::Vec`, which does not implement the `Copy` trait [INFO] [stderr] 3 | [INFO] [stderr] 4 | for item in vec { [INFO] [stderr] | --- [INFO] [stderr] | | [INFO] [stderr] | value moved here [INFO] [stderr] | help: consider borrowing to avoid moving into the for loop: `&vec` [INFO] [stderr] ... [INFO] [stderr] 8 | vec[0] = 0; [INFO] [stderr] | ^^^ value borrowed here after move [INFO] [stderr] [INFO] [stderr] error: aborting due to previous error [INFO] [stderr] [INFO] [stderr] For more information about this error, try `rustc --explain E0382`. [INFO] [stderr] error: could not compile `rust-talk`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: build failed [INFO] running `"docker" "inspect" "3e65ca0eb5f61fd83ef02cb8e9460ff21ee09b821360f85fa19c9fce01d0977a"` [INFO] running `"docker" "rm" "-f" "3e65ca0eb5f61fd83ef02cb8e9460ff21ee09b821360f85fa19c9fce01d0977a"` [INFO] [stdout] 3e65ca0eb5f61fd83ef02cb8e9460ff21ee09b821360f85fa19c9fce01d0977a