[INFO] cloning repository https://github.com/sigurof/gravity-practicing-rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/sigurof/gravity-practicing-rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsigurof%2Fgravity-practicing-rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsigurof%2Fgravity-practicing-rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 579ecc033809fe54737b9c628e8de8b2428ba673 [INFO] checking sigurof/gravity-practicing-rust against try#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsigurof%2Fgravity-practicing-rust" "/workspace/builds/worker-26/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-26/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/sigurof/gravity-practicing-rust on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/sigurof/gravity-practicing-rust [INFO] finished tweaking git repo https://github.com/sigurof/gravity-practicing-rust [INFO] tweaked toml for git repo https://github.com/sigurof/gravity-practicing-rust written to /workspace/builds/worker-26/source/Cargo.toml [INFO] crate git repo https://github.com/sigurof/gravity-practicing-rust already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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-26/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 054316adeaa284793dccffca70875232b6a5d713bfbf5514ffed95b5361f0e61 [INFO] running `Command { std: "docker" "start" "-a" "054316adeaa284793dccffca70875232b6a5d713bfbf5514ffed95b5361f0e61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "054316adeaa284793dccffca70875232b6a5d713bfbf5514ffed95b5361f0e61", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "054316adeaa284793dccffca70875232b6a5d713bfbf5514ffed95b5361f0e61", kill_on_drop: false }` [INFO] [stdout] 054316adeaa284793dccffca70875232b6a5d713bfbf5514ffed95b5361f0e61 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-26/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8ff4a893815e1b79179f0842ee03218b93521c53bc87274cc3bce0743bdce91b [INFO] running `Command { std: "docker" "start" "-a" "8ff4a893815e1b79179f0842ee03218b93521c53bc87274cc3bce0743bdce91b", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Compiling autocfg v0.1.6 [INFO] [stderr] Checking rand_core v0.4.2 [INFO] [stderr] Compiling libc v0.2.62 [INFO] [stderr] Compiling typenum v1.11.2 [INFO] [stderr] Compiling libm v0.1.4 [INFO] [stderr] Checking rawpointer v0.2.1 [INFO] [stderr] Checking matrixmultiply v0.2.3 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking rand_jitter v0.1.4 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Compiling num-traits v0.2.8 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling num-complex v0.2.3 [INFO] [stderr] Compiling num-rational v0.2.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking generic-array v0.12.3 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking alga v0.9.1 [INFO] [stderr] Checking nalgebra v0.18.1 [INFO] [stderr] Checking gravity v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/gravity/physical/system.rs (1 fix) [INFO] [stdout] warning: struct is never constructed: `Runner` [INFO] [stdout] --> src/gravity/calculation.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Runner { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `t` [INFO] [stdout] --> src/gravity/calculation.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | t: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reset_acceleration` [INFO] [stdout] --> src/gravity/physical/body.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn reset_acceleration(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_force` [INFO] [stdout] --> src/gravity/physical/body.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn set_force(&mut self, f: v3) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_mass` [INFO] [stdout] --> src/gravity/physical/body.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn get_mass(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `bs_get_mass` [INFO] [stdout] --> src/gravity/physical/body.rs:193:8 [INFO] [stdout] | [INFO] [stdout] 193 | fn bs_get_mass() { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Runner` [INFO] [stdout] --> src/gravity/calculation.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Runner { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `t` [INFO] [stdout] --> src/gravity/calculation.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | t: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reset_acceleration` [INFO] [stdout] --> src/gravity/physical/body.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn reset_acceleration(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_force` [INFO] [stdout] --> src/gravity/physical/body.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn set_force(&mut self, f: v3) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_acceleration` [INFO] [stdout] --> src/gravity/physical/body.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn add_acceleration(&mut self, a: v3) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_mass` [INFO] [stdout] --> src/gravity/physical/body.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn get_mass(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_acceleration` [INFO] [stdout] --> src/gravity/physical/body.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn get_acceleration(&self) -> v3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_velocity` [INFO] [stdout] --> src/gravity/physical/body.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn get_velocity(&self) -> v3 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_position` [INFO] [stdout] --> src/gravity/physical/body.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn get_position(&self) -> v3 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 12.48s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking gravity v0.1.0 (/tmp/fixit) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:54:18 [INFO] [stdout] | [INFO] [stdout] 54 | let r1 = v3::new(0.0, 0.0, 0.0); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:55:18 [INFO] [stdout] | [INFO] [stdout] 55 | let v1 = v3::new(0.0, 0.0, 0.0); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:56:18 [INFO] [stdout] | [INFO] [stdout] 56 | let a1 = v3::new(0.0, 0.0, 0.0); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:57:18 [INFO] [stdout] | [INFO] [stdout] 57 | let f1 = v3::new(0.0, 0.0, 0.0); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:60:18 [INFO] [stdout] | [INFO] [stdout] 60 | let r2 = v3::new(1.0, 0.0, 0.0); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:61:18 [INFO] [stdout] | [INFO] [stdout] 61 | let v2 = v3::new(0.0, 0.0, 0.0); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:62:18 [INFO] [stdout] | [INFO] [stdout] 62 | let a2 = v3::new(0.0, 0.0, 0.0); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:63:18 [INFO] [stdout] | [INFO] [stdout] 63 | let f2 = v3::new(0.0, 0.0, 0.0); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:66:18 [INFO] [stdout] | [INFO] [stdout] 66 | let r3 = v3::new(0.0, 1.0, 0.0); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:67:18 [INFO] [stdout] | [INFO] [stdout] 67 | let v3 = v3::new(0.0, 0.0, 0.0); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:68:18 [INFO] [stdout] | [INFO] [stdout] 68 | let a3 = v3::new(0.0, 0.0, 0.0); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:69:18 [INFO] [stdout] | [INFO] [stdout] 69 | let f3 = v3::new(0.0, 0.0, 0.0); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:113:18 [INFO] [stdout] | [INFO] [stdout] 113 | let r1 = v3::new(0.0, 0.0, 0.0); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:114:18 [INFO] [stdout] | [INFO] [stdout] 114 | let v1 = v3::new(0.0, 0.0, 0.0); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:115:18 [INFO] [stdout] | [INFO] [stdout] 115 | let a1 = v3::new(0.0, 0.0, 0.0); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:116:18 [INFO] [stdout] | [INFO] [stdout] 116 | let f1 = v3::new(0.0, 0.0, 0.0); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:120:18 [INFO] [stdout] | [INFO] [stdout] 120 | let r2 = v3::new(1.0, 0.0, 0.0); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:121:18 [INFO] [stdout] | [INFO] [stdout] 121 | let v2 = v3::new(0.0, 0.0, 0.0); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:122:18 [INFO] [stdout] | [INFO] [stdout] 122 | let a2 = v3::new(0.0, 0.0, 0.0); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:123:18 [INFO] [stdout] | [INFO] [stdout] 123 | let f2 = v3::new(0.0, 0.0, 0.0); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:127:18 [INFO] [stdout] | [INFO] [stdout] 127 | let r3 = v3::new(0.0, 1.0, 0.0); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:128:18 [INFO] [stdout] | [INFO] [stdout] 128 | let v3 = v3::new(0.0, 0.0, 0.0); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:129:18 [INFO] [stdout] | [INFO] [stdout] 129 | let a3 = v3::new(0.0, 0.0, 0.0); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:130:18 [INFO] [stdout] | [INFO] [stdout] 130 | let f3 = v3::new(0.0, 0.0, 0.0); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:135:27 [INFO] [stdout] | [INFO] [stdout] 135 | let expected_a1 = v3::new(2.0, 3.0, 0.0); [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:136:42 [INFO] [stdout] | [INFO] [stdout] 136 | let expected_a2 = ((3.0 / 2.0) * v3::new(-2.0_f32.sqrt(), 2.0_f32.sqrt(), 0.0) [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:137:15 [INFO] [stdout] | [INFO] [stdout] 137 | - v3::new(2.0, 0.0, 0.0)) [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:139:43 [INFO] [stdout] | [INFO] [stdout] 139 | let expected_a3 = (-(3.0 / 2.0) * v3::new(-2.0_f32.sqrt(), 2.0_f32.sqrt(), 0.0) [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `v3` [INFO] [stdout] --> src/gravity/physical/system.rs:140:15 [INFO] [stdout] | [INFO] [stdout] 140 | - v3::new(0.0, 3.0, 0.0)) [INFO] [stdout] | ^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this type alias [INFO] [stdout] | [INFO] [stdout] 47 | use crate::v3; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `Runner` [INFO] [stdout] --> src/gravity/calculation.rs:4:12 [INFO] [stdout] | [INFO] [stdout] 4 | pub struct Runner { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `t` [INFO] [stdout] --> src/gravity/calculation.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | t: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `reset_acceleration` [INFO] [stdout] --> src/gravity/physical/body.rs:15:12 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn reset_acceleration(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `set_force` [INFO] [stdout] --> src/gravity/physical/body.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn set_force(&mut self, f: v3) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `add_acceleration` [INFO] [stdout] --> src/gravity/physical/body.rs:27:12 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn add_acceleration(&mut self, a: v3) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_mass` [INFO] [stdout] --> src/gravity/physical/body.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn get_mass(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_acceleration` [INFO] [stdout] --> src/gravity/physical/body.rs:42:12 [INFO] [stdout] | [INFO] [stdout] 42 | pub fn get_acceleration(&self) -> v3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_velocity` [INFO] [stdout] --> src/gravity/physical/body.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn get_velocity(&self) -> v3 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_position` [INFO] [stdout] --> src/gravity/physical/body.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn get_position(&self) -> v3 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/gravity/physical/system.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 150 | / assert_eq!( [INFO] [stdout] 151 | | sys.bodies[1].get_acceleration(), [INFO] [stdout] 152 | | expected_a2, [INFO] [stdout] 153 | | "failed for body no. 2" [INFO] [stdout] 154 | | ); [INFO] [stdout] | |__________^ expected struct `Matrix`, found floating-point number [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Matrix>` [INFO] [stdout] found type `{float}` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/gravity/physical/system.rs:155:9 [INFO] [stdout] | [INFO] [stdout] 155 | / assert_eq!( [INFO] [stdout] 156 | | sys.bodies[2].get_acceleration(), [INFO] [stdout] 157 | | expected_a3, [INFO] [stdout] 158 | | "failed for body no. 3" [INFO] [stdout] 159 | | ); [INFO] [stdout] | |__________^ expected struct `Matrix`, found floating-point number [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Matrix>` [INFO] [stdout] found type `{float}` [INFO] [stdout] = note: this error originates in the macro `assert_eq` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 31 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `gravity` due to 32 previous errors [INFO] [stderr] error: failed to check after updating to 2021 [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `cargo check --frozen --all --all-targets --message-format=json` (exit status: 101) [INFO] running `Command { std: "docker" "inspect" "8ff4a893815e1b79179f0842ee03218b93521c53bc87274cc3bce0743bdce91b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ff4a893815e1b79179f0842ee03218b93521c53bc87274cc3bce0743bdce91b", kill_on_drop: false }` [INFO] [stdout] 8ff4a893815e1b79179f0842ee03218b93521c53bc87274cc3bce0743bdce91b