[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#ddfd70ee3c3748e597b32f416b0d15a4f6e37685 for pr-87050 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdairyisscary%2Ffor-your-reference-part-4" "/workspace/builds/worker-12/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-12/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/dairyisscary/for-your-reference-part-4 on toolchain ddfd70ee3c3748e597b32f416b0d15a4f6e37685 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+ddfd70ee3c3748e597b32f416b0d15a4f6e37685" "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-12/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" "+ddfd70ee3c3748e597b32f416b0d15a4f6e37685" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+ddfd70ee3c3748e597b32f416b0d15a4f6e37685" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 7a814fcc4aefaba291dea65fa1c3479cce042f5c2e9fec11f9549304a6301d82 [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" "7a814fcc4aefaba291dea65fa1c3479cce042f5c2e9fec11f9549304a6301d82", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "7a814fcc4aefaba291dea65fa1c3479cce042f5c2e9fec11f9549304a6301d82", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7a814fcc4aefaba291dea65fa1c3479cce042f5c2e9fec11f9549304a6301d82", kill_on_drop: false }` [INFO] [stdout] 7a814fcc4aefaba291dea65fa1c3479cce042f5c2e9fec11f9549304a6301d82 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+ddfd70ee3c3748e597b32f416b0d15a4f6e37685" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2f0a4a20b712476af6694a5e4397e602b35170ff44eda1280ba4e39308bf22a9 [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" "2f0a4a20b712476af6694a5e4397e602b35170ff44eda1280ba4e39308bf22a9", kill_on_drop: false }` [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] [stderr] Checking one v0.1.0 (/opt/rustwide/workdir/one) [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[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[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[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[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] For more information about this error, try `rustc --explain E0596`. [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[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 E0502`. [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [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] For more information about this error, try `rustc --explain E0382`. [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] 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] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "2f0a4a20b712476af6694a5e4397e602b35170ff44eda1280ba4e39308bf22a9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2f0a4a20b712476af6694a5e4397e602b35170ff44eda1280ba4e39308bf22a9", kill_on_drop: false }` [INFO] [stdout] 2f0a4a20b712476af6694a5e4397e602b35170ff44eda1280ba4e39308bf22a9