[INFO] cloning repository https://github.com/kunalchandan/LatticeBoltzmann [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kunalchandan/LatticeBoltzmann" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkunalchandan%2FLatticeBoltzmann", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkunalchandan%2FLatticeBoltzmann'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 16ecba4248602ac341d17862fcfa52afa92095c0 [INFO] checking kunalchandan/LatticeBoltzmann against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkunalchandan%2FLatticeBoltzmann" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kunalchandan/LatticeBoltzmann on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/kunalchandan/LatticeBoltzmann [INFO] finished tweaking git repo https://github.com/kunalchandan/LatticeBoltzmann [INFO] tweaked toml for git repo https://github.com/kunalchandan/LatticeBoltzmann written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/kunalchandan/LatticeBoltzmann already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c0a33b59801b086f43ac33334f97b3c91030d0ad2d3132fecfc797a4aaf33428 [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" "c0a33b59801b086f43ac33334f97b3c91030d0ad2d3132fecfc797a4aaf33428", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c0a33b59801b086f43ac33334f97b3c91030d0ad2d3132fecfc797a4aaf33428", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c0a33b59801b086f43ac33334f97b3c91030d0ad2d3132fecfc797a4aaf33428", kill_on_drop: false }` [INFO] [stdout] c0a33b59801b086f43ac33334f97b3c91030d0ad2d3132fecfc797a4aaf33428 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7b7974011cec6a5918e3205c0bad2128b78eee54c0550863aab87d2e6e4aad63 [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" "7b7974011cec6a5918e3205c0bad2128b78eee54c0550863aab87d2e6e4aad63", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v0.1.7 [INFO] [stderr] Compiling libc v0.2.65 [INFO] [stderr] Compiling xml-rs v0.8.0 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling cc v1.0.47 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking arrayvec v0.5.1 [INFO] [stderr] Compiling proc-macro2 v1.0.6 [INFO] [stderr] Checking piston-float v1.0.0 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Compiling rayon-core v1.6.0 [INFO] [stderr] Compiling syn v1.0.8 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking either v1.5.3 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Checking adler32 v1.0.4 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling pkg-config v0.3.17 [INFO] [stderr] Compiling serde v1.0.102 [INFO] [stderr] Checking piston-graphics_api_version v0.2.0 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking downcast-rs v1.1.1 [INFO] [stderr] Checking same-file v1.0.5 [INFO] [stderr] Checking color_quant v1.0.1 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking xdg v2.2.0 [INFO] [stderr] Checking ppv-lite86 v0.2.6 [INFO] [stderr] Checking piston-texture v0.8.0 [INFO] [stderr] Checking interpolation v0.2.0 [INFO] [stderr] Checking percent-encoding v2.1.0 [INFO] [stderr] Checking read_color v1.0.0 [INFO] [stderr] Compiling libm v0.1.4 [INFO] [stderr] Compiling typenum v1.11.2 [INFO] [stderr] Checking piston-shaders_graphics2d v0.3.1 [INFO] [stderr] Checking crossbeam-utils v0.6.6 [INFO] [stderr] Checking lock_api v0.3.1 [INFO] [stderr] Checking piston-viewport v1.0.0 [INFO] [stderr] Checking vecmath v1.0.0 [INFO] [stderr] Checking itertools v0.7.11 [INFO] [stderr] Checking inflate v0.4.5 [INFO] [stderr] Checking shader_version v0.6.0 [INFO] [stderr] Checking walkdir v2.2.9 [INFO] [stderr] Compiling num-traits v0.2.9 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling crossbeam-utils v0.7.0 [INFO] [stderr] Compiling crossbeam-epoch v0.8.0 [INFO] [stderr] Compiling num-bigint v0.2.3 [INFO] [stderr] Compiling num-iter v0.1.39 [INFO] [stderr] Compiling num-rational v0.2.2 [INFO] [stderr] Compiling num-complex v0.2.3 [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 gif v0.10.3 [INFO] [stderr] Checking c2-chacha v0.2.3 [INFO] [stderr] Checking crossbeam-queue v0.1.2 [INFO] [stderr] Compiling memoffset v0.5.3 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking draw_state v0.8.0 [INFO] [stderr] Compiling x11-dl v2.18.4 [INFO] [stderr] Checking smallvec v0.6.13 [INFO] [stderr] Compiling gl_generator v0.11.0 [INFO] [stderr] Compiling gl_generator v0.13.1 [INFO] [stderr] Compiling gl_generator v0.10.0 [INFO] [stderr] Checking stb_truetype v0.3.0 [INFO] [stderr] Checking deflate v0.7.20 [INFO] [stderr] Compiling wayland-scanner v0.21.13 [INFO] [stderr] Checking num_cpus v1.11.1 [INFO] [stderr] Checking getrandom v0.1.13 [INFO] [stderr] Checking memmap v0.7.0 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking raw-window-handle v0.3.1 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking gfx_core v0.9.2 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking png v0.15.1 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking ordered-float v1.0.2 [INFO] [stderr] Checking line_drawing v0.7.0 [INFO] [stderr] Checking generic-array v0.13.2 [INFO] [stderr] Checking rand_chacha v0.2.1 [INFO] [stderr] Checking crossbeam-deque v0.7.2 [INFO] [stderr] Checking rusttype v0.8.1 [INFO] [stderr] Checking rand v0.7.2 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking dlib v0.4.1 [INFO] [stderr] Compiling gl v0.11.0 [INFO] [stderr] Compiling glutin_glx_sys v0.1.5 [INFO] [stderr] Compiling gfx_gl v0.6.0 [INFO] [stderr] Checking rusttype v0.7.9 [INFO] [stderr] Compiling glutin_egl_sys v0.1.4 [INFO] [stderr] Checking alga v0.9.2 [INFO] [stderr] Checking rulinalg v0.4.2 [INFO] [stderr] Checking andrew v0.2.1 [INFO] [stderr] Checking piston2d-graphics v0.35.0 [INFO] [stderr] Checking wayland-sys v0.21.13 [INFO] [stderr] Checking rayon v1.2.0 [INFO] [stderr] Checking gfx v0.18.2 [INFO] [stderr] Compiling wayland-client v0.21.13 [INFO] [stderr] Compiling wayland-protocols v0.21.13 [INFO] [stderr] Checking rand_distr v0.2.2 [INFO] [stderr] Checking num v0.2.0 [INFO] [stderr] Checking nalgebra v0.19.0 [INFO] [stderr] Checking wayland-commons v0.21.13 [INFO] [stderr] Checking jpeg-decoder v0.1.16 [INFO] [stderr] Compiling derivative v1.0.3 [INFO] [stderr] Compiling serde_derive v1.0.102 [INFO] [stderr] Checking tiff v0.3.1 [INFO] [stderr] Checking image v0.22.3 [INFO] [stderr] Checking gfx_device_gl v0.16.2 [INFO] [stderr] Checking smithay-client-toolkit v0.4.6 [INFO] [stderr] Checking piston-gfx_texture v0.40.0 [INFO] [stderr] Checking imageproc v0.19.2 [INFO] [stderr] Checking piston2d-opengl_graphics v0.70.0 [INFO] [stderr] Checking pistoncore-input v0.28.0 [INFO] [stderr] Checking piston2d-gfx_graphics v0.66.0 [INFO] [stderr] Checking winit v0.19.5 [INFO] [stderr] Checking pistoncore-window v0.44.0 [INFO] [stderr] Checking pistoncore-event_loop v0.49.0 [INFO] [stderr] Checking piston v0.49.0 [INFO] [stderr] Checking glutin v0.21.1 [INFO] [stderr] Checking pistoncore-glutin_window v0.63.0 [INFO] [stderr] Checking piston_window v0.105.0 [INFO] [stderr] Checking lattice_boltzmann v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error: visibility `pub(crate)` is not followed by an item [INFO] [stdout] --> src/lattice/consts.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate)pub(crate) static E: [[f32; 2]; 9] = [[0.,0.], [INFO] [stdout] | ^^^^^^^^^^ the visibility [INFO] [stdout] | [INFO] [stdout] = help: you likely meant to define an item, e.g., `pub(crate) fn foo() {}` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected item, found keyword `pub` [INFO] [stdout] --> src/lattice/consts.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate)pub(crate) static E: [[f32; 2]; 9] = [[0.,0.], [INFO] [stdout] | ^^^ expected item [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: visibility `pub(crate)` is not followed by an item [INFO] [stdout] --> src/lattice/consts.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate)pub(crate) static E: [[f32; 2]; 9] = [[0.,0.], [INFO] [stdout] | ^^^^^^^^^^ the visibility [INFO] [stdout] | [INFO] [stdout] = help: you likely meant to define an item, e.g., `pub(crate) fn foo() {}` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: expected item, found keyword `pub` [INFO] [stdout] --> src/lattice/consts.rs:17:11 [INFO] [stdout] | [INFO] [stdout] 17 | pub(crate)pub(crate) static E: [[f32; 2]; 9] = [[0.,0.], [INFO] [stdout] | ^^^ expected item [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::lattice::consts::E` [INFO] [stdout] --> src/lattice/node.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::lattice::consts::E; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ no `E` in `lattice::consts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `crate::lattice::consts::E` [INFO] [stdout] --> src/lattice/node.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::lattice::consts::E; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ no `E` in `lattice::consts` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_X` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:9:32 [INFO] [stdout] | [INFO] [stdout] 9 | println!("{}, {}", (c0/SCALE_X) as usize, (c1/SCALE_Y) as usize); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SCALE_X; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_Y` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:9:55 [INFO] [stdout] | [INFO] [stdout] 9 | println!("{}, {}", (c0/SCALE_X) as usize, (c1/SCALE_Y) as usize); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SCALE_Y; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_X` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:10:38 [INFO] [stdout] | [INFO] [stdout] 10 | for den in 0..self.nodes[(c0/SCALE_X) as usize][(c1/SCALE_Y) as usize].micro_den.len() { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SCALE_X; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_Y` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:10:61 [INFO] [stdout] | [INFO] [stdout] 10 | for den in 0..self.nodes[(c0/SCALE_X) as usize][(c1/SCALE_Y) as usize].micro_den.len() { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SCALE_Y; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_X` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | self.nodes[(c0/SCALE_X) as usize][(c1/SCALE_Y) as usize].micro_den[den] += 1.; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SCALE_X; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_Y` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:11:51 [INFO] [stdout] | [INFO] [stdout] 11 | self.nodes[(c0/SCALE_X) as usize][(c1/SCALE_Y) as usize].micro_den[den] += 1.; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SCALE_Y; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_X` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:14:38 [INFO] [stdout] | [INFO] [stdout] 14 | for vel in 0..self.nodes[(c0/SCALE_X) as usize][(c1/SCALE_Y) as usize].micro_vel.len() { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SCALE_X; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_Y` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:14:61 [INFO] [stdout] | [INFO] [stdout] 14 | for vel in 0..self.nodes[(c0/SCALE_X) as usize][(c1/SCALE_Y) as usize].micro_vel.len() { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SCALE_Y; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_X` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:15:28 [INFO] [stdout] | [INFO] [stdout] 15 | self.nodes[(c0/SCALE_X) as usize][(c1/SCALE_Y) as usize].micro_vel[vel] = 10. * unsafe { ((vel as f32) * PI/9.0).cos() }; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SCALE_X; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_Y` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:15:51 [INFO] [stdout] | [INFO] [stdout] 15 | self.nodes[(c0/SCALE_X) as usize][(c1/SCALE_Y) as usize].micro_vel[vel] = 10. * unsafe { ((vel as f32) * PI/9.0).cos() }; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SCALE_Y; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_X` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:17:39 [INFO] [stdout] | [INFO] [stdout] 17 | println!("{}", self.nodes[(c0/SCALE_X) as usize][(c1/SCALE_Y) as usize].macro_vel); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SCALE_X; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_Y` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:17:62 [INFO] [stdout] | [INFO] [stdout] 17 | println!("{}", self.nodes[(c0/SCALE_X) as usize][(c1/SCALE_Y) as usize].macro_vel); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SCALE_Y; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_X` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:18:39 [INFO] [stdout] | [INFO] [stdout] 18 | println!("{}", self.nodes[(c0/SCALE_X) as usize][(c1/SCALE_Y) as usize].macro_den); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SCALE_X; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_Y` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:18:62 [INFO] [stdout] | [INFO] [stdout] 18 | println!("{}", self.nodes[(c0/SCALE_X) as usize][(c1/SCALE_Y) as usize].macro_den); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SCALE_Y; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MIN_VEL` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:27:87 [INFO] [stdout] | [INFO] [stdout] 27 | self.nodes[x][y].micro_vel[i] = self.nodes[x][y].micro_vel[i].max(MIN_VEL).min( MAX_VEL); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_VEL` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:27:101 [INFO] [stdout] | [INFO] [stdout] 27 | self.nodes[x][y].micro_vel[i] = self.nodes[x][y].micro_vel[i].max(MIN_VEL).min( MAX_VEL); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MIN_DEN` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:31:87 [INFO] [stdout] | [INFO] [stdout] 31 | self.nodes[x][y].micro_den[i] = self.nodes[x][y].micro_den[i].max(MIN_DEN).min(MAX_DEN); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_DEN` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:31:100 [INFO] [stdout] | [INFO] [stdout] 31 | self.nodes[x][y].micro_den[i] = self.nodes[x][y].micro_den[i].max(MIN_DEN).min(MAX_DEN); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `U_Y` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:81:28 [INFO] [stdout] | [INFO] [stdout] 81 | if y < U_Y - 1 { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `U_X` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:87:24 [INFO] [stdout] | [INFO] [stdout] 87 | if x < U_X - 1 { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `U_Y` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:96:28 [INFO] [stdout] | [INFO] [stdout] 96 | if y < U_Y - 1 { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `U_Y` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:107:24 [INFO] [stdout] | [INFO] [stdout] 107 | if y < U_Y - 1 { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `W` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:149:30 [INFO] [stdout] | [INFO] [stdout] 149 | let wi = W[i]; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 149 | let wi = c[i]; [INFO] [stdout] | ^ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Key::W; [INFO] [stdout] | [INFO] [stdout] 1 | use piston::Key::W; [INFO] [stdout] | [INFO] [stdout] 1 | use piston_window::Key::W; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `E` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:150:65 [INFO] [stdout] | [INFO] [stdout] 150 | let ei: na::Vector2 = na::Vector2::new(E[i][0], E[i][1]); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 150 | let ei: na::Vector2 = na::Vector2::new(c[i][0], E[i][1]); [INFO] [stdout] | ^ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::f32::consts::E; [INFO] [stdout] | [INFO] [stdout] 1 | use core::f64::consts::E; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Key::E; [INFO] [stdout] | [INFO] [stdout] 1 | use piston::Key::E; [INFO] [stdout] | [INFO] [stdout] and 3 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `E` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:150:74 [INFO] [stdout] | [INFO] [stdout] 150 | let ei: na::Vector2 = na::Vector2::new(E[i][0], E[i][1]); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 150 | let ei: na::Vector2 = na::Vector2::new(E[i][0], c[i][1]); [INFO] [stdout] | ^ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::f32::consts::E; [INFO] [stdout] | [INFO] [stdout] 1 | use core::f64::consts::E; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Key::E; [INFO] [stdout] | [INFO] [stdout] 1 | use piston::Key::E; [INFO] [stdout] | [INFO] [stdout] and 3 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `U_X` in this scope [INFO] [stdout] --> src/lattice.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | }; U_X]; U_Y]; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `U_Y` in this scope [INFO] [stdout] --> src/lattice.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 35 | }; U_X]; U_Y]; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `C` in this scope [INFO] [stdout] --> src/lattice.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | c: C, [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use crate::Key::C; [INFO] [stdout] | [INFO] [stdout] 3 | use piston::Key::C; [INFO] [stdout] | [INFO] [stdout] 3 | use piston_window::Key::C; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `T` in this scope [INFO] [stdout] --> src/lattice.rs:45:14 [INFO] [stdout] | [INFO] [stdout] 45 | tau: T [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use crate::Key::T; [INFO] [stdout] | [INFO] [stdout] 3 | use piston::Key::T; [INFO] [stdout] | [INFO] [stdout] 3 | use piston_window::Key::T; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_X` in module `lattice` [INFO] [stdout] --> src/main.rs:10:35 [INFO] [stdout] | [INFO] [stdout] 10 | pub const SCALE_X: u32 = lattice::SCALE_X; [INFO] [stdout] | ^^^^^^^ not found in `lattice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_Y` in module `lattice` [INFO] [stdout] --> src/main.rs:11:35 [INFO] [stdout] | [INFO] [stdout] 11 | pub const SCALE_Y: u32 = lattice::SCALE_Y; [INFO] [stdout] | ^^^^^^^ not found in `lattice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `X` in module `lattice` [INFO] [stdout] --> src/main.rs:50:57 [INFO] [stdout] | [INFO] [stdout] 50 | *pixel = im::Rgba([gaussian_beam(x, y, lattice::X).0 as u8, 0, 0, 255]); [INFO] [stdout] | ^ not found in `lattice` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 6 | use crate::Key::X; [INFO] [stdout] | [INFO] [stdout] 6 | use piston::Key::X; [INFO] [stdout] | [INFO] [stdout] 6 | use piston_window::Key::X; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `X` in module `lattice` [INFO] [stdout] --> src/main.rs:66:26 [INFO] [stdout] | [INFO] [stdout] 66 | for x in 0..lattice::X { [INFO] [stdout] | ^ not found in `lattice` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 6 | use crate::Key::X; [INFO] [stdout] | [INFO] [stdout] 6 | use piston::Key::X; [INFO] [stdout] | [INFO] [stdout] 6 | use piston_window::Key::X; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Y` in module `lattice` [INFO] [stdout] --> src/main.rs:67:30 [INFO] [stdout] | [INFO] [stdout] 67 | for y in 0..lattice::Y { [INFO] [stdout] | ^ not found in `lattice` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 6 | use crate::Key::Y; [INFO] [stdout] | [INFO] [stdout] 6 | use piston::Key::Y; [INFO] [stdout] | [INFO] [stdout] 6 | use piston_window::Key::Y; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `X` in module `lattice` [INFO] [stdout] --> src/main.rs:88:19 [INFO] [stdout] | [INFO] [stdout] 88 | [lattice::X * SCALE_X, lattice::Y * SCALE_Y]) [INFO] [stdout] | ^ not found in `lattice` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 6 | use crate::Key::X; [INFO] [stdout] | [INFO] [stdout] 6 | use piston::Key::X; [INFO] [stdout] | [INFO] [stdout] 6 | use piston_window::Key::X; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Y` in module `lattice` [INFO] [stdout] --> src/main.rs:88:41 [INFO] [stdout] | [INFO] [stdout] 88 | [lattice::X * SCALE_X, lattice::Y * SCALE_Y]) [INFO] [stdout] | ^ not found in `lattice` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 6 | use crate::Key::Y; [INFO] [stdout] | [INFO] [stdout] 6 | use piston::Key::Y; [INFO] [stdout] | [INFO] [stdout] 6 | use piston_window::Key::Y; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `X` in module `lattice` [INFO] [stdout] --> src/main.rs:99:93 [INFO] [stdout] | [INFO] [stdout] 99 | let mut canvas: im::ImageBuffer, Vec> = im::ImageBuffer::new(lattice::X * SCALE_X, lattice::Y * SCALE_Y); [INFO] [stdout] | ^ not found in `lattice` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 6 | use crate::Key::X; [INFO] [stdout] | [INFO] [stdout] 6 | use piston::Key::X; [INFO] [stdout] | [INFO] [stdout] 6 | use piston_window::Key::X; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Y` in module `lattice` [INFO] [stdout] --> src/main.rs:99:115 [INFO] [stdout] | [INFO] [stdout] 99 | let mut canvas: im::ImageBuffer, Vec> = im::ImageBuffer::new(lattice::X * SCALE_X, lattice::Y * SCALE_Y); [INFO] [stdout] | ^ not found in `lattice` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 6 | use crate::Key::Y; [INFO] [stdout] | [INFO] [stdout] 6 | use piston::Key::Y; [INFO] [stdout] | [INFO] [stdout] 6 | use piston_window::Key::Y; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::exit` [INFO] [stdout] --> src/lattice.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lattice::consts::*` [INFO] [stdout] --> src/lattice.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::lattice::consts::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lattice::consts::*` [INFO] [stdout] --> src/lattice/funcs.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::lattice::consts::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 39 | let f: f32 = (a * (f32::exp(-1.0 * ((x0.powf(2.0) / (2.0 * sx.powf(2.0))) + (y0.powf(2.0) / (2.0 * sx.powf(2.0))))) - b)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_X` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:9:32 [INFO] [stdout] | [INFO] [stdout] 9 | println!("{}, {}", (c0/SCALE_X) as usize, (c1/SCALE_Y) as usize); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SCALE_X; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_Y` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:9:55 [INFO] [stdout] | [INFO] [stdout] 9 | println!("{}, {}", (c0/SCALE_X) as usize, (c1/SCALE_Y) as usize); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SCALE_Y; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_X` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:10:38 [INFO] [stdout] | [INFO] [stdout] 10 | for den in 0..self.nodes[(c0/SCALE_X) as usize][(c1/SCALE_Y) as usize].micro_den.len() { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SCALE_X; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_Y` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:10:61 [INFO] [stdout] | [INFO] [stdout] 10 | for den in 0..self.nodes[(c0/SCALE_X) as usize][(c1/SCALE_Y) as usize].micro_den.len() { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SCALE_Y; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_X` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:11:28 [INFO] [stdout] | [INFO] [stdout] 11 | self.nodes[(c0/SCALE_X) as usize][(c1/SCALE_Y) as usize].micro_den[den] += 1.; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SCALE_X; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_Y` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:11:51 [INFO] [stdout] | [INFO] [stdout] 11 | self.nodes[(c0/SCALE_X) as usize][(c1/SCALE_Y) as usize].micro_den[den] += 1.; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SCALE_Y; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_X` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:14:38 [INFO] [stdout] | [INFO] [stdout] 14 | for vel in 0..self.nodes[(c0/SCALE_X) as usize][(c1/SCALE_Y) as usize].micro_vel.len() { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SCALE_X; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_Y` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:14:61 [INFO] [stdout] | [INFO] [stdout] 14 | for vel in 0..self.nodes[(c0/SCALE_X) as usize][(c1/SCALE_Y) as usize].micro_vel.len() { [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SCALE_Y; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_X` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:15:28 [INFO] [stdout] | [INFO] [stdout] 15 | self.nodes[(c0/SCALE_X) as usize][(c1/SCALE_Y) as usize].micro_vel[vel] = 10. * unsafe { ((vel as f32) * PI/9.0).cos() }; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SCALE_X; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_Y` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:15:51 [INFO] [stdout] | [INFO] [stdout] 15 | self.nodes[(c0/SCALE_X) as usize][(c1/SCALE_Y) as usize].micro_vel[vel] = 10. * unsafe { ((vel as f32) * PI/9.0).cos() }; [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SCALE_Y; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_X` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:17:39 [INFO] [stdout] | [INFO] [stdout] 17 | println!("{}", self.nodes[(c0/SCALE_X) as usize][(c1/SCALE_Y) as usize].macro_vel); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SCALE_X; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_Y` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:17:62 [INFO] [stdout] | [INFO] [stdout] 17 | println!("{}", self.nodes[(c0/SCALE_X) as usize][(c1/SCALE_Y) as usize].macro_vel); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SCALE_Y; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_X` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:18:39 [INFO] [stdout] | [INFO] [stdout] 18 | println!("{}", self.nodes[(c0/SCALE_X) as usize][(c1/SCALE_Y) as usize].macro_den); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SCALE_X; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_Y` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:18:62 [INFO] [stdout] | [INFO] [stdout] 18 | println!("{}", self.nodes[(c0/SCALE_X) as usize][(c1/SCALE_Y) as usize].macro_den); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this constant [INFO] [stdout] | [INFO] [stdout] 1 | use crate::SCALE_Y; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MIN_VEL` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:27:87 [INFO] [stdout] | [INFO] [stdout] 27 | self.nodes[x][y].micro_vel[i] = self.nodes[x][y].micro_vel[i].max(MIN_VEL).min( MAX_VEL); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_VEL` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:27:101 [INFO] [stdout] | [INFO] [stdout] 27 | self.nodes[x][y].micro_vel[i] = self.nodes[x][y].micro_vel[i].max(MIN_VEL).min( MAX_VEL); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MIN_DEN` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:31:87 [INFO] [stdout] | [INFO] [stdout] 31 | self.nodes[x][y].micro_den[i] = self.nodes[x][y].micro_den[i].max(MIN_DEN).min(MAX_DEN); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MAX_DEN` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:31:100 [INFO] [stdout] | [INFO] [stdout] 31 | self.nodes[x][y].micro_den[i] = self.nodes[x][y].micro_den[i].max(MIN_DEN).min(MAX_DEN); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `U_Y` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:81:28 [INFO] [stdout] | [INFO] [stdout] 81 | if y < U_Y - 1 { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `U_X` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:87:24 [INFO] [stdout] | [INFO] [stdout] 87 | if x < U_X - 1 { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `U_Y` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:96:28 [INFO] [stdout] | [INFO] [stdout] 96 | if y < U_Y - 1 { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `U_Y` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:107:24 [INFO] [stdout] | [INFO] [stdout] 107 | if y < U_Y - 1 { [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `W` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:149:30 [INFO] [stdout] | [INFO] [stdout] 149 | let wi = W[i]; [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 149 | let wi = c[i]; [INFO] [stdout] | ^ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Key::W; [INFO] [stdout] | [INFO] [stdout] 1 | use piston::Key::W; [INFO] [stdout] | [INFO] [stdout] 1 | use piston_window::Key::W; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `E` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:150:65 [INFO] [stdout] | [INFO] [stdout] 150 | let ei: na::Vector2 = na::Vector2::new(E[i][0], E[i][1]); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 150 | let ei: na::Vector2 = na::Vector2::new(c[i][0], E[i][1]); [INFO] [stdout] | ^ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::f32::consts::E; [INFO] [stdout] | [INFO] [stdout] 1 | use core::f64::consts::E; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Key::E; [INFO] [stdout] | [INFO] [stdout] 1 | use piston::Key::E; [INFO] [stdout] | [INFO] [stdout] and 3 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `E` in this scope [INFO] [stdout] --> src/lattice/funcs.rs:150:74 [INFO] [stdout] | [INFO] [stdout] 150 | let ei: na::Vector2 = na::Vector2::new(E[i][0], E[i][1]); [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] help: a local variable with a similar name exists [INFO] [stdout] | [INFO] [stdout] 150 | let ei: na::Vector2 = na::Vector2::new(E[i][0], c[i][1]); [INFO] [stdout] | ^ [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 1 | use core::f32::consts::E; [INFO] [stdout] | [INFO] [stdout] 1 | use core::f64::consts::E; [INFO] [stdout] | [INFO] [stdout] 1 | use crate::Key::E; [INFO] [stdout] | [INFO] [stdout] 1 | use piston::Key::E; [INFO] [stdout] | [INFO] [stdout] and 3 other candidates [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `U_X` in this scope [INFO] [stdout] --> src/lattice.rs:35:12 [INFO] [stdout] | [INFO] [stdout] 35 | }; U_X]; U_Y]; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `U_Y` in this scope [INFO] [stdout] --> src/lattice.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 35 | }; U_X]; U_Y]; [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `C` in this scope [INFO] [stdout] --> src/lattice.rs:44:12 [INFO] [stdout] | [INFO] [stdout] 44 | c: C, [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use crate::Key::C; [INFO] [stdout] | [INFO] [stdout] 3 | use piston::Key::C; [INFO] [stdout] | [INFO] [stdout] 3 | use piston_window::Key::C; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `T` in this scope [INFO] [stdout] --> src/lattice.rs:45:14 [INFO] [stdout] | [INFO] [stdout] 45 | tau: T [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 3 | use crate::Key::T; [INFO] [stdout] | [INFO] [stdout] 3 | use piston::Key::T; [INFO] [stdout] | [INFO] [stdout] 3 | use piston_window::Key::T; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_X` in module `lattice` [INFO] [stdout] --> src/main.rs:10:35 [INFO] [stdout] | [INFO] [stdout] 10 | pub const SCALE_X: u32 = lattice::SCALE_X; [INFO] [stdout] | ^^^^^^^ not found in `lattice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `SCALE_Y` in module `lattice` [INFO] [stdout] --> src/main.rs:11:35 [INFO] [stdout] | [INFO] [stdout] 11 | pub const SCALE_Y: u32 = lattice::SCALE_Y; [INFO] [stdout] | ^^^^^^^ not found in `lattice` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `X` in module `lattice` [INFO] [stdout] --> src/main.rs:50:57 [INFO] [stdout] | [INFO] [stdout] 50 | *pixel = im::Rgba([gaussian_beam(x, y, lattice::X).0 as u8, 0, 0, 255]); [INFO] [stdout] | ^ not found in `lattice` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 6 | use crate::Key::X; [INFO] [stdout] | [INFO] [stdout] 6 | use piston::Key::X; [INFO] [stdout] | [INFO] [stdout] 6 | use piston_window::Key::X; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `X` in module `lattice` [INFO] [stdout] --> src/main.rs:66:26 [INFO] [stdout] | [INFO] [stdout] 66 | for x in 0..lattice::X { [INFO] [stdout] | ^ not found in `lattice` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 6 | use crate::Key::X; [INFO] [stdout] | [INFO] [stdout] 6 | use piston::Key::X; [INFO] [stdout] | [INFO] [stdout] 6 | use piston_window::Key::X; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Y` in module `lattice` [INFO] [stdout] --> src/main.rs:67:30 [INFO] [stdout] | [INFO] [stdout] 67 | for y in 0..lattice::Y { [INFO] [stdout] | ^ not found in `lattice` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 6 | use crate::Key::Y; [INFO] [stdout] | [INFO] [stdout] 6 | use piston::Key::Y; [INFO] [stdout] | [INFO] [stdout] 6 | use piston_window::Key::Y; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `X` in module `lattice` [INFO] [stdout] --> src/main.rs:88:19 [INFO] [stdout] | [INFO] [stdout] 88 | [lattice::X * SCALE_X, lattice::Y * SCALE_Y]) [INFO] [stdout] | ^ not found in `lattice` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 6 | use crate::Key::X; [INFO] [stdout] | [INFO] [stdout] 6 | use piston::Key::X; [INFO] [stdout] | [INFO] [stdout] 6 | use piston_window::Key::X; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Y` in module `lattice` [INFO] [stdout] --> src/main.rs:88:41 [INFO] [stdout] | [INFO] [stdout] 88 | [lattice::X * SCALE_X, lattice::Y * SCALE_Y]) [INFO] [stdout] | ^ not found in `lattice` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 6 | use crate::Key::Y; [INFO] [stdout] | [INFO] [stdout] 6 | use piston::Key::Y; [INFO] [stdout] | [INFO] [stdout] 6 | use piston_window::Key::Y; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `X` in module `lattice` [INFO] [stdout] --> src/main.rs:99:93 [INFO] [stdout] | [INFO] [stdout] 99 | let mut canvas: im::ImageBuffer, Vec> = im::ImageBuffer::new(lattice::X * SCALE_X, lattice::Y * SCALE_Y); [INFO] [stdout] | ^ not found in `lattice` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 6 | use crate::Key::X; [INFO] [stdout] | [INFO] [stdout] 6 | use piston::Key::X; [INFO] [stdout] | [INFO] [stdout] 6 | use piston_window::Key::X; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Y` in module `lattice` [INFO] [stdout] --> src/main.rs:99:115 [INFO] [stdout] | [INFO] [stdout] 99 | let mut canvas: im::ImageBuffer, Vec> = im::ImageBuffer::new(lattice::X * SCALE_X, lattice::Y * SCALE_Y); [INFO] [stdout] | ^ not found in `lattice` [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 6 | use crate::Key::Y; [INFO] [stdout] | [INFO] [stdout] 6 | use piston::Key::Y; [INFO] [stdout] | [INFO] [stdout] 6 | use piston_window::Key::Y; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::process::exit` [INFO] [stdout] --> src/lattice.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::process::exit; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lattice::consts::*` [INFO] [stdout] --> src/lattice.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::lattice::consts::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::lattice::consts::*` [INFO] [stdout] --> src/lattice/funcs.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use crate::lattice::consts::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/main.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 39 | let f: f32 = (a * (f32::exp(-1.0 * ((x0.powf(2.0) / (2.0 * sx.powf(2.0))) + (y0.powf(2.0) / (2.0 * sx.powf(2.0))))) - b)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 41 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: could not compile `lattice_boltzmann` [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: aborting due to 41 previous errors; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "7b7974011cec6a5918e3205c0bad2128b78eee54c0550863aab87d2e6e4aad63", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b7974011cec6a5918e3205c0bad2128b78eee54c0550863aab87d2e6e4aad63", kill_on_drop: false }` [INFO] [stdout] 7b7974011cec6a5918e3205c0bad2128b78eee54c0550863aab87d2e6e4aad63