[INFO] fetching crate motion 0.1.6... [INFO] testing motion-0.1.6 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate motion 0.1.6 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate motion 0.1.6 [INFO] finished tweaking crates.io crate motion 0.1.6 [INFO] tweaked toml for crates.io crate motion 0.1.6 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate motion 0.1.6 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bac82abd9e51a1150e23f1ad0a38e32f483acce80af14f0c85ed7606f41bdac9 [INFO] running `Command { std: "docker" "start" "-a" "bac82abd9e51a1150e23f1ad0a38e32f483acce80af14f0c85ed7606f41bdac9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bac82abd9e51a1150e23f1ad0a38e32f483acce80af14f0c85ed7606f41bdac9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bac82abd9e51a1150e23f1ad0a38e32f483acce80af14f0c85ed7606f41bdac9", kill_on_drop: false }` [INFO] [stdout] bac82abd9e51a1150e23f1ad0a38e32f483acce80af14f0c85ed7606f41bdac9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f24fc056ccdb829f05871c642cb0ec2f33c2730b4909eef417f359c8fb522a99 [INFO] running `Command { std: "docker" "start" "-a" "f24fc056ccdb829f05871c642cb0ec2f33c2730b4909eef417f359c8fb522a99", kill_on_drop: false }` [INFO] [stderr] Compiling motion v0.1.6 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.27s [INFO] running `Command { std: "docker" "inspect" "f24fc056ccdb829f05871c642cb0ec2f33c2730b4909eef417f359c8fb522a99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f24fc056ccdb829f05871c642cb0ec2f33c2730b4909eef417f359c8fb522a99", kill_on_drop: false }` [INFO] [stdout] f24fc056ccdb829f05871c642cb0ec2f33c2730b4909eef417f359c8fb522a99 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5c6f36eb5595b7e835f179c9bf2e7681244052f77619995bdaf1061a38374fc8 [INFO] running `Command { std: "docker" "start" "-a" "5c6f36eb5595b7e835f179c9bf2e7681244052f77619995bdaf1061a38374fc8", kill_on_drop: false }` [INFO] [stderr] Compiling motion v0.1.6 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.35s [INFO] running `Command { std: "docker" "inspect" "5c6f36eb5595b7e835f179c9bf2e7681244052f77619995bdaf1061a38374fc8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5c6f36eb5595b7e835f179c9bf2e7681244052f77619995bdaf1061a38374fc8", kill_on_drop: false }` [INFO] [stdout] 5c6f36eb5595b7e835f179c9bf2e7681244052f77619995bdaf1061a38374fc8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 01de572fb5eea843db075f626f21faf2586437bbd6de6d8bf0978decfe798156 [INFO] running `Command { std: "docker" "start" "-a" "01de572fb5eea843db075f626f21faf2586437bbd6de6d8bf0978decfe798156", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/motion-21422b09db0f2a74) [INFO] [stdout] running 0 tests [INFO] [stderr] Doc-tests motion [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] warning: the `main` function of this doctest won't be run as it contains expressions at the top level, meaning that the whole doctest code will be wrapped in a function [INFO] [stderr] --> src/lib.rs:12:1 [INFO] [stderr] | [INFO] [stderr] 12 | //!```rust [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: 1 warning emitted [INFO] [stderr] [INFO] [stdout] [INFO] [stdout] running 29 tests [INFO] [stdout] test src/forces/gravity.rs - forces::gravity::gravity (line 61) ... FAILED [INFO] [stdout] test src/forces/force.rs - forces::force::Force (line 9) ... FAILED [INFO] [stdout] test src/collision/mod.rs - collision::Collision2d::new (line 27) ... FAILED [INFO] [stdout] test src/event_loop/mod.rs - event_loop::EventLoop::start_mut (line 76) ... FAILED [INFO] [stdout] test src/event_loop/mod.rs - event_loop::EventLoop::new (line 23) ... FAILED [INFO] [stdout] test src/collision/shape.rs - collision::shape::Shape::get_aabb (line 19) ... FAILED [INFO] [stdout] test src/formulas/pow.rs - formulas::pow::powf (line 5) ... FAILED [INFO] [stdout] test src/formulas/elastic_collision.rs - formulas::elastic_collision::calculate (line 7) ... FAILED [INFO] [stdout] test src/forces/move.rs - forces::r#move::Move2d::apply_2d (line 30) ... FAILED [INFO] [stdout] test src/event_loop/mod.rs - event_loop::EventLoopBuilder::new (line 116) ... FAILED [INFO] [stdout] test src/formulas/dot.rs - formulas::dot::length (line 55) ... FAILED [INFO] [stdout] test src/forces/move.rs - forces::r#move::move2d (line 72) ... FAILED [INFO] [stdout] test src/lib.rs - (line 12) ... FAILED [INFO] [stdout] test src/obj/obj_2d.rs - obj::obj_2d::obj2d (line 105) ... FAILED [INFO] [stdout] test src/formulas/sqrt.rs - formulas::sqrt::sqrt (line 5) ... FAILED [INFO] [stdout] test src/obj/obj_2d.rs - obj::obj_2d::Object2d::new (line 45) ... FAILED [INFO] [stdout] test src/obj/obj_2d.rs - obj::obj_2d::Object2d::apply (line 77) ... FAILED [INFO] [stdout] test src/vec/vec_2d.rs - vec::vec_2d::Vec2d::new (line 29) ... FAILED [INFO] [stdout] test src/event_loop/mod.rs - event_loop::EventLoop::start (line 44) ... FAILED [INFO] [stdout] test src/formulas/pitagoras.rs - formulas::pitagoras::calculate_pt (line 7) ... FAILED [INFO] [stdout] test src/formulas/dot.rs - formulas::dot::dot (line 9) ... FAILED [INFO] [stdout] test src/formulas/dot.rs - formulas::dot::length2 (line 33) ... FAILED [INFO] [stdout] test src/collision/mod.rs - collision::Collision2d::collider (line 45) ... FAILED [INFO] [stdout] test src/forces/gravity.rs - forces::gravity::Gravity::apply_2d (line 27) ... FAILED [INFO] [stdout] test src/vec/vec_2d.rs - vec::vec_2d::Vec2d (line 8) ... FAILED [INFO] [stdout] test src/vec/vec_2d.rs - vec::vec_2d::Vec2d::magnitude (line 62) ... FAILED [INFO] [stdout] test src/vec/vec_2d.rs - vec::vec_2d::Vec2d::distance (line 75) ... FAILED [INFO] [stdout] test src/vec/vec_2d.rs - vec::vec_2d::Vec2d::component (line 43) ... FAILED [INFO] [stdout] test src/vec/vec_2d.rs - vec::vec_2d::vec2 (line 181) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/forces/gravity.rs - forces::gravity::gravity (line 61) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `gravity` in this scope [INFO] [stdout] --> src/forces/gravity.rs:62:15 [INFO] [stdout] | [INFO] [stdout] 3 | let gravity = gravity(EARTH_GRAVITY, 1.0, 0.016); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use motion::forces::gravity::gravity; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `EARTH_GRAVITY` in this scope [INFO] [stdout] --> src/forces/gravity.rs:62:23 [INFO] [stdout] | [INFO] [stdout] 3 | let gravity = gravity(EARTH_GRAVITY, 1.0, 0.016); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 2 + use motion::forces::gravity::EARTH_GRAVITY; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/forces/force.rs - forces::force::Force (line 9) stdout ---- [INFO] [stdout] error[E0405]: cannot find trait `Force` in this scope [INFO] [stdout] --> src/forces/force.rs:12:6 [INFO] [stdout] | [INFO] [stdout] 5 | impl Force for Gravity { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this trait [INFO] [stdout] | [INFO] [stdout] 2 + use motion::forces::force::Force; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Object2d` in this scope [INFO] [stdout] --> src/forces/force.rs:13:34 [INFO] [stdout] | [INFO] [stdout] 6 | fn apply_2d(&mut self, obj: &Object2d) { [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::obj::obj_2d::Object2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0405, E0412. [INFO] [stdout] For more information about an error, try `rustc --explain E0405`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/collision/mod.rs - collision::Collision2d::new (line 27) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Object2d` [INFO] [stdout] --> src/collision/mod.rs:28:12 [INFO] [stdout] | [INFO] [stdout] 3 | let obj1 = Object2d::new(/* parameters */); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Object2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::obj::obj_2d::Object2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Object2d` [INFO] [stdout] --> src/collision/mod.rs:29:12 [INFO] [stdout] | [INFO] [stdout] 4 | let obj2 = Object2d::new(/* parameters */); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Object2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::obj::obj_2d::Object2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Collision2d` [INFO] [stdout] --> src/collision/mod.rs:30:17 [INFO] [stdout] | [INFO] [stdout] 5 | let collision = Collision2d::new(obj1, obj2); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `Collision2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::collision::Collision2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/event_loop/mod.rs - event_loop::EventLoop::start_mut (line 76) stdout ---- [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `EventLoopConfig` in this scope [INFO] [stdout] --> src/event_loop/mod.rs:77:14 [INFO] [stdout] | [INFO] [stdout] 3 | let config = EventLoopConfig { fps: 60, delta_time: 1.0 / 60.0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::event_loop::EventLoopConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventLoop` [INFO] [stdout] --> src/event_loop/mod.rs:78:18 [INFO] [stdout] | [INFO] [stdout] 4 | let event_loop = EventLoop::new(config); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `EventLoop` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::event_loop::EventLoop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/event_loop/mod.rs - event_loop::EventLoop::new (line 23) stdout ---- [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `EventLoopConfig` in this scope [INFO] [stdout] --> src/event_loop/mod.rs:24:14 [INFO] [stdout] | [INFO] [stdout] 3 | let config = EventLoopConfig { fps: 60, delta_time: 1.0 / 60.0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::event_loop::EventLoopConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventLoop` [INFO] [stdout] --> src/event_loop/mod.rs:25:18 [INFO] [stdout] | [INFO] [stdout] 4 | let event_loop = EventLoop::new(config); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `EventLoop` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::event_loop::EventLoop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/collision/shape.rs - collision::shape::Shape::get_aabb (line 19) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/collision/shape.rs:20:13 [INFO] [stdout] | [INFO] [stdout] 3 | let shape = Shape::AABB(Vec2d::new(0.0, 0.0), Vec2d::new(1.0, 1.0)); [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use motion::collision::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec2d` [INFO] [stdout] --> src/collision/shape.rs:20:25 [INFO] [stdout] | [INFO] [stdout] 3 | let shape = Shape::AABB(Vec2d::new(0.0, 0.0), Vec2d::new(1.0, 1.0)); [INFO] [stdout] | ^^^^^ use of undeclared type `Vec2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::vec::vec_2d::Vec2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec2d` [INFO] [stdout] --> src/collision/shape.rs:20:47 [INFO] [stdout] | [INFO] [stdout] 3 | let shape = Shape::AABB(Vec2d::new(0.0, 0.0), Vec2d::new(1.0, 1.0)); [INFO] [stdout] | ^^^^^ use of undeclared type `Vec2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::vec::vec_2d::Vec2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec2d` [INFO] [stdout] --> src/collision/shape.rs:22:16 [INFO] [stdout] | [INFO] [stdout] 5 | assert_eq!(v1, Vec2d::new(0.0, 0.0)); [INFO] [stdout] | ^^^^^ use of undeclared type `Vec2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::vec::vec_2d::Vec2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec2d` [INFO] [stdout] --> src/collision/shape.rs:23:16 [INFO] [stdout] | [INFO] [stdout] 6 | assert_eq!(v2, Vec2d::new(1.0, 1.0)); [INFO] [stdout] | ^^^^^ use of undeclared type `Vec2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::vec::vec_2d::Vec2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/formulas/pow.rs - formulas::pow::powf (line 5) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `powf` in this scope [INFO] [stdout] --> src/formulas/pow.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 3 | let result = powf(2.0, 3); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use motion::formulas::pow::powf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `powf` in this scope [INFO] [stdout] --> src/formulas/pow.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 6 | let result = powf(5.0, -2); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use motion::formulas::pow::powf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `powf` in this scope [INFO] [stdout] --> src/formulas/pow.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 9 | let result = powf(2.0, 0); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use motion::formulas::pow::powf; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/formulas/elastic_collision.rs - formulas::elastic_collision::calculate (line 7) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec2d` [INFO] [stdout] --> src/formulas/elastic_collision.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 3 | let v1 = Vec2d::new(3.0, 4.0); [INFO] [stdout] | ^^^^^ use of undeclared type `Vec2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::vec::vec_2d::Vec2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec2d` [INFO] [stdout] --> src/formulas/elastic_collision.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 4 | let v2 = Vec2d::new(1.0, 2.0); [INFO] [stdout] | ^^^^^ use of undeclared type `Vec2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::vec::vec_2d::Vec2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `calculate` in this scope [INFO] [stdout] --> src/formulas/elastic_collision.rs:13:20 [INFO] [stdout] | [INFO] [stdout] 8 | let new_velocity = calculate(v1, m1, m2, v2); [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use motion::formulas::elastic_collision::calculate; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/forces/move.rs - forces::r#move::Move2d::apply_2d (line 30) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Object2d` [INFO] [stdout] --> src/forces/move.rs:31:15 [INFO] [stdout] | [INFO] [stdout] 3 | let mut obj = Object2d::new(/* initial parameters */); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Object2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::obj::obj_2d::Object2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Move2d` in this scope [INFO] [stdout] --> src/forces/move.rs:32:18 [INFO] [stdout] | [INFO] [stdout] 4 | let move_force = Move2d { [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::forces::r#move::Move2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Direction2d` [INFO] [stdout] --> src/forces/move.rs:33:16 [INFO] [stdout] | [INFO] [stdout] 5 | direction: Direction2d::X, [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `Direction2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use motion::forces::r#move::Direction2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/event_loop/mod.rs - event_loop::EventLoopBuilder::new (line 116) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventLoopBuilder` [INFO] [stdout] --> src/event_loop/mod.rs:117:15 [INFO] [stdout] | [INFO] [stdout] 3 | let builder = EventLoopBuilder::new(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ use of undeclared type `EventLoopBuilder` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::event_loop::EventLoopBuilder; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/formulas/dot.rs - formulas::dot::length (line 55) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec2d` [INFO] [stdout] --> src/formulas/dot.rs:56:9 [INFO] [stdout] | [INFO] [stdout] 3 | let u = Vec2d::new(3.0, 4.0); [INFO] [stdout] | ^^^^^ use of undeclared type `Vec2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::vec::vec_2d::Vec2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `length` in this scope [INFO] [stdout] --> src/formulas/dot.rs:57:14 [INFO] [stdout] | [INFO] [stdout] 4 | let result = length(u); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use motion::formulas::dot::length; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/forces/move.rs - forces::r#move::move2d (line 72) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `move2d` in this scope [INFO] [stdout] --> src/forces/move.rs:73:18 [INFO] [stdout] | [INFO] [stdout] 3 | let move_force = move2d(Direction2d::X, 0.016, 60.0); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use motion::forces::r#move::move2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Direction2d` [INFO] [stdout] --> src/forces/move.rs:73:25 [INFO] [stdout] | [INFO] [stdout] 3 | let move_force = move2d(Direction2d::X, 0.016, 60.0); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `Direction2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use motion::forces::r#move::Direction2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 12) stdout ---- [INFO] [stdout] error: statements are terminated with a semicolon [INFO] [stdout] --> src/lib.rs:27:7 [INFO] [stdout] | [INFO] [stdout] 18 | https: [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: use a semicolon instead [INFO] [stdout] | [INFO] [stdout] 18 - https: [INFO] [stdout] 18 + https; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `https` in this scope [INFO] [stdout] --> src/lib.rs:27:2 [INFO] [stdout] | [INFO] [stdout] 18 | https: [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/obj/obj_2d.rs - obj::obj_2d::obj2d (line 105) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `obj2d` in this scope [INFO] [stdout] --> src/obj/obj_2d.rs:106:11 [INFO] [stdout] | [INFO] [stdout] 3 | let obj = obj2d(vec2(1.0, 2.0), 1.0, 1.0, vec2(0.0, 0.0), vec2(0.0, 0.0), 1.0, Shape::Circle); [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use motion::obj::obj_2d::obj2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vec2` in this scope [INFO] [stdout] --> src/obj/obj_2d.rs:106:17 [INFO] [stdout] | [INFO] [stdout] 3 | let obj = obj2d(vec2(1.0, 2.0), 1.0, 1.0, vec2(0.0, 0.0), vec2(0.0, 0.0), 1.0, Shape::Circle); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use motion::vec::vec_2d::vec2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vec2` in this scope [INFO] [stdout] --> src/obj/obj_2d.rs:106:43 [INFO] [stdout] | [INFO] [stdout] 3 | let obj = obj2d(vec2(1.0, 2.0), 1.0, 1.0, vec2(0.0, 0.0), vec2(0.0, 0.0), 1.0, Shape::Circle); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use motion::vec::vec_2d::vec2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vec2` in this scope [INFO] [stdout] --> src/obj/obj_2d.rs:106:59 [INFO] [stdout] | [INFO] [stdout] 3 | let obj = obj2d(vec2(1.0, 2.0), 1.0, 1.0, vec2(0.0, 0.0), vec2(0.0, 0.0), 1.0, Shape::Circle); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use motion::vec::vec_2d::vec2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/obj/obj_2d.rs:106:80 [INFO] [stdout] | [INFO] [stdout] 3 | let obj = obj2d(vec2(1.0, 2.0), 1.0, 1.0, vec2(0.0, 0.0), vec2(0.0, 0.0), 1.0, Shape::Circle); [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use motion::collision::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/formulas/sqrt.rs - formulas::sqrt::sqrt (line 5) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `sqrt` in this scope [INFO] [stdout] --> src/formulas/sqrt.rs:6:14 [INFO] [stdout] | [INFO] [stdout] 3 | let result = sqrt(4.0); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 2 + use core::f32::math::sqrt; [INFO] [stdout] | [INFO] [stdout] 2 + use core::f64::math::sqrt; [INFO] [stdout] | [INFO] [stdout] 2 + use motion::formulas::sqrt::sqrt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `sqrt` in this scope [INFO] [stdout] --> src/formulas/sqrt.rs:9:14 [INFO] [stdout] | [INFO] [stdout] 6 | let result = sqrt(9.0); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 2 + use core::f32::math::sqrt; [INFO] [stdout] | [INFO] [stdout] 2 + use core::f64::math::sqrt; [INFO] [stdout] | [INFO] [stdout] 2 + use motion::formulas::sqrt::sqrt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `sqrt` in this scope [INFO] [stdout] --> src/formulas/sqrt.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 9 | let result = sqrt(-1.0); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these functions [INFO] [stdout] | [INFO] [stdout] 2 + use core::f32::math::sqrt; [INFO] [stdout] | [INFO] [stdout] 2 + use core::f64::math::sqrt; [INFO] [stdout] | [INFO] [stdout] 2 + use motion::formulas::sqrt::sqrt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/obj/obj_2d.rs - obj::obj_2d::Object2d::new (line 45) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Object2d` [INFO] [stdout] --> src/obj/obj_2d.rs:46:11 [INFO] [stdout] | [INFO] [stdout] 3 | let obj = Object2d::new(vec2(1.0, 2.0), 1.0, 1.0, vec2(0.0, 0.0), vec2(0.0, 0.0), 1.0, Shape::Circle); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Object2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::obj::obj_2d::Object2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vec2` in this scope [INFO] [stdout] --> src/obj/obj_2d.rs:46:25 [INFO] [stdout] | [INFO] [stdout] 3 | let obj = Object2d::new(vec2(1.0, 2.0), 1.0, 1.0, vec2(0.0, 0.0), vec2(0.0, 0.0), 1.0, Shape::Circle); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use motion::vec::vec_2d::vec2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vec2` in this scope [INFO] [stdout] --> src/obj/obj_2d.rs:46:51 [INFO] [stdout] | [INFO] [stdout] 3 | let obj = Object2d::new(vec2(1.0, 2.0), 1.0, 1.0, vec2(0.0, 0.0), vec2(0.0, 0.0), 1.0, Shape::Circle); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use motion::vec::vec_2d::vec2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vec2` in this scope [INFO] [stdout] --> src/obj/obj_2d.rs:46:67 [INFO] [stdout] | [INFO] [stdout] 3 | let obj = Object2d::new(vec2(1.0, 2.0), 1.0, 1.0, vec2(0.0, 0.0), vec2(0.0, 0.0), 1.0, Shape::Circle); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use motion::vec::vec_2d::vec2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/obj/obj_2d.rs:46:88 [INFO] [stdout] | [INFO] [stdout] 3 | let obj = Object2d::new(vec2(1.0, 2.0), 1.0, 1.0, vec2(0.0, 0.0), vec2(0.0, 0.0), 1.0, Shape::Circle); [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use motion::collision::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/obj/obj_2d.rs - obj::obj_2d::Object2d::apply (line 77) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Object2d` [INFO] [stdout] --> src/obj/obj_2d.rs:78:15 [INFO] [stdout] | [INFO] [stdout] 3 | let mut obj = Object2d::new(vec2(1.0, 2.0), 1.0, 1.0, vec2(0.0, 0.0), vec2(0.0, 0.0), 1.0, Shape::Circle); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Object2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::obj::obj_2d::Object2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vec2` in this scope [INFO] [stdout] --> src/obj/obj_2d.rs:78:29 [INFO] [stdout] | [INFO] [stdout] 3 | let mut obj = Object2d::new(vec2(1.0, 2.0), 1.0, 1.0, vec2(0.0, 0.0), vec2(0.0, 0.0), 1.0, Shape::Circle); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use motion::vec::vec_2d::vec2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vec2` in this scope [INFO] [stdout] --> src/obj/obj_2d.rs:78:55 [INFO] [stdout] | [INFO] [stdout] 3 | let mut obj = Object2d::new(vec2(1.0, 2.0), 1.0, 1.0, vec2(0.0, 0.0), vec2(0.0, 0.0), 1.0, Shape::Circle); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use motion::vec::vec_2d::vec2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `vec2` in this scope [INFO] [stdout] --> src/obj/obj_2d.rs:78:71 [INFO] [stdout] | [INFO] [stdout] 3 | let mut obj = Object2d::new(vec2(1.0, 2.0), 1.0, 1.0, vec2(0.0, 0.0), vec2(0.0, 0.0), 1.0, Shape::Circle); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use motion::vec::vec_2d::vec2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Shape` [INFO] [stdout] --> src/obj/obj_2d.rs:78:92 [INFO] [stdout] | [INFO] [stdout] 3 | let mut obj = Object2d::new(vec2(1.0, 2.0), 1.0, 1.0, vec2(0.0, 0.0), vec2(0.0, 0.0), 1.0, Shape::Circle); [INFO] [stdout] | ^^^^^ use of undeclared type `Shape` [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 + use motion::collision::shape::Shape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Gravity` [INFO] [stdout] --> src/obj/obj_2d.rs:79:15 [INFO] [stdout] | [INFO] [stdout] 4 | let gravity = Gravity::new(EARTH_GRAVITY, 1.0, 0.016); [INFO] [stdout] | ^^^^^^^ use of undeclared type `Gravity` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::forces::gravity::Gravity; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `EARTH_GRAVITY` in this scope [INFO] [stdout] --> src/obj/obj_2d.rs:79:28 [INFO] [stdout] | [INFO] [stdout] 4 | let gravity = Gravity::new(EARTH_GRAVITY, 1.0, 0.016); [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 2 + use motion::forces::gravity::EARTH_GRAVITY; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/vec/vec_2d.rs - vec::vec_2d::Vec2d::new (line 29) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec2d` [INFO] [stdout] --> src/vec/vec_2d.rs:30:11 [INFO] [stdout] | [INFO] [stdout] 3 | let vec = Vec2d::new(1.0, 2.0); [INFO] [stdout] | ^^^^^ use of undeclared type `Vec2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::vec::vec_2d::Vec2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/event_loop/mod.rs - event_loop::EventLoop::start (line 44) stdout ---- [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `EventLoopConfig` in this scope [INFO] [stdout] --> src/event_loop/mod.rs:45:14 [INFO] [stdout] | [INFO] [stdout] 3 | let config = EventLoopConfig { fps: 60, delta_time: 1.0 / 60.0 }; [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::event_loop::EventLoopConfig; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `EventLoop` [INFO] [stdout] --> src/event_loop/mod.rs:46:18 [INFO] [stdout] | [INFO] [stdout] 4 | let event_loop = EventLoop::new(config); [INFO] [stdout] | ^^^^^^^^^ use of undeclared type `EventLoop` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::event_loop::EventLoop; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/formulas/pitagoras.rs - formulas::pitagoras::calculate_pt (line 7) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `calculate_pt` in this scope [INFO] [stdout] --> src/formulas/pitagoras.rs:8:14 [INFO] [stdout] | [INFO] [stdout] 3 | let result = calculate_pt(3.0, 4.0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use motion::formulas::pitagoras::calculate_pt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `calculate_pt` in this scope [INFO] [stdout] --> src/formulas/pitagoras.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 6 | let result = calculate_pt(6.0, 8.0); [INFO] [stdout] | ^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use motion::formulas::pitagoras::calculate_pt; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/formulas/dot.rs - formulas::dot::dot (line 9) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec2d` [INFO] [stdout] --> src/formulas/dot.rs:10:9 [INFO] [stdout] | [INFO] [stdout] 3 | let u = Vec2d::new(3.0, 4.0); [INFO] [stdout] | ^^^^^ use of undeclared type `Vec2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::vec::vec_2d::Vec2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec2d` [INFO] [stdout] --> src/formulas/dot.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 4 | let v = Vec2d::new(1.0, 2.0); [INFO] [stdout] | ^^^^^ use of undeclared type `Vec2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::vec::vec_2d::Vec2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `dot` in this scope [INFO] [stdout] --> src/formulas/dot.rs:12:14 [INFO] [stdout] | [INFO] [stdout] 5 | let result = dot(u, v); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use motion::formulas::dot::dot; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/formulas/dot.rs - formulas::dot::length2 (line 33) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec2d` [INFO] [stdout] --> src/formulas/dot.rs:34:9 [INFO] [stdout] | [INFO] [stdout] 3 | let u = Vec2d::new(3.0, 4.0); [INFO] [stdout] | ^^^^^ use of undeclared type `Vec2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::vec::vec_2d::Vec2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `length2` in this scope [INFO] [stdout] --> src/formulas/dot.rs:35:14 [INFO] [stdout] | [INFO] [stdout] 4 | let result = length2(u); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use motion::formulas::dot::length2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/collision/mod.rs - collision::Collision2d::collider (line 45) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Object2d` [INFO] [stdout] --> src/collision/mod.rs:46:12 [INFO] [stdout] | [INFO] [stdout] 3 | let obj1 = Object2d::new(/* parameters */); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Object2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::obj::obj_2d::Object2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Object2d` [INFO] [stdout] --> src/collision/mod.rs:47:12 [INFO] [stdout] | [INFO] [stdout] 4 | let obj2 = Object2d::new(/* parameters */); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Object2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::obj::obj_2d::Object2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Collision2d` [INFO] [stdout] --> src/collision/mod.rs:48:17 [INFO] [stdout] | [INFO] [stdout] 5 | let collision = Collision2d::new(obj1, obj2); [INFO] [stdout] | ^^^^^^^^^^^ use of undeclared type `Collision2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::collision::Collision2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/forces/gravity.rs - forces::gravity::Gravity::apply_2d (line 27) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Object2d` [INFO] [stdout] --> src/forces/gravity.rs:28:15 [INFO] [stdout] | [INFO] [stdout] 3 | let mut obj = Object2d::new(/* initial parameters */); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Object2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::obj::obj_2d::Object2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `Gravity` in this scope [INFO] [stdout] --> src/forces/gravity.rs:29:15 [INFO] [stdout] | [INFO] [stdout] 4 | let gravity = Gravity { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::forces::gravity::Gravity; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `EARTH_GRAVITY` in this scope [INFO] [stdout] --> src/forces/gravity.rs:30:12 [INFO] [stdout] | [INFO] [stdout] 5 | force: EARTH_GRAVITY, [INFO] [stdout] | ^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 2 + use motion::forces::gravity::EARTH_GRAVITY; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/vec/vec_2d.rs - vec::vec_2d::Vec2d (line 8) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec2d` [INFO] [stdout] --> src/vec/vec_2d.rs:9:10 [INFO] [stdout] | [INFO] [stdout] 3 | let v1 = Vec2d::new(3.0, 4.0); [INFO] [stdout] | ^^^^^ use of undeclared type `Vec2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::vec::vec_2d::Vec2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec2d` [INFO] [stdout] --> src/vec/vec_2d.rs:10:10 [INFO] [stdout] | [INFO] [stdout] 4 | let v2 = Vec2d::new(6.0, 8.0); [INFO] [stdout] | ^^^^^ use of undeclared type `Vec2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::vec::vec_2d::Vec2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/vec/vec_2d.rs - vec::vec_2d::Vec2d::magnitude (line 62) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec2d` [INFO] [stdout] --> src/vec/vec_2d.rs:63:9 [INFO] [stdout] | [INFO] [stdout] 3 | let v = Vec2d::new(3.0, 4.0); [INFO] [stdout] | ^^^^^ use of undeclared type `Vec2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::vec::vec_2d::Vec2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/vec/vec_2d.rs - vec::vec_2d::Vec2d::distance (line 75) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec2d` [INFO] [stdout] --> src/vec/vec_2d.rs:76:10 [INFO] [stdout] | [INFO] [stdout] 3 | let v1 = Vec2d::new(1.0, 2.0); [INFO] [stdout] | ^^^^^ use of undeclared type `Vec2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::vec::vec_2d::Vec2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec2d` [INFO] [stdout] --> src/vec/vec_2d.rs:77:10 [INFO] [stdout] | [INFO] [stdout] 4 | let v2 = Vec2d::new(4.0, 6.0); [INFO] [stdout] | ^^^^^ use of undeclared type `Vec2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::vec::vec_2d::Vec2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/vec/vec_2d.rs - vec::vec_2d::Vec2d::component (line 43) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec2d` [INFO] [stdout] --> src/vec/vec_2d.rs:44:10 [INFO] [stdout] | [INFO] [stdout] 3 | let v1 = Vec2d::new(1.0, 2.0); [INFO] [stdout] | ^^^^^ use of undeclared type `Vec2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::vec::vec_2d::Vec2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Vec2d` [INFO] [stdout] --> src/vec/vec_2d.rs:45:10 [INFO] [stdout] | [INFO] [stdout] 4 | let v2 = Vec2d::new(4.0, 6.0); [INFO] [stdout] | ^^^^^ use of undeclared type `Vec2d` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 + use motion::vec::vec_2d::Vec2d; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/vec/vec_2d.rs - vec::vec_2d::vec2 (line 181) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `vec2` in this scope [INFO] [stdout] --> src/vec/vec_2d.rs:182:11 [INFO] [stdout] | [INFO] [stdout] 3 | let vec = vec2(1.0, 2.0); [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this function [INFO] [stdout] | [INFO] [stdout] 2 + use motion::vec::vec_2d::vec2; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/collision/mod.rs - collision::Collision2d::collider (line 45) [INFO] [stdout] src/collision/mod.rs - collision::Collision2d::new (line 27) [INFO] [stdout] src/collision/shape.rs - collision::shape::Shape::get_aabb (line 19) [INFO] [stdout] src/event_loop/mod.rs - event_loop::EventLoop::new (line 23) [INFO] [stdout] src/event_loop/mod.rs - event_loop::EventLoop::start (line 44) [INFO] [stdout] src/event_loop/mod.rs - event_loop::EventLoop::start_mut (line 76) [INFO] [stdout] src/event_loop/mod.rs - event_loop::EventLoopBuilder::new (line 116) [INFO] [stdout] src/forces/force.rs - forces::force::Force (line 9) [INFO] [stdout] src/forces/gravity.rs - forces::gravity::Gravity::apply_2d (line 27) [INFO] [stdout] src/forces/gravity.rs - forces::gravity::gravity (line 61) [INFO] [stdout] src/forces/move.rs - forces::r#move::Move2d::apply_2d (line 30) [INFO] [stdout] src/forces/move.rs - forces::r#move::move2d (line 72) [INFO] [stdout] src/formulas/dot.rs - formulas::dot::dot (line 9) [INFO] [stdout] src/formulas/dot.rs - formulas::dot::length (line 55) [INFO] [stdout] src/formulas/dot.rs - formulas::dot::length2 (line 33) [INFO] [stdout] src/formulas/elastic_collision.rs - formulas::elastic_collision::calculate (line 7) [INFO] [stdout] src/formulas/pitagoras.rs - formulas::pitagoras::calculate_pt (line 7) [INFO] [stdout] src/formulas/pow.rs - formulas::pow::powf (line 5) [INFO] [stdout] src/formulas/sqrt.rs - formulas::sqrt::sqrt (line 5) [INFO] [stdout] src/lib.rs - (line 12) [INFO] [stdout] src/obj/obj_2d.rs - obj::obj_2d::Object2d::apply (line 77) [INFO] [stdout] src/obj/obj_2d.rs - obj::obj_2d::Object2d::new (line 45) [INFO] [stdout] src/obj/obj_2d.rs - obj::obj_2d::obj2d (line 105) [INFO] [stdout] src/vec/vec_2d.rs - vec::vec_2d::Vec2d (line 8) [INFO] [stdout] src/vec/vec_2d.rs - vec::vec_2d::Vec2d::component (line 43) [INFO] [stdout] src/vec/vec_2d.rs - vec::vec_2d::Vec2d::distance (line 75) [INFO] [stdout] src/vec/vec_2d.rs - vec::vec_2d::Vec2d::magnitude (line 62) [INFO] [stdout] src/vec/vec_2d.rs - vec::vec_2d::Vec2d::new (line 29) [INFO] [stdout] src/vec/vec_2d.rs - vec::vec_2d::vec2 (line 181) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 29 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.66s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "01de572fb5eea843db075f626f21faf2586437bbd6de6d8bf0978decfe798156", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "01de572fb5eea843db075f626f21faf2586437bbd6de6d8bf0978decfe798156", kill_on_drop: false }` [INFO] [stdout] 01de572fb5eea843db075f626f21faf2586437bbd6de6d8bf0978decfe798156