[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#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fegonik-unlp%2Frust_MD" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-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-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/egonik-unlp/rust_MD on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f2c9ab1da79f995158ec6eeaa15bd19468fa6a0df068ab21c7f05a337a80c368 [INFO] running `Command { std: "docker" "start" "-a" "f2c9ab1da79f995158ec6eeaa15bd19468fa6a0df068ab21c7f05a337a80c368", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f2c9ab1da79f995158ec6eeaa15bd19468fa6a0df068ab21c7f05a337a80c368", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f2c9ab1da79f995158ec6eeaa15bd19468fa6a0df068ab21c7f05a337a80c368", kill_on_drop: false }` [INFO] [stdout] f2c9ab1da79f995158ec6eeaa15bd19468fa6a0df068ab21c7f05a337a80c368 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 27eee5c7b73ad02d36f073fd1a85d45a4788046274e3258d21d7328684a3743e [INFO] running `Command { std: "docker" "start" "-a" "27eee5c7b73ad02d36f073fd1a85d45a4788046274e3258d21d7328684a3743e", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Checking ppv-lite86 v0.2.17 [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)]` 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" test) due to 5 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [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)]` 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] running `Command { std: "docker" "inspect" "27eee5c7b73ad02d36f073fd1a85d45a4788046274e3258d21d7328684a3743e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "27eee5c7b73ad02d36f073fd1a85d45a4788046274e3258d21d7328684a3743e", kill_on_drop: false }` [INFO] [stdout] 27eee5c7b73ad02d36f073fd1a85d45a4788046274e3258d21d7328684a3743e