[INFO] cloning repository https://github.com/dairyisscary/for-your-reference-part-4 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dairyisscary/for-your-reference-part-4" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdairyisscary%2Ffor-your-reference-part-4", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdairyisscary%2Ffor-your-reference-part-4'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 39fc1303b36056a8c7096d94f867b99911ab0631 [INFO] checking dairyisscary/for-your-reference-part-4 against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdairyisscary%2Ffor-your-reference-part-4" "/workspace/builds/worker-6/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dairyisscary/for-your-reference-part-4 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/dairyisscary/for-your-reference-part-4 [INFO] finished tweaking git repo https://github.com/dairyisscary/for-your-reference-part-4 [INFO] tweaked toml for git repo https://github.com/dairyisscary/for-your-reference-part-4 written to /workspace/builds/worker-6/source/Cargo.toml [INFO] crate git repo https://github.com/dairyisscary/for-your-reference-part-4 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] eed63b9aa1c3c302041634ba269e40ea2b649c13260b16eb502347c9b26b33f2 [INFO] running `Command { std: "docker" "start" "-a" "eed63b9aa1c3c302041634ba269e40ea2b649c13260b16eb502347c9b26b33f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "eed63b9aa1c3c302041634ba269e40ea2b649c13260b16eb502347c9b26b33f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "eed63b9aa1c3c302041634ba269e40ea2b649c13260b16eb502347c9b26b33f2", kill_on_drop: false }` [INFO] [stdout] eed63b9aa1c3c302041634ba269e40ea2b649c13260b16eb502347c9b26b33f2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6/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] 1eced9fb875852152d4d93d278e3aeb8856becf4f9b22542b22a07862cad5475 [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" "1eced9fb875852152d4d93d278e3aeb8856becf4f9b22542b22a07862cad5475", kill_on_drop: false }` [INFO] [stderr] Checking one v0.1.0 (/opt/rustwide/workdir/one) [INFO] [stderr] Checking two v0.1.0 (/opt/rustwide/workdir/two) [INFO] [stderr] Checking three v0.1.0 (/opt/rustwide/workdir/three) [INFO] [stderr] Checking four v0.1.0 (/opt/rustwide/workdir/four) [INFO] [stderr] Checking five v0.1.0 (/opt/rustwide/workdir/five) [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> three/src/main.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | fn ops_dangle() -> &Vec { [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from [INFO] [stdout] help: consider using the `'static` lifetime [INFO] [stdout] | [INFO] [stdout] 6 | fn ops_dangle() -> &'static Vec { [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 E0106`. [INFO] [stdout] [INFO] [stdout] error[E0106]: missing lifetime specifier [INFO] [stdout] --> three/src/main.rs:6:20 [INFO] [stdout] | [INFO] [stdout] 6 | fn ops_dangle() -> &Vec { [INFO] [stdout] | ^ expected named lifetime parameter [INFO] [stdout] | [INFO] [stdout] = help: this function's return type contains a borrowed value, but there is no value for it to be borrowed from [INFO] [stdout] help: consider using the `'static` lifetime [INFO] [stdout] | [INFO] [stdout] 6 | fn ops_dangle() -> &'static Vec { [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 E0106`. [INFO] [stdout] [INFO] [stderr] error: could not compile `three` [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] [stdout] error[E0596]: cannot borrow `*borrowed_vec` as mutable, as it is behind a `&` reference [INFO] [stdout] --> two/src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | fn put_a_one_into_it_opps(borrowed_vec: &Vec) { [INFO] [stdout] | --------- help: consider changing this to be a mutable reference: `&mut Vec` [INFO] [stdout] 6 | borrowed_vec.push(1); [INFO] [stdout] | ^^^^^^^^^^^^ `borrowed_vec` is a `&` reference, so the data it refers to cannot be borrowed as mutable [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 E0596`. [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `dynamic_string` as mutable because it is also borrowed as immutable [INFO] [stdout] --> five/src/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | let found_o = find_first_char(&dynamic_string, 'o'); [INFO] [stdout] | --------------- immutable borrow occurs here [INFO] [stdout] 32 | dynamic_string.push_str(" -- even more stuff"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 33 | println!("\nSearching:\n{}", found_o); // oppps ?!?! [INFO] [stdout] | ------- immutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `dynamic_string` as mutable because it is also borrowed as immutable [INFO] [stdout] --> five/src/main.rs:32:5 [INFO] [stdout] | [INFO] [stdout] 31 | let found_o = find_first_char(&dynamic_string, 'o'); [INFO] [stdout] | --------------- immutable borrow occurs here [INFO] [stdout] 32 | dynamic_string.push_str(" -- even more stuff"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable borrow occurs here [INFO] [stdout] 33 | println!("\nSearching:\n{}", found_o); // oppps ?!?! [INFO] [stdout] | ------- immutable borrow later used here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [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 E0502`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `accum` [INFO] [stdout] --> four/src/main.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 41 | let mut accum = VecAccumulator::from(&vec![1, 2, 3]); [INFO] [stdout] | --------- move occurs because `accum` has type `VecAccumulator`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 47 | let _final_sum = accum.invalidate_me(); [INFO] [stdout] | --------------- `accum` moved due to this method call [INFO] [stdout] 48 | accum.print(); // opps [INFO] [stdout] | ^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: this function takes ownership of the receiver `self`, which moves `accum` [INFO] [stdout] --> four/src/main.rs:35:22 [INFO] [stdout] | [INFO] [stdout] 35 | fn invalidate_me(self) -> i32 { [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 E0382`. [INFO] [stdout] [INFO] [stdout] error[E0382]: borrow of moved value: `accum` [INFO] [stdout] --> four/src/main.rs:48:5 [INFO] [stdout] | [INFO] [stdout] 41 | let mut accum = VecAccumulator::from(&vec![1, 2, 3]); [INFO] [stdout] | --------- move occurs because `accum` has type `VecAccumulator`, which does not implement the `Copy` trait [INFO] [stdout] ... [INFO] [stdout] 47 | let _final_sum = accum.invalidate_me(); [INFO] [stdout] | --------------- `accum` moved due to this method call [INFO] [stdout] 48 | accum.print(); // opps [INFO] [stdout] | ^^^^^ value borrowed here after move [INFO] [stdout] | [INFO] [stdout] note: this function takes ownership of the receiver `self`, which moves `accum` [INFO] [stdout] --> four/src/main.rs:35:22 [INFO] [stdout] | [INFO] [stdout] 35 | fn invalidate_me(self) -> i32 { [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 E0382`. [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*borrowed_vec` as mutable, as it is behind a `&` reference [INFO] [stdout] --> two/src/main.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | fn put_a_one_into_it_opps(borrowed_vec: &Vec) { [INFO] [stdout] | --------- help: consider changing this to be a mutable reference: `&mut Vec` [INFO] [stdout] 6 | borrowed_vec.push(1); [INFO] [stdout] | ^^^^^^^^^^^^ `borrowed_vec` is a `&` reference, so the data it refers to cannot be borrowed as mutable [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 E0596`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "1eced9fb875852152d4d93d278e3aeb8856becf4f9b22542b22a07862cad5475", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1eced9fb875852152d4d93d278e3aeb8856becf4f9b22542b22a07862cad5475", kill_on_drop: false }` [INFO] [stdout] 1eced9fb875852152d4d93d278e3aeb8856becf4f9b22542b22a07862cad5475