[INFO] cloning repository https://github.com/marony/rust3d [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/marony/rust3d" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarony%2Frust3d", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarony%2Frust3d'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 9fb3b53b4668ecd4fe8a6104d874ad64a65edb49 [INFO] checking marony/rust3d against master#2f3dc46465c04d10cb74d34b1bd80c3ebfdc05bf for pr-128725 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarony%2Frust3d" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/marony/rust3d on toolchain 2f3dc46465c04d10cb74d34b1bd80c3ebfdc05bf [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2f3dc46465c04d10cb74d34b1bd80c3ebfdc05bf" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/marony/rust3d [INFO] finished tweaking git repo https://github.com/marony/rust3d [INFO] tweaked toml for git repo https://github.com/marony/rust3d written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/marony/rust3d already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2f3dc46465c04d10cb74d34b1bd80c3ebfdc05bf" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking marony/rust3d against try#9c7f973c4f483238f1484927772d0446e5686cc0 for pr-128725 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmarony%2Frust3d" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/marony/rust3d on toolchain 9c7f973c4f483238f1484927772d0446e5686cc0 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9c7f973c4f483238f1484927772d0446e5686cc0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/marony/rust3d [INFO] finished tweaking git repo https://github.com/marony/rust3d [INFO] tweaked toml for git repo https://github.com/marony/rust3d written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/marony/rust3d already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9c7f973c4f483238f1484927772d0446e5686cc0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded gdk-pixbuf-sys v0.5.0 [INFO] [stderr] Downloaded atk-sys v0.5.0 [INFO] [stderr] Downloaded pango-sys v0.5.0 [INFO] [stderr] Downloaded strcursor v0.2.5 [INFO] [stderr] Downloaded gobject-sys v0.5.0 [INFO] [stderr] Downloaded c_vec v1.2.1 [INFO] [stderr] Downloaded cairo-rs v0.3.0 [INFO] [stderr] Downloaded glib-sys v0.5.0 [INFO] [stderr] Downloaded gdk-sys v0.5.0 [INFO] [stderr] Downloaded itertools v0.4.19 [INFO] [stderr] Downloaded gio v0.3.0 [INFO] [stderr] Downloaded gdk v0.7.0 [INFO] [stderr] Downloaded gtk-sys v0.5.0 [INFO] [stderr] Downloaded gio-sys v0.5.0 [INFO] [stderr] Downloaded libc v0.2.36 [INFO] [stderr] Downloaded scan-rules v0.2.0 [INFO] [stderr] Downloaded pango v0.3.0 [INFO] [stderr] Downloaded unicode-segmentation v0.1.2 [INFO] [stderr] Downloaded gtk v0.3.0 [INFO] [stderr] Downloaded gdk-pixbuf v0.3.0 [INFO] [stderr] Downloaded cairo-sys-rs v0.5.0 [INFO] [stderr] Downloaded glib v0.4.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+9c7f973c4f483238f1484927772d0446e5686cc0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cb0115100d2445a58698ebb7cd381eaf3b6fbfcc749b00b1aafce482826cb108 [INFO] running `Command { std: "docker" "start" "-a" "cb0115100d2445a58698ebb7cd381eaf3b6fbfcc749b00b1aafce482826cb108", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cb0115100d2445a58698ebb7cd381eaf3b6fbfcc749b00b1aafce482826cb108", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cb0115100d2445a58698ebb7cd381eaf3b6fbfcc749b00b1aafce482826cb108", kill_on_drop: false }` [INFO] [stdout] cb0115100d2445a58698ebb7cd381eaf3b6fbfcc749b00b1aafce482826cb108 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+9c7f973c4f483238f1484927772d0446e5686cc0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 05cf514ece7cd85e5bddba266f8ef0a39268ba9c396a87c5c602ccf6622aed81 [INFO] running `Command { std: "docker" "start" "-a" "05cf514ece7cd85e5bddba266f8ef0a39268ba9c396a87c5c602ccf6622aed81", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Compiling pkg-config v0.3.9 [INFO] [stderr] Checking libc v0.2.36 [INFO] [stderr] Checking bitflags v1.0.1 [INFO] [stderr] Checking lazy_static v1.0.0 [INFO] [stderr] Compiling semver v0.1.20 [INFO] [stderr] Compiling gio v0.3.0 [INFO] [stderr] Compiling gdk-pixbuf v0.3.0 [INFO] [stderr] Compiling cairo-rs v0.3.0 [INFO] [stderr] Checking c_vec v1.2.1 [INFO] [stderr] Compiling gdk v0.7.0 [INFO] [stderr] Compiling gtk v0.3.0 [INFO] [stderr] Checking unicode-segmentation v0.1.2 [INFO] [stderr] Checking lazy_static v0.1.16 [INFO] [stderr] Checking itertools v0.4.19 [INFO] [stderr] Compiling rustc_version v0.1.7 [INFO] [stderr] Compiling glib-sys v0.5.0 [INFO] [stderr] Compiling gobject-sys v0.5.0 [INFO] [stderr] Compiling gio-sys v0.5.0 [INFO] [stderr] Compiling gdk-pixbuf-sys v0.5.0 [INFO] [stderr] Compiling cairo-sys-rs v0.5.0 [INFO] [stderr] Compiling pango-sys v0.5.0 [INFO] [stderr] Compiling gdk-sys v0.5.0 [INFO] [stderr] Compiling atk-sys v0.5.0 [INFO] [stderr] Compiling gtk-sys v0.5.0 [INFO] [stderr] Compiling strcursor v0.2.5 [INFO] [stderr] Compiling scan-rules v0.2.0 [INFO] [stderr] Checking glib v0.4.1 [INFO] [stderr] Checking pango v0.3.0 [INFO] [stderr] Checking rust3d v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `gio::prelude::*` [INFO] [stdout] --> src/util/polygon3.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use gio::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gio::prelude::*` [INFO] [stdout] --> src/util/world.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use gio::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FontSlant` and `FontWeight` [INFO] [stdout] --> src/main.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | use cairo::enums::{FontSlant, FontWeight}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gio::prelude::*` [INFO] [stdout] --> src/util/polygon3.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use gio::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gio::prelude::*` [INFO] [stdout] --> src/util/world.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use gio::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `FontSlant` and `FontWeight` [INFO] [stdout] --> src/main.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | use cairo::enums::{FontSlant, FontWeight}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gtk::prelude` [INFO] [stdout] --> src/util/polygon3.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use gtk::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gtk::prelude` [INFO] [stdout] --> src/util/world.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use gtk::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gio::prelude` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use gio::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rotate` [INFO] [stdout] --> src/util/world.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let rotate = 0i32; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_rotate` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/util/world.rs:72:27 [INFO] [stdout] | [INFO] [stdout] 72 | .filter(|&(p, c)| !self.camera.is_cull(p)) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/util/world.rs:86:27 [INFO] [stdout] | [INFO] [stdout] 86 | .filter(|&(p, c)| [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:88:29 [INFO] [stdout] | [INFO] [stdout] 88 | }).or_else(|n| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/util/point3.rs:95:21 [INFO] [stdout] | [INFO] [stdout] 95 | let a = Point3::new(1, 2, 3, 1); [INFO] [stdout] | ^^^^^^^^^^^ - - - - expected `f64`, found integer [INFO] [stdout] | | | | [INFO] [stdout] | | | expected `f64`, found integer [INFO] [stdout] | | expected `f64`, found integer [INFO] [stdout] | expected `f64`, found integer [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/util/point3.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(x: f64, y: f64, z: f64, w: f64) -> Point3 { [INFO] [stdout] | ^^^ ------ ------ ------ ------ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 95 | let a = Point3::new(1.0, 2, 3, 1); [INFO] [stdout] | ++ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 95 | let a = Point3::new(1, 2.0, 3, 1); [INFO] [stdout] | ++ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 95 | let a = Point3::new(1, 2, 3.0, 1); [INFO] [stdout] | ++ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 95 | let a = Point3::new(1, 2, 3, 1.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:98:29 [INFO] [stdout] | [INFO] [stdout] 98 | }).or_else(|n| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/util/point3.rs:96:21 [INFO] [stdout] | [INFO] [stdout] 96 | let b = Vector3::new(2, 3, 4, 1); [INFO] [stdout] | ^^^^^^^^^^^^ - - - - expected `f64`, found integer [INFO] [stdout] | | | | [INFO] [stdout] | | | expected `f64`, found integer [INFO] [stdout] | | expected `f64`, found integer [INFO] [stdout] | expected `f64`, found integer [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/util/vector3.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(x: f64, y: f64, z: f64, w: f64) -> Vector3 { [INFO] [stdout] | ^^^ ------ ------ ------ ------ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 96 | let b = Vector3::new(2.0, 3, 4, 1); [INFO] [stdout] | ++ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 96 | let b = Vector3::new(2, 3.0, 4, 1); [INFO] [stdout] | ++ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 96 | let b = Vector3::new(2, 3, 4.0, 1); [INFO] [stdout] | ++ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 96 | let b = Vector3::new(2, 3, 4, 1.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `move_`, `scale`, and `rotate_z` are never used [INFO] [stdout] --> src/util/polygon3.rs:67:12 [INFO] [stdout] | [INFO] [stdout] 20 | impl Polygon3 { [INFO] [stdout] | ------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn move_(&self, v: &Vector3) -> Polygon3 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 81 | pub fn scale(&self, v: &Vector3) -> Polygon3 { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 124 | pub fn rotate_z(&self, r: f64) -> Polygon3 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot add `vector3::Vector3` to `point3::Point3` [INFO] [stdout] --> src/util/point3.rs:97:23 [INFO] [stdout] | [INFO] [stdout] 97 | let c = a + b; [INFO] [stdout] | - ^ - vector3::Vector3 [INFO] [stdout] | | [INFO] [stdout] | point3::Point3 [INFO] [stdout] | [INFO] [stdout] note: an implementation of `std::ops::Add` might be missing for `point3::Point3` [INFO] [stdout] --> src/util/point3.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Point3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ must implement `std::ops::Add` [INFO] [stdout] note: the trait `std::ops::Add` must be implemented [INFO] [stdout] --> /rustc/9c7f973c4f483238f1484927772d0446e5686cc0/library/core/src/ops/arith.rs:76:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | / scan!(&line; ("v ", let x: f64, let y: f64, let z: f64) => { [INFO] [stdout] 85 | | let p = Point3::new(x, y, z, 1.0f64); [INFO] [stdout] 86 | | // println!("{:?}", p); [INFO] [stdout] 87 | | vs.push(p); [INFO] [stdout] ... | [INFO] [stdout] 104 | | }) [INFO] [stdout] 105 | | }); [INFO] [stdout] | |__________________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 84 | let _ = scan!(&line; ("v ", let x: f64, let y: f64, let z: f64) => { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/util/point3.rs:98:24 [INFO] [stdout] | [INFO] [stdout] 98 | assert_eq!(Point3::new(3, 5, 7, 1), c); [INFO] [stdout] | ^^^^^^^^^^^ - - - - expected `f64`, found integer [INFO] [stdout] | | | | [INFO] [stdout] | | | expected `f64`, found integer [INFO] [stdout] | | expected `f64`, found integer [INFO] [stdout] | expected `f64`, found integer [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/util/point3.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(x: f64, y: f64, z: f64, w: f64) -> Point3 { [INFO] [stdout] | ^^^ ------ ------ ------ ------ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 98 | assert_eq!(Point3::new(3.0, 5, 7, 1), c); [INFO] [stdout] | ++ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 98 | assert_eq!(Point3::new(3, 5.0, 7, 1), c); [INFO] [stdout] | ++ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 98 | assert_eq!(Point3::new(3, 5, 7.0, 1), c); [INFO] [stdout] | ++ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 98 | assert_eq!(Point3::new(3, 5, 7, 1.0), c); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/util/point3.rs:105:21 [INFO] [stdout] | [INFO] [stdout] 105 | let a = Point3::new(1, 2, 3, 1); [INFO] [stdout] | ^^^^^^^^^^^ - - - - expected `f64`, found integer [INFO] [stdout] | | | | [INFO] [stdout] | | | expected `f64`, found integer [INFO] [stdout] | | expected `f64`, found integer [INFO] [stdout] | expected `f64`, found integer [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/util/point3.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(x: f64, y: f64, z: f64, w: f64) -> Point3 { [INFO] [stdout] | ^^^ ------ ------ ------ ------ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 105 | let a = Point3::new(1.0, 2, 3, 1); [INFO] [stdout] | ++ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 105 | let a = Point3::new(1, 2.0, 3, 1); [INFO] [stdout] | ++ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 105 | let a = Point3::new(1, 2, 3.0, 1); [INFO] [stdout] | ++ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 105 | let a = Point3::new(1, 2, 3, 1.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/util/point3.rs:106:21 [INFO] [stdout] | [INFO] [stdout] 106 | let b = Vector3::new(2, 3, 4, 1); [INFO] [stdout] | ^^^^^^^^^^^^ - - - - expected `f64`, found integer [INFO] [stdout] | | | | [INFO] [stdout] | | | expected `f64`, found integer [INFO] [stdout] | | expected `f64`, found integer [INFO] [stdout] | expected `f64`, found integer [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/util/vector3.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(x: f64, y: f64, z: f64, w: f64) -> Vector3 { [INFO] [stdout] | ^^^ ------ ------ ------ ------ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 106 | let b = Vector3::new(2.0, 3, 4, 1); [INFO] [stdout] | ++ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 106 | let b = Vector3::new(2, 3.0, 4, 1); [INFO] [stdout] | ++ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 106 | let b = Vector3::new(2, 3, 4.0, 1); [INFO] [stdout] | ++ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 106 | let b = Vector3::new(2, 3, 4, 1.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot subtract `vector3::Vector3` from `point3::Point3` [INFO] [stdout] --> src/util/point3.rs:107:23 [INFO] [stdout] | [INFO] [stdout] 107 | let c = a - b; [INFO] [stdout] | - ^ - vector3::Vector3 [INFO] [stdout] | | [INFO] [stdout] | point3::Point3 [INFO] [stdout] | [INFO] [stdout] note: an implementation of `Sub` might be missing for `point3::Point3` [INFO] [stdout] --> src/util/point3.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Point3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ must implement `Sub` [INFO] [stdout] note: the trait `Sub` must be implemented [INFO] [stdout] --> /rustc/9c7f973c4f483238f1484927772d0446e5686cc0/library/core/src/ops/arith.rs:185:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/util/point3.rs:108:24 [INFO] [stdout] | [INFO] [stdout] 108 | assert_eq!(Point3::new(-1, -1, -1, 1), c); [INFO] [stdout] | ^^^^^^^^^^^ -- -- -- - expected `f64`, found integer [INFO] [stdout] | | | | [INFO] [stdout] | | | expected `f64`, found integer [INFO] [stdout] | | expected `f64`, found integer [INFO] [stdout] | expected `f64`, found integer [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/util/point3.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(x: f64, y: f64, z: f64, w: f64) -> Point3 { [INFO] [stdout] | ^^^ ------ ------ ------ ------ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 108 | assert_eq!(Point3::new(-1.0, -1, -1, 1), c); [INFO] [stdout] | ++ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 108 | assert_eq!(Point3::new(-1, -1.0, -1, 1), c); [INFO] [stdout] | ++ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 108 | assert_eq!(Point3::new(-1, -1, -1.0, 1), c); [INFO] [stdout] | ++ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 108 | assert_eq!(Point3::new(-1, -1, -1, 1.0), c); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/util/point3.rs:115:21 [INFO] [stdout] | [INFO] [stdout] 115 | let a = Point3::new(1, 2, 3, 1); [INFO] [stdout] | ^^^^^^^^^^^ - - - - expected `f64`, found integer [INFO] [stdout] | | | | [INFO] [stdout] | | | expected `f64`, found integer [INFO] [stdout] | | expected `f64`, found integer [INFO] [stdout] | expected `f64`, found integer [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/util/point3.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(x: f64, y: f64, z: f64, w: f64) -> Point3 { [INFO] [stdout] | ^^^ ------ ------ ------ ------ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 115 | let a = Point3::new(1.0, 2, 3, 1); [INFO] [stdout] | ++ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 115 | let a = Point3::new(1, 2.0, 3, 1); [INFO] [stdout] | ++ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 115 | let a = Point3::new(1, 2, 3.0, 1); [INFO] [stdout] | ++ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 115 | let a = Point3::new(1, 2, 3, 1.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/util/point3.rs:116:21 [INFO] [stdout] | [INFO] [stdout] 116 | let b = Point3::new(2, 3, 4, 1); [INFO] [stdout] | ^^^^^^^^^^^ - - - - expected `f64`, found integer [INFO] [stdout] | | | | [INFO] [stdout] | | | expected `f64`, found integer [INFO] [stdout] | | expected `f64`, found integer [INFO] [stdout] | expected `f64`, found integer [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/util/point3.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(x: f64, y: f64, z: f64, w: f64) -> Point3 { [INFO] [stdout] | ^^^ ------ ------ ------ ------ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 116 | let b = Point3::new(2.0, 3, 4, 1); [INFO] [stdout] | ++ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 116 | let b = Point3::new(2, 3.0, 4, 1); [INFO] [stdout] | ++ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 116 | let b = Point3::new(2, 3, 4.0, 1); [INFO] [stdout] | ++ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 116 | let b = Point3::new(2, 3, 4, 1.0); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot subtract `point3::Point3` from `point3::Point3` [INFO] [stdout] --> src/util/point3.rs:117:23 [INFO] [stdout] | [INFO] [stdout] 117 | let c = a - b; [INFO] [stdout] | - ^ - point3::Point3 [INFO] [stdout] | | [INFO] [stdout] | point3::Point3 [INFO] [stdout] | [INFO] [stdout] note: an implementation of `Sub` might be missing for `point3::Point3` [INFO] [stdout] --> src/util/point3.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Point3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ must implement `Sub` [INFO] [stdout] note: the trait `Sub` must be implemented [INFO] [stdout] --> /rustc/9c7f973c4f483238f1484927772d0446e5686cc0/library/core/src/ops/arith.rs:185:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/util/point3.rs:118:24 [INFO] [stdout] | [INFO] [stdout] 118 | assert_eq!(Point3::new(-1, -1, -1, 1), c); [INFO] [stdout] | ^^^^^^^^^^^ -- -- -- - expected `f64`, found integer [INFO] [stdout] | | | | [INFO] [stdout] | | | expected `f64`, found integer [INFO] [stdout] | | expected `f64`, found integer [INFO] [stdout] | expected `f64`, found integer [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/util/point3.rs:13:12 [INFO] [stdout] | [INFO] [stdout] 13 | pub fn new(x: f64, y: f64, z: f64, w: f64) -> Point3 { [INFO] [stdout] | ^^^ ------ ------ ------ ------ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 118 | assert_eq!(Point3::new(-1.0, -1, -1, 1), c); [INFO] [stdout] | ++ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 118 | assert_eq!(Point3::new(-1, -1.0, -1, 1), c); [INFO] [stdout] | ++ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 118 | assert_eq!(Point3::new(-1, -1, -1.0, 1), c); [INFO] [stdout] | ++ [INFO] [stdout] help: use a float literal [INFO] [stdout] | [INFO] [stdout] 118 | assert_eq!(Point3::new(-1, -1, -1, 1.0), c); [INFO] [stdout] | ++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/util/vector3.rs:128:21 [INFO] [stdout] | [INFO] [stdout] 128 | let a = Vector3::new(2f32, 3f32, 4f32, 1f32); [INFO] [stdout] | ^^^^^^^^^^^^ ---- ---- ---- ---- expected `f64`, found `f32` [INFO] [stdout] | | | | [INFO] [stdout] | | | expected `f64`, found `f32` [INFO] [stdout] | | expected `f64`, found `f32` [INFO] [stdout] | expected `f64`, found `f32` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/util/vector3.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(x: f64, y: f64, z: f64, w: f64) -> Vector3 { [INFO] [stdout] | ^^^ ------ ------ ------ ------ [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 128 | let a = Vector3::new(2f64, 3f32, 4f32, 1f32); [INFO] [stdout] | ~~~ [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 128 | let a = Vector3::new(2f32, 3f64, 4f32, 1f32); [INFO] [stdout] | ~~~ [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 128 | let a = Vector3::new(2f32, 3f32, 4f64, 1f32); [INFO] [stdout] | ~~~ [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 128 | let a = Vector3::new(2f32, 3f32, 4f32, 1f64); [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/util/vector3.rs:130:28 [INFO] [stdout] | [INFO] [stdout] 130 | assert!(norm - 5.3851648071345037f32 < 1e-10f32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ expected `f64`, found `f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot subtract `f32` from `f64` [INFO] [stdout] --> src/util/vector3.rs:130:26 [INFO] [stdout] | [INFO] [stdout] 130 | assert!(norm - 5.3851648071345037f32 < 1e-10f32); [INFO] [stdout] | ^ no implementation for `f64 - f32` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sub` is not implemented for `f64` [INFO] [stdout] = help: the following other types implement trait `Sub`: [INFO] [stdout] `&'a f64` implements `Sub` [INFO] [stdout] `&f64` implements `Sub<&f64>` [INFO] [stdout] `f64` implements `Sub<&f64>` [INFO] [stdout] `f64` implements `Sub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/util/vector3.rs:130:52 [INFO] [stdout] | [INFO] [stdout] 130 | assert!(norm - 5.3851648071345037f32 < 1e-10f32); [INFO] [stdout] | ---------------------------- ^^^^^^^^ expected `f64`, found `f32` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `f64` [INFO] [stdout] | [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 130 | assert!(norm - 5.3851648071345037f32 < 1e-10f64); [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/util/vector3.rs:143:21 [INFO] [stdout] | [INFO] [stdout] 143 | let a = Vector3::new(2f32, 3f32, 4f32, 1f32); [INFO] [stdout] | ^^^^^^^^^^^^ ---- ---- ---- ---- expected `f64`, found `f32` [INFO] [stdout] | | | | [INFO] [stdout] | | | expected `f64`, found `f32` [INFO] [stdout] | | expected `f64`, found `f32` [INFO] [stdout] | expected `f64`, found `f32` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/util/vector3.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(x: f64, y: f64, z: f64, w: f64) -> Vector3 { [INFO] [stdout] | ^^^ ------ ------ ------ ------ [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 143 | let a = Vector3::new(2f64, 3f32, 4f32, 1f32); [INFO] [stdout] | ~~~ [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 143 | let a = Vector3::new(2f32, 3f64, 4f32, 1f32); [INFO] [stdout] | ~~~ [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 143 | let a = Vector3::new(2f32, 3f32, 4f64, 1f32); [INFO] [stdout] | ~~~ [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 143 | let a = Vector3::new(2f32, 3f32, 4f32, 1f64); [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/util/vector3.rs:146:27 [INFO] [stdout] | [INFO] [stdout] 146 | assert!(b.x - 0.37139068f32 < 1e-5f32); [INFO] [stdout] | ^^^^^^^^^^^^^ expected `f64`, found `f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot subtract `f32` from `f64` [INFO] [stdout] --> src/util/vector3.rs:146:25 [INFO] [stdout] | [INFO] [stdout] 146 | assert!(b.x - 0.37139068f32 < 1e-5f32); [INFO] [stdout] | ^ no implementation for `f64 - f32` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sub` is not implemented for `f64` [INFO] [stdout] = help: the following other types implement trait `Sub`: [INFO] [stdout] `&'a f64` implements `Sub` [INFO] [stdout] `&f64` implements `Sub<&f64>` [INFO] [stdout] `f64` implements `Sub<&f64>` [INFO] [stdout] `f64` implements `Sub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/util/vector3.rs:146:43 [INFO] [stdout] | [INFO] [stdout] 146 | assert!(b.x - 0.37139068f32 < 1e-5f32); [INFO] [stdout] | ------------------- ^^^^^^^ expected `f64`, found `f32` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `f64` [INFO] [stdout] | [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 146 | assert!(b.x - 0.37139068f32 < 1e-5f64); [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/util/vector3.rs:147:27 [INFO] [stdout] | [INFO] [stdout] 147 | assert!(b.y - 0.55708601f32 < 1e-5f32); [INFO] [stdout] | ^^^^^^^^^^^^^ expected `f64`, found `f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot subtract `f32` from `f64` [INFO] [stdout] --> src/util/vector3.rs:147:25 [INFO] [stdout] | [INFO] [stdout] 147 | assert!(b.y - 0.55708601f32 < 1e-5f32); [INFO] [stdout] | ^ no implementation for `f64 - f32` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sub` is not implemented for `f64` [INFO] [stdout] = help: the following other types implement trait `Sub`: [INFO] [stdout] `&'a f64` implements `Sub` [INFO] [stdout] `&f64` implements `Sub<&f64>` [INFO] [stdout] `f64` implements `Sub<&f64>` [INFO] [stdout] `f64` implements `Sub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/util/vector3.rs:147:43 [INFO] [stdout] | [INFO] [stdout] 147 | assert!(b.y - 0.55708601f32 < 1e-5f32); [INFO] [stdout] | ------------------- ^^^^^^^ expected `f64`, found `f32` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `f64` [INFO] [stdout] | [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 147 | assert!(b.y - 0.55708601f32 < 1e-5f64); [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/util/vector3.rs:148:27 [INFO] [stdout] | [INFO] [stdout] 148 | assert!(b.z - 0.74278135f32 < 1e-5f32); [INFO] [stdout] | ^^^^^^^^^^^^^ expected `f64`, found `f32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot subtract `f32` from `f64` [INFO] [stdout] --> src/util/vector3.rs:148:25 [INFO] [stdout] | [INFO] [stdout] 148 | assert!(b.z - 0.74278135f32 < 1e-5f32); [INFO] [stdout] | ^ no implementation for `f64 - f32` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sub` is not implemented for `f64` [INFO] [stdout] = help: the following other types implement trait `Sub`: [INFO] [stdout] `&'a f64` implements `Sub` [INFO] [stdout] `&f64` implements `Sub<&f64>` [INFO] [stdout] `f64` implements `Sub<&f64>` [INFO] [stdout] `f64` implements `Sub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/util/vector3.rs:148:43 [INFO] [stdout] | [INFO] [stdout] 148 | assert!(b.z - 0.74278135f32 < 1e-5f32); [INFO] [stdout] | ------------------- ^^^^^^^ expected `f64`, found `f32` [INFO] [stdout] | | [INFO] [stdout] | expected because this is `f64` [INFO] [stdout] | [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 148 | assert!(b.z - 0.74278135f32 < 1e-5f64); [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/util/vector3.rs:164:21 [INFO] [stdout] | [INFO] [stdout] 164 | let a = Vector3::new(2f32, 3f32, 4f32, 1f32); [INFO] [stdout] | ^^^^^^^^^^^^ ---- ---- ---- ---- expected `f64`, found `f32` [INFO] [stdout] | | | | [INFO] [stdout] | | | expected `f64`, found `f32` [INFO] [stdout] | | expected `f64`, found `f32` [INFO] [stdout] | expected `f64`, found `f32` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/util/vector3.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(x: f64, y: f64, z: f64, w: f64) -> Vector3 { [INFO] [stdout] | ^^^ ------ ------ ------ ------ [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 164 | let a = Vector3::new(2f64, 3f32, 4f32, 1f32); [INFO] [stdout] | ~~~ [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 164 | let a = Vector3::new(2f32, 3f64, 4f32, 1f32); [INFO] [stdout] | ~~~ [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 164 | let a = Vector3::new(2f32, 3f32, 4f64, 1f32); [INFO] [stdout] | ~~~ [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 164 | let a = Vector3::new(2f32, 3f32, 4f32, 1f64); [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/util/vector3.rs:165:21 [INFO] [stdout] | [INFO] [stdout] 165 | let b = Vector3::new(5f32, 6f32, 7f32, 1f32); [INFO] [stdout] | ^^^^^^^^^^^^ ---- ---- ---- ---- expected `f64`, found `f32` [INFO] [stdout] | | | | [INFO] [stdout] | | | expected `f64`, found `f32` [INFO] [stdout] | | expected `f64`, found `f32` [INFO] [stdout] | expected `f64`, found `f32` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/util/vector3.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(x: f64, y: f64, z: f64, w: f64) -> Vector3 { [INFO] [stdout] | ^^^ ------ ------ ------ ------ [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 165 | let b = Vector3::new(5f64, 6f32, 7f32, 1f32); [INFO] [stdout] | ~~~ [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 165 | let b = Vector3::new(5f32, 6f64, 7f32, 1f32); [INFO] [stdout] | ~~~ [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 165 | let b = Vector3::new(5f32, 6f32, 7f64, 1f32); [INFO] [stdout] | ~~~ [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 165 | let b = Vector3::new(5f32, 6f32, 7f32, 1f64); [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/util/vector3.rs:166:29 [INFO] [stdout] | [INFO] [stdout] 166 | let dot = a.dot(b); [INFO] [stdout] | --- ^ expected `&Vector3`, found `Vector3` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> src/util/vector3.rs:18:12 [INFO] [stdout] | [INFO] [stdout] 18 | pub fn dot(&self, rhs: &Vector3) -> f64 { [INFO] [stdout] | ^^^ ------------- [INFO] [stdout] help: consider borrowing here [INFO] [stdout] | [INFO] [stdout] 166 | let dot = a.dot(&b); [INFO] [stdout] | + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/util/vector3.rs:167:31 [INFO] [stdout] | [INFO] [stdout] 167 | assert_eq!(56f32, dot); [INFO] [stdout] | ^^^ expected `f32`, found `f64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/util/vector3.rs:186:21 [INFO] [stdout] | [INFO] [stdout] 186 | let a = Vector3::new(3f32, 4f32, 5f32, 1f32); [INFO] [stdout] | ^^^^^^^^^^^^ ---- ---- ---- ---- expected `f64`, found `f32` [INFO] [stdout] | | | | [INFO] [stdout] | | | expected `f64`, found `f32` [INFO] [stdout] | | expected `f64`, found `f32` [INFO] [stdout] | expected `f64`, found `f32` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/util/vector3.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(x: f64, y: f64, z: f64, w: f64) -> Vector3 { [INFO] [stdout] | ^^^ ------ ------ ------ ------ [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 186 | let a = Vector3::new(3f64, 4f32, 5f32, 1f32); [INFO] [stdout] | ~~~ [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 186 | let a = Vector3::new(3f32, 4f64, 5f32, 1f32); [INFO] [stdout] | ~~~ [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 186 | let a = Vector3::new(3f32, 4f32, 5f64, 1f32); [INFO] [stdout] | ~~~ [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 186 | let a = Vector3::new(3f32, 4f32, 5f32, 1f64); [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/util/vector3.rs:187:21 [INFO] [stdout] | [INFO] [stdout] 187 | let b = Vector3::new(6f32, 7f32, 8f32, 1f32); [INFO] [stdout] | ^^^^^^^^^^^^ ---- ---- ---- ---- expected `f64`, found `f32` [INFO] [stdout] | | | | [INFO] [stdout] | | | expected `f64`, found `f32` [INFO] [stdout] | | expected `f64`, found `f32` [INFO] [stdout] | expected `f64`, found `f32` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/util/vector3.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(x: f64, y: f64, z: f64, w: f64) -> Vector3 { [INFO] [stdout] | ^^^ ------ ------ ------ ------ [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 187 | let b = Vector3::new(6f64, 7f32, 8f32, 1f32); [INFO] [stdout] | ~~~ [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 187 | let b = Vector3::new(6f32, 7f64, 8f32, 1f32); [INFO] [stdout] | ~~~ [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 187 | let b = Vector3::new(6f32, 7f32, 8f64, 1f32); [INFO] [stdout] | ~~~ [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 187 | let b = Vector3::new(6f32, 7f32, 8f32, 1f64); [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot multiply `vector3::Vector3` by `vector3::Vector3` [INFO] [stdout] --> src/util/vector3.rs:188:24 [INFO] [stdout] | [INFO] [stdout] 188 | let cp = a * b; [INFO] [stdout] | - ^ - vector3::Vector3 [INFO] [stdout] | | [INFO] [stdout] | vector3::Vector3 [INFO] [stdout] | [INFO] [stdout] note: an implementation of `Mul` might be missing for `vector3::Vector3` [INFO] [stdout] --> src/util/vector3.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct Vector3 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ must implement `Mul` [INFO] [stdout] note: the trait `Mul` must be implemented [INFO] [stdout] --> /rustc/9c7f973c4f483238f1484927772d0446e5686cc0/library/core/src/ops/arith.rs:315:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: arguments to this function are incorrect [INFO] [stdout] --> src/util/vector3.rs:189:24 [INFO] [stdout] | [INFO] [stdout] 189 | assert_eq!(Vector3::new(-3f32, 6f32, -3f32, 1f32), cp); [INFO] [stdout] | ^^^^^^^^^^^^ ----- ---- ----- ---- expected `f64`, found `f32` [INFO] [stdout] | | | | [INFO] [stdout] | | | expected `f64`, found `f32` [INFO] [stdout] | | expected `f64`, found `f32` [INFO] [stdout] | expected `f64`, found `f32` [INFO] [stdout] | [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> src/util/vector3.rs:14:12 [INFO] [stdout] | [INFO] [stdout] 14 | pub fn new(x: f64, y: f64, z: f64, w: f64) -> Vector3 { [INFO] [stdout] | ^^^ ------ ------ ------ ------ [INFO] [stdout] help: you can convert an `f32` to an `f64` [INFO] [stdout] | [INFO] [stdout] 189 | assert_eq!(Vector3::new((-3f32).into(), 6f32, -3f32, 1f32), cp); [INFO] [stdout] | + ++++++++ [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 189 | assert_eq!(Vector3::new(-3f32, 6f64, -3f32, 1f32), cp); [INFO] [stdout] | ~~~ [INFO] [stdout] help: you can convert an `f32` to an `f64` [INFO] [stdout] | [INFO] [stdout] 189 | assert_eq!(Vector3::new(-3f32, 6f32, (-3f32).into(), 1f32), cp); [INFO] [stdout] | + ++++++++ [INFO] [stdout] help: change the type of the numeric literal from `f32` to `f64` [INFO] [stdout] | [INFO] [stdout] 189 | assert_eq!(Vector3::new(-3f32, 6f32, -3f32, 1f64), cp); [INFO] [stdout] | ~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot add `matrix4::Matrix4` to `matrix4::Matrix4` [INFO] [stdout] --> src/util/matrix4.rs:120:23 [INFO] [stdout] | [INFO] [stdout] 120 | let c = a + b; [INFO] [stdout] | - ^ - matrix4::Matrix4 [INFO] [stdout] | | [INFO] [stdout] | matrix4::Matrix4 [INFO] [stdout] | [INFO] [stdout] note: an implementation of `std::ops::Add` might be missing for `matrix4::Matrix4` [INFO] [stdout] --> src/util/matrix4.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Matrix4 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ must implement `std::ops::Add` [INFO] [stdout] note: the trait `std::ops::Add` must be implemented [INFO] [stdout] --> /rustc/9c7f973c4f483238f1484927772d0446e5686cc0/library/core/src/ops/arith.rs:76:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot subtract `matrix4::Matrix4` from `matrix4::Matrix4` [INFO] [stdout] --> src/util/matrix4.rs:144:23 [INFO] [stdout] | [INFO] [stdout] 144 | let c = a - b; [INFO] [stdout] | - ^ - matrix4::Matrix4 [INFO] [stdout] | | [INFO] [stdout] | matrix4::Matrix4 [INFO] [stdout] | [INFO] [stdout] note: an implementation of `Sub` might be missing for `matrix4::Matrix4` [INFO] [stdout] --> src/util/matrix4.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Matrix4 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ must implement `Sub` [INFO] [stdout] note: the trait `Sub` must be implemented [INFO] [stdout] --> /rustc/9c7f973c4f483238f1484927772d0446e5686cc0/library/core/src/ops/arith.rs:185:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot multiply `matrix4::Matrix4` by `f64` [INFO] [stdout] --> src/util/matrix4.rs:163:23 [INFO] [stdout] | [INFO] [stdout] 163 | let b = a * 3f64; [INFO] [stdout] | - ^ ---- f64 [INFO] [stdout] | | [INFO] [stdout] | matrix4::Matrix4 [INFO] [stdout] | [INFO] [stdout] note: an implementation of `Mul` might be missing for `matrix4::Matrix4` [INFO] [stdout] --> src/util/matrix4.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Matrix4 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ must implement `Mul` [INFO] [stdout] note: the trait `Mul` must be implemented [INFO] [stdout] --> /rustc/9c7f973c4f483238f1484927772d0446e5686cc0/library/core/src/ops/arith.rs:315:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot multiply `matrix4::Matrix4` by `vector3::Vector3` [INFO] [stdout] --> src/util/matrix4.rs:189:23 [INFO] [stdout] | [INFO] [stdout] 189 | let c = a * b; [INFO] [stdout] | - ^ - vector3::Vector3 [INFO] [stdout] | | [INFO] [stdout] | matrix4::Matrix4 [INFO] [stdout] | [INFO] [stdout] note: an implementation of `Mul` might be missing for `matrix4::Matrix4` [INFO] [stdout] --> src/util/matrix4.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Matrix4 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ must implement `Mul` [INFO] [stdout] note: the trait `Mul` must be implemented [INFO] [stdout] --> /rustc/9c7f973c4f483238f1484927772d0446e5686cc0/library/core/src/ops/arith.rs:315:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: cannot multiply `matrix4::Matrix4` by `matrix4::Matrix4` [INFO] [stdout] --> src/util/matrix4.rs:218:23 [INFO] [stdout] | [INFO] [stdout] 218 | let c = a * b; [INFO] [stdout] | - ^ - matrix4::Matrix4 [INFO] [stdout] | | [INFO] [stdout] | matrix4::Matrix4 [INFO] [stdout] | [INFO] [stdout] note: an implementation of `Mul` might be missing for `matrix4::Matrix4` [INFO] [stdout] --> src/util/matrix4.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Matrix4 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ must implement `Mul` [INFO] [stdout] note: the trait `Mul` must be implemented [INFO] [stdout] --> /rustc/9c7f973c4f483238f1484927772d0446e5686cc0/library/core/src/ops/arith.rs:315:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gtk::prelude` [INFO] [stdout] --> src/util/polygon3.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use gtk::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gtk::prelude` [INFO] [stdout] --> src/util/world.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use gtk::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `gio::prelude` [INFO] [stdout] --> src/main.rs:8:5 [INFO] [stdout] | [INFO] [stdout] 8 | use gio::prelude::*; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rotate` [INFO] [stdout] --> src/util/world.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let rotate = 0i32; [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_rotate` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/util/world.rs:72:27 [INFO] [stdout] | [INFO] [stdout] 72 | .filter(|&(p, c)| !self.camera.is_cull(p)) [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `c` [INFO] [stdout] --> src/util/world.rs:86:27 [INFO] [stdout] | [INFO] [stdout] 86 | .filter(|&(p, c)| [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_c` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:88:29 [INFO] [stdout] | [INFO] [stdout] 88 | }).or_else(|n| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `n` [INFO] [stdout] --> src/main.rs:98:29 [INFO] [stdout] | [INFO] [stdout] 98 | }).or_else(|n| { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_n` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 39 previous errors; 11 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0369. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust3d` (bin "rust3d" test) due to 40 previous errors; 11 warnings emitted [INFO] running `Command { std: "docker" "inspect" "05cf514ece7cd85e5bddba266f8ef0a39268ba9c396a87c5c602ccf6622aed81", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05cf514ece7cd85e5bddba266f8ef0a39268ba9c396a87c5c602ccf6622aed81", kill_on_drop: false }` [INFO] [stdout] 05cf514ece7cd85e5bddba266f8ef0a39268ba9c396a87c5c602ccf6622aed81