[INFO] cloning repository https://github.com/matt-williams/ziggurat [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/matt-williams/ziggurat" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmatt-williams%2Fziggurat", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmatt-williams%2Fziggurat'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 692ab2a70039a8fde3a10db6fc3687d3fad524dc [INFO] checking matt-williams/ziggurat against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmatt-williams%2Fziggurat" "/workspace/builds/worker-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/matt-williams/ziggurat on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/matt-williams/ziggurat [INFO] removed path dependency webgl from git repo https://github.com/matt-williams/ziggurat [INFO] finished tweaking git repo https://github.com/matt-williams/ziggurat [INFO] tweaked toml for git repo https://github.com/matt-williams/ziggurat written to /workspace/builds/worker-13/source/Cargo.toml [INFO] crate git repo https://github.com/matt-williams/ziggurat already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: dependency (webgl) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] error: the lock file /workspace/builds/worker-13/source/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] [stderr] If you want to try to generate the lock file without accessing the network, use the --offline flag. [INFO] the lockfile is outdated, regenerating it [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] [stderr] Updating git repository `https://github.com/koute/stdweb.git` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: dependency (webgl) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3cd60de1c6f35961000137dc32168cb48a655cef2af2651922f205952d5778d8 [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" "3cd60de1c6f35961000137dc32168cb48a655cef2af2651922f205952d5778d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3cd60de1c6f35961000137dc32168cb48a655cef2af2651922f205952d5778d8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3cd60de1c6f35961000137dc32168cb48a655cef2af2651922f205952d5778d8", kill_on_drop: false }` [INFO] [stdout] 3cd60de1c6f35961000137dc32168cb48a655cef2af2651922f205952d5778d8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 98629e8c3a9f70a47545f3ad514b56ce0471193f84955749dabae4a72472a61f [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" "98629e8c3a9f70a47545f3ad514b56ce0471193f84955749dabae4a72472a61f", kill_on_drop: false }` [INFO] [stderr] warning: dependency (webgl) specified without providing a local path, Git repository, or version to use. This will be considered an error in future versions [INFO] [stderr] Compiling proc-macro2 v1.0.24 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling libc v0.2.81 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling itoa v0.4.7 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling khronos_api v2.2.0 [INFO] [stderr] Compiling pulldown-cmark v0.2.0 [INFO] [stderr] Compiling syn v0.15.44 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling autocfg v1.0.1 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling bytecount v0.6.2 [INFO] [stderr] Compiling peg-runtime v0.6.3 [INFO] [stderr] Compiling stdweb-internal-runtime v0.1.2 (https://github.com/koute/stdweb.git?rev=f1fc5e3#f1fc5e32) [INFO] [stderr] Compiling base-x v0.2.8 [INFO] [stderr] Checking approx v0.1.1 [INFO] [stderr] Checking discard v1.0.4 [INFO] [stderr] Compiling walkdir v2.3.1 [INFO] [stderr] Compiling serde v1.0.118 [INFO] [stderr] Compiling xml-rs v0.7.0 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling error-chain v0.12.4 [INFO] [stderr] Compiling log v0.3.9 [INFO] [stderr] Checking serde_json v1.0.61 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling quote v1.0.8 [INFO] [stderr] Compiling gl_generator v0.8.0 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Compiling getrandom v0.1.16 [INFO] [stderr] Compiling syn v1.0.57 [INFO] [stderr] Compiling rand_core v0.5.1 [INFO] [stderr] Compiling peg-macros v0.6.3 [INFO] [stderr] Compiling rand_chacha v0.2.2 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking cgmath v0.16.1 [INFO] [stderr] Compiling gl v0.9.0 [INFO] [stderr] Compiling rand v0.7.3 [INFO] [stderr] Compiling tempfile v3.1.0 [INFO] [stderr] Checking peg v0.6.3 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling serde_derive v1.0.118 [INFO] [stderr] Compiling stdweb-internal-macros v0.2.2 (https://github.com/koute/stdweb.git?rev=f1fc5e3#f1fc5e32) [INFO] [stderr] Compiling stdweb v0.4.10 (https://github.com/koute/stdweb.git?rev=f1fc5e3#f1fc5e32) [INFO] [stderr] Compiling cargo_metadata v0.10.0 [INFO] [stderr] Checking glenum v0.1.1 [INFO] [stderr] Compiling stdweb-derive v0.5.1 (https://github.com/koute/stdweb.git?rev=f1fc5e3#f1fc5e32) [INFO] [stderr] Checking webgl v0.1.0 [INFO] [stderr] Compiling skeptic v0.13.5 [INFO] [stderr] Compiling ply-rs v0.1.3 [INFO] [stderr] Checking ziggurat v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ImageElement` [INFO] [stdout] --> src/main.rs:18:48 [INFO] [stdout] | [INFO] [stdout] 18 | use stdweb::web::html_element::{CanvasElement, ImageElement}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ImageElement` [INFO] [stdout] --> src/main.rs:18:48 [INFO] [stdout] | [INFO] [stdout] 18 | use stdweb::web::html_element::{CanvasElement, ImageElement}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `WebGLBuffer` in the current scope [INFO] [stdout] --> src/main.rs:32:53 [INFO] [stdout] | [INFO] [stdout] 32 | let vertex_buffer = context.create_buffer().unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `WebGLBuffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `ARRAY_BUFFER` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:33:33 [INFO] [stdout] | [INFO] [stdout] 33 | context.bind_buffer(gl::ARRAY_BUFFER, Some(&vertex_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `WebGLBuffer` in the current scope [INFO] [stdout] --> src/main.rs:32:53 [INFO] [stdout] | [INFO] [stdout] 32 | let vertex_buffer = context.create_buffer().unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `WebGLBuffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `ARRAY_BUFFER` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:33:33 [INFO] [stdout] | [INFO] [stdout] 33 | context.bind_buffer(gl::ARRAY_BUFFER, Some(&vertex_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:33:47 [INFO] [stdout] | [INFO] [stdout] 33 | context.bind_buffer(gl::ARRAY_BUFFER, Some(&vertex_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ expected `&WebGLBuffer`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&WebGLBuffer` [INFO] [stdout] found enum `Option<&_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buffer_data_1` found for reference `&WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | context.buffer_data_1(gl::ARRAY_BUFFER, Some(&vertices), gl::STATIC_DRAW); [INFO] [stdout] | ^^^^^^^^^^^^^ help: there is an associated function with a similar name: `buffer_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `ARRAY_BUFFER` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:34:35 [INFO] [stdout] | [INFO] [stdout] 34 | context.buffer_data_1(gl::ARRAY_BUFFER, Some(&vertices), gl::STATIC_DRAW); [INFO] [stdout] | ^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `STATIC_DRAW` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:34:70 [INFO] [stdout] | [INFO] [stdout] 34 | context.buffer_data_1(gl::ARRAY_BUFFER, Some(&vertices), gl::STATIC_DRAW); [INFO] [stdout] | ^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `WebGLBuffer` in the current scope [INFO] [stdout] --> src/main.rs:37:53 [INFO] [stdout] | [INFO] [stdout] 37 | let normal_buffer = context.create_buffer().unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `WebGLBuffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `ARRAY_BUFFER` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:38:33 [INFO] [stdout] | [INFO] [stdout] 38 | context.bind_buffer(gl::ARRAY_BUFFER, Some(&normal_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:33:47 [INFO] [stdout] | [INFO] [stdout] 33 | context.bind_buffer(gl::ARRAY_BUFFER, Some(&vertex_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ expected `&WebGLBuffer`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&WebGLBuffer` [INFO] [stdout] found enum `Option<&_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buffer_data_1` found for reference `&WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:34:17 [INFO] [stdout] | [INFO] [stdout] 34 | context.buffer_data_1(gl::ARRAY_BUFFER, Some(&vertices), gl::STATIC_DRAW); [INFO] [stdout] | ^^^^^^^^^^^^^ help: there is an associated function with a similar name: `buffer_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `ARRAY_BUFFER` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:34:35 [INFO] [stdout] | [INFO] [stdout] 34 | context.buffer_data_1(gl::ARRAY_BUFFER, Some(&vertices), gl::STATIC_DRAW); [INFO] [stdout] | ^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `STATIC_DRAW` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:34:70 [INFO] [stdout] | [INFO] [stdout] 34 | context.buffer_data_1(gl::ARRAY_BUFFER, Some(&vertices), gl::STATIC_DRAW); [INFO] [stdout] | ^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `WebGLBuffer` in the current scope [INFO] [stdout] --> src/main.rs:37:53 [INFO] [stdout] | [INFO] [stdout] 37 | let normal_buffer = context.create_buffer().unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `WebGLBuffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `ARRAY_BUFFER` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:38:33 [INFO] [stdout] | [INFO] [stdout] 38 | context.bind_buffer(gl::ARRAY_BUFFER, Some(&normal_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:38:47 [INFO] [stdout] | [INFO] [stdout] 38 | context.bind_buffer(gl::ARRAY_BUFFER, Some(&normal_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ expected `&WebGLBuffer`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&WebGLBuffer` [INFO] [stdout] found enum `Option<&_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buffer_data_1` found for reference `&WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | context.buffer_data_1(gl::ARRAY_BUFFER, Some(&normals), gl::STATIC_DRAW); [INFO] [stdout] | ^^^^^^^^^^^^^ help: there is an associated function with a similar name: `buffer_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `ARRAY_BUFFER` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:39:35 [INFO] [stdout] | [INFO] [stdout] 39 | context.buffer_data_1(gl::ARRAY_BUFFER, Some(&normals), gl::STATIC_DRAW); [INFO] [stdout] | ^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `STATIC_DRAW` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:39:69 [INFO] [stdout] | [INFO] [stdout] 39 | context.buffer_data_1(gl::ARRAY_BUFFER, Some(&normals), gl::STATIC_DRAW); [INFO] [stdout] | ^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `WebGLBuffer` in the current scope [INFO] [stdout] --> src/main.rs:42:52 [INFO] [stdout] | [INFO] [stdout] 42 | let color_buffer = context.create_buffer().unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `WebGLBuffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `ARRAY_BUFFER` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | context.bind_buffer(gl::ARRAY_BUFFER, Some(&color_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:43:47 [INFO] [stdout] | [INFO] [stdout] 43 | context.bind_buffer(gl::ARRAY_BUFFER, Some(&color_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ expected `&WebGLBuffer`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&WebGLBuffer` [INFO] [stdout] found enum `Option<&_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buffer_data_1` found for reference `&WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | context.buffer_data_1(gl::ARRAY_BUFFER, Some(&colors), gl::STATIC_DRAW); [INFO] [stdout] | ^^^^^^^^^^^^^ help: there is an associated function with a similar name: `buffer_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:38:47 [INFO] [stdout] | [INFO] [stdout] 38 | context.bind_buffer(gl::ARRAY_BUFFER, Some(&normal_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ expected `&WebGLBuffer`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&WebGLBuffer` [INFO] [stdout] found enum `Option<&_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `ARRAY_BUFFER` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:44:35 [INFO] [stdout] | [INFO] [stdout] 44 | context.buffer_data_1(gl::ARRAY_BUFFER, Some(&colors), gl::STATIC_DRAW); [INFO] [stdout] | ^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `STATIC_DRAW` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:44:68 [INFO] [stdout] | [INFO] [stdout] 44 | context.buffer_data_1(gl::ARRAY_BUFFER, Some(&colors), gl::STATIC_DRAW); [INFO] [stdout] | ^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `WebGLBuffer` in the current scope [INFO] [stdout] --> src/main.rs:47:52 [INFO] [stdout] | [INFO] [stdout] 47 | let index_buffer = context.create_buffer().unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `WebGLBuffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `ELEMENT_ARRAY_BUFFER` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:48:33 [INFO] [stdout] | [INFO] [stdout] 48 | context.bind_buffer(gl::ELEMENT_ARRAY_BUFFER, Some(&index_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buffer_data_1` found for reference `&WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:39:17 [INFO] [stdout] | [INFO] [stdout] 39 | context.buffer_data_1(gl::ARRAY_BUFFER, Some(&normals), gl::STATIC_DRAW); [INFO] [stdout] | ^^^^^^^^^^^^^ help: there is an associated function with a similar name: `buffer_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `ARRAY_BUFFER` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:39:35 [INFO] [stdout] | [INFO] [stdout] 39 | context.buffer_data_1(gl::ARRAY_BUFFER, Some(&normals), gl::STATIC_DRAW); [INFO] [stdout] | ^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `STATIC_DRAW` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:39:69 [INFO] [stdout] | [INFO] [stdout] 39 | context.buffer_data_1(gl::ARRAY_BUFFER, Some(&normals), gl::STATIC_DRAW); [INFO] [stdout] | ^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `WebGLBuffer` in the current scope [INFO] [stdout] --> src/main.rs:42:52 [INFO] [stdout] | [INFO] [stdout] 42 | let color_buffer = context.create_buffer().unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `WebGLBuffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `ARRAY_BUFFER` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:43:33 [INFO] [stdout] | [INFO] [stdout] 43 | context.bind_buffer(gl::ARRAY_BUFFER, Some(&color_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:48:55 [INFO] [stdout] | [INFO] [stdout] 48 | context.bind_buffer(gl::ELEMENT_ARRAY_BUFFER, Some(&index_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ expected `&WebGLBuffer`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&WebGLBuffer` [INFO] [stdout] found enum `Option<&_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buffer_data_1` found for reference `&WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | context.buffer_data_1(gl::ELEMENT_ARRAY_BUFFER, Some(&indices), gl::STATIC_DRAW); [INFO] [stdout] | ^^^^^^^^^^^^^ help: there is an associated function with a similar name: `buffer_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `ELEMENT_ARRAY_BUFFER` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:49:35 [INFO] [stdout] | [INFO] [stdout] 49 | context.buffer_data_1(gl::ELEMENT_ARRAY_BUFFER, Some(&indices), gl::STATIC_DRAW); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `STATIC_DRAW` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:49:77 [INFO] [stdout] | [INFO] [stdout] 49 | context.buffer_data_1(gl::ELEMENT_ARRAY_BUFFER, Some(&indices), gl::STATIC_DRAW); [INFO] [stdout] | ^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `VERTEX_SHADER` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:198:55 [INFO] [stdout] | [INFO] [stdout] 198 | let vertex_shader = context.create_shader(gl::VERTEX_SHADER).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `WebGLShader` in the current scope [INFO] [stdout] --> src/main.rs:198:70 [INFO] [stdout] | [INFO] [stdout] 198 | let vertex_shader = context.create_shader(gl::VERTEX_SHADER).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `WebGLShader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_shader_info_log` found for reference `&WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:201:31 [INFO] [stdout] | [INFO] [stdout] 201 | console!(log, context.get_shader_info_log(&vertex_shader)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ method not found in `&WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `FRAGMENT_SHADER` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:203:57 [INFO] [stdout] | [INFO] [stdout] 203 | let fragment_shader = context.create_shader(gl::FRAGMENT_SHADER).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `WebGLShader` in the current scope [INFO] [stdout] --> src/main.rs:203:74 [INFO] [stdout] | [INFO] [stdout] 203 | let fragment_shader = context.create_shader(gl::FRAGMENT_SHADER).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `WebGLShader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_shader_info_log` found for reference `&WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:206:31 [INFO] [stdout] | [INFO] [stdout] 206 | console!(log, context.get_shader_info_log(&fragment_shader)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ method not found in `&WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `WebGLProgram` in the current scope [INFO] [stdout] --> src/main.rs:208:48 [INFO] [stdout] | [INFO] [stdout] 208 | let program = context.create_program().unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `WebGLProgram` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_program_info_log` found for reference `&WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:212:31 [INFO] [stdout] | [INFO] [stdout] 212 | console!(log, context.get_program_info_log(&program)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `&WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `DEPTH_TEST` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:262:33 [INFO] [stdout] | [INFO] [stdout] 262 | self.context.enable(gl::DEPTH_TEST); [INFO] [stdout] | ^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:43:47 [INFO] [stdout] | [INFO] [stdout] 43 | context.bind_buffer(gl::ARRAY_BUFFER, Some(&color_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ expected `&WebGLBuffer`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&WebGLBuffer` [INFO] [stdout] found enum `Option<&_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `depth_func` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:263:22 [INFO] [stdout] | [INFO] [stdout] 263 | self.context.depth_func(gl::LEQUAL); [INFO] [stdout] | ^^^^^^^^^^ method not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `LEQUAL` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:263:37 [INFO] [stdout] | [INFO] [stdout] 263 | self.context.depth_func(gl::LEQUAL); [INFO] [stdout] | ^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buffer_data_1` found for reference `&WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:44:17 [INFO] [stdout] | [INFO] [stdout] 44 | context.buffer_data_1(gl::ARRAY_BUFFER, Some(&colors), gl::STATIC_DRAW); [INFO] [stdout] | ^^^^^^^^^^^^^ help: there is an associated function with a similar name: `buffer_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `ARRAY_BUFFER` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:44:35 [INFO] [stdout] | [INFO] [stdout] 44 | context.buffer_data_1(gl::ARRAY_BUFFER, Some(&colors), gl::STATIC_DRAW); [INFO] [stdout] | ^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `clear_depth` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:265:22 [INFO] [stdout] | [INFO] [stdout] 265 | self.context.clear_depth(1.0); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `STATIC_DRAW` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:44:68 [INFO] [stdout] | [INFO] [stdout] 44 | context.buffer_data_1(gl::ARRAY_BUFFER, Some(&colors), gl::STATIC_DRAW); [INFO] [stdout] | ^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `cull_face` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:266:22 [INFO] [stdout] | [INFO] [stdout] 266 | self.context.cull_face(gl::FRONT_AND_BACK); [INFO] [stdout] | ^^^^^^^^^ method not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `FRONT_AND_BACK` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:266:36 [INFO] [stdout] | [INFO] [stdout] 266 | self.context.cull_face(gl::FRONT_AND_BACK); [INFO] [stdout] | ^^^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `WebGLBuffer` in the current scope [INFO] [stdout] --> src/main.rs:47:52 [INFO] [stdout] | [INFO] [stdout] 47 | let index_buffer = context.create_buffer().unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `WebGLBuffer` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `ELEMENT_ARRAY_BUFFER` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:48:33 [INFO] [stdout] | [INFO] [stdout] 48 | context.bind_buffer(gl::ELEMENT_ARRAY_BUFFER, Some(&index_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:277:37 [INFO] [stdout] | [INFO] [stdout] 277 | self.context.viewport(0, 0, w as i32, h as i32); [INFO] [stdout] | ^^^^^^^^ expected `u32`, found `i32` [INFO] [stdout] | [INFO] [stdout] help: you can convert an `i32` to a `u32` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 277 | self.context.viewport(0, 0, (w as i32).try_into().unwrap(), h as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:277:47 [INFO] [stdout] | [INFO] [stdout] 277 | self.context.viewport(0, 0, w as i32, h as i32); [INFO] [stdout] | ^^^^^^^^ expected `u32`, found `i32` [INFO] [stdout] | [INFO] [stdout] help: you can convert an `i32` to a `u32` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 277 | self.context.viewport(0, 0, w as i32, (h as i32).try_into().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `COLOR_BUFFER_BIT` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:279:24 [INFO] [stdout] | [INFO] [stdout] 279 | .clear(gl::COLOR_BUFFER_BIT | gl::DEPTH_BUFFER_BIT); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `DEPTH_BUFFER_BIT` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:279:47 [INFO] [stdout] | [INFO] [stdout] 279 | .clear(gl::COLOR_BUFFER_BIT | gl::DEPTH_BUFFER_BIT); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:281:34 [INFO] [stdout] | [INFO] [stdout] 281 | self.context.use_program(Some(&self.shader.program)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&WebGLProgram`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&WebGLProgram` [INFO] [stdout] found enum `Option<&WebGLProgram>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `ARRAY_BUFFER` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:286:38 [INFO] [stdout] | [INFO] [stdout] 286 | self.context.bind_buffer(gl::ARRAY_BUFFER, Some(&self.peon.vertex_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:48:55 [INFO] [stdout] | [INFO] [stdout] 48 | context.bind_buffer(gl::ELEMENT_ARRAY_BUFFER, Some(&index_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ expected `&WebGLBuffer`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&WebGLBuffer` [INFO] [stdout] found enum `Option<&_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `buffer_data_1` found for reference `&WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:49:17 [INFO] [stdout] | [INFO] [stdout] 49 | context.buffer_data_1(gl::ELEMENT_ARRAY_BUFFER, Some(&indices), gl::STATIC_DRAW); [INFO] [stdout] | ^^^^^^^^^^^^^ help: there is an associated function with a similar name: `buffer_data` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `ELEMENT_ARRAY_BUFFER` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:49:35 [INFO] [stdout] | [INFO] [stdout] 49 | context.buffer_data_1(gl::ELEMENT_ARRAY_BUFFER, Some(&indices), gl::STATIC_DRAW); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `STATIC_DRAW` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:49:77 [INFO] [stdout] | [INFO] [stdout] 49 | context.buffer_data_1(gl::ELEMENT_ARRAY_BUFFER, Some(&indices), gl::STATIC_DRAW); [INFO] [stdout] | ^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `VERTEX_SHADER` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:198:55 [INFO] [stdout] | [INFO] [stdout] 198 | let vertex_shader = context.create_shader(gl::VERTEX_SHADER).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `WebGLShader` in the current scope [INFO] [stdout] --> src/main.rs:198:70 [INFO] [stdout] | [INFO] [stdout] 198 | let vertex_shader = context.create_shader(gl::VERTEX_SHADER).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `WebGLShader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_shader_info_log` found for reference `&WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:201:31 [INFO] [stdout] | [INFO] [stdout] 201 | console!(log, context.get_shader_info_log(&vertex_shader)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ method not found in `&WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `FRAGMENT_SHADER` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:203:57 [INFO] [stdout] | [INFO] [stdout] 203 | let fragment_shader = context.create_shader(gl::FRAGMENT_SHADER).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `WebGLShader` in the current scope [INFO] [stdout] --> src/main.rs:203:74 [INFO] [stdout] | [INFO] [stdout] 203 | let fragment_shader = context.create_shader(gl::FRAGMENT_SHADER).unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `WebGLShader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_shader_info_log` found for reference `&WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:206:31 [INFO] [stdout] | [INFO] [stdout] 206 | console!(log, context.get_shader_info_log(&fragment_shader)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ method not found in `&WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `unwrap` found for struct `WebGLProgram` in the current scope [INFO] [stdout] --> src/main.rs:208:48 [INFO] [stdout] | [INFO] [stdout] 208 | let program = context.create_program().unwrap(); [INFO] [stdout] | ^^^^^^ method not found in `WebGLProgram` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:286:52 [INFO] [stdout] | [INFO] [stdout] 286 | self.context.bind_buffer(gl::ARRAY_BUFFER, Some(&self.peon.vertex_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&WebGLBuffer`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&WebGLBuffer` [INFO] [stdout] found enum `Option<&WebGLBuffer>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_program_info_log` found for reference `&WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:212:31 [INFO] [stdout] | [INFO] [stdout] 212 | console!(log, context.get_program_info_log(&program)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ method not found in `&WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `DEPTH_TEST` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:262:33 [INFO] [stdout] | [INFO] [stdout] 262 | self.context.enable(gl::DEPTH_TEST); [INFO] [stdout] | ^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `depth_func` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:263:22 [INFO] [stdout] | [INFO] [stdout] 263 | self.context.depth_func(gl::LEQUAL); [INFO] [stdout] | ^^^^^^^^^^ method not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `LEQUAL` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:263:37 [INFO] [stdout] | [INFO] [stdout] 263 | self.context.depth_func(gl::LEQUAL); [INFO] [stdout] | ^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `clear_depth` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:265:22 [INFO] [stdout] | [INFO] [stdout] 265 | self.context.clear_depth(1.0); [INFO] [stdout] | ^^^^^^^^^^^ method not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `cull_face` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:266:22 [INFO] [stdout] | [INFO] [stdout] 266 | self.context.cull_face(gl::FRONT_AND_BACK); [INFO] [stdout] | ^^^^^^^^^ method not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `FRONT_AND_BACK` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:266:36 [INFO] [stdout] | [INFO] [stdout] 266 | self.context.cull_face(gl::FRONT_AND_BACK); [INFO] [stdout] | ^^^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:277:37 [INFO] [stdout] | [INFO] [stdout] 277 | self.context.viewport(0, 0, w as i32, h as i32); [INFO] [stdout] | ^^^^^^^^ expected `u32`, found `i32` [INFO] [stdout] | [INFO] [stdout] help: you can convert an `i32` to a `u32` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 277 | self.context.viewport(0, 0, (w as i32).try_into().unwrap(), h as i32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:277:47 [INFO] [stdout] | [INFO] [stdout] 277 | self.context.viewport(0, 0, w as i32, h as i32); [INFO] [stdout] | ^^^^^^^^ expected `u32`, found `i32` [INFO] [stdout] | [INFO] [stdout] help: you can convert an `i32` to a `u32` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 277 | self.context.viewport(0, 0, w as i32, (h as i32).try_into().unwrap()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `COLOR_BUFFER_BIT` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:279:24 [INFO] [stdout] | [INFO] [stdout] 279 | .clear(gl::COLOR_BUFFER_BIT | gl::DEPTH_BUFFER_BIT); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `DEPTH_BUFFER_BIT` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:279:47 [INFO] [stdout] | [INFO] [stdout] 279 | .clear(gl::COLOR_BUFFER_BIT | gl::DEPTH_BUFFER_BIT); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:287:59 [INFO] [stdout] | [INFO] [stdout] 287 | self.context.vertex_attrib_pointer(self.position, 3, gl::FLOAT, false, 0, 0); [INFO] [stdout] | ^ expected enum `AttributeSize`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `FLOAT` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:287:66 [INFO] [stdout] | [INFO] [stdout] 287 | self.context.vertex_attrib_pointer(self.position, 3, gl::FLOAT, false, 0, 0); [INFO] [stdout] | ^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `ARRAY_BUFFER` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:289:38 [INFO] [stdout] | [INFO] [stdout] 289 | self.context.bind_buffer(gl::ARRAY_BUFFER, Some(&self.peon.color_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:281:34 [INFO] [stdout] | [INFO] [stdout] 281 | self.context.use_program(Some(&self.shader.program)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&WebGLProgram`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&WebGLProgram` [INFO] [stdout] found enum `Option<&WebGLProgram>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `ARRAY_BUFFER` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:286:38 [INFO] [stdout] | [INFO] [stdout] 286 | self.context.bind_buffer(gl::ARRAY_BUFFER, Some(&self.peon.vertex_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:289:52 [INFO] [stdout] | [INFO] [stdout] 289 | self.context.bind_buffer(gl::ARRAY_BUFFER, Some(&self.peon.color_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&WebGLBuffer`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&WebGLBuffer` [INFO] [stdout] found enum `Option<&WebGLBuffer>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:286:52 [INFO] [stdout] | [INFO] [stdout] 286 | self.context.bind_buffer(gl::ARRAY_BUFFER, Some(&self.peon.vertex_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&WebGLBuffer`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&WebGLBuffer` [INFO] [stdout] found enum `Option<&WebGLBuffer>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:290:56 [INFO] [stdout] | [INFO] [stdout] 290 | self.context.vertex_attrib_pointer(self.color, 3, gl::FLOAT, false, 0, 0); [INFO] [stdout] | ^ expected enum `AttributeSize`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `FLOAT` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:290:63 [INFO] [stdout] | [INFO] [stdout] 290 | self.context.vertex_attrib_pointer(self.color, 3, gl::FLOAT, false, 0, 0); [INFO] [stdout] | ^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `ARRAY_BUFFER` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:292:38 [INFO] [stdout] | [INFO] [stdout] 292 | self.context.bind_buffer(gl::ARRAY_BUFFER, Some(&self.peon.normal_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:287:59 [INFO] [stdout] | [INFO] [stdout] 287 | self.context.vertex_attrib_pointer(self.position, 3, gl::FLOAT, false, 0, 0); [INFO] [stdout] | ^ expected enum `AttributeSize`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `FLOAT` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:287:66 [INFO] [stdout] | [INFO] [stdout] 287 | self.context.vertex_attrib_pointer(self.position, 3, gl::FLOAT, false, 0, 0); [INFO] [stdout] | ^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `ARRAY_BUFFER` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:289:38 [INFO] [stdout] | [INFO] [stdout] 289 | self.context.bind_buffer(gl::ARRAY_BUFFER, Some(&self.peon.color_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:292:52 [INFO] [stdout] | [INFO] [stdout] 292 | self.context.bind_buffer(gl::ARRAY_BUFFER, Some(&self.peon.normal_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&WebGLBuffer`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&WebGLBuffer` [INFO] [stdout] found enum `Option<&WebGLBuffer>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:289:52 [INFO] [stdout] | [INFO] [stdout] 289 | self.context.bind_buffer(gl::ARRAY_BUFFER, Some(&self.peon.color_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&WebGLBuffer`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&WebGLBuffer` [INFO] [stdout] found enum `Option<&WebGLBuffer>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:293:57 [INFO] [stdout] | [INFO] [stdout] 293 | self.context.vertex_attrib_pointer(self.normal, 3, gl::FLOAT, false, 0, 0); [INFO] [stdout] | ^ expected enum `AttributeSize`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:290:56 [INFO] [stdout] | [INFO] [stdout] 290 | self.context.vertex_attrib_pointer(self.color, 3, gl::FLOAT, false, 0, 0); [INFO] [stdout] | ^ expected enum `AttributeSize`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `FLOAT` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:290:63 [INFO] [stdout] | [INFO] [stdout] 290 | self.context.vertex_attrib_pointer(self.color, 3, gl::FLOAT, false, 0, 0); [INFO] [stdout] | ^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `ARRAY_BUFFER` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:292:38 [INFO] [stdout] | [INFO] [stdout] 292 | self.context.bind_buffer(gl::ARRAY_BUFFER, Some(&self.peon.normal_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `FLOAT` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:293:64 [INFO] [stdout] | [INFO] [stdout] 293 | self.context.vertex_attrib_pointer(self.normal, 3, gl::FLOAT, false, 0, 0); [INFO] [stdout] | ^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `uniform_matrix4fv` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:295:22 [INFO] [stdout] | [INFO] [stdout] 295 | self.context.uniform_matrix4fv( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: there is an associated function with a similar name: `uniform_matrix_4fv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `uniform_matrix4fv` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:300:22 [INFO] [stdout] | [INFO] [stdout] 300 | self.context.uniform_matrix4fv( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: there is an associated function with a similar name: `uniform_matrix_4fv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `uniform_matrix4fv` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:305:22 [INFO] [stdout] | [INFO] [stdout] 305 | self.context.uniform_matrix4fv( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: there is an associated function with a similar name: `uniform_matrix_4fv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `ELEMENT_ARRAY_BUFFER` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:312:30 [INFO] [stdout] | [INFO] [stdout] 312 | .bind_buffer(gl::ELEMENT_ARRAY_BUFFER, Some(&self.peon.index_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:312:52 [INFO] [stdout] | [INFO] [stdout] 312 | .bind_buffer(gl::ELEMENT_ARRAY_BUFFER, Some(&self.peon.index_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&WebGLBuffer`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&WebGLBuffer` [INFO] [stdout] found enum `Option<&WebGLBuffer>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `TRIANGLES` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:314:32 [INFO] [stdout] | [INFO] [stdout] 314 | .draw_elements(gl::TRIANGLES, self.peon.num_indices as i32, gl::UNSIGNED_SHORT, 0); [INFO] [stdout] | ^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:314:43 [INFO] [stdout] | [INFO] [stdout] 314 | .draw_elements(gl::TRIANGLES, self.peon.num_indices as i32, gl::UNSIGNED_SHORT, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `i32` [INFO] [stdout] | [INFO] [stdout] help: you can convert an `i32` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 314 | .draw_elements(gl::TRIANGLES, (self.peon.num_indices as i32).try_into().unwrap(), gl::UNSIGNED_SHORT, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `UNSIGNED_SHORT` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:314:77 [INFO] [stdout] | [INFO] [stdout] 314 | .draw_elements(gl::TRIANGLES, self.peon.num_indices as i32, gl::UNSIGNED_SHORT, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `WebGLRenderingContext: RenderingContext` is not satisfied [INFO] [stdout] --> src/main.rs:394:49 [INFO] [stdout] | [INFO] [stdout] 394 | let context: WebGLRenderingContext = canvas.get_context().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ the trait `RenderingContext` is not implemented for `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:292:52 [INFO] [stdout] | [INFO] [stdout] 292 | self.context.bind_buffer(gl::ARRAY_BUFFER, Some(&self.peon.normal_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&WebGLBuffer`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&WebGLBuffer` [INFO] [stdout] found enum `Option<&WebGLBuffer>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0605]: non-primitive cast: `Option` as `u32` [INFO] [stdout] --> src/main.rs:457:20 [INFO] [stdout] | [INFO] [stdout] 457 | let position = context.get_attrib_location(&shader.program, "position") as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0605]: non-primitive cast: `Option` as `u32` [INFO] [stdout] --> src/main.rs:458:17 [INFO] [stdout] | [INFO] [stdout] 458 | let color = context.get_attrib_location(&shader.program, "color") as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0605]: non-primitive cast: `Option` as `u32` [INFO] [stdout] --> src/main.rs:459:18 [INFO] [stdout] | [INFO] [stdout] 459 | let normal = context.get_attrib_location(&shader.program, "normal") as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 67 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0599, E0605. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `ziggurat` [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[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:293:57 [INFO] [stdout] | [INFO] [stdout] 293 | self.context.vertex_attrib_pointer(self.normal, 3, gl::FLOAT, false, 0, 0); [INFO] [stdout] | ^ expected enum `AttributeSize`, found integer [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `FLOAT` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:293:64 [INFO] [stdout] | [INFO] [stdout] 293 | self.context.vertex_attrib_pointer(self.normal, 3, gl::FLOAT, false, 0, 0); [INFO] [stdout] | ^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `uniform_matrix4fv` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:295:22 [INFO] [stdout] | [INFO] [stdout] 295 | self.context.uniform_matrix4fv( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: there is an associated function with a similar name: `uniform_matrix_4fv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `uniform_matrix4fv` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:300:22 [INFO] [stdout] | [INFO] [stdout] 300 | self.context.uniform_matrix4fv( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: there is an associated function with a similar name: `uniform_matrix_4fv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `uniform_matrix4fv` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:305:22 [INFO] [stdout] | [INFO] [stdout] 305 | self.context.uniform_matrix4fv( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ help: there is an associated function with a similar name: `uniform_matrix_4fv` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `ELEMENT_ARRAY_BUFFER` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:312:30 [INFO] [stdout] | [INFO] [stdout] 312 | .bind_buffer(gl::ELEMENT_ARRAY_BUFFER, Some(&self.peon.index_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:312:52 [INFO] [stdout] | [INFO] [stdout] 312 | .bind_buffer(gl::ELEMENT_ARRAY_BUFFER, Some(&self.peon.index_buffer)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `&WebGLBuffer`, found enum `Option` [INFO] [stdout] | [INFO] [stdout] = note: expected reference `&WebGLBuffer` [INFO] [stdout] found enum `Option<&WebGLBuffer>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `TRIANGLES` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:314:32 [INFO] [stdout] | [INFO] [stdout] 314 | .draw_elements(gl::TRIANGLES, self.peon.num_indices as i32, gl::UNSIGNED_SHORT, 0); [INFO] [stdout] | ^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/main.rs:314:43 [INFO] [stdout] | [INFO] [stdout] 314 | .draw_elements(gl::TRIANGLES, self.peon.num_indices as i32, gl::UNSIGNED_SHORT, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `usize`, found `i32` [INFO] [stdout] | [INFO] [stdout] help: you can convert an `i32` to a `usize` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 314 | .draw_elements(gl::TRIANGLES, (self.peon.num_indices as i32).try_into().unwrap(), gl::UNSIGNED_SHORT, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no associated item named `UNSIGNED_SHORT` found for struct `WebGLRenderingContext` in the current scope [INFO] [stdout] --> src/main.rs:314:77 [INFO] [stdout] | [INFO] [stdout] 314 | .draw_elements(gl::TRIANGLES, self.peon.num_indices as i32, gl::UNSIGNED_SHORT, 0); [INFO] [stdout] | ^^^^^^^^^^^^^^ associated item not found in `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `WebGLRenderingContext: RenderingContext` is not satisfied [INFO] [stdout] --> src/main.rs:394:49 [INFO] [stdout] | [INFO] [stdout] 394 | let context: WebGLRenderingContext = canvas.get_context().unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ the trait `RenderingContext` is not implemented for `WebGLRenderingContext` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0605]: non-primitive cast: `Option` as `u32` [INFO] [stdout] --> src/main.rs:457:20 [INFO] [stdout] | [INFO] [stdout] 457 | let position = context.get_attrib_location(&shader.program, "position") as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0605]: non-primitive cast: `Option` as `u32` [INFO] [stdout] --> src/main.rs:458:17 [INFO] [stdout] | [INFO] [stdout] 458 | let color = context.get_attrib_location(&shader.program, "color") as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0605]: non-primitive cast: `Option` as `u32` [INFO] [stdout] --> src/main.rs:459:18 [INFO] [stdout] | [INFO] [stdout] 459 | let normal = context.get_attrib_location(&shader.program, "normal") as u32; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ an `as` expression can only be used to convert between primitive types or to coerce to a specific trait object [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 67 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0599, E0605. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "98629e8c3a9f70a47545f3ad514b56ce0471193f84955749dabae4a72472a61f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "98629e8c3a9f70a47545f3ad514b56ce0471193f84955749dabae4a72472a61f", kill_on_drop: false }` [INFO] [stdout] 98629e8c3a9f70a47545f3ad514b56ce0471193f84955749dabae4a72472a61f