[INFO] cloning repository https://github.com/stisol/rustlike [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/stisol/rustlike" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstisol%2Frustlike", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstisol%2Frustlike'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 66402813455ef852c59fd71410e7931f89d79bfc [INFO] checking stisol/rustlike against try#f47dd4da3ae8c32c9e65d307bfe640b143e674df for pr-77526 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fstisol%2Frustlike" "/workspace/builds/worker-1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/stisol/rustlike on toolchain f47dd4da3ae8c32c9e65d307bfe640b143e674df [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/stisol/rustlike [INFO] finished tweaking git repo https://github.com/stisol/rustlike [INFO] tweaked toml for git repo https://github.com/stisol/rustlike written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/stisol/rustlike already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded gleam v0.4.24 [INFO] [stderr] Downloaded rusttype v0.4.1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "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] b5c43f4e94d76d01a9a1126f4263dfc59f39988b057a268948de258001041f69 [INFO] running `Command { std: "docker" "start" "-a" "b5c43f4e94d76d01a9a1126f4263dfc59f39988b057a268948de258001041f69", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b5c43f4e94d76d01a9a1126f4263dfc59f39988b057a268948de258001041f69", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b5c43f4e94d76d01a9a1126f4263dfc59f39988b057a268948de258001041f69", kill_on_drop: false }` [INFO] [stdout] b5c43f4e94d76d01a9a1126f4263dfc59f39988b057a268948de258001041f69 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+f47dd4da3ae8c32c9e65d307bfe640b143e674df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7552a40092649b8cc33c70b268027a949c399c812420a9dfe5abb37026fda465 [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" "7552a40092649b8cc33c70b268027a949c399c812420a9dfe5abb37026fda465", kill_on_drop: false }` [INFO] [stderr] Compiling bitflags v1.0.1 [INFO] [stderr] Checking libc v0.2.39 [INFO] [stderr] Compiling cfg-if v0.1.2 [INFO] [stderr] Compiling cc v1.0.7 [INFO] [stderr] Checking num-traits v0.2.1 [INFO] [stderr] Compiling khronos_api v2.1.0 [INFO] [stderr] Checking piston-float v0.3.0 [INFO] [stderr] Checking byteorder v1.2.1 [INFO] [stderr] Checking scopeguard v0.3.3 [INFO] [stderr] Checking token_store v0.1.2 [INFO] [stderr] Checking lazy_static v0.2.11 [INFO] [stderr] Compiling pkg-config v0.3.9 [INFO] [stderr] Checking serde v1.0.33 [INFO] [stderr] Checking shader_version v0.3.0 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Checking adler32 v1.0.2 [INFO] [stderr] Checking percent-encoding v1.0.1 [INFO] [stderr] Checking color_quant v1.0.0 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking piston-texture v0.6.0 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking read_color v1.0.0 [INFO] [stderr] Checking interpolation v0.1.0 [INFO] [stderr] Checking dtoa v0.4.2 [INFO] [stderr] Checking itoa v0.3.4 [INFO] [stderr] Checking piston-shaders_graphics2d v0.3.1 [INFO] [stderr] Compiling proc-macro2 v0.2.3 [INFO] [stderr] Checking arrayvec v0.4.7 [INFO] [stderr] Compiling log v0.4.1 [INFO] [stderr] Checking piston-viewport v0.3.0 [INFO] [stderr] Checking vecmath v0.3.1 [INFO] [stderr] Checking unreachable v0.1.1 [INFO] [stderr] Compiling xml-rs v0.7.0 [INFO] [stderr] Checking inflate v0.3.4 [INFO] [stderr] Checking gif v0.9.2 [INFO] [stderr] Checking deflate v0.7.17 [INFO] [stderr] Checking stb_truetype v0.2.2 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Checking crossbeam-epoch v0.3.0 [INFO] [stderr] Compiling quote v0.4.2 [INFO] [stderr] Checking rand v0.4.2 [INFO] [stderr] Checking num_cpus v1.8.0 [INFO] [stderr] Checking memmap v0.6.2 [INFO] [stderr] Checking shared_library v0.1.8 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking num-integer v0.1.36 [INFO] [stderr] Compiling x11-dl v2.17.3 [INFO] [stderr] Checking ordered-float v0.5.0 [INFO] [stderr] Checking enum_primitive v0.1.1 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Compiling syn v0.12.14 [INFO] [stderr] Checking num-iter v0.1.35 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking crossbeam-deque v0.2.0 [INFO] [stderr] Checking rusttype v0.4.1 [INFO] [stderr] Checking png v0.11.0 [INFO] [stderr] Compiling libloading v0.5.0 [INFO] [stderr] Compiling wayland-scanner v0.12.5 [INFO] [stderr] Compiling gl_generator v0.9.0 [INFO] [stderr] Compiling gl_generator v0.8.0 [INFO] [stderr] Checking piston2d-graphics v0.26.0 [INFO] [stderr] Checking rand v0.3.22 [INFO] [stderr] Checking rayon-core v1.4.0 [INFO] [stderr] Checking tempfile v2.2.0 [INFO] [stderr] Checking dlib v0.4.1 [INFO] [stderr] Checking wayland-sys v0.12.5 [INFO] [stderr] Checking rayon v1.0.0 [INFO] [stderr] Compiling wayland-client v0.12.5 [INFO] [stderr] Compiling wayland-protocols v0.12.5 [INFO] [stderr] Compiling gl v0.10.0 [INFO] [stderr] Compiling glutin v0.12.2 [INFO] [stderr] Compiling serde_derive_internals v0.21.0 [INFO] [stderr] Checking jpeg-decoder v0.1.14 [INFO] [stderr] Compiling serde_derive v1.0.33 [INFO] [stderr] Checking wayland-kbd v0.13.1 [INFO] [stderr] Checking image v0.18.0 [INFO] [stderr] Checking serde_json v1.0.11 [INFO] [stderr] Checking wayland-window v0.13.2 [INFO] [stderr] Checking winit v0.10.0 [INFO] [stderr] Checking pistoncore-input v0.20.0 [INFO] [stderr] Checking piston2d-opengl_graphics v0.52.0 [INFO] [stderr] Checking pistoncore-window v0.31.0 [INFO] [stderr] Checking pistoncore-event_loop v0.36.0 [INFO] [stderr] Checking pistoncore-glutin_window v0.45.3 [INFO] [stderr] Checking piston v0.36.0 [INFO] [stderr] Checking rustlike v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: maybe a missing crate `ui`? [INFO] [stdout] --> src/item.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 266 | use ui::input::KeyCode::Escape; [INFO] [stdout] | ^^ maybe a missing crate `ui`? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/map.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | colors::WHITE, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/map.rs:181:65 [INFO] [stdout] | [INFO] [stdout] 181 | let mut orc = Object::new(x, y, 'o', "orc", colors::DESATURATED_GREEN, true); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/map.rs:194:69 [INFO] [stdout] | [INFO] [stdout] 194 | let mut troll = Object::new(x, y, 'T', "troll", colors::DARKER_GREEN, true); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/map.rs:291:66 [INFO] [stdout] | [INFO] [stdout] 291 | Object::new(x, y, '!', "healing potion", colors::VIOLET, false); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/map.rs:301:25 [INFO] [stdout] | [INFO] [stdout] 301 | colors::LIGHT_YELLOW, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/map.rs:309:70 [INFO] [stdout] | [INFO] [stdout] 309 | Object::new(x, y, '#', "scroll of fireball", colors::LIGHT_YELLOW, false); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/map.rs:319:25 [INFO] [stdout] | [INFO] [stdout] 319 | colors::LIGHT_YELLOW, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/map.rs:326:70 [INFO] [stdout] | [INFO] [stdout] 326 | let mut object = Object::new(x, y, '/', "sword", colors::SKY, false); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/map.rs:338:71 [INFO] [stdout] | [INFO] [stdout] 338 | let mut object = Object::new(x, y, '[', "shield", colors::DARKER_ORANGE, false); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BackgroundFlag` [INFO] [stdout] --> src/object.rs:78:49 [INFO] [stdout] | [INFO] [stdout] 78 | con.put_char(self.x, self.y, self.char, BackgroundFlag::None); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `BackgroundFlag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BackgroundFlag` [INFO] [stdout] --> src/object.rs:82:43 [INFO] [stdout] | [INFO] [stdout] 82 | con.put_char(self.x, self.y, ' ', BackgroundFlag::None); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `BackgroundFlag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/object.rs:124:17 [INFO] [stdout] | [INFO] [stdout] 124 | colors::RED, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/object.rs:135:17 [INFO] [stdout] | [INFO] [stdout] 135 | colors::WHITE, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: maybe a missing crate `ui`? [INFO] [stdout] --> src/item.rs:266:9 [INFO] [stdout] | [INFO] [stdout] 266 | use ui::input::KeyCode::Escape; [INFO] [stdout] | ^^ maybe a missing crate `ui`? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/object.rs:158:17 [INFO] [stdout] | [INFO] [stdout] 158 | colors::RED, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/object.rs:167:21 [INFO] [stdout] | [INFO] [stdout] 167 | colors::LIGHT_GREEN, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/object.rs:173:17 [INFO] [stdout] | [INFO] [stdout] 173 | colors::RED, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/object.rs:182:17 [INFO] [stdout] | [INFO] [stdout] 182 | colors::RED, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/object.rs:191:21 [INFO] [stdout] | [INFO] [stdout] 191 | colors::LIGHT_YELLOW, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/object.rs:197:17 [INFO] [stdout] | [INFO] [stdout] 197 | colors::RED, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/object.rs:337:13 [INFO] [stdout] | [INFO] [stdout] 337 | colors::RED, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/object.rs:357:26 [INFO] [stdout] | [INFO] [stdout] 357 | log.add("You died!", colors::RED); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/object.rs:359:20 [INFO] [stdout] | [INFO] [stdout] 359 | player.color = colors::DARK_RED; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/map.rs:105:9 [INFO] [stdout] | [INFO] [stdout] 105 | colors::WHITE, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/map.rs:181:65 [INFO] [stdout] | [INFO] [stdout] 181 | let mut orc = Object::new(x, y, 'o', "orc", colors::DESATURATED_GREEN, true); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/map.rs:194:69 [INFO] [stdout] | [INFO] [stdout] 194 | let mut troll = Object::new(x, y, 'T', "troll", colors::DARKER_GREEN, true); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/map.rs:291:66 [INFO] [stdout] | [INFO] [stdout] 291 | Object::new(x, y, '!', "healing potion", colors::VIOLET, false); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/map.rs:301:25 [INFO] [stdout] | [INFO] [stdout] 301 | colors::LIGHT_YELLOW, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/map.rs:309:70 [INFO] [stdout] | [INFO] [stdout] 309 | Object::new(x, y, '#', "scroll of fireball", colors::LIGHT_YELLOW, false); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/map.rs:319:25 [INFO] [stdout] | [INFO] [stdout] 319 | colors::LIGHT_YELLOW, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/map.rs:326:70 [INFO] [stdout] | [INFO] [stdout] 326 | let mut object = Object::new(x, y, '/', "sword", colors::SKY, false); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/map.rs:338:71 [INFO] [stdout] | [INFO] [stdout] 338 | let mut object = Object::new(x, y, '[', "shield", colors::DARKER_ORANGE, false); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/object.rs:369:9 [INFO] [stdout] | [INFO] [stdout] 369 | colors::ORANGE, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/object.rs:372:21 [INFO] [stdout] | [INFO] [stdout] 372 | monster.color = colors::DARK_RED; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BackgroundFlag` [INFO] [stdout] --> src/renderer.rs:45:59 [INFO] [stdout] | [INFO] [stdout] 45 | .set_char_background(x, y, color, BackgroundFlag::Set); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `BackgroundFlag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/renderer.rs:73:37 [INFO] [stdout] | [INFO] [stdout] 73 | ui.panel.set_default_background(colors::BLACK); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/renderer.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | colors::LIGHT_RED, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/renderer.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | colors::DARKER_RED, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BackgroundFlag` [INFO] [stdout] --> src/renderer.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | BackgroundFlag::None, [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `BackgroundFlag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TextAlignment` [INFO] [stdout] --> src/renderer.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | TextAlignment::Left, [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `TextAlignment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/renderer.rs:112:37 [INFO] [stdout] | [INFO] [stdout] 112 | ui.panel.set_default_foreground(colors::LIGHT_GREY); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BackgroundFlag` [INFO] [stdout] --> src/renderer.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | BackgroundFlag::None, [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `BackgroundFlag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TextAlignment` [INFO] [stdout] --> src/renderer.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | TextAlignment::Left, [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `TextAlignment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BackgroundFlag` [INFO] [stdout] --> src/renderer.rs:148:45 [INFO] [stdout] | [INFO] [stdout] 148 | panel.rect(x, y, total_width, 1, false, BackgroundFlag::Screen); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `BackgroundFlag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BackgroundFlag` [INFO] [stdout] --> src/renderer.rs:153:47 [INFO] [stdout] | [INFO] [stdout] 153 | panel.rect(x, y, bar_width, 1, false, BackgroundFlag::Screen); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `BackgroundFlag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/renderer.rs:157:34 [INFO] [stdout] | [INFO] [stdout] 157 | panel.set_default_foreground(colors::WHITE); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BackgroundFlag` [INFO] [stdout] --> src/renderer.rs:161:9 [INFO] [stdout] | [INFO] [stdout] 161 | BackgroundFlag::None, [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `BackgroundFlag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TextAlignment` [INFO] [stdout] --> src/renderer.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | TextAlignment::Center, [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `TextAlignment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/renderer.rs:197:35 [INFO] [stdout] | [INFO] [stdout] 197 | window.set_default_foreground(colors::WHITE); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BackgroundFlag` [INFO] [stdout] --> src/renderer.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 203 | BackgroundFlag::None, [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `BackgroundFlag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TextAlignment` [INFO] [stdout] --> src/renderer.rs:204:9 [INFO] [stdout] | [INFO] [stdout] 204 | TextAlignment::Left, [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `TextAlignment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BackgroundFlag` [INFO] [stdout] --> src/renderer.rs:214:13 [INFO] [stdout] | [INFO] [stdout] 214 | BackgroundFlag::None, [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `BackgroundFlag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TextAlignment` [INFO] [stdout] --> src/renderer.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 215 | TextAlignment::Left, [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `TextAlignment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | colors::RED, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:68:61 [INFO] [stdout] | [INFO] [stdout] 68 | .add(format!("You picked up a {}!", item.name), colors::GREEN); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:89:55 [INFO] [stdout] | [INFO] [stdout] 89 | .add(format!("You dropped a {}.", item.name), colors::YELLOW); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:109:63 [INFO] [stdout] | [INFO] [stdout] 109 | UseResult::Cancelled => game.log.add("Cancelled", colors::WHITE), [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | colors::WHITE, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:128:61 [INFO] [stdout] | [INFO] [stdout] 128 | game.log.add("You are already at full health.", colors::RED); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:132:55 [INFO] [stdout] | [INFO] [stdout] 132 | .add("Your wounds start to feel better!", colors::LIGHT_VIOLET); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BackgroundFlag` [INFO] [stdout] --> src/object.rs:78:49 [INFO] [stdout] | [INFO] [stdout] 78 | con.put_char(self.x, self.y, self.char, BackgroundFlag::None); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `BackgroundFlag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:153:13 [INFO] [stdout] | [INFO] [stdout] 153 | colors::LIGHT_BLUE, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BackgroundFlag` [INFO] [stdout] --> src/object.rs:82:43 [INFO] [stdout] | [INFO] [stdout] 82 | con.put_char(self.x, self.y, ' ', BackgroundFlag::None); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `BackgroundFlag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:161:57 [INFO] [stdout] | [INFO] [stdout] 161 | .add("No enemy is close enough to strike.", colors::RED); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | colors::LIGHT_CYAN, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:188:13 [INFO] [stdout] | [INFO] [stdout] 188 | colors::LIGHT_GREEN, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:193:57 [INFO] [stdout] | [INFO] [stdout] 193 | .add("No enemy is close enough to strike.", colors::RED); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:206:9 [INFO] [stdout] | [INFO] [stdout] 206 | colors::LIGHT_CYAN, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:217:9 [INFO] [stdout] | [INFO] [stdout] 217 | colors::ORANGE, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:228:17 [INFO] [stdout] | [INFO] [stdout] 228 | colors::ORANGE, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/object.rs:124:17 [INFO] [stdout] | [INFO] [stdout] 124 | colors::RED, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/object.rs:135:17 [INFO] [stdout] | [INFO] [stdout] 135 | colors::WHITE, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/object.rs:158:17 [INFO] [stdout] | [INFO] [stdout] 158 | colors::RED, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/object.rs:167:21 [INFO] [stdout] | [INFO] [stdout] 167 | colors::LIGHT_GREEN, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `input` [INFO] [stdout] --> src/item.rs:269:21 [INFO] [stdout] | [INFO] [stdout] 269 | let event = input::check_for_event(input::KEY_PRESS | input::MOUSE).map(|e| e.1); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `input` [INFO] [stdout] --> src/item.rs:269:44 [INFO] [stdout] | [INFO] [stdout] 269 | let event = input::check_for_event(input::KEY_PRESS | input::MOUSE).map(|e| e.1); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `input` [INFO] [stdout] --> src/item.rs:269:63 [INFO] [stdout] | [INFO] [stdout] 269 | let event = input::check_for_event(input::KEY_PRESS | input::MOUSE).map(|e| e.1); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/object.rs:173:17 [INFO] [stdout] | [INFO] [stdout] 173 | colors::RED, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/object.rs:182:17 [INFO] [stdout] | [INFO] [stdout] 182 | colors::RED, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/object.rs:191:21 [INFO] [stdout] | [INFO] [stdout] 191 | colors::LIGHT_YELLOW, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/object.rs:197:17 [INFO] [stdout] | [INFO] [stdout] 197 | colors::RED, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/object.rs:337:13 [INFO] [stdout] | [INFO] [stdout] 337 | colors::RED, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/object.rs:357:26 [INFO] [stdout] | [INFO] [stdout] 357 | log.add("You died!", colors::RED); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/object.rs:359:20 [INFO] [stdout] | [INFO] [stdout] 359 | player.color = colors::DARK_RED; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/object.rs:369:9 [INFO] [stdout] | [INFO] [stdout] 369 | colors::ORANGE, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/object.rs:372:21 [INFO] [stdout] | [INFO] [stdout] 372 | monster.color = colors::DARK_RED; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BackgroundFlag` [INFO] [stdout] --> src/renderer.rs:45:59 [INFO] [stdout] | [INFO] [stdout] 45 | .set_char_background(x, y, color, BackgroundFlag::Set); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `BackgroundFlag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/renderer.rs:73:37 [INFO] [stdout] | [INFO] [stdout] 73 | ui.panel.set_default_background(colors::BLACK); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/renderer.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 99 | colors::LIGHT_RED, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/renderer.rs:100:9 [INFO] [stdout] | [INFO] [stdout] 100 | colors::DARKER_RED, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BackgroundFlag` [INFO] [stdout] --> src/renderer.rs:106:9 [INFO] [stdout] | [INFO] [stdout] 106 | BackgroundFlag::None, [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `BackgroundFlag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TextAlignment` [INFO] [stdout] --> src/renderer.rs:107:9 [INFO] [stdout] | [INFO] [stdout] 107 | TextAlignment::Left, [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `TextAlignment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/renderer.rs:112:37 [INFO] [stdout] | [INFO] [stdout] 112 | ui.panel.set_default_foreground(colors::LIGHT_GREY); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BackgroundFlag` [INFO] [stdout] --> src/renderer.rs:116:9 [INFO] [stdout] | [INFO] [stdout] 116 | BackgroundFlag::None, [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `BackgroundFlag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TextAlignment` [INFO] [stdout] --> src/renderer.rs:117:9 [INFO] [stdout] | [INFO] [stdout] 117 | TextAlignment::Left, [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `TextAlignment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FontLayout` [INFO] [stdout] --> src/main.rs:59:33 [INFO] [stdout] | [INFO] [stdout] 59 | .font("arial10x10.png", FontLayout::Ui) [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `FontLayout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BackgroundFlag` [INFO] [stdout] --> src/renderer.rs:148:45 [INFO] [stdout] | [INFO] [stdout] 148 | panel.rect(x, y, total_width, 1, false, BackgroundFlag::Screen); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `BackgroundFlag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BackgroundFlag` [INFO] [stdout] --> src/renderer.rs:153:47 [INFO] [stdout] | [INFO] [stdout] 153 | panel.rect(x, y, bar_width, 1, false, BackgroundFlag::Screen); [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `BackgroundFlag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/renderer.rs:157:34 [INFO] [stdout] | [INFO] [stdout] 157 | panel.set_default_foreground(colors::WHITE); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FontType` [INFO] [stdout] --> src/main.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 60 | .font_type(FontType::Greyscale) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `FontType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BackgroundFlag` [INFO] [stdout] --> src/renderer.rs:161:9 [INFO] [stdout] | [INFO] [stdout] 161 | BackgroundFlag::None, [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `BackgroundFlag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TextAlignment` [INFO] [stdout] --> src/renderer.rs:162:9 [INFO] [stdout] | [INFO] [stdout] 162 | TextAlignment::Center, [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `TextAlignment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ui` [INFO] [stdout] --> src/main.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | ui::system::set_fps(LIMIT_FPS); [INFO] [stdout] | ^^ use of undeclared crate or module `ui` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/main.rs:78:40 [INFO] [stdout] | [INFO] [stdout] 78 | ui.root.set_default_foreground(colors::LIGHT_YELLOW); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `input` [INFO] [stdout] --> src/main.rs:109:15 [INFO] [stdout] | [INFO] [stdout] 109 | match input::check_for_event(input::MOUSE | input::KEY_PRESS) { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `input` [INFO] [stdout] --> src/main.rs:109:38 [INFO] [stdout] | [INFO] [stdout] 109 | match input::check_for_event(input::MOUSE | input::KEY_PRESS) { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `input` [INFO] [stdout] --> src/main.rs:109:53 [INFO] [stdout] | [INFO] [stdout] 109 | match input::check_for_event(input::MOUSE | input::KEY_PRESS) { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/main.rs:143:55 [INFO] [stdout] | [INFO] [stdout] 143 | let mut player = Object::new(0, 0, '@', "player", colors::WHITE, true); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/main.rs:163:55 [INFO] [stdout] | [INFO] [stdout] 163 | let mut dagger = Object::new(0, 0, '-', "dagger", colors::SKY, false); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/main.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | colors::RED, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/main.rs:352:9 [INFO] [stdout] | [INFO] [stdout] 352 | colors::VIOLET, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/main.rs:359:9 [INFO] [stdout] | [INFO] [stdout] 359 | colors::RED, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/main.rs:376:13 [INFO] [stdout] | [INFO] [stdout] 376 | colors::YELLOW, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/renderer.rs:197:35 [INFO] [stdout] | [INFO] [stdout] 197 | window.set_default_foreground(colors::WHITE); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BackgroundFlag` [INFO] [stdout] --> src/renderer.rs:203:9 [INFO] [stdout] | [INFO] [stdout] 203 | BackgroundFlag::None, [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `BackgroundFlag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TextAlignment` [INFO] [stdout] --> src/renderer.rs:204:9 [INFO] [stdout] | [INFO] [stdout] 204 | TextAlignment::Left, [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `TextAlignment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `blit` in this scope [INFO] [stdout] --> src/renderer.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | blit( [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `blit` in this scope [INFO] [stdout] --> src/renderer.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | blit( [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Mouse` in this scope [INFO] [stdout] --> src/renderer.rs:167:33 [INFO] [stdout] | [INFO] [stdout] 167 | fn get_names_under_mouse(mouse: Mouse, objects: &[Object], fov: &Fov) -> String { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `Button::Mouse`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 167 | fn get_names_under_mouse(mouse: Button, objects: &[Object], fov: &Fov) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `BackgroundFlag` [INFO] [stdout] --> src/renderer.rs:214:13 [INFO] [stdout] | [INFO] [stdout] 214 | BackgroundFlag::None, [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `BackgroundFlag` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TextAlignment` [INFO] [stdout] --> src/renderer.rs:215:13 [INFO] [stdout] | [INFO] [stdout] 215 | TextAlignment::Left, [INFO] [stdout] | ^^^^^^^^^^^^^ use of undeclared type `TextAlignment` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `blit` in this scope [INFO] [stdout] --> src/renderer.rs:222:5 [INFO] [stdout] | [INFO] [stdout] 222 | blit( [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Escape` in this scope [INFO] [stdout] --> src/item.rs:285:54 [INFO] [stdout] | [INFO] [stdout] 285 | let escape = key.map_or(false, |k| k.code == Escape); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use Key::Escape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `buffer` in this scope [INFO] [stdout] --> src/console.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | buffer[x + i][y] = (c, color); [INFO] [stdout] | ^^^^^^ help: you might have meant to use the available field: `self.buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0574]: expected struct, variant or union type, found enum `Key` [INFO] [stdout] --> src/main.rs:302:13 [INFO] [stdout] | [INFO] [stdout] 302 | Key { [INFO] [stdout] | ^^^ not a struct, variant or union type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0574]: expected struct, variant or union type, found enum `Key` [INFO] [stdout] --> src/main.rs:313:10 [INFO] [stdout] | [INFO] [stdout] 313 | (Key { code: Escape, .. }, _) => Exit, [INFO] [stdout] | ^^^ not a struct, variant or union type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:63:13 [INFO] [stdout] | [INFO] [stdout] 63 | colors::RED, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:68:61 [INFO] [stdout] | [INFO] [stdout] 68 | .add(format!("You picked up a {}!", item.name), colors::GREEN); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:89:55 [INFO] [stdout] | [INFO] [stdout] 89 | .add(format!("You dropped a {}.", item.name), colors::YELLOW); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:109:63 [INFO] [stdout] | [INFO] [stdout] 109 | UseResult::Cancelled => game.log.add("Cancelled", colors::WHITE), [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | colors::WHITE, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:128:61 [INFO] [stdout] | [INFO] [stdout] 128 | game.log.add("You are already at full health.", colors::RED); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:132:55 [INFO] [stdout] | [INFO] [stdout] 132 | .add("Your wounds start to feel better!", colors::LIGHT_VIOLET); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:153:13 [INFO] [stdout] | [INFO] [stdout] 153 | colors::LIGHT_BLUE, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:161:57 [INFO] [stdout] | [INFO] [stdout] 161 | .add("No enemy is close enough to strike.", colors::RED); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | colors::LIGHT_CYAN, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:188:13 [INFO] [stdout] | [INFO] [stdout] 188 | colors::LIGHT_GREEN, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:193:57 [INFO] [stdout] | [INFO] [stdout] 193 | .add("No enemy is close enough to strike.", colors::RED); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:206:9 [INFO] [stdout] | [INFO] [stdout] 206 | colors::LIGHT_CYAN, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:217:9 [INFO] [stdout] | [INFO] [stdout] 217 | colors::ORANGE, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/item.rs:228:17 [INFO] [stdout] | [INFO] [stdout] 228 | colors::ORANGE, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `input` [INFO] [stdout] --> src/item.rs:269:21 [INFO] [stdout] | [INFO] [stdout] 269 | let event = input::check_for_event(input::KEY_PRESS | input::MOUSE).map(|e| e.1); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `input` [INFO] [stdout] --> src/item.rs:269:44 [INFO] [stdout] | [INFO] [stdout] 269 | let event = input::check_for_event(input::KEY_PRESS | input::MOUSE).map(|e| e.1); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `input` [INFO] [stdout] --> src/item.rs:269:63 [INFO] [stdout] | [INFO] [stdout] 269 | let event = input::check_for_event(input::KEY_PRESS | input::MOUSE).map(|e| e.1); [INFO] [stdout] | ^^^^^ use of undeclared crate or module `input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FontLayout` [INFO] [stdout] --> src/main.rs:59:33 [INFO] [stdout] | [INFO] [stdout] 59 | .font("arial10x10.png", FontLayout::Ui) [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `FontLayout` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `FontType` [INFO] [stdout] --> src/main.rs:60:20 [INFO] [stdout] | [INFO] [stdout] 60 | .font_type(FontType::Greyscale) [INFO] [stdout] | ^^^^^^^^ use of undeclared type `FontType` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `ui` [INFO] [stdout] --> src/main.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | ui::system::set_fps(LIMIT_FPS); [INFO] [stdout] | ^^ use of undeclared crate or module `ui` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/main.rs:78:40 [INFO] [stdout] | [INFO] [stdout] 78 | ui.root.set_default_foreground(colors::LIGHT_YELLOW); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `input` [INFO] [stdout] --> src/main.rs:109:15 [INFO] [stdout] | [INFO] [stdout] 109 | match input::check_for_event(input::MOUSE | input::KEY_PRESS) { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `input` [INFO] [stdout] --> src/main.rs:109:38 [INFO] [stdout] | [INFO] [stdout] 109 | match input::check_for_event(input::MOUSE | input::KEY_PRESS) { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `input` [INFO] [stdout] --> src/main.rs:109:53 [INFO] [stdout] | [INFO] [stdout] 109 | match input::check_for_event(input::MOUSE | input::KEY_PRESS) { [INFO] [stdout] | ^^^^^ use of undeclared crate or module `input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/main.rs:143:55 [INFO] [stdout] | [INFO] [stdout] 143 | let mut player = Object::new(0, 0, '@', "player", colors::WHITE, true); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/main.rs:163:55 [INFO] [stdout] | [INFO] [stdout] 163 | let mut dagger = Object::new(0, 0, '-', "dagger", colors::SKY, false); [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/main.rs:178:9 [INFO] [stdout] | [INFO] [stdout] 178 | colors::RED, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/main.rs:352:9 [INFO] [stdout] | [INFO] [stdout] 352 | colors::VIOLET, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/main.rs:359:9 [INFO] [stdout] | [INFO] [stdout] 359 | colors::RED, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `colors` [INFO] [stdout] --> src/main.rs:376:13 [INFO] [stdout] | [INFO] [stdout] 376 | colors::YELLOW, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `colors` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `blit` in this scope [INFO] [stdout] --> src/renderer.rs:63:5 [INFO] [stdout] | [INFO] [stdout] 63 | blit( [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `blit` in this scope [INFO] [stdout] --> src/renderer.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | blit( [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Mouse` in this scope [INFO] [stdout] --> src/renderer.rs:167:33 [INFO] [stdout] | [INFO] [stdout] 167 | fn get_names_under_mouse(mouse: Mouse, objects: &[Object], fov: &Fov) -> String { [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: there is an enum variant `Button::Mouse`; try using the variant's enum [INFO] [stdout] | [INFO] [stdout] 167 | fn get_names_under_mouse(mouse: Button, objects: &[Object], fov: &Fov) -> String { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `blit` in this scope [INFO] [stdout] --> src/renderer.rs:222:5 [INFO] [stdout] | [INFO] [stdout] 222 | blit( [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `Escape` in this scope [INFO] [stdout] --> src/item.rs:285:54 [INFO] [stdout] | [INFO] [stdout] 285 | let escape = key.map_or(false, |k| k.code == Escape); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this unit variant [INFO] [stdout] | [INFO] [stdout] 1 | use Key::Escape; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `buffer` in this scope [INFO] [stdout] --> src/console.rs:16:13 [INFO] [stdout] | [INFO] [stdout] 16 | buffer[x + i][y] = (c, color); [INFO] [stdout] | ^^^^^^ help: you might have meant to use the available field: `self.buffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0574]: expected struct, variant or union type, found enum `Key` [INFO] [stdout] --> src/main.rs:302:13 [INFO] [stdout] | [INFO] [stdout] 302 | Key { [INFO] [stdout] | ^^^ not a struct, variant or union type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0574]: expected struct, variant or union type, found enum `Key` [INFO] [stdout] --> src/main.rs:313:10 [INFO] [stdout] | [INFO] [stdout] 313 | (Key { code: Escape, .. }, _) => Exit, [INFO] [stdout] | ^^^ not a struct, variant or union type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `initializer` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/main.rs:58:25 [INFO] [stdout] | [INFO] [stdout] 58 | let root = Console::initializer() [INFO] [stdout] | ^^^^^^^^^^^ function or associated item not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ function or associated item `initializer` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `initializer`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::io::Read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:67:28 [INFO] [stdout] | [INFO] [stdout] 67 | root: Console::new(SCREEN_WIDTH, SCREEN_HEIGHT), [INFO] [stdout] | ^^^^^^^^^^^^ expected `usize`, found `i32` [INFO] [stdout] | [INFO] [stdout] help: you can convert an `i32` to `usize` and panic if the converted value wouldn't fit [INFO] [stdout] | [INFO] [stdout] 67 | root: Console::new(SCREEN_WIDTH.try_into().unwrap(), SCREEN_HEIGHT), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:67:42 [INFO] [stdout] | [INFO] [stdout] 67 | root: Console::new(SCREEN_WIDTH, SCREEN_HEIGHT), [INFO] [stdout] | ^^^^^^^^^^^^^ expected `usize`, found `i32` [INFO] [stdout] | [INFO] [stdout] help: you can convert an `i32` to `usize` and panic if the converted value wouldn't fit [INFO] [stdout] | [INFO] [stdout] 67 | root: Console::new(SCREEN_WIDTH, SCREEN_HEIGHT.try_into().unwrap()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:68:27 [INFO] [stdout] | [INFO] [stdout] 68 | con: Console::new(SCREEN_WIDTH, SCREEN_HEIGHT), [INFO] [stdout] | ^^^^^^^^^^^^ expected `usize`, found `i32` [INFO] [stdout] | [INFO] [stdout] help: you can convert an `i32` to `usize` and panic if the converted value wouldn't fit [INFO] [stdout] | [INFO] [stdout] 68 | con: Console::new(SCREEN_WIDTH.try_into().unwrap(), SCREEN_HEIGHT), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:68:41 [INFO] [stdout] | [INFO] [stdout] 68 | con: Console::new(SCREEN_WIDTH, SCREEN_HEIGHT), [INFO] [stdout] | ^^^^^^^^^^^^^ expected `usize`, found `i32` [INFO] [stdout] | [INFO] [stdout] help: you can convert an `i32` to `usize` and panic if the converted value wouldn't fit [INFO] [stdout] | [INFO] [stdout] 68 | con: Console::new(SCREEN_WIDTH, SCREEN_HEIGHT.try_into().unwrap()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:69:29 [INFO] [stdout] | [INFO] [stdout] 69 | panel: Console::new(SCREEN_WIDTH, renderer::PANEL_HEIGHT), [INFO] [stdout] | ^^^^^^^^^^^^ expected `usize`, found `i32` [INFO] [stdout] | [INFO] [stdout] help: you can convert an `i32` to `usize` and panic if the converted value wouldn't fit [INFO] [stdout] | [INFO] [stdout] 69 | panel: Console::new(SCREEN_WIDTH.try_into().unwrap(), renderer::PANEL_HEIGHT), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:69:43 [INFO] [stdout] | [INFO] [stdout] 69 | panel: Console::new(SCREEN_WIDTH, renderer::PANEL_HEIGHT), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `i32` [INFO] [stdout] | [INFO] [stdout] help: you can convert an `i32` to `usize` and panic if the converted value wouldn't fit [INFO] [stdout] | [INFO] [stdout] 69 | panel: Console::new(SCREEN_WIDTH, renderer::PANEL_HEIGHT.try_into().unwrap()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `window_closed` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/main.rs:77:20 [INFO] [stdout] | [INFO] [stdout] 77 | while !ui.root.window_closed() { [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `window_closed` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_default_foreground` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/main.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | ui.root.set_default_foreground(colors::LIGHT_YELLOW); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `set_default_foreground` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 3 arguments were supplied [INFO] [stdout] --> src/main.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | ui.root.print_centered( [INFO] [stdout] | ^^^^^^^^^^^^^^ expected 4 arguments [INFO] [stdout] 80 | SCREEN_WIDTH / 2, [INFO] [stdout] | ---------------- [INFO] [stdout] 81 | SCREEN_HEIGHT / 2 - 4, [INFO] [stdout] | --------------------- [INFO] [stdout] 82 | "TOMBS OF THE ANCIENT KINGS", [INFO] [stdout] | ---------------------------- supplied 3 arguments [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn print_centered(&mut self, x: usize, y: usize, color: [f32;4], text: &str) { [INFO] [stdout] | -------------------------------------------------------------------------------- defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 3 arguments were supplied [INFO] [stdout] --> src/main.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | ui.root.print_centered( [INFO] [stdout] | ^^^^^^^^^^^^^^ expected 4 arguments [INFO] [stdout] 85 | SCREEN_WIDTH / 2, [INFO] [stdout] | ---------------- [INFO] [stdout] 86 | SCREEN_HEIGHT - 2, [INFO] [stdout] | ----------------- [INFO] [stdout] 87 | "Luringen", [INFO] [stdout] | ---------- supplied 3 arguments [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn print_centered(&mut self, x: usize, y: usize, color: [f32;4], text: &str) { [INFO] [stdout] | -------------------------------------------------------------------------------- defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `window_closed` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/main.rs:108:20 [INFO] [stdout] | [INFO] [stdout] 108 | while !ui.root.window_closed() { [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `window_closed` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Mouse` found for enum `piston::input::Event` in the current scope [INFO] [stdout] --> src/main.rs:110:29 [INFO] [stdout] | [INFO] [stdout] 110 | Some((_, Event::Mouse(m))) => ui.mouse = m, [INFO] [stdout] | ^^^^^ variant or associated item not found in `piston::input::Event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Key` found for enum `piston::input::Event` in the current scope [INFO] [stdout] --> src/main.rs:111:29 [INFO] [stdout] | [INFO] [stdout] 111 | Some((_, Event::Key(k))) => key = k, [INFO] [stdout] | ^^^ variant or associated item not found in `piston::input::Event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `mouse` on type `&mut Ui` [INFO] [stdout] --> src/main.rs:110:46 [INFO] [stdout] | [INFO] [stdout] 110 | Some((_, Event::Mouse(m))) => ui.mouse = m, [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `root`, `con`, `panel`, `fov` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `flush` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/main.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 118 | ui.root.flush(); [INFO] [stdout] | ^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `flush` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `flush`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::io::Write` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 5 arguments but 4 arguments were supplied [INFO] [stdout] --> src/main.rs:127:29 [INFO] [stdout] | [INFO] [stdout] 127 | let player_action = handle_keys(key, ui, objects, game); [INFO] [stdout] | ^^^^^^^^^^^ --- -- ------- ---- supplied 4 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 5 arguments [INFO] [stdout] ... [INFO] [stdout] 191 | / fn handle_keys( [INFO] [stdout] 192 | | key: Key, [INFO] [stdout] 193 | | ui: &mut Ui, [INFO] [stdout] 194 | | objects: &mut Vec, [INFO] [stdout] 195 | | game: &mut Game, [INFO] [stdout] 196 | | btn: &Button, [INFO] [stdout] 197 | | ) -> PlayerAction { [INFO] [stdout] | |_________________- defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `clear` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/main.rs:186:12 [INFO] [stdout] | [INFO] [stdout] 186 | ui.con.clear(); // Clear out previous FOV. [INFO] [stdout] | ^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `clear` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `initializer` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/main.rs:58:25 [INFO] [stdout] | [INFO] [stdout] 58 | let root = Console::initializer() [INFO] [stdout] | ^^^^^^^^^^^ function or associated item not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ function or associated item `initializer` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `initializer`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::io::Read` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:67:28 [INFO] [stdout] | [INFO] [stdout] 67 | root: Console::new(SCREEN_WIDTH, SCREEN_HEIGHT), [INFO] [stdout] | ^^^^^^^^^^^^ expected `usize`, found `i32` [INFO] [stdout] | [INFO] [stdout] help: you can convert an `i32` to `usize` and panic if the converted value wouldn't fit [INFO] [stdout] | [INFO] [stdout] 67 | root: Console::new(SCREEN_WIDTH.try_into().unwrap(), SCREEN_HEIGHT), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:67:42 [INFO] [stdout] | [INFO] [stdout] 67 | root: Console::new(SCREEN_WIDTH, SCREEN_HEIGHT), [INFO] [stdout] | ^^^^^^^^^^^^^ expected `usize`, found `i32` [INFO] [stdout] | [INFO] [stdout] help: you can convert an `i32` to `usize` and panic if the converted value wouldn't fit [INFO] [stdout] | [INFO] [stdout] 67 | root: Console::new(SCREEN_WIDTH, SCREEN_HEIGHT.try_into().unwrap()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:68:27 [INFO] [stdout] | [INFO] [stdout] 68 | con: Console::new(SCREEN_WIDTH, SCREEN_HEIGHT), [INFO] [stdout] | ^^^^^^^^^^^^ expected `usize`, found `i32` [INFO] [stdout] | [INFO] [stdout] help: you can convert an `i32` to `usize` and panic if the converted value wouldn't fit [INFO] [stdout] | [INFO] [stdout] 68 | con: Console::new(SCREEN_WIDTH.try_into().unwrap(), SCREEN_HEIGHT), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:68:41 [INFO] [stdout] | [INFO] [stdout] 68 | con: Console::new(SCREEN_WIDTH, SCREEN_HEIGHT), [INFO] [stdout] | ^^^^^^^^^^^^^ expected `usize`, found `i32` [INFO] [stdout] | [INFO] [stdout] help: you can convert an `i32` to `usize` and panic if the converted value wouldn't fit [INFO] [stdout] | [INFO] [stdout] 68 | con: Console::new(SCREEN_WIDTH, SCREEN_HEIGHT.try_into().unwrap()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:69:29 [INFO] [stdout] | [INFO] [stdout] 69 | panel: Console::new(SCREEN_WIDTH, renderer::PANEL_HEIGHT), [INFO] [stdout] | ^^^^^^^^^^^^ expected `usize`, found `i32` [INFO] [stdout] | [INFO] [stdout] help: you can convert an `i32` to `usize` and panic if the converted value wouldn't fit [INFO] [stdout] | [INFO] [stdout] 69 | panel: Console::new(SCREEN_WIDTH.try_into().unwrap(), renderer::PANEL_HEIGHT), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:69:43 [INFO] [stdout] | [INFO] [stdout] 69 | panel: Console::new(SCREEN_WIDTH, renderer::PANEL_HEIGHT), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `i32` [INFO] [stdout] | [INFO] [stdout] help: you can convert an `i32` to `usize` and panic if the converted value wouldn't fit [INFO] [stdout] | [INFO] [stdout] 69 | panel: Console::new(SCREEN_WIDTH, renderer::PANEL_HEIGHT.try_into().unwrap()), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `window_closed` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/main.rs:77:20 [INFO] [stdout] | [INFO] [stdout] 77 | while !ui.root.window_closed() { [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `window_closed` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_fullscreen` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/main.rs:309:38 [INFO] [stdout] | [INFO] [stdout] 309 | let fullscreen = ui.root.is_fullscreen(); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `is_fullscreen` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_default_foreground` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/main.rs:78:17 [INFO] [stdout] | [INFO] [stdout] 78 | ui.root.set_default_foreground(colors::LIGHT_YELLOW); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `set_default_foreground` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 3 arguments were supplied [INFO] [stdout] --> src/main.rs:79:17 [INFO] [stdout] | [INFO] [stdout] 79 | ui.root.print_centered( [INFO] [stdout] | ^^^^^^^^^^^^^^ expected 4 arguments [INFO] [stdout] 80 | SCREEN_WIDTH / 2, [INFO] [stdout] | ---------------- [INFO] [stdout] 81 | SCREEN_HEIGHT / 2 - 4, [INFO] [stdout] | --------------------- [INFO] [stdout] 82 | "TOMBS OF THE ANCIENT KINGS", [INFO] [stdout] | ---------------------------- supplied 3 arguments [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn print_centered(&mut self, x: usize, y: usize, color: [f32;4], text: &str) { [INFO] [stdout] | -------------------------------------------------------------------------------- defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_fullscreen` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/main.rs:310:21 [INFO] [stdout] | [INFO] [stdout] 310 | ui.root.set_fullscreen(!fullscreen); [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `set_fullscreen` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 4 arguments but 3 arguments were supplied [INFO] [stdout] --> src/main.rs:84:17 [INFO] [stdout] | [INFO] [stdout] 84 | ui.root.print_centered( [INFO] [stdout] | ^^^^^^^^^^^^^^ expected 4 arguments [INFO] [stdout] 85 | SCREEN_WIDTH / 2, [INFO] [stdout] | ---------------- [INFO] [stdout] 86 | SCREEN_HEIGHT - 2, [INFO] [stdout] | ----------------- [INFO] [stdout] 87 | "Luringen", [INFO] [stdout] | ---------- supplied 3 arguments [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | pub fn print_centered(&mut self, x: usize, y: usize, color: [f32;4], text: &str) { [INFO] [stdout] | -------------------------------------------------------------------------------- defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `window_closed` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/main.rs:108:20 [INFO] [stdout] | [INFO] [stdout] 108 | while !ui.root.window_closed() { [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `window_closed` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Mouse` found for enum `piston::input::Event` in the current scope [INFO] [stdout] --> src/main.rs:110:29 [INFO] [stdout] | [INFO] [stdout] 110 | Some((_, Event::Mouse(m))) => ui.mouse = m, [INFO] [stdout] | ^^^^^ variant or associated item not found in `piston::input::Event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Key` found for enum `piston::input::Event` in the current scope [INFO] [stdout] --> src/main.rs:111:29 [INFO] [stdout] | [INFO] [stdout] 111 | Some((_, Event::Key(k))) => key = k, [INFO] [stdout] | ^^^ variant or associated item not found in `piston::input::Event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `mouse` on type `&mut Ui` [INFO] [stdout] --> src/main.rs:110:46 [INFO] [stdout] | [INFO] [stdout] 110 | Some((_, Event::Mouse(m))) => ui.mouse = m, [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `root`, `con`, `panel`, `fov` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `flush` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/main.rs:118:17 [INFO] [stdout] | [INFO] [stdout] 118 | ui.root.flush(); [INFO] [stdout] | ^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `flush` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `flush`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::io::Write` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 5 arguments but 4 arguments were supplied [INFO] [stdout] --> src/main.rs:127:29 [INFO] [stdout] | [INFO] [stdout] 127 | let player_action = handle_keys(key, ui, objects, game); [INFO] [stdout] | ^^^^^^^^^^^ --- -- ------- ---- supplied 4 arguments [INFO] [stdout] | | [INFO] [stdout] | expected 5 arguments [INFO] [stdout] ... [INFO] [stdout] 191 | / fn handle_keys( [INFO] [stdout] 192 | | key: Key, [INFO] [stdout] 193 | | ui: &mut Ui, [INFO] [stdout] 194 | | objects: &mut Vec, [INFO] [stdout] 195 | | game: &mut Game, [INFO] [stdout] 196 | | btn: &Button, [INFO] [stdout] 197 | | ) -> PlayerAction { [INFO] [stdout] | |_________________- defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `clear` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/main.rs:186:12 [INFO] [stdout] | [INFO] [stdout] 186 | ui.con.clear(); // Clear out previous FOV. [INFO] [stdout] | ^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `clear` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `is_fullscreen` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/main.rs:309:38 [INFO] [stdout] | [INFO] [stdout] 309 | let fullscreen = ui.root.is_fullscreen(); [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `is_fullscreen` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_fullscreen` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/main.rs:310:21 [INFO] [stdout] | [INFO] [stdout] 310 | ui.root.set_fullscreen(!fullscreen); [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `set_fullscreen` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_default_foreground` found for mutable reference `&mut console::Console` in the current scope [INFO] [stdout] --> src/object.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | con.set_default_foreground(self.color); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut console::Console` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `put_char` found for mutable reference `&mut console::Console` in the current scope [INFO] [stdout] --> src/object.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | con.put_char(self.x, self.y, self.char, BackgroundFlag::None); [INFO] [stdout] | ^^^^^^^^ method not found in `&mut console::Console` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `put_char` found for mutable reference `&mut console::Console` in the current scope [INFO] [stdout] --> src/object.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | con.put_char(self.x, self.y, ' ', BackgroundFlag::None); [INFO] [stdout] | ^^^^^^^^ method not found in `&mut console::Console` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_char_background` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:45:26 [INFO] [stdout] | [INFO] [stdout] 45 | .set_char_background(x, y, color, BackgroundFlag::Set); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `set_char_background` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_default_background` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:73:14 [INFO] [stdout] | [INFO] [stdout] 73 | ui.panel.set_default_background(colors::BLACK); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `set_default_background` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `clear` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:74:14 [INFO] [stdout] | [INFO] [stdout] 74 | ui.panel.clear(); [INFO] [stdout] | ^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `clear` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_height_rect` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:79:35 [INFO] [stdout] | [INFO] [stdout] 79 | let msg_height = ui.panel.get_height_rect(MSG_X, y, MSG_WIDTH, 0, msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `get_height_rect` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_default_foreground` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:84:18 [INFO] [stdout] | [INFO] [stdout] 84 | ui.panel.set_default_foreground(color); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `set_default_foreground` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `print_rect` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:85:18 [INFO] [stdout] | [INFO] [stdout] 85 | ui.panel.print_rect(MSG_X, y, MSG_WIDTH, 0, msg); [INFO] [stdout] | ^^^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `print_rect` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `print_ex` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:103:14 [INFO] [stdout] | [INFO] [stdout] 103 | ui.panel.print_ex( [INFO] [stdout] | ^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `print_ex` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_default_foreground` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:112:14 [INFO] [stdout] | [INFO] [stdout] 112 | ui.panel.set_default_foreground(colors::LIGHT_GREY); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `set_default_foreground` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `print_ex` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:113:14 [INFO] [stdout] | [INFO] [stdout] 113 | ui.panel.print_ex( [INFO] [stdout] | ^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `print_ex` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `mouse` on type `&mut Ui` [INFO] [stdout] --> src/renderer.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118 | get_names_under_mouse(ui.mouse, objects, &ui.fov), [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `root`, `con`, `panel`, `fov` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_default_background` found for mutable reference `&mut console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:147:11 [INFO] [stdout] | [INFO] [stdout] 147 | panel.set_default_background(back_color); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut console::Console` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `rect` found for mutable reference `&mut console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:148:11 [INFO] [stdout] | [INFO] [stdout] 148 | panel.rect(x, y, total_width, 1, false, BackgroundFlag::Screen); [INFO] [stdout] | ^^^^ method not found in `&mut console::Console` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_default_background` found for mutable reference `&mut console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:151:11 [INFO] [stdout] | [INFO] [stdout] 151 | panel.set_default_background(bar_color); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut console::Console` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `rect` found for mutable reference `&mut console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:153:15 [INFO] [stdout] | [INFO] [stdout] 153 | panel.rect(x, y, bar_width, 1, false, BackgroundFlag::Screen); [INFO] [stdout] | ^^^^ method not found in `&mut console::Console` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_default_foreground` found for mutable reference `&mut console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:157:11 [INFO] [stdout] | [INFO] [stdout] 157 | panel.set_default_foreground(colors::WHITE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut console::Console` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `print_ex` found for mutable reference `&mut console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:158:11 [INFO] [stdout] | [INFO] [stdout] 158 | panel.print_ex( [INFO] [stdout] | ^^^^^^^^ method not found in `&mut console::Console` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_height_rect` found for mutable reference `&mut console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:192:14 [INFO] [stdout] | [INFO] [stdout] 192 | root.get_height_rect(0, 0, width, SCREEN_HEIGHT, header) [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `&mut console::Console` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/renderer.rs:196:35 [INFO] [stdout] | [INFO] [stdout] 196 | let mut window = Console::new(width, height); [INFO] [stdout] | ^^^^^ expected `usize`, found `i32` [INFO] [stdout] | [INFO] [stdout] help: you can convert an `i32` to `usize` and panic if the converted value wouldn't fit [INFO] [stdout] | [INFO] [stdout] 196 | let mut window = Console::new(width.try_into().unwrap(), height); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_default_foreground` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:197:12 [INFO] [stdout] | [INFO] [stdout] 197 | window.set_default_foreground(colors::WHITE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `set_default_foreground` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `print_rect_ex` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 198 | window.print_rect_ex( [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `print_rect_ex` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `print_ex` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:211:16 [INFO] [stdout] | [INFO] [stdout] 211 | window.print_ex( [INFO] [stdout] | ^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `print_ex` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/renderer.rs:221:33 [INFO] [stdout] | [INFO] [stdout] 221 | let y = SCREEN_HEIGHT / 2 - height / 2; [INFO] [stdout] | ^^^^^^^^^^ expected `i32`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot subtract `usize` from `i32` [INFO] [stdout] --> src/renderer.rs:221:31 [INFO] [stdout] | [INFO] [stdout] 221 | let y = SCREEN_HEIGHT / 2 - height / 2; [INFO] [stdout] | ^ no implementation for `i32 - usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sub` is not implemented for `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `flush` found for mutable reference `&mut console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:232:10 [INFO] [stdout] | [INFO] [stdout] 232 | root.flush(); [INFO] [stdout] | ^^^^^ method not found in `&mut console::Console` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `flush`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::io::Write` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wait_for_keypress` found for mutable reference `&mut console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:233:20 [INFO] [stdout] | [INFO] [stdout] 233 | let key = root.wait_for_keypress(true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ method not found in `&mut console::Console` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_default_foreground` found for mutable reference `&mut console::Console` in the current scope [INFO] [stdout] --> src/object.rs:77:13 [INFO] [stdout] | [INFO] [stdout] 77 | con.set_default_foreground(self.color); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut console::Console` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `put_char` found for mutable reference `&mut console::Console` in the current scope [INFO] [stdout] --> src/object.rs:78:13 [INFO] [stdout] | [INFO] [stdout] 78 | con.put_char(self.x, self.y, self.char, BackgroundFlag::None); [INFO] [stdout] | ^^^^^^^^ method not found in `&mut console::Console` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `put_char` found for mutable reference `&mut console::Console` in the current scope [INFO] [stdout] --> src/object.rs:82:13 [INFO] [stdout] | [INFO] [stdout] 82 | con.put_char(self.x, self.y, ' ', BackgroundFlag::None); [INFO] [stdout] | ^^^^^^^^ method not found in `&mut console::Console` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `flush` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/item.rs:268:17 [INFO] [stdout] | [INFO] [stdout] 268 | ui.root.flush(); [INFO] [stdout] | ^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `flush` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `flush`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::io::Write` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Mouse` found for enum `piston::input::Event` in the current scope [INFO] [stdout] --> src/item.rs:272:25 [INFO] [stdout] | [INFO] [stdout] 272 | Some(Event::Mouse(m)) => ui.mouse = m, [INFO] [stdout] | ^^^^^ variant or associated item not found in `piston::input::Event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Key` found for enum `piston::input::Event` in the current scope [INFO] [stdout] --> src/item.rs:273:25 [INFO] [stdout] | [INFO] [stdout] 273 | Some(Event::Key(k)) => key = Some(k), [INFO] [stdout] | ^^^ variant or associated item not found in `piston::input::Event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `mouse` on type `&mut Ui` [INFO] [stdout] --> src/item.rs:272:41 [INFO] [stdout] | [INFO] [stdout] 272 | Some(Event::Mouse(m)) => ui.mouse = m, [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `root`, `con`, `panel`, `fov` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `mouse` on type `&mut Ui` [INFO] [stdout] --> src/item.rs:277:26 [INFO] [stdout] | [INFO] [stdout] 277 | let (x, y) = (ui.mouse.cx as i32, ui.mouse.cy as i32); [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `root`, `con`, `panel`, `fov` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `mouse` on type `&mut Ui` [INFO] [stdout] --> src/item.rs:277:46 [INFO] [stdout] | [INFO] [stdout] 277 | let (x, y) = (ui.mouse.cx as i32, ui.mouse.cy as i32); [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `root`, `con`, `panel`, `fov` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `mouse` on type `&mut Ui` [INFO] [stdout] --> src/item.rs:281:15 [INFO] [stdout] | [INFO] [stdout] 281 | if ui.mouse.lbutton_pressed && in_fov && in_range { [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `root`, `con`, `panel`, `fov` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_char_background` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:45:26 [INFO] [stdout] | [INFO] [stdout] 45 | .set_char_background(x, y, color, BackgroundFlag::Set); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `set_char_background` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `mouse` on type `&mut Ui` [INFO] [stdout] --> src/item.rs:286:15 [INFO] [stdout] | [INFO] [stdout] 286 | if ui.mouse.rbutton_pressed || escape { [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `root`, `con`, `panel`, `fov` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_default_background` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:73:14 [INFO] [stdout] | [INFO] [stdout] 73 | ui.panel.set_default_background(colors::BLACK); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `set_default_background` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `clear` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:74:14 [INFO] [stdout] | [INFO] [stdout] 74 | ui.panel.clear(); [INFO] [stdout] | ^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `clear` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `iterate` found for reference `&str` in the current scope [INFO] [stdout] --> src/console.rs:15:28 [INFO] [stdout] | [INFO] [stdout] 15 | for (c, i) in text.iterate() { [INFO] [stdout] | ^^^^^^^ method not found in `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_height_rect` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:79:35 [INFO] [stdout] | [INFO] [stdout] 79 | let msg_height = ui.panel.get_height_rect(MSG_X, y, MSG_WIDTH, 0, msg); [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `get_height_rect` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 140 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0308, E0412, E0425, E0433, E0574, E0599, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_default_foreground` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:84:18 [INFO] [stdout] | [INFO] [stdout] 84 | ui.panel.set_default_foreground(color); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `set_default_foreground` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `print_rect` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:85:18 [INFO] [stdout] | [INFO] [stdout] 85 | ui.panel.print_rect(MSG_X, y, MSG_WIDTH, 0, msg); [INFO] [stdout] | ^^^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `print_rect` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rustlike` [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[E0599]: no method named `print_ex` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:103:14 [INFO] [stdout] | [INFO] [stdout] 103 | ui.panel.print_ex( [INFO] [stdout] | ^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `print_ex` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_default_foreground` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:112:14 [INFO] [stdout] | [INFO] [stdout] 112 | ui.panel.set_default_foreground(colors::LIGHT_GREY); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `set_default_foreground` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `print_ex` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:113:14 [INFO] [stdout] | [INFO] [stdout] 113 | ui.panel.print_ex( [INFO] [stdout] | ^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `print_ex` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `mouse` on type `&mut Ui` [INFO] [stdout] --> src/renderer.rs:118:34 [INFO] [stdout] | [INFO] [stdout] 118 | get_names_under_mouse(ui.mouse, objects, &ui.fov), [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `root`, `con`, `panel`, `fov` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_default_background` found for mutable reference `&mut console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:147:11 [INFO] [stdout] | [INFO] [stdout] 147 | panel.set_default_background(back_color); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut console::Console` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `rect` found for mutable reference `&mut console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:148:11 [INFO] [stdout] | [INFO] [stdout] 148 | panel.rect(x, y, total_width, 1, false, BackgroundFlag::Screen); [INFO] [stdout] | ^^^^ method not found in `&mut console::Console` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_default_background` found for mutable reference `&mut console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:151:11 [INFO] [stdout] | [INFO] [stdout] 151 | panel.set_default_background(bar_color); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut console::Console` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `rect` found for mutable reference `&mut console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:153:15 [INFO] [stdout] | [INFO] [stdout] 153 | panel.rect(x, y, bar_width, 1, false, BackgroundFlag::Screen); [INFO] [stdout] | ^^^^ method not found in `&mut console::Console` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_default_foreground` found for mutable reference `&mut console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:157:11 [INFO] [stdout] | [INFO] [stdout] 157 | panel.set_default_foreground(colors::WHITE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ method not found in `&mut console::Console` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `print_ex` found for mutable reference `&mut console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:158:11 [INFO] [stdout] | [INFO] [stdout] 158 | panel.print_ex( [INFO] [stdout] | ^^^^^^^^ method not found in `&mut console::Console` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_height_rect` found for mutable reference `&mut console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:192:14 [INFO] [stdout] | [INFO] [stdout] 192 | root.get_height_rect(0, 0, width, SCREEN_HEIGHT, header) [INFO] [stdout] | ^^^^^^^^^^^^^^^ method not found in `&mut console::Console` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/renderer.rs:196:35 [INFO] [stdout] | [INFO] [stdout] 196 | let mut window = Console::new(width, height); [INFO] [stdout] | ^^^^^ expected `usize`, found `i32` [INFO] [stdout] | [INFO] [stdout] help: you can convert an `i32` to `usize` and panic if the converted value wouldn't fit [INFO] [stdout] | [INFO] [stdout] 196 | let mut window = Console::new(width.try_into().unwrap(), height); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `set_default_foreground` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:197:12 [INFO] [stdout] | [INFO] [stdout] 197 | window.set_default_foreground(colors::WHITE); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `set_default_foreground` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `print_rect_ex` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:198:12 [INFO] [stdout] | [INFO] [stdout] 198 | window.print_rect_ex( [INFO] [stdout] | ^^^^^^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `print_rect_ex` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `print_ex` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:211:16 [INFO] [stdout] | [INFO] [stdout] 211 | window.print_ex( [INFO] [stdout] | ^^^^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `print_ex` not found for this [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/renderer.rs:221:33 [INFO] [stdout] | [INFO] [stdout] 221 | let y = SCREEN_HEIGHT / 2 - height / 2; [INFO] [stdout] | ^^^^^^^^^^ expected `i32`, found `usize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: cannot subtract `usize` from `i32` [INFO] [stdout] --> src/renderer.rs:221:31 [INFO] [stdout] | [INFO] [stdout] 221 | let y = SCREEN_HEIGHT / 2 - height / 2; [INFO] [stdout] | ^ no implementation for `i32 - usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sub` is not implemented for `i32` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `flush` found for mutable reference `&mut console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:232:10 [INFO] [stdout] | [INFO] [stdout] 232 | root.flush(); [INFO] [stdout] | ^^^^^ method not found in `&mut console::Console` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `flush`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::io::Write` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `wait_for_keypress` found for mutable reference `&mut console::Console` in the current scope [INFO] [stdout] --> src/renderer.rs:233:20 [INFO] [stdout] | [INFO] [stdout] 233 | let key = root.wait_for_keypress(true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ method not found in `&mut console::Console` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `flush` found for struct `console::Console` in the current scope [INFO] [stdout] --> src/item.rs:268:17 [INFO] [stdout] | [INFO] [stdout] 268 | ui.root.flush(); [INFO] [stdout] | ^^^^^ method not found in `console::Console` [INFO] [stdout] | [INFO] [stdout] ::: src/console.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Console { [INFO] [stdout] | ------------------ method `flush` not found for this [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] = note: the following trait defines an item `flush`, perhaps you need to implement it: [INFO] [stdout] candidate #1: `std::io::Write` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Mouse` found for enum `piston::input::Event` in the current scope [INFO] [stdout] --> src/item.rs:272:25 [INFO] [stdout] | [INFO] [stdout] 272 | Some(Event::Mouse(m)) => ui.mouse = m, [INFO] [stdout] | ^^^^^ variant or associated item not found in `piston::input::Event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no variant or associated item named `Key` found for enum `piston::input::Event` in the current scope [INFO] [stdout] --> src/item.rs:273:25 [INFO] [stdout] | [INFO] [stdout] 273 | Some(Event::Key(k)) => key = Some(k), [INFO] [stdout] | ^^^ variant or associated item not found in `piston::input::Event` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `mouse` on type `&mut Ui` [INFO] [stdout] --> src/item.rs:272:41 [INFO] [stdout] | [INFO] [stdout] 272 | Some(Event::Mouse(m)) => ui.mouse = m, [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `root`, `con`, `panel`, `fov` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `mouse` on type `&mut Ui` [INFO] [stdout] --> src/item.rs:277:26 [INFO] [stdout] | [INFO] [stdout] 277 | let (x, y) = (ui.mouse.cx as i32, ui.mouse.cy as i32); [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `root`, `con`, `panel`, `fov` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `mouse` on type `&mut Ui` [INFO] [stdout] --> src/item.rs:277:46 [INFO] [stdout] | [INFO] [stdout] 277 | let (x, y) = (ui.mouse.cx as i32, ui.mouse.cy as i32); [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `root`, `con`, `panel`, `fov` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `mouse` on type `&mut Ui` [INFO] [stdout] --> src/item.rs:281:15 [INFO] [stdout] | [INFO] [stdout] 281 | if ui.mouse.lbutton_pressed && in_fov && in_range { [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `root`, `con`, `panel`, `fov` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `mouse` on type `&mut Ui` [INFO] [stdout] --> src/item.rs:286:15 [INFO] [stdout] | [INFO] [stdout] 286 | if ui.mouse.rbutton_pressed || escape { [INFO] [stdout] | ^^^^^ unknown field [INFO] [stdout] | [INFO] [stdout] = note: available fields are: `root`, `con`, `panel`, `fov` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `iterate` found for reference `&str` in the current scope [INFO] [stdout] --> src/console.rs:15:28 [INFO] [stdout] | [INFO] [stdout] 15 | for (c, i) in text.iterate() { [INFO] [stdout] | ^^^^^^^ method not found in `&str` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 140 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0308, E0412, E0425, E0433, E0574, E0599, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "7552a40092649b8cc33c70b268027a949c399c812420a9dfe5abb37026fda465", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7552a40092649b8cc33c70b268027a949c399c812420a9dfe5abb37026fda465", kill_on_drop: false }` [INFO] [stdout] 7552a40092649b8cc33c70b268027a949c399c812420a9dfe5abb37026fda465