[INFO] updating cached repository https://github.com/kempchee/piston-snake [INFO] running `"git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "-c" "remote.origin.fetch=refs/heads/*:refs/heads/*" "fetch" "origin" "--force" "--prune"` [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 7530eecc0da59f870d1febdeac50bcf0824c1d7d [INFO] checking kempchee/piston-snake against master#2748a9fd93dd1a00a4521f4f16de5befbf77f6cd for pr-62262-1 [INFO] running `"git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkempchee%2Fpiston-snake" "/workspace/builds/worker-1/source"` [INFO] [stderr] Cloning into '/workspace/builds/worker-1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/kempchee/piston-snake on toolchain 2748a9fd93dd1a00a4521f4f16de5befbf77f6cd [INFO] running `"/workspace/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking git repo https://github.com/kempchee/piston-snake [INFO] finished tweaking git repo https://github.com/kempchee/piston-snake [INFO] tweaked toml for git repo https://github.com/kempchee/piston-snake written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate git repo https://github.com/kempchee/piston-snake already has a lockfile, it will not be regenerated [INFO] running `"/workspace/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] error: the lock file /workspace/builds/worker-1/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] the lockfile is outdated, regenerating it [INFO] running `"/workspace/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env" "/opt/rustwide/cargo-home/bin/cargo" "+2748a9fd93dd1a00a4521f4f16de5befbf77f6cd" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 08ef4eb90a87e9000ec0e115242e6f92c23076460723451fd5f59ffb67624523 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `"docker" "start" "-a" "08ef4eb90a87e9000ec0e115242e6f92c23076460723451fd5f59ffb67624523"` [INFO] [stderr] Compiling typenum v1.11.2 [INFO] [stderr] Checking piston-float v1.0.0 [INFO] [stderr] Checking piston-graphics_api_version v0.2.0 [INFO] [stderr] Checking piston-texture v0.8.0 [INFO] [stderr] Compiling proc-macro2 v0.3.8 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking num_cpus v1.10.1 [INFO] [stderr] Checking iovec v0.1.4 [INFO] [stderr] Checking memmap v0.7.0 [INFO] [stderr] Checking memchr v1.0.2 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking raw-window-handle v0.3.0 [INFO] [stderr] Checking getrandom v0.1.12 [INFO] [stderr] Checking socket2 v0.3.11 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking nix v0.14.1 [INFO] [stderr] Compiling gl_generator v0.10.0 [INFO] [stderr] Checking x11-dl v2.18.4 [INFO] [stderr] Compiling wayland-scanner v0.21.13 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Checking piston-viewport v1.0.0 [INFO] [stderr] Checking vecmath v1.0.0 [INFO] [stderr] Checking bytes v0.4.12 [INFO] [stderr] Checking rusttype v0.8.1 [INFO] [stderr] Checking num-rational v0.2.2 [INFO] [stderr] Checking ordered-float v0.5.2 [INFO] [stderr] Checking parking_lot_core v0.6.2 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking shader_version v0.6.0 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking pistoncore-input v0.21.0 [INFO] [stderr] Checking crossbeam-epoch v0.7.2 [INFO] [stderr] Checking pistoncore-input v0.28.0 [INFO] [stderr] Checking rusttype v0.5.2 [INFO] [stderr] Compiling quote v0.5.2 [INFO] [stderr] Checking parking_lot v0.9.0 [INFO] [stderr] Checking rusttype v0.7.9 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking num-bigint v0.1.44 [INFO] [stderr] Checking rand_chacha v0.2.1 [INFO] [stderr] Compiling syn v0.13.11 [INFO] [stderr] Checking andrew v0.2.1 [INFO] [stderr] Checking piston2d-graphics v0.35.0 [INFO] [stderr] Checking crossbeam-deque v0.7.1 [INFO] [stderr] Checking rayon-core v1.6.0 [INFO] [stderr] Checking rand v0.7.2 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking generic-array v0.9.0 [INFO] [stderr] Compiling wayland-client v0.21.13 [INFO] [stderr] Compiling wayland-protocols v0.21.13 [INFO] [stderr] Compiling gl v0.11.0 [INFO] [stderr] Checking num v0.1.42 [INFO] [stderr] Checking rayon v1.2.0 [INFO] [stderr] Checking digest v0.7.6 [INFO] [stderr] Checking crypto-mac v0.5.2 [INFO] [stderr] Checking hmac v0.5.0 [INFO] [stderr] Checking sha2 v0.7.1 [INFO] [stderr] Checking postgres-protocol v0.3.2 [INFO] [stderr] Checking glutin_glx_sys v0.1.5 [INFO] [stderr] Checking pistoncore-window v0.44.0 [INFO] [stderr] Checking postgres-shared v0.4.2 [INFO] [stderr] Checking pistoncore-event_loop v0.49.0 [INFO] [stderr] Checking wayland-commons v0.21.13 [INFO] [stderr] Checking piston v0.49.0 [INFO] [stderr] Checking postgres v0.15.2 [INFO] [stderr] Checking jpeg-decoder v0.1.16 [INFO] [stderr] Compiling num-derive v0.2.5 [INFO] [stderr] Compiling derivative v1.0.3 [INFO] [stderr] Checking tiff v0.3.1 [INFO] [stderr] Checking image v0.22.3 [INFO] [stderr] Compiling conrod_derive v0.1.2 [INFO] [stderr] Checking smithay-client-toolkit v0.4.6 [INFO] [stderr] Checking conrod v0.61.1 [INFO] [stderr] Checking winit v0.19.4 [INFO] [stderr] Checking piston2d-opengl_graphics v0.70.0 [INFO] [stderr] Checking glutin v0.21.1 [INFO] [stderr] Checking pistoncore-glutin_window v0.63.0 [INFO] [stderr] Checking first_piston v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] error[E0432]: unresolved import `piston::event` [INFO] [stderr] --> src/main.rs:11:13 [INFO] [stderr] | [INFO] [stderr] 11 | use piston::event::*; [INFO] [stderr] | ^^^^^ could not find `event` in `piston` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `rand::distributions::IndependentSample`, `rand::distributions::Range` [INFO] [stderr] --> src/main.rs:15:27 [INFO] [stderr] | [INFO] [stderr] 15 | use rand::distributions::{IndependentSample, Range}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ ^^^^^ no `Range` in `distributions` [INFO] [stderr] | | [INFO] [stderr] | no `IndependentSample` in `distributions` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `conrod::Background`, `conrod::Button`, `conrod::CanvasId`, `conrod::DropDownList`, `conrod::Floating`, `conrod::Label`, `conrod::UiId`, `conrod::WidgetId`, `conrod::Split` [INFO] [stderr] --> src/main.rs:18:14 [INFO] [stderr] | [INFO] [stderr] 18 | use conrod::{Background, Button,CanvasId,DropDownList, Floating, Label, Labelable,Positionable, Sizeable, Theme, Ui,UiId, Widget,WidgetId,Split}; [INFO] [stderr] | ^^^^^^^^^^ ^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^ ^^^^^ ^^^^ ^^^^^^^^ ^^^^^ no `Split` in the root [INFO] [stderr] | | | | | | | | | [INFO] [stderr] | | | | | | | | no `WidgetId` in the root [INFO] [stderr] | | | | | | no `Label` in the root no `UiId` in the root [INFO] [stderr] | | | | | no `Floating` in the root [INFO] [stderr] | | | | no `DropDownList` in the root [INFO] [stderr] | | | no `CanvasId` in the root [INFO] [stderr] | | no `Button` in the root [INFO] [stderr] | no `Background` in the root [INFO] [stderr] help: a similar name exists in the module [INFO] [stderr] | [INFO] [stderr] 18 | use conrod::{Background, Button,CanvasId,DropDownList, Floating, label, Labelable,Positionable, Sizeable, Theme, Ui,UiId, Widget,WidgetId,Split}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] help: a similar name exists in the module [INFO] [stderr] | [INFO] [stderr] 18 | use conrod::{Background, Button,CanvasId,DropDownList, Floating, Label, Labelable,Positionable, Sizeable, Theme, Ui,UiId, Widget,Widget,Split}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `postgres::SslMode` [INFO] [stderr] --> src/main.rs:20:28 [INFO] [stderr] | [INFO] [stderr] 20 | use postgres::{Connection, SslMode}; [INFO] [stderr] | ^^^^^^^ no `SslMode` in the root [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `glyph_cache` in `opengl_graphics` [INFO] [stderr] --> src/main.rs:106:80 [INFO] [stderr] | [INFO] [stderr] 106 | fn render(&mut self, args: &RenderArgs,ui:&mut conrod::Ui) { [INFO] [stderr] | ^^^^^^^^^^^ could not find `glyph_cache` in `opengl_graphics` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `glyph_cache` in `opengl_graphics` [INFO] [stderr] --> src/main.rs:116:93 [INFO] [stderr] | [INFO] [stderr] 116 | fn render_start_screen(&mut self, args: &RenderArgs,ui:&mut conrod::Ui){ [INFO] [stderr] | ^^^^^^^^^^^ could not find `glyph_cache` in `opengl_graphics` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `glyph_cache` in `opengl_graphics` [INFO] [stderr] --> src/main.rs:124:43 [INFO] [stderr] | [INFO] [stderr] 124 | let mut font=opengl_graphics::glyph_cache::GlyphCache::new(Path::new("fonts/leaguegothic-regular-webfont.ttf")).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^ could not find `glyph_cache` in `opengl_graphics` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `glyph_cache` in `opengl_graphics` [INFO] [stderr] --> src/main.rs:168:97 [INFO] [stderr] | [INFO] [stderr] 168 | fn render_game_over_screen(&mut self, args: &RenderArgs,ui:&mut conrod::Ui){ [INFO] [stderr] | ^^^^^^^^^^^ could not find `glyph_cache` in `opengl_graphics` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `glyph_cache` in `opengl_graphics` [INFO] [stderr] --> src/main.rs:353:50 [INFO] [stderr] | [INFO] [stderr] 353 | let ui=&mut conrod::Ui::new(opengl_graphics::glyph_cache::GlyphCache::new(Path::new("fonts/leaguegothic-regular-webfont.ttf")).unwrap(),conrod::Theme::default()); [INFO] [stderr] | ^^^^^^^^^^^ could not find `glyph_cache` in `opengl_graphics` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RenderArgs` in this scope [INFO] [stderr] --> src/main.rs:79:38 [INFO] [stderr] | [INFO] [stderr] 79 | fn render_game(&mut self, args: &RenderArgs){ [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 10 | use conrod::input::RenderArgs; [INFO] [stderr] | [INFO] [stderr] 10 | use piston::RenderArgs; [INFO] [stderr] | [INFO] [stderr] 10 | use piston::input::RenderArgs; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RenderArgs` in this scope [INFO] [stderr] --> src/main.rs:106:33 [INFO] [stderr] | [INFO] [stderr] 106 | fn render(&mut self, args: &RenderArgs,ui:&mut conrod::Ui) { [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 10 | use conrod::input::RenderArgs; [INFO] [stderr] | [INFO] [stderr] 10 | use piston::RenderArgs; [INFO] [stderr] | [INFO] [stderr] 10 | use piston::input::RenderArgs; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RenderArgs` in this scope [INFO] [stderr] --> src/main.rs:116:46 [INFO] [stderr] | [INFO] [stderr] 116 | fn render_start_screen(&mut self, args: &RenderArgs,ui:&mut conrod::Ui){ [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 10 | use conrod::input::RenderArgs; [INFO] [stderr] | [INFO] [stderr] 10 | use piston::RenderArgs; [INFO] [stderr] | [INFO] [stderr] 10 | use piston::input::RenderArgs; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `light_green` in this scope [INFO] [stderr] --> src/main.rs:126:42 [INFO] [stderr] | [INFO] [stderr] 126 | Split::new(HEADER).color(light_green()), [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `blue` in this scope [INFO] [stderr] --> src/main.rs:127:40 [INFO] [stderr] | [INFO] [stderr] 127 | Split::new(BODY).color(blue()).length(window_dimension*0.75).pad_top(20.0), [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `grey` in this scope [INFO] [stderr] --> src/main.rs:134:24 [INFO] [stderr] | [INFO] [stderr] 134 | .color(grey()) [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 10 | use graphics::color::grey; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `dark_orange` in this scope [INFO] [stderr] --> src/main.rs:137:50 [INFO] [stderr] | [INFO] [stderr] 137 | Label::new("Welcome To Snake").color(dark_orange()).font_size(48).middle_of(HEADER).set(TITLE, ui); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `dark_orange` in this scope [INFO] [stderr] --> src/main.rs:149:44 [INFO] [stderr] | [INFO] [stderr] 149 | Label::new("Difficulty").color(dark_orange()).font_size(24).middle_of(HEADER).mid_left_of(DROPDOWNCONTAINER).set(DROPDOWNLABEL, ui); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `red` in module `conrod::color` [INFO] [stderr] --> src/main.rs:152:47 [INFO] [stderr] | [INFO] [stderr] 152 | .color(conrod::color::red()) [INFO] [stderr] | ^^^ not found in `conrod::color` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RenderArgs` in this scope [INFO] [stderr] --> src/main.rs:168:50 [INFO] [stderr] | [INFO] [stderr] 168 | fn render_game_over_screen(&mut self, args: &RenderArgs,ui:&mut conrod::Ui){ [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 10 | use conrod::input::RenderArgs; [INFO] [stderr] | [INFO] [stderr] 10 | use piston::RenderArgs; [INFO] [stderr] | [INFO] [stderr] 10 | use piston::input::RenderArgs; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `light_green` in this scope [INFO] [stderr] --> src/main.rs:180:42 [INFO] [stderr] | [INFO] [stderr] 180 | Split::new(HEADER).color(light_green()), [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `blue` in this scope [INFO] [stderr] --> src/main.rs:181:40 [INFO] [stderr] | [INFO] [stderr] 181 | Split::new(BODY).color(blue()).length(window_dimension*0.75).pad_top(20.0), [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `red` in this scope [INFO] [stderr] --> src/main.rs:183:43 [INFO] [stderr] | [INFO] [stderr] 183 | Label::new("You Lose!").color(red()).font_size(48).middle_of(HEADER).set(TITLE, ui); [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `red` in module `conrod::color` [INFO] [stderr] --> src/main.rs:185:47 [INFO] [stderr] | [INFO] [stderr] 185 | .color(conrod::color::red()) [INFO] [stderr] | ^^^ not found in `conrod::color` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RenderArgs` in this scope [INFO] [stderr] --> src/main.rs:257:30 [INFO] [stderr] | [INFO] [stderr] 257 | fn game_over(&mut self,r:RenderArgs)->bool{ [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 10 | use conrod::input::RenderArgs; [INFO] [stderr] | [INFO] [stderr] 10 | use piston::RenderArgs; [INFO] [stderr] | [INFO] [stderr] 10 | use piston::input::RenderArgs; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Sizeable`, `Theme`, `Ui` [INFO] [stderr] --> src/main.rs:18:97 [INFO] [stderr] | [INFO] [stderr] 18 | use conrod::{Background, Button,CanvasId,DropDownList, Floating, Label, Labelable,Positionable, Sizeable, Theme, Ui,UiId, Widget,WidgetId,Split}; [INFO] [stderr] | ^^^^^^^^ ^^^^^ ^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/main.rs:358:19 [INFO] [stderr] | [INFO] [stderr] 358 | if(app.current_screen=="game_screen"){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0107]: wrong number of type arguments: expected 0, found 1 [INFO] [stderr] --> src/main.rs:106:63 [INFO] [stderr] | [INFO] [stderr] 106 | fn render(&mut self, args: &RenderArgs,ui:&mut conrod::Ui) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unexpected type argument [INFO] [stderr] [INFO] [stderr] error[E0107]: wrong number of type arguments: expected 0, found 1 [INFO] [stderr] --> src/main.rs:116:76 [INFO] [stderr] | [INFO] [stderr] 116 | fn render_start_screen(&mut self, args: &RenderArgs,ui:&mut conrod::Ui){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unexpected type argument [INFO] [stderr] [INFO] [stderr] error[E0107]: wrong number of type arguments: expected 0, found 1 [INFO] [stderr] --> src/main.rs:168:80 [INFO] [stderr] | [INFO] [stderr] 168 | fn render_game_over_screen(&mut self, args: &RenderArgs,ui:&mut conrod::Ui){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unexpected type argument [INFO] [stderr] [INFO] [stderr] error: aborting due to 27 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0107, E0412, E0425, E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0107`. [INFO] [stderr] error: could not compile `first_piston`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0432]: unresolved import `piston::event` [INFO] [stderr] --> src/main.rs:11:13 [INFO] [stderr] | [INFO] [stderr] 11 | use piston::event::*; [INFO] [stderr] | ^^^^^ could not find `event` in `piston` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `rand::distributions::IndependentSample`, `rand::distributions::Range` [INFO] [stderr] --> src/main.rs:15:27 [INFO] [stderr] | [INFO] [stderr] 15 | use rand::distributions::{IndependentSample, Range}; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ ^^^^^ no `Range` in `distributions` [INFO] [stderr] | | [INFO] [stderr] | no `IndependentSample` in `distributions` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `conrod::Background`, `conrod::Button`, `conrod::CanvasId`, `conrod::DropDownList`, `conrod::Floating`, `conrod::Label`, `conrod::UiId`, `conrod::WidgetId`, `conrod::Split` [INFO] [stderr] --> src/main.rs:18:14 [INFO] [stderr] | [INFO] [stderr] 18 | use conrod::{Background, Button,CanvasId,DropDownList, Floating, Label, Labelable,Positionable, Sizeable, Theme, Ui,UiId, Widget,WidgetId,Split}; [INFO] [stderr] | ^^^^^^^^^^ ^^^^^^ ^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^ ^^^^^ ^^^^ ^^^^^^^^ ^^^^^ no `Split` in the root [INFO] [stderr] | | | | | | | | | [INFO] [stderr] | | | | | | | | no `WidgetId` in the root [INFO] [stderr] | | | | | | no `Label` in the root no `UiId` in the root [INFO] [stderr] | | | | | no `Floating` in the root [INFO] [stderr] | | | | no `DropDownList` in the root [INFO] [stderr] | | | no `CanvasId` in the root [INFO] [stderr] | | no `Button` in the root [INFO] [stderr] | no `Background` in the root [INFO] [stderr] help: a similar name exists in the module [INFO] [stderr] | [INFO] [stderr] 18 | use conrod::{Background, Button,CanvasId,DropDownList, Floating, label, Labelable,Positionable, Sizeable, Theme, Ui,UiId, Widget,WidgetId,Split}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] help: a similar name exists in the module [INFO] [stderr] | [INFO] [stderr] 18 | use conrod::{Background, Button,CanvasId,DropDownList, Floating, Label, Labelable,Positionable, Sizeable, Theme, Ui,UiId, Widget,Widget,Split}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `postgres::SslMode` [INFO] [stderr] --> src/main.rs:20:28 [INFO] [stderr] | [INFO] [stderr] 20 | use postgres::{Connection, SslMode}; [INFO] [stderr] | ^^^^^^^ no `SslMode` in the root [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `glyph_cache` in `opengl_graphics` [INFO] [stderr] --> src/main.rs:106:80 [INFO] [stderr] | [INFO] [stderr] 106 | fn render(&mut self, args: &RenderArgs,ui:&mut conrod::Ui) { [INFO] [stderr] | ^^^^^^^^^^^ could not find `glyph_cache` in `opengl_graphics` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `glyph_cache` in `opengl_graphics` [INFO] [stderr] --> src/main.rs:116:93 [INFO] [stderr] | [INFO] [stderr] 116 | fn render_start_screen(&mut self, args: &RenderArgs,ui:&mut conrod::Ui){ [INFO] [stderr] | ^^^^^^^^^^^ could not find `glyph_cache` in `opengl_graphics` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `glyph_cache` in `opengl_graphics` [INFO] [stderr] --> src/main.rs:124:43 [INFO] [stderr] | [INFO] [stderr] 124 | let mut font=opengl_graphics::glyph_cache::GlyphCache::new(Path::new("fonts/leaguegothic-regular-webfont.ttf")).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^ could not find `glyph_cache` in `opengl_graphics` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `glyph_cache` in `opengl_graphics` [INFO] [stderr] --> src/main.rs:168:97 [INFO] [stderr] | [INFO] [stderr] 168 | fn render_game_over_screen(&mut self, args: &RenderArgs,ui:&mut conrod::Ui){ [INFO] [stderr] | ^^^^^^^^^^^ could not find `glyph_cache` in `opengl_graphics` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `glyph_cache` in `opengl_graphics` [INFO] [stderr] --> src/main.rs:353:50 [INFO] [stderr] | [INFO] [stderr] 353 | let ui=&mut conrod::Ui::new(opengl_graphics::glyph_cache::GlyphCache::new(Path::new("fonts/leaguegothic-regular-webfont.ttf")).unwrap(),conrod::Theme::default()); [INFO] [stderr] | ^^^^^^^^^^^ could not find `glyph_cache` in `opengl_graphics` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RenderArgs` in this scope [INFO] [stderr] --> src/main.rs:79:38 [INFO] [stderr] | [INFO] [stderr] 79 | fn render_game(&mut self, args: &RenderArgs){ [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 10 | use conrod::input::RenderArgs; [INFO] [stderr] | [INFO] [stderr] 10 | use piston::RenderArgs; [INFO] [stderr] | [INFO] [stderr] 10 | use piston::input::RenderArgs; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RenderArgs` in this scope [INFO] [stderr] --> src/main.rs:106:33 [INFO] [stderr] | [INFO] [stderr] 106 | fn render(&mut self, args: &RenderArgs,ui:&mut conrod::Ui) { [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 10 | use conrod::input::RenderArgs; [INFO] [stderr] | [INFO] [stderr] 10 | use piston::RenderArgs; [INFO] [stderr] | [INFO] [stderr] 10 | use piston::input::RenderArgs; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RenderArgs` in this scope [INFO] [stderr] --> src/main.rs:116:46 [INFO] [stderr] | [INFO] [stderr] 116 | fn render_start_screen(&mut self, args: &RenderArgs,ui:&mut conrod::Ui){ [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 10 | use conrod::input::RenderArgs; [INFO] [stderr] | [INFO] [stderr] 10 | use piston::RenderArgs; [INFO] [stderr] | [INFO] [stderr] 10 | use piston::input::RenderArgs; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `light_green` in this scope [INFO] [stderr] --> src/main.rs:126:42 [INFO] [stderr] | [INFO] [stderr] 126 | Split::new(HEADER).color(light_green()), [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `blue` in this scope [INFO] [stderr] --> src/main.rs:127:40 [INFO] [stderr] | [INFO] [stderr] 127 | Split::new(BODY).color(blue()).length(window_dimension*0.75).pad_top(20.0), [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `grey` in this scope [INFO] [stderr] --> src/main.rs:134:24 [INFO] [stderr] | [INFO] [stderr] 134 | .color(grey()) [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 10 | use graphics::color::grey; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `dark_orange` in this scope [INFO] [stderr] --> src/main.rs:137:50 [INFO] [stderr] | [INFO] [stderr] 137 | Label::new("Welcome To Snake").color(dark_orange()).font_size(48).middle_of(HEADER).set(TITLE, ui); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `dark_orange` in this scope [INFO] [stderr] --> src/main.rs:149:44 [INFO] [stderr] | [INFO] [stderr] 149 | Label::new("Difficulty").color(dark_orange()).font_size(24).middle_of(HEADER).mid_left_of(DROPDOWNCONTAINER).set(DROPDOWNLABEL, ui); [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `red` in module `conrod::color` [INFO] [stderr] --> src/main.rs:152:47 [INFO] [stderr] | [INFO] [stderr] 152 | .color(conrod::color::red()) [INFO] [stderr] | ^^^ not found in `conrod::color` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RenderArgs` in this scope [INFO] [stderr] --> src/main.rs:168:50 [INFO] [stderr] | [INFO] [stderr] 168 | fn render_game_over_screen(&mut self, args: &RenderArgs,ui:&mut conrod::Ui){ [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 10 | use conrod::input::RenderArgs; [INFO] [stderr] | [INFO] [stderr] 10 | use piston::RenderArgs; [INFO] [stderr] | [INFO] [stderr] 10 | use piston::input::RenderArgs; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `light_green` in this scope [INFO] [stderr] --> src/main.rs:180:42 [INFO] [stderr] | [INFO] [stderr] 180 | Split::new(HEADER).color(light_green()), [INFO] [stderr] | ^^^^^^^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `blue` in this scope [INFO] [stderr] --> src/main.rs:181:40 [INFO] [stderr] | [INFO] [stderr] 181 | Split::new(BODY).color(blue()).length(window_dimension*0.75).pad_top(20.0), [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `red` in this scope [INFO] [stderr] --> src/main.rs:183:43 [INFO] [stderr] | [INFO] [stderr] 183 | Label::new("You Lose!").color(red()).font_size(48).middle_of(HEADER).set(TITLE, ui); [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `red` in module `conrod::color` [INFO] [stderr] --> src/main.rs:185:47 [INFO] [stderr] | [INFO] [stderr] 185 | .color(conrod::color::red()) [INFO] [stderr] | ^^^ not found in `conrod::color` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `RenderArgs` in this scope [INFO] [stderr] --> src/main.rs:257:30 [INFO] [stderr] | [INFO] [stderr] 257 | fn game_over(&mut self,r:RenderArgs)->bool{ [INFO] [stderr] | ^^^^^^^^^^ not found in this scope [INFO] [stderr] help: possible candidates are found in other modules, you can import them into scope [INFO] [stderr] | [INFO] [stderr] 10 | use conrod::input::RenderArgs; [INFO] [stderr] | [INFO] [stderr] 10 | use piston::RenderArgs; [INFO] [stderr] | [INFO] [stderr] 10 | use piston::input::RenderArgs; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Sizeable`, `Theme`, `Ui` [INFO] [stderr] --> src/main.rs:18:97 [INFO] [stderr] | [INFO] [stderr] 18 | use conrod::{Background, Button,CanvasId,DropDownList, Floating, Label, Labelable,Positionable, Sizeable, Theme, Ui,UiId, Widget,WidgetId,Split}; [INFO] [stderr] | ^^^^^^^^ ^^^^^ ^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/main.rs:358:19 [INFO] [stderr] | [INFO] [stderr] 358 | if(app.current_screen=="game_screen"){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0107]: wrong number of type arguments: expected 0, found 1 [INFO] [stderr] --> src/main.rs:106:63 [INFO] [stderr] | [INFO] [stderr] 106 | fn render(&mut self, args: &RenderArgs,ui:&mut conrod::Ui) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unexpected type argument [INFO] [stderr] [INFO] [stderr] error[E0107]: wrong number of type arguments: expected 0, found 1 [INFO] [stderr] --> src/main.rs:116:76 [INFO] [stderr] | [INFO] [stderr] 116 | fn render_start_screen(&mut self, args: &RenderArgs,ui:&mut conrod::Ui){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unexpected type argument [INFO] [stderr] [INFO] [stderr] error[E0107]: wrong number of type arguments: expected 0, found 1 [INFO] [stderr] --> src/main.rs:168:80 [INFO] [stderr] | [INFO] [stderr] 168 | fn render_game_over_screen(&mut self, args: &RenderArgs,ui:&mut conrod::Ui){ [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unexpected type argument [INFO] [stderr] [INFO] [stderr] error: aborting due to 27 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0107, E0412, E0425, E0432, E0433. [INFO] [stderr] For more information about an error, try `rustc --explain E0107`. [INFO] [stderr] error: could not compile `first_piston`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "08ef4eb90a87e9000ec0e115242e6f92c23076460723451fd5f59ffb67624523"` [INFO] running `"docker" "rm" "-f" "08ef4eb90a87e9000ec0e115242e6f92c23076460723451fd5f59ffb67624523"` [INFO] [stdout] 08ef4eb90a87e9000ec0e115242e6f92c23076460723451fd5f59ffb67624523