[INFO] cloning repository https://github.com/egonik-unlp/rust_MD [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/egonik-unlp/rust_MD" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fegonik-unlp%2Frust_MD", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fegonik-unlp%2Frust_MD'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1d1042acaf791980d5143c9e43d663d0ce83b02f [INFO] checking egonik-unlp/rust_MD against try#f70ee28831acc074c109afab32d287057c3eca46 for pr-149389 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fegonik-unlp%2Frust_MD" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/egonik-unlp/rust_MD [INFO] finished tweaking git repo https://github.com/egonik-unlp/rust_MD [INFO] tweaked toml for git repo https://github.com/egonik-unlp/rust_MD written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/egonik-unlp/rust_MD on toolchain f70ee28831acc074c109afab32d287057c3eca46 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/egonik-unlp/rust_MD 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" "+f70ee28831acc074c109afab32d287057c3eca46" "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-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e43bd14da6e89bdafd2fd07a146cee9d4c4b0c8a77aecf1e36040cfe55a30eed [INFO] running `Command { std: "docker" "start" "-a" "e43bd14da6e89bdafd2fd07a146cee9d4c4b0c8a77aecf1e36040cfe55a30eed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e43bd14da6e89bdafd2fd07a146cee9d4c4b0c8a77aecf1e36040cfe55a30eed", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e43bd14da6e89bdafd2fd07a146cee9d4c4b0c8a77aecf1e36040cfe55a30eed", kill_on_drop: false }` [INFO] [stdout] e43bd14da6e89bdafd2fd07a146cee9d4c4b0c8a77aecf1e36040cfe55a30eed [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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:94a0c148923f5b2b52a63ef0eeb1882ad339ab61bce784c8077cbe41c61feb6c" "/opt/rustwide/cargo-home/bin/cargo" "+f70ee28831acc074c109afab32d287057c3eca46" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 230fa3b5d0917f404c4c70acccad1fe2d72933a645d84c63ac26808cb0a1b33b [INFO] running `Command { std: "docker" "start" "-a" "230fa3b5d0917f404c4c70acccad1fe2d72933a645d84c63ac26808cb0a1b33b", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Checking getrandom v0.2.8 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking rust_MD v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*w` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:44:29 [INFO] [stdout] | [INFO] [stdout] 43 | fn new( w : &mut World, mass : u32, temp : u32) -> Particle { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 44 | Particle{ w: w , x: w.igen(), y: w.igen(), energy: Boltzmann * temp as f32 , mass: mass, vel: w.fgen() } [INFO] [stdout] | --------------------^^^^^^^^----------------------------------------------------------------------------- [INFO] [stdout] | | | | [INFO] [stdout] | | | mutable borrow occurs here [INFO] [stdout] | | immutable borrow occurs here [INFO] [stdout] | returning this value requires that `*w` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*w` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:44:42 [INFO] [stdout] | [INFO] [stdout] 43 | fn new( w : &mut World, mass : u32, temp : u32) -> Particle { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 44 | Particle{ w: w , x: w.igen(), y: w.igen(), energy: Boltzmann * temp as f32 , mass: mass, vel: w.fgen() } [INFO] [stdout] | ---------------------------------^^^^^^^^---------------------------------------------------------------- [INFO] [stdout] | | | | [INFO] [stdout] | | | mutable borrow occurs here [INFO] [stdout] | | immutable borrow occurs here [INFO] [stdout] | returning this value requires that `*w` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*w` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:44:104 [INFO] [stdout] | [INFO] [stdout] 43 | fn new( w : &mut World, mass : u32, temp : u32) -> Particle { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 44 | Particle{ w: w , x: w.igen(), y: w.igen(), energy: Boltzmann * temp as f32 , mass: mass, vel: w.fgen() } [INFO] [stdout] | -----------------------------------------------------------------------------------------------^^^^^^^^-- [INFO] [stdout] | | | | [INFO] [stdout] | | | mutable borrow occurs here [INFO] [stdout] | | immutable borrow occurs here [INFO] [stdout] | returning this value requires that `*w` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*self.w` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/main.rs:52:19 [INFO] [stdout] | [INFO] [stdout] 52 | self.x += self.w.igen(); [INFO] [stdout] | ^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 14 | w : &'a mut World [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*self.w` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/main.rs:53:19 [INFO] [stdout] | [INFO] [stdout] 53 | self.y += self.w.igen(); [INFO] [stdout] | ^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 14 | w : &'a mut World [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*w` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:44:29 [INFO] [stdout] | [INFO] [stdout] 43 | fn new( w : &mut World, mass : u32, temp : u32) -> Particle { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 44 | Particle{ w: w , x: w.igen(), y: w.igen(), energy: Boltzmann * temp as f32 , mass: mass, vel: w.fgen() } [INFO] [stdout] | --------------------^^^^^^^^----------------------------------------------------------------------------- [INFO] [stdout] | | | | [INFO] [stdout] | | | mutable borrow occurs here [INFO] [stdout] | | immutable borrow occurs here [INFO] [stdout] | returning this value requires that `*w` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*w` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:44:42 [INFO] [stdout] | [INFO] [stdout] 43 | fn new( w : &mut World, mass : u32, temp : u32) -> Particle { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 44 | Particle{ w: w , x: w.igen(), y: w.igen(), energy: Boltzmann * temp as f32 , mass: mass, vel: w.fgen() } [INFO] [stdout] | ---------------------------------^^^^^^^^---------------------------------------------------------------- [INFO] [stdout] | | | | [INFO] [stdout] | | | mutable borrow occurs here [INFO] [stdout] | | immutable borrow occurs here [INFO] [stdout] | returning this value requires that `*w` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0502]: cannot borrow `*w` as mutable because it is also borrowed as immutable [INFO] [stdout] --> src/main.rs:44:104 [INFO] [stdout] | [INFO] [stdout] 43 | fn new( w : &mut World, mass : u32, temp : u32) -> Particle { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 44 | Particle{ w: w , x: w.igen(), y: w.igen(), energy: Boltzmann * temp as f32 , mass: mass, vel: w.fgen() } [INFO] [stdout] | -----------------------------------------------------------------------------------------------^^^^^^^^-- [INFO] [stdout] | | | | [INFO] [stdout] | | | mutable borrow occurs here [INFO] [stdout] | | immutable borrow occurs here [INFO] [stdout] | returning this value requires that `*w` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*self.w` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/main.rs:52:19 [INFO] [stdout] | [INFO] [stdout] 52 | self.x += self.w.igen(); [INFO] [stdout] | ^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 14 | w : &'a mut World [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0596]: cannot borrow `*self.w` as mutable, as it is behind a `&` reference [INFO] [stdout] --> src/main.rs:53:19 [INFO] [stdout] | [INFO] [stdout] 53 | self.y += self.w.igen(); [INFO] [stdout] | ^^^^^^ cannot borrow as mutable [INFO] [stdout] | [INFO] [stdout] help: consider changing this to be mutable [INFO] [stdout] | [INFO] [stdout] 14 | w : &'a mut World [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0502, E0596. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0502`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_MD` (bin "rust_MD") due to 5 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rust_MD` (bin "rust_MD" test) due to 5 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "230fa3b5d0917f404c4c70acccad1fe2d72933a645d84c63ac26808cb0a1b33b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "230fa3b5d0917f404c4c70acccad1fe2d72933a645d84c63ac26808cb0a1b33b", kill_on_drop: false }` [INFO] [stdout] 230fa3b5d0917f404c4c70acccad1fe2d72933a645d84c63ac26808cb0a1b33b