[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#3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f for pr-87248 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkunalchandan%2FLatticeBoltzmann" "/workspace/builds/worker-11/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-11/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kunalchandan/LatticeBoltzmann on toolchain 3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "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-11/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" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 1d634ecf4e16497e6939c3ba589debbf24ac8f2f46b6d5763a9f22ef2b9b9c81 [INFO] running `Command { std: "docker" "start" "-a" "1d634ecf4e16497e6939c3ba589debbf24ac8f2f46b6d5763a9f22ef2b9b9c81", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1d634ecf4e16497e6939c3ba589debbf24ac8f2f46b6d5763a9f22ef2b9b9c81", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1d634ecf4e16497e6939c3ba589debbf24ac8f2f46b6d5763a9f22ef2b9b9c81", kill_on_drop: false }` [INFO] [stdout] 1d634ecf4e16497e6939c3ba589debbf24ac8f2f46b6d5763a9f22ef2b9b9c81 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-11/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+3e59a8c2f14152ccc92a6c079f592dc2dc6fa93f" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 7c9b2ad42740c8379186811dc1007eef061d4351abc7015e8f7b5f33c4e30ded [INFO] running `Command { std: "docker" "start" "-a" "7c9b2ad42740c8379186811dc1007eef061d4351abc7015e8f7b5f33c4e30ded", kill_on_drop: false }` [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking color_quant v1.0.1 [INFO] [stderr] Compiling getrandom v0.1.13 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking ppv-lite86 v0.2.6 [INFO] [stderr] Compiling typenum v1.11.2 [INFO] [stderr] Checking fnv v1.0.6 [INFO] [stderr] Checking custom_derive v0.1.7 [INFO] [stderr] Compiling num-traits v0.2.9 [INFO] [stderr] Compiling num-integer v0.1.41 [INFO] [stderr] Compiling num-bigint v0.2.3 [INFO] [stderr] Compiling num-rational v0.2.2 [INFO] [stderr] Compiling num-complex v0.2.3 [INFO] [stderr] Checking crossbeam-utils v0.6.6 [INFO] [stderr] Checking itertools v0.7.11 [INFO] [stderr] Checking matrixmultiply v0.2.3 [INFO] [stderr] Checking log v0.4.8 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling proc-macro2 v1.0.6 [INFO] [stderr] Checking crc32fast v1.2.0 [INFO] [stderr] Checking crossbeam-utils v0.7.0 [INFO] [stderr] Checking conv v0.3.3 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking nix v0.14.1 [INFO] [stderr] Checking draw_state v0.8.0 [INFO] [stderr] Checking gif v0.10.3 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Checking x11-dl v2.18.4 [INFO] [stderr] Checking c2-chacha v0.2.3 [INFO] [stderr] Checking png v0.15.1 [INFO] [stderr] Checking crossbeam-queue v0.1.2 [INFO] [stderr] Checking wayland-sys v0.21.13 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Checking gfx_core v0.9.2 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling wayland-scanner v0.21.13 [INFO] [stderr] Compiling syn v1.0.8 [INFO] [stderr] Checking rand_chacha v0.2.1 [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] Checking rand v0.7.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 crossbeam-epoch v0.8.0 [INFO] [stderr] Checking rusttype v0.8.1 [INFO] [stderr] Checking num-iter v0.1.39 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking alga v0.9.2 [INFO] [stderr] Checking crossbeam-deque v0.7.2 [INFO] [stderr] Checking rusttype v0.7.9 [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 gfx v0.18.2 [INFO] [stderr] Checking gfx_device_gl v0.16.2 [INFO] [stderr] Checking rand_distr v0.2.2 [INFO] [stderr] Checking rayon-core v1.6.0 [INFO] [stderr] Checking rayon v1.2.0 [INFO] [stderr] Checking glutin_glx_sys v0.1.5 [INFO] [stderr] Compiling wayland-client v0.21.13 [INFO] [stderr] Compiling wayland-protocols v0.21.13 [INFO] [stderr] Checking num v0.2.0 [INFO] [stderr] Checking nalgebra v0.19.0 [INFO] [stderr] Checking wayland-commons v0.21.13 [INFO] [stderr] Compiling serde_derive v1.0.102 [INFO] [stderr] Checking jpeg-decoder v0.1.16 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling derivative v1.0.3 [INFO] [stderr] Checking tiff v0.3.1 [INFO] [stderr] Checking image v0.22.3 [INFO] [stderr] Checking smithay-client-toolkit v0.4.6 [INFO] [stderr] Checking pistoncore-input v0.28.0 [INFO] [stderr] Checking winit v0.19.5 [INFO] [stderr] Checking piston-gfx_texture v0.40.0 [INFO] [stderr] Checking piston2d-opengl_graphics v0.70.0 [INFO] [stderr] Checking imageproc v0.19.2 [INFO] [stderr] Checking piston2d-gfx_graphics v0.66.0 [INFO] [stderr] Checking pistoncore-window v0.44.0 [INFO] [stderr] Checking glutin v0.21.1 [INFO] [stderr] Checking pistoncore-event_loop v0.49.0 [INFO] [stderr] Checking piston v0.49.0 [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[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[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: 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` due to 42 previous errors; 4 warnings emitted [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" "7c9b2ad42740c8379186811dc1007eef061d4351abc7015e8f7b5f33c4e30ded", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7c9b2ad42740c8379186811dc1007eef061d4351abc7015e8f7b5f33c4e30ded", kill_on_drop: false }` [INFO] [stdout] 7c9b2ad42740c8379186811dc1007eef061d4351abc7015e8f7b5f33c4e30ded