[INFO] cloning repository https://github.com/Tomcc/orbit_optimizer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Tomcc/orbit_optimizer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTomcc%2Forbit_optimizer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTomcc%2Forbit_optimizer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 31caa4745a0ba2fc3d9cd9b80beaf5f88e0044d1 [INFO] checking Tomcc/orbit_optimizer against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTomcc%2Forbit_optimizer" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Tomcc/orbit_optimizer on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Tomcc/orbit_optimizer [INFO] finished tweaking git repo https://github.com/Tomcc/orbit_optimizer [INFO] tweaked toml for git repo https://github.com/Tomcc/orbit_optimizer written to /workspace/builds/worker-4/source/Cargo.toml [INFO] crate git repo https://github.com/Tomcc/orbit_optimizer already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] error: the lock file /workspace/builds/worker-4/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "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] 17337b0aa3b8ea0bb686c98e563ef61da6b45b36e7a8ec31d0a19e0152aa1d20 [INFO] running `Command { std: "docker" "start" "-a" "17337b0aa3b8ea0bb686c98e563ef61da6b45b36e7a8ec31d0a19e0152aa1d20", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "17337b0aa3b8ea0bb686c98e563ef61da6b45b36e7a8ec31d0a19e0152aa1d20", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "17337b0aa3b8ea0bb686c98e563ef61da6b45b36e7a8ec31d0a19e0152aa1d20", kill_on_drop: false }` [INFO] [stdout] 17337b0aa3b8ea0bb686c98e563ef61da6b45b36e7a8ec31d0a19e0152aa1d20 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", 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] d688c80c24b038135c84d755567d6a3b214c43adce25764dc9ff4e6dcd7deca7 [INFO] running `Command { std: "docker" "start" "-a" "d688c80c24b038135c84d755567d6a3b214c43adce25764dc9ff4e6dcd7deca7", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling getrandom v0.2.0 [INFO] [stderr] Checking ppv-lite86 v0.2.10 [INFO] [stderr] Compiling cgmath v0.18.0 [INFO] [stderr] Checking gnuplot v0.0.37 [INFO] [stderr] Checking approx v0.4.0 [INFO] [stderr] Checking rand_core v0.6.0 [INFO] [stderr] Checking rand_chacha v0.3.0 [INFO] [stderr] Checking rand v0.8.0 [INFO] [stderr] Checking optimize_orbit v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved imports `cgmath::Vector`, `cgmath::EuclideanVector` [INFO] [stdout] --> src/main.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use cgmath::{Vector, Vector2, EuclideanVector}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^^ no `EuclideanVector` in the root [INFO] [stdout] | | [INFO] [stdout] | no `Vector` in the root [INFO] [stdout] | help: a similar name exists in the module (notice the capitalization): `vector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/main.rs:299:22 [INFO] [stdout] | [INFO] [stdout] 299 | a_points.push((trajectory.control_angle * RADDEG * 1000.)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved imports `cgmath::Vector`, `cgmath::EuclideanVector` [INFO] [stdout] --> src/main.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 9 | use cgmath::{Vector, Vector2, EuclideanVector}; [INFO] [stdout] | ^^^^^^ ^^^^^^^^^^^^^^^ no `EuclideanVector` in the root [INFO] [stdout] | | [INFO] [stdout] | no `Vector` in the root [INFO] [stdout] | help: a similar name exists in the module (notice the capitalization): `vector` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/main.rs:299:22 [INFO] [stdout] | [INFO] [stdout] 299 | a_points.push((trajectory.control_angle * RADDEG * 1000.)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `length2` found for struct `Vector2` in the current scope [INFO] [stdout] --> src/main.rs:22:16 [INFO] [stdout] | [INFO] [stdout] 22 | let d2 = dist.length2(); [INFO] [stdout] | ^^^^^^^ method not found in `Vector2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `normalize` found for struct `Vector2` in the current scope [INFO] [stdout] --> src/main.rs:23:15 [INFO] [stdout] | [INFO] [stdout] 23 | let n = dist.normalize(); [INFO] [stdout] | ^^^^^^^^^ method not found in `Vector2` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 5 | use cgmath::InnerSpace; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `length` found for struct `Vector2` in the current scope [INFO] [stdout] --> src/main.rs:35:24 [INFO] [stdout] | [INFO] [stdout] 35 | (pos - PLANET_CENTER).length() - PLANET_RADIUS [INFO] [stdout] | ^^^^^^ method not found in `Vector2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `normalize` found for struct `Vector2` in the current scope [INFO] [stdout] --> src/main.rs:43:24 [INFO] [stdout] | [INFO] [stdout] 43 | (PLANET_CENTER - pos).normalize() [INFO] [stdout] | ^^^^^^^^^ method not found in `Vector2` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 5 | use cgmath::InnerSpace; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `length` found for struct `Vector2` in the current scope [INFO] [stdout] --> src/main.rs:73:48 [INFO] [stdout] | [INFO] [stdout] 73 | let t = (twr * self.mass() * gravity_at(pos).length()) / self.max_thrust; [INFO] [stdout] | ^^^^^^ method not found in `Vector2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/main.rs:120:40 [INFO] [stdout] | [INFO] [stdout] 120 | let target_bit:usize = thread_rng().gen_range(0, bitlen); [INFO] [stdout] | ^^^^^^^^^ - ------ supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `dot` found for struct `Vector2` in the current scope [INFO] [stdout] --> src/main.rs:215:21 [INFO] [stdout] | [INFO] [stdout] 215 | down_at(self.pos).dot(self.vel) [INFO] [stdout] | ^^^ method not found in `Vector2` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 5 | use cgmath::InnerSpace; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `length2` found for struct `Vector2` in the current scope [INFO] [stdout] --> src/main.rs:224:26 [INFO] [stdout] | [INFO] [stdout] 224 | let drag = if self.vel.length2() > 0. && false /*HACK*/ { [INFO] [stdout] | ^^^^^^^ method not found in `Vector2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `length` found for struct `Vector2` in the current scope [INFO] [stdout] --> src/main.rs:225:21 [INFO] [stdout] | [INFO] [stdout] 225 | let V = self.vel.length(); [INFO] [stdout] | ^^^^^^ method not found in `Vector2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `normalize` found for struct `Vector2` in the current scope [INFO] [stdout] --> src/main.rs:230:14 [INFO] [stdout] | [INFO] [stdout] 230 | -self.vel.normalize() * d [INFO] [stdout] | ^^^^^^^^^ method not found in `Vector2` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 5 | use cgmath::InnerSpace; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `choose` found for struct `ThreadRng` in the current scope [INFO] [stdout] --> src/main.rs:417:18 [INFO] [stdout] | [INFO] [stdout] 417 | thread_rng().choose(&closest[1..mating_pool_size+1]).unwrap().1 [INFO] [stdout] | ^^^^^^ method not found in `ThreadRng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `gen_weighted_bool` found for struct `ThreadRng` in the current scope [INFO] [stdout] --> src/main.rs:425:68 [INFO] [stdout] | [INFO] [stdout] 425 | if gen_since_last_best > catastrophe_generations && thread_rng().gen_weighted_bool(catastrophe_generations) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ method not found in `ThreadRng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `optimize_orbit` [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[E0599]: no method named `length2` found for struct `Vector2` in the current scope [INFO] [stdout] --> src/main.rs:22:16 [INFO] [stdout] | [INFO] [stdout] 22 | let d2 = dist.length2(); [INFO] [stdout] | ^^^^^^^ method not found in `Vector2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `normalize` found for struct `Vector2` in the current scope [INFO] [stdout] --> src/main.rs:23:15 [INFO] [stdout] | [INFO] [stdout] 23 | let n = dist.normalize(); [INFO] [stdout] | ^^^^^^^^^ method not found in `Vector2` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 5 | use cgmath::InnerSpace; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `length` found for struct `Vector2` in the current scope [INFO] [stdout] --> src/main.rs:35:24 [INFO] [stdout] | [INFO] [stdout] 35 | (pos - PLANET_CENTER).length() - PLANET_RADIUS [INFO] [stdout] | ^^^^^^ method not found in `Vector2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `normalize` found for struct `Vector2` in the current scope [INFO] [stdout] --> src/main.rs:43:24 [INFO] [stdout] | [INFO] [stdout] 43 | (PLANET_CENTER - pos).normalize() [INFO] [stdout] | ^^^^^^^^^ method not found in `Vector2` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 5 | use cgmath::InnerSpace; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `length` found for struct `Vector2` in the current scope [INFO] [stdout] --> src/main.rs:73:48 [INFO] [stdout] | [INFO] [stdout] 73 | let t = (twr * self.mass() * gravity_at(pos).length()) / self.max_thrust; [INFO] [stdout] | ^^^^^^ method not found in `Vector2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/main.rs:120:40 [INFO] [stdout] | [INFO] [stdout] 120 | let target_bit:usize = thread_rng().gen_range(0, bitlen); [INFO] [stdout] | ^^^^^^^^^ - ------ supplied 2 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 1 argument [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `dot` found for struct `Vector2` in the current scope [INFO] [stdout] --> src/main.rs:215:21 [INFO] [stdout] | [INFO] [stdout] 215 | down_at(self.pos).dot(self.vel) [INFO] [stdout] | ^^^ method not found in `Vector2` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 5 | use cgmath::InnerSpace; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `length2` found for struct `Vector2` in the current scope [INFO] [stdout] --> src/main.rs:224:26 [INFO] [stdout] | [INFO] [stdout] 224 | let drag = if self.vel.length2() > 0. && false /*HACK*/ { [INFO] [stdout] | ^^^^^^^ method not found in `Vector2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `length` found for struct `Vector2` in the current scope [INFO] [stdout] --> src/main.rs:225:21 [INFO] [stdout] | [INFO] [stdout] 225 | let V = self.vel.length(); [INFO] [stdout] | ^^^^^^ method not found in `Vector2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `normalize` found for struct `Vector2` in the current scope [INFO] [stdout] --> src/main.rs:230:14 [INFO] [stdout] | [INFO] [stdout] 230 | -self.vel.normalize() * d [INFO] [stdout] | ^^^^^^^^^ method not found in `Vector2` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is in scope [INFO] [stdout] help: the following trait is implemented but not in scope; perhaps add a `use` for it: [INFO] [stdout] | [INFO] [stdout] 5 | use cgmath::InnerSpace; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `choose` found for struct `ThreadRng` in the current scope [INFO] [stdout] --> src/main.rs:417:18 [INFO] [stdout] | [INFO] [stdout] 417 | thread_rng().choose(&closest[1..mating_pool_size+1]).unwrap().1 [INFO] [stdout] | ^^^^^^ method not found in `ThreadRng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `gen_weighted_bool` found for struct `ThreadRng` in the current scope [INFO] [stdout] --> src/main.rs:425:68 [INFO] [stdout] | [INFO] [stdout] 425 | if gen_since_last_best > catastrophe_generations && thread_rng().gen_weighted_bool(catastrophe_generations) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ method not found in `ThreadRng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 13 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "d688c80c24b038135c84d755567d6a3b214c43adce25764dc9ff4e6dcd7deca7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d688c80c24b038135c84d755567d6a3b214c43adce25764dc9ff4e6dcd7deca7", kill_on_drop: false }` [INFO] [stdout] d688c80c24b038135c84d755567d6a3b214c43adce25764dc9ff4e6dcd7deca7