[INFO] cloning repository https://github.com/xoreo/terrain [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/xoreo/terrain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxoreo%2Fterrain", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxoreo%2Fterrain'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 2d43f5d00c255e7bdeed1b21c4fc1501b10f7f3d [INFO] checking xoreo/terrain against master#3aedcf06b73fc36feeebca3d579e1d2a6c40acc5 for pr-65819 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fxoreo%2Fterrain" "/workspace/builds/worker-2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/xoreo/terrain on toolchain 3aedcf06b73fc36feeebca3d579e1d2a6c40acc5 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3aedcf06b73fc36feeebca3d579e1d2a6c40acc5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/xoreo/terrain [INFO] finished tweaking git repo https://github.com/xoreo/terrain [INFO] tweaked toml for git repo https://github.com/xoreo/terrain written to /workspace/builds/worker-2/source/Cargo.toml [INFO] crate git repo https://github.com/xoreo/terrain already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3aedcf06b73fc36feeebca3d579e1d2a6c40acc5" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c46a2d1a26fb48b37929c74ca49dd9409f2375a0a3bdb8fe07617f3ffccaa889" "/opt/rustwide/cargo-home/bin/cargo" "+3aedcf06b73fc36feeebca3d579e1d2a6c40acc5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b3482e03b62271a66514b11fb3c215da421a5de91c9998c6a0df016da804b718 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "b3482e03b62271a66514b11fb3c215da421a5de91c9998c6a0df016da804b718", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b3482e03b62271a66514b11fb3c215da421a5de91c9998c6a0df016da804b718", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b3482e03b62271a66514b11fb3c215da421a5de91c9998c6a0df016da804b718", kill_on_drop: false }` [INFO] [stdout] b3482e03b62271a66514b11fb3c215da421a5de91c9998c6a0df016da804b718 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:c46a2d1a26fb48b37929c74ca49dd9409f2375a0a3bdb8fe07617f3ffccaa889" "/opt/rustwide/cargo-home/bin/cargo" "+3aedcf06b73fc36feeebca3d579e1d2a6c40acc5" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 82893fc16b269c49660c40bfc8ea779374b0843ca146a3c1042f6bc8c62a838f [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "82893fc16b269c49660c40bfc8ea779374b0843ca146a3c1042f6bc8c62a838f", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.91 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.65 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling version_check v0.9.3 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Compiling ucd-trie v0.1.3 [INFO] [stderr] Compiling serde_json v1.0.64 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling pulldown-cmark v0.8.0 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Checking mint v0.5.6 [INFO] [stderr] Compiling bytecount v0.6.2 [INFO] [stderr] Checking xi-unicode v0.2.1 [INFO] [stderr] Checking jpeg-decoder v0.1.22 [INFO] [stderr] Checking claxon v0.4.3 [INFO] [stderr] Checking hound v3.4.0 [INFO] [stderr] Compiling memoffset v0.5.6 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Checking libloading v0.6.7 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Compiling num-rational v0.2.4 [INFO] [stderr] Compiling libudev-sys v0.1.4 [INFO] [stderr] Compiling alsa-sys v0.1.2 [INFO] [stderr] Compiling num-iter v0.1.42 [INFO] [stderr] Checking stb_truetype v0.3.1 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Compiling bzip2-sys v0.1.10+1.0.8 [INFO] [stderr] Compiling minimp3-sys v0.3.2 [INFO] [stderr] Checking ogg v0.7.1 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stderr] Checking deflate v0.7.20 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Compiling pest v2.1.3 [INFO] [stderr] Checking gif v0.10.3 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Checking glam v0.12.0 [INFO] [stderr] Compiling unicase v2.6.0 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Checking dlib v0.4.2 [INFO] [stderr] Checking arrayvec v0.4.12 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Checking draw_state v0.8.0 [INFO] [stderr] Checking smallvec v0.6.14 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Checking png v0.15.3 [INFO] [stderr] Checking wayland-sys v0.21.13 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking ordered-float v1.1.1 [INFO] [stderr] Checking line_drawing v0.7.0 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking lewton v0.9.4 [INFO] [stderr] Checking gfx_core v0.9.2 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Checking alga v0.9.3 [INFO] [stderr] Checking sid v0.5.2 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling semver-parser v0.10.2 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling wayland-scanner v0.21.13 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Compiling gfx_gl v0.6.1 [INFO] [stderr] Compiling glutin_glx_sys v0.1.7 [INFO] [stderr] Compiling glutin_egl_sys v0.1.5 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking getrandom v0.1.16 [INFO] [stderr] Checking memmap v0.7.0 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking raw-window-handle v0.3.3 [INFO] [stderr] Checking nix v0.15.0 [INFO] [stderr] Checking slice-deque v0.3.0 [INFO] [stderr] Checking dirs-sys v0.3.5 [INFO] [stderr] Checking rand v0.5.6 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Checking rusttype v0.8.3 [INFO] [stderr] Checking gfx v0.18.2 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking bzip2 v0.3.3 [INFO] [stderr] Checking directories v2.0.2 [INFO] [stderr] Checking cpal v0.8.2 [INFO] [stderr] Checking minimp3 v0.3.5 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Compiling wayland-client v0.21.13 [INFO] [stderr] Compiling wayland-protocols v0.21.13 [INFO] [stderr] Checking rusttype v0.7.9 [INFO] [stderr] Checking glyph_brush_layout v0.1.9 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Checking nalgebra v0.18.1 [INFO] [stderr] Checking andrew v0.2.1 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Checking twox-hash v1.6.0 [INFO] [stderr] Compiling tempfile v3.2.0 [INFO] [stderr] Checking glyph_brush v0.6.3 [INFO] [stderr] Checking glyph_brush v0.5.4 [INFO] [stderr] Checking wayland-commons v0.21.13 [INFO] [stderr] Compiling euclid_macros v0.1.0 [INFO] [stderr] Compiling smart-default v0.5.2 [INFO] [stderr] Compiling serde_derive v1.0.125 [INFO] [stderr] Compiling thiserror-impl v1.0.24 [INFO] [stderr] Checking gilrs-core v0.2.6 [INFO] [stderr] Checking gfx_device_gl v0.16.2 [INFO] [stderr] Checking gilrs v0.7.4 [INFO] [stderr] Checking euclid v0.19.9 [INFO] [stderr] Checking lyon_geom v0.12.7 [INFO] [stderr] Checking thiserror v1.0.24 [INFO] [stderr] Checking zip v0.5.11 [INFO] [stderr] Checking tiff v0.3.1 [INFO] [stderr] Checking lyon_path v0.13.2 [INFO] [stderr] Checking lyon_tessellation v0.13.5 [INFO] [stderr] Checking lyon_algorithms v0.13.4 [INFO] [stderr] Checking image v0.22.5 [INFO] [stderr] Checking lyon v0.13.5 [INFO] [stderr] Checking smithay-client-toolkit v0.4.6 [INFO] [stderr] Compiling serde v1.0.125 [INFO] [stderr] Checking winit v0.19.5 [INFO] [stderr] Checking glutin v0.20.1 [INFO] [stderr] Checking gfx_window_glutin v0.30.0 [INFO] [stderr] Checking rodio v0.9.0 [INFO] [stderr] Checking toml v0.5.8 [INFO] [stderr] Compiling cargo-platform v0.1.1 [INFO] [stderr] Compiling semver v0.11.0 [INFO] [stderr] Compiling cargo_metadata v0.12.3 [INFO] [stderr] Compiling skeptic v0.13.6 [INFO] [stderr] Compiling ggez v0.5.1 [INFO] [stderr] Checking terrain v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: constant is never used: `BLACK` [INFO] [stdout] --> src/random.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | / const BLACK: Color = Color { [INFO] [stdout] 12 | | r: 1.0, [INFO] [stdout] 13 | | g: 1.0, [INFO] [stdout] 14 | | b: 1.0, [INFO] [stdout] 15 | | a: 1.0, [INFO] [stdout] 16 | | }; [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `WHITE` [INFO] [stdout] --> src/random.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / const WHITE: Color = Color { [INFO] [stdout] 18 | | r: 0.0, [INFO] [stdout] 19 | | g: 0.0, [INFO] [stdout] 20 | | b: 0.0, [INFO] [stdout] 21 | | a: 1.0, [INFO] [stdout] 22 | | }; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `RED` [INFO] [stdout] --> src/random.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | / const RED: Color = Color { [INFO] [stdout] 24 | | r: 1.0, [INFO] [stdout] 25 | | g: 0.0, [INFO] [stdout] 26 | | b: 0.0, [INFO] [stdout] 27 | | a: 1.0, [INFO] [stdout] 28 | | }; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `map` [INFO] [stdout] --> src/random.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | map: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `seed` [INFO] [stdout] --> src/random.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | seed: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `BLACK` [INFO] [stdout] --> src/random.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | / const BLACK: Color = Color { [INFO] [stdout] 12 | | r: 1.0, [INFO] [stdout] 13 | | g: 1.0, [INFO] [stdout] 14 | | b: 1.0, [INFO] [stdout] 15 | | a: 1.0, [INFO] [stdout] 16 | | }; [INFO] [stdout] | |__^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `WHITE` [INFO] [stdout] --> src/random.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | / const WHITE: Color = Color { [INFO] [stdout] 18 | | r: 0.0, [INFO] [stdout] 19 | | g: 0.0, [INFO] [stdout] 20 | | b: 0.0, [INFO] [stdout] 21 | | a: 1.0, [INFO] [stdout] 22 | | }; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `RED` [INFO] [stdout] --> src/random.rs:23:1 [INFO] [stdout] | [INFO] [stdout] 23 | / const RED: Color = Color { [INFO] [stdout] 24 | | r: 1.0, [INFO] [stdout] 25 | | g: 0.0, [INFO] [stdout] 26 | | b: 0.0, [INFO] [stdout] 27 | | a: 1.0, [INFO] [stdout] 28 | | }; [INFO] [stdout] | |__^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `map` [INFO] [stdout] --> src/random.rs:33:5 [INFO] [stdout] | [INFO] [stdout] 33 | map: Vec>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `seed` [INFO] [stdout] --> src/random.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | seed: u64, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 5 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot subtract `f32` from `usize` [INFO] [stdout] --> src/perlin.rs:120:42 [INFO] [stdout] | [INFO] [stdout] 120 | let off_ur = Vec2::new(x - (gridx as f32 + self.box_size), y - gridy); [INFO] [stdout] | ^ no implementation for `usize - f32` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sub` is not implemented for `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/perlin.rs:120:76 [INFO] [stdout] | [INFO] [stdout] 120 | let off_ur = Vec2::new(x - (gridx as f32 + self.box_size), y - gridy); [INFO] [stdout] | ^^^^^^^^^ expected `f32`, found `usize` [INFO] [stdout] | [INFO] [stdout] help: you can cast a `usize` to an `f32`, producing the floating point representation of the integer, [INFO] [stdout] | rounded if necessary [INFO] [stdout] 120 | let off_ur = Vec2::new(x - (gridx as f32 + self.box_size), (y - gridy) as f32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/perlin.rs:121:40 [INFO] [stdout] | [INFO] [stdout] 121 | let off_bl = Vec2::new(x - gridx, y - (gridy + self.box_size)); [INFO] [stdout] | ^^^^^^^^^ expected `f32`, found `usize` [INFO] [stdout] | [INFO] [stdout] help: you can cast a `usize` to an `f32`, producing the floating point representation of the integer, [INFO] [stdout] | rounded if necessary [INFO] [stdout] 121 | let off_bl = Vec2::new((x - gridx) as f32, y - (gridy + self.box_size)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add `f32` to `usize` [INFO] [stdout] --> src/perlin.rs:121:62 [INFO] [stdout] | [INFO] [stdout] 121 | let off_bl = Vec2::new(x - gridx, y - (gridy + self.box_size)); [INFO] [stdout] | ^ no implementation for `usize + f32` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Add` is not implemented for `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/perlin.rs:122:40 [INFO] [stdout] | [INFO] [stdout] 122 | let off_br = Vec2::new(x - gridx, y - gridy); [INFO] [stdout] | ^^^^^^^^^ expected `f32`, found `usize` [INFO] [stdout] | [INFO] [stdout] help: you can cast a `usize` to an `f32`, producing the floating point representation of the integer, [INFO] [stdout] | rounded if necessary [INFO] [stdout] 122 | let off_br = Vec2::new((x - gridx) as f32, y - gridy); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/perlin.rs:122:51 [INFO] [stdout] | [INFO] [stdout] 122 | let off_br = Vec2::new(x - gridx, y - gridy); [INFO] [stdout] | ^^^^^^^^^ expected `f32`, found `usize` [INFO] [stdout] | [INFO] [stdout] help: you can cast a `usize` to an `f32`, producing the floating point representation of the integer, [INFO] [stdout] | rounded if necessary [INFO] [stdout] 122 | let off_br = Vec2::new(x - gridx, (y - gridy) as f32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `terrain` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: cannot subtract `f32` from `usize` [INFO] [stdout] --> src/perlin.rs:120:42 [INFO] [stdout] | [INFO] [stdout] 120 | let off_ur = Vec2::new(x - (gridx as f32 + self.box_size), y - gridy); [INFO] [stdout] | ^ no implementation for `usize - f32` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sub` is not implemented for `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/perlin.rs:120:76 [INFO] [stdout] | [INFO] [stdout] 120 | let off_ur = Vec2::new(x - (gridx as f32 + self.box_size), y - gridy); [INFO] [stdout] | ^^^^^^^^^ expected `f32`, found `usize` [INFO] [stdout] | [INFO] [stdout] help: you can cast a `usize` to an `f32`, producing the floating point representation of the integer, [INFO] [stdout] | rounded if necessary [INFO] [stdout] 120 | let off_ur = Vec2::new(x - (gridx as f32 + self.box_size), (y - gridy) as f32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/perlin.rs:121:40 [INFO] [stdout] | [INFO] [stdout] 121 | let off_bl = Vec2::new(x - gridx, y - (gridy + self.box_size)); [INFO] [stdout] | ^^^^^^^^^ expected `f32`, found `usize` [INFO] [stdout] | [INFO] [stdout] help: you can cast a `usize` to an `f32`, producing the floating point representation of the integer, [INFO] [stdout] | rounded if necessary [INFO] [stdout] 121 | let off_bl = Vec2::new((x - gridx) as f32, y - (gridy + self.box_size)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot add `f32` to `usize` [INFO] [stdout] --> src/perlin.rs:121:62 [INFO] [stdout] | [INFO] [stdout] 121 | let off_bl = Vec2::new(x - gridx, y - (gridy + self.box_size)); [INFO] [stdout] | ^ no implementation for `usize + f32` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Add` is not implemented for `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/perlin.rs:122:40 [INFO] [stdout] | [INFO] [stdout] 122 | let off_br = Vec2::new(x - gridx, y - gridy); [INFO] [stdout] | ^^^^^^^^^ expected `f32`, found `usize` [INFO] [stdout] | [INFO] [stdout] help: you can cast a `usize` to an `f32`, producing the floating point representation of the integer, [INFO] [stdout] | rounded if necessary [INFO] [stdout] 122 | let off_br = Vec2::new((x - gridx) as f32, y - gridy); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/perlin.rs:122:51 [INFO] [stdout] | [INFO] [stdout] 122 | let off_br = Vec2::new(x - gridx, y - gridy); [INFO] [stdout] | ^^^^^^^^^ expected `f32`, found `usize` [INFO] [stdout] | [INFO] [stdout] help: you can cast a `usize` to an `f32`, producing the floating point representation of the integer, [INFO] [stdout] | rounded if necessary [INFO] [stdout] 122 | let off_br = Vec2::new(x - gridx, (y - gridy) as f32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "82893fc16b269c49660c40bfc8ea779374b0843ca146a3c1042f6bc8c62a838f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "82893fc16b269c49660c40bfc8ea779374b0843ca146a3c1042f6bc8c62a838f", kill_on_drop: false }` [INFO] [stdout] 82893fc16b269c49660c40bfc8ea779374b0843ca146a3c1042f6bc8c62a838f