[INFO] cloning repository https://github.com/RPG59/RPGFginRs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/RPG59/RPGFginRs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRPG59%2FRPGFginRs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRPG59%2FRPGFginRs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 25d1c35b0bbb3b5628b53c08ce2fc1c17566bb96 [INFO] checking RPG59/RPGFginRs/25d1c35b0bbb3b5628b53c08ce2fc1c17566bb96 against master#f609b7e0586f81fefb3523e3e17adf779ac416be for pr-129466-2 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRPG59%2FRPGFginRs" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/RPG59/RPGFginRs on toolchain f609b7e0586f81fefb3523e3e17adf779ac416be [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/RPG59/RPGFginRs [INFO] finished tweaking git repo https://github.com/RPG59/RPGFginRs [INFO] tweaked toml for git repo https://github.com/RPG59/RPGFginRs written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/RPG59/RPGFginRs already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: Found `debug_assertions` in `target.'cfg(...)'.dependencies`. This value is not supported for selecting dependencies and will not work as expected. To learn more visit https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#platform-specific-dependencies [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded cgmath v0.18.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 69cb673cb08939f2afaad7f01ae189852e51ba07b66dad4f1f4f8296f53e5455 [INFO] running `Command { std: "docker" "start" "-a" "69cb673cb08939f2afaad7f01ae189852e51ba07b66dad4f1f4f8296f53e5455", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "69cb673cb08939f2afaad7f01ae189852e51ba07b66dad4f1f4f8296f53e5455", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "69cb673cb08939f2afaad7f01ae189852e51ba07b66dad4f1f4f8296f53e5455", kill_on_drop: false }` [INFO] [stdout] 69cb673cb08939f2afaad7f01ae189852e51ba07b66dad4f1f4f8296f53e5455 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/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" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:6252d7ea7fb8caaf7af6d800c5fb250a9cd862b9a7f9508afb3c54fa7fe1102e" "/opt/rustwide/cargo-home/bin/cargo" "+f609b7e0586f81fefb3523e3e17adf779ac416be" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c2e2c485ba2b24f262689b193405665991f2f05cd48159fdaf14538dbd066bff [INFO] running `Command { std: "docker" "start" "-a" "c2e2c485ba2b24f262689b193405665991f2f05cd48159fdaf14538dbd066bff", kill_on_drop: false }` [INFO] [stderr] warning: Found `debug_assertions` in `target.'cfg(...)'.dependencies`. This value is not supported for selecting dependencies and will not work as expected. To learn more visit https://doc.rust-lang.org/cargo/reference/specifying-dependencies.html#platform-specific-dependencies [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Compiling wasm-bindgen-shared v0.2.76 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling bumpalo v3.7.0 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling serde_json v1.0.67 [INFO] [stderr] Checking itoa v0.4.8 [INFO] [stderr] Compiling wasm-bindgen v0.2.76 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling num-traits v0.2.14 [INFO] [stderr] Compiling cgmath v0.18.0 [INFO] [stderr] Checking futures v0.1.31 [INFO] [stderr] Checking scoped-tls v1.0.0 [INFO] [stderr] Compiling quote v0.6.13 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Compiling wasm-bindgen-test-macro v0.2.50 [INFO] [stderr] Checking approx v0.4.0 [INFO] [stderr] Compiling wasm-bindgen-backend v0.2.76 [INFO] [stderr] Compiling wasm-bindgen-macro-support v0.2.76 [INFO] [stderr] Compiling wasm-bindgen-macro v0.2.76 [INFO] [stderr] Checking js-sys v0.3.53 [INFO] [stderr] Checking console_error_panic_hook v0.1.6 [INFO] [stderr] Checking wasm-bindgen-futures v0.4.26 [INFO] [stderr] Checking web-sys v0.3.53 [INFO] [stderr] Checking wasm-bindgen-futures v0.3.27 [INFO] [stderr] Checking wasm-bindgen-test v0.2.50 [INFO] [stderr] Checking hello_world v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0599]: the method `map` exists for struct `JsFuture`, but its trait bounds were not satisfied [INFO] [stdout] --> tests/app.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 31 | / JsFuture::from(promise) [INFO] [stdout] 32 | | .map(|x| { [INFO] [stdout] | | -^^^ method cannot be called on `JsFuture` due to unsatisfied trait bounds [INFO] [stdout] | |_________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/index.crates.io-6f17d22bba15001f/wasm-bindgen-futures-0.4.26/src/lib.rs:98:1 [INFO] [stdout] | [INFO] [stdout] 98 | pub struct JsFuture { [INFO] [stdout] | ------------------- doesn't satisfy `JsFuture: futures::Future`, `JsFuture: futures::Stream` or `JsFuture: std::iter::Iterator` [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `JsFuture: futures::Future` [INFO] [stdout] which is required by `&mut JsFuture: futures::Future` [INFO] [stdout] `JsFuture: futures::Stream` [INFO] [stdout] which is required by `&mut JsFuture: futures::Stream` [INFO] [stdout] `JsFuture: std::iter::Iterator` [INFO] [stdout] which is required by `&mut JsFuture: std::iter::Iterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `T` in this scope [INFO] [stdout] --> src/core/EventBus.rs:61:66 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn subscribe(&mut self, eventType: EventType, subscriber: &T) { [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `T` in this scope [INFO] [stdout] --> src/core/EventBus.rs:61:66 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn subscribe(&mut self, eventType: EventType, subscriber: &T) { [INFO] [stdout] | ^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0599`. [INFO] [stdout] [INFO] [stdout] warning: unused import: `ObjLoader::LoaderMesh` [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ObjLoader::LoaderMesh; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web_sys::Document` [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use web_sys::Document; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RequestInit`, `RequestMode`, and `Request` [INFO] [stdout] --> src/lib.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | use web_sys::{console, Request, RequestInit, RequestMode, Response}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WebGlProgram`, `WebGlShader`, and `WebGlUniformLocation` [INFO] [stdout] --> src/lib.rs:9:34 [INFO] [stdout] | [INFO] [stdout] 9 | use web_sys::{HtmlCanvasElement, WebGlProgram, WebGlShader, WebGlUniformLocation}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `net::Incoming` [INFO] [stdout] --> src/ObjLoader.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{net::Incoming, str::SplitWhitespace}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ObjLoader::LoaderMesh` [INFO] [stdout] --> src/lib.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use ObjLoader::LoaderMesh; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `web_sys::Document` [INFO] [stdout] --> src/lib.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use web_sys::Document; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lazy_static::lazy_static` [INFO] [stdout] --> src/core/EngineCore.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use lazy_static::lazy_static; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WebGlUniformLocation` [INFO] [stdout] --> src/core/Shader.rs:4:66 [INFO] [stdout] | [INFO] [stdout] 4 | use web_sys::{WebGl2RenderingContext, WebGlProgram, WebGlShader, WebGlUniformLocation}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `RequestInit`, `RequestMode`, and `Request` [INFO] [stdout] --> src/lib.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | use web_sys::{console, Request, RequestInit, RequestMode, Response}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/core/Shader.rs:22:52 [INFO] [stdout] | [INFO] [stdout] 22 | let data = fs::read_to_string(path).expect(("ERROR: [get_shader_source]: ")); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 22 - let data = fs::read_to_string(path).expect(("ERROR: [get_shader_source]: ")); [INFO] [stdout] 22 + let data = fs::read_to_string(path).expect("ERROR: [get_shader_source]: "); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `WebGlProgram`, `WebGlShader`, and `WebGlUniformLocation` [INFO] [stdout] --> src/lib.rs:9:34 [INFO] [stdout] | [INFO] [stdout] 9 | use web_sys::{HtmlCanvasElement, WebGlProgram, WebGlShader, WebGlUniformLocation}; [INFO] [stdout] | ^^^^^^^^^^^^ ^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `float4x4` should have an upper camel case name [INFO] [stdout] --> src/core/Types.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub type float4x4 = Matrix4; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Float4x4` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `net::Incoming` [INFO] [stdout] --> src/ObjLoader.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{net::Incoming, str::SplitWhitespace}; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `float3x3` should have an upper camel case name [INFO] [stdout] --> src/core/Types.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub type float3x3 = Matrix3; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Float3x3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `lazy_static::lazy_static` [INFO] [stdout] --> src/core/EngineCore.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use lazy_static::lazy_static; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `float4` should have an upper camel case name [INFO] [stdout] --> src/core/Types.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type float4 = Vector4; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Float4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `WebGlUniformLocation` [INFO] [stdout] --> src/core/Shader.rs:4:66 [INFO] [stdout] | [INFO] [stdout] 4 | use web_sys::{WebGl2RenderingContext, WebGlProgram, WebGlShader, WebGlUniformLocation}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `float3` should have an upper camel case name [INFO] [stdout] --> src/core/Types.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub type float3 = Vector3; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Float3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `qut` should have an upper camel case name [INFO] [stdout] --> src/core/Types.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub type qut = Quaternion; [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `Qut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around method argument [INFO] [stdout] --> src/core/Shader.rs:22:52 [INFO] [stdout] | [INFO] [stdout] 22 | let data = fs::read_to_string(path).expect(("ERROR: [get_shader_source]: ")); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 22 - let data = fs::read_to_string(path).expect(("ERROR: [get_shader_source]: ")); [INFO] [stdout] 22 + let data = fs::read_to_string(path).expect("ERROR: [get_shader_source]: "); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::EngineCore::EngineCore` [INFO] [stdout] --> src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::core::EngineCore::EngineCore; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `float4x4` should have an upper camel case name [INFO] [stdout] --> src/core/Types.rs:3:10 [INFO] [stdout] | [INFO] [stdout] 3 | pub type float4x4 = Matrix4; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Float4x4` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_camel_case_types)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Mutex` [INFO] [stdout] --> src/lib.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use std::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `float3x3` should have an upper camel case name [INFO] [stdout] --> src/core/Types.rs:4:10 [INFO] [stdout] | [INFO] [stdout] 4 | pub type float3x3 = Matrix3; [INFO] [stdout] | ^^^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Float3x3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Canvas_size` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | struct Canvas_size { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `CanvasSize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `float4` should have an upper camel case name [INFO] [stdout] --> src/core/Types.rs:5:10 [INFO] [stdout] | [INFO] [stdout] 5 | pub type float4 = Vector4; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Float4` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `foo_bar` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:221:8 [INFO] [stdout] | [INFO] [stdout] 221 | struct foo_bar { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `FooBar` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `float3` should have an upper camel case name [INFO] [stdout] --> src/core/Types.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | pub type float3 = Vector3; [INFO] [stdout] | ^^^^^^ help: convert the identifier to upper camel case (notice the capitalization): `Float3` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/lib.rs:318:8 [INFO] [stdout] | [INFO] [stdout] 318 | Ok((JsValue::from_str(data))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 318 - Ok((JsValue::from_str(data))) [INFO] [stdout] 318 + Ok(JsValue::from_str(data)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `qut` should have an upper camel case name [INFO] [stdout] --> src/core/Types.rs:7:10 [INFO] [stdout] | [INFO] [stdout] 7 | pub type qut = Quaternion; [INFO] [stdout] | ^^^ help: convert the identifier to upper camel case: `Qut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::core::EngineCore::EngineCore` [INFO] [stdout] --> src/lib.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 17 | use crate::core::EngineCore::EngineCore; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::sync::Mutex` [INFO] [stdout] --> src/lib.rs:24:5 [INFO] [stdout] | [INFO] [stdout] 24 | use std::sync::Mutex; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `Canvas_size` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:73:8 [INFO] [stdout] | [INFO] [stdout] 73 | struct Canvas_size { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to upper camel case: `CanvasSize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type `foo_bar` should have an upper camel case name [INFO] [stdout] --> src/lib.rs:221:8 [INFO] [stdout] | [INFO] [stdout] 221 | struct foo_bar { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to upper camel case: `FooBar` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around function argument [INFO] [stdout] --> src/lib.rs:318:8 [INFO] [stdout] | [INFO] [stdout] 318 | Ok((JsValue::from_str(data))) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 318 - Ok((JsValue::from_str(data))) [INFO] [stdout] 318 + Ok(JsValue::from_str(data)) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `hello_world` (test "app") due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:272:9 [INFO] [stdout] | [INFO] [stdout] 272 | let mut meshes = loader.getMeshes(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:272:9 [INFO] [stdout] | [INFO] [stdout] 272 | let mut meshes = loader.getMeshes(); [INFO] [stdout] | ----^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn ISubscriber + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/core/EventBus.rs:47:16 [INFO] [stdout] | [INFO] [stdout] 47 | subscribers: std::collections::HashMap> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn ISubscriber + 'static)` [INFO] [stdout] note: required by an implicit `Sized` bound in `Vec` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/alloc/src/vec/mod.rs:397:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn ISubscriber + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/core/EventBus.rs:47:16 [INFO] [stdout] | [INFO] [stdout] 47 | subscribers: std::collections::HashMap> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn ISubscriber + 'static)` [INFO] [stdout] note: required by an implicit `Sized` bound in `Vec` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/alloc/src/vec/mod.rs:397:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/core/EventBus.rs:69:33 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn publish(&self, event: &Event) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 69 | pub fn publish(&self, event: &dyn Event) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/core/EventBus.rs:69:33 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn publish(&self, event: &Event) { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2018) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 69 | pub fn publish(&self, event: &dyn Event) { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn ISubscriber + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/core/EventBus.rs:47:3 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(Default)] [INFO] [stdout] | ------- in this derive macro expansion [INFO] [stdout] 46 | struct EventBus { [INFO] [stdout] 47 | subscribers: std::collections::HashMap> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn ISubscriber + 'static)` [INFO] [stdout] note: required by an implicit `Sized` bound in `Vec` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/alloc/src/vec/mod.rs:397:1 [INFO] [stdout] = note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn ISubscriber + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/core/EventBus.rs:47:3 [INFO] [stdout] | [INFO] [stdout] 45 | #[derive(Default)] [INFO] [stdout] | ------- in this derive macro expansion [INFO] [stdout] 46 | struct EventBus { [INFO] [stdout] 47 | subscribers: std::collections::HashMap> [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn ISubscriber + 'static)` [INFO] [stdout] note: required by an implicit `Sized` bound in `Vec` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/alloc/src/vec/mod.rs:397:1 [INFO] [stdout] = note: this error originates in the derive macro `Default` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn ISubscriber` cannot be known at compilation time [INFO] [stdout] --> src/core/EventBus.rs:62:32 [INFO] [stdout] | [INFO] [stdout] 62 | if let Some(handlerList) = self.subscribers.get(&eventType) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn ISubscriber` [INFO] [stdout] note: required by an implicit `Sized` bound in `Vec` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/alloc/src/vec/mod.rs:397:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn ISubscriber` cannot be known at compilation time [INFO] [stdout] --> src/core/EventBus.rs:62:32 [INFO] [stdout] | [INFO] [stdout] 62 | if let Some(handlerList) = self.subscribers.get(&eventType) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn ISubscriber` [INFO] [stdout] note: required by an implicit `Sized` bound in `Vec` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/alloc/src/vec/mod.rs:397:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `push` exists for reference `&Vec`, but its trait bounds were not satisfied [INFO] [stdout] --> src/core/EventBus.rs:63:19 [INFO] [stdout] | [INFO] [stdout] 4 | trait ISubscriber { [INFO] [stdout] | ----------------- doesn't satisfy `dyn ISubscriber: Sized` [INFO] [stdout] ... [INFO] [stdout] 63 | handlerList.push(subscriber); [INFO] [stdout] | ^^^^ method cannot be called on `&Vec` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `dyn ISubscriber: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: the method `push` exists for reference `&Vec`, but its trait bounds were not satisfied [INFO] [stdout] --> src/core/EventBus.rs:63:19 [INFO] [stdout] | [INFO] [stdout] 4 | trait ISubscriber { [INFO] [stdout] | ----------------- doesn't satisfy `dyn ISubscriber: Sized` [INFO] [stdout] ... [INFO] [stdout] 63 | handlerList.push(subscriber); [INFO] [stdout] | ^^^^ method cannot be called on `&Vec` due to unsatisfied trait bounds [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `dyn ISubscriber: Sized` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn ISubscriber + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/core/EventBus.rs:65:7 [INFO] [stdout] | [INFO] [stdout] 65 | self.subscribers.insert(eventType, vec!(subscriber)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn ISubscriber + 'static)` [INFO] [stdout] note: required by an implicit `Sized` bound in `Vec` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/alloc/src/vec/mod.rs:397:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `(dyn ISubscriber + 'static)` cannot be known at compilation time [INFO] [stdout] --> src/core/EventBus.rs:65:7 [INFO] [stdout] | [INFO] [stdout] 65 | self.subscribers.insert(eventType, vec!(subscriber)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `(dyn ISubscriber + 'static)` [INFO] [stdout] note: required by an implicit `Sized` bound in `Vec` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/alloc/src/vec/mod.rs:397:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn ISubscriber` cannot be known at compilation time [INFO] [stdout] --> src/core/EventBus.rs:70:32 [INFO] [stdout] | [INFO] [stdout] 70 | if let Some(handlerList) = self.subscribers.get(&event.getEventType()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn ISubscriber` [INFO] [stdout] note: required by an implicit `Sized` bound in `Vec` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/alloc/src/vec/mod.rs:397:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the size for values of type `dyn ISubscriber` cannot be known at compilation time [INFO] [stdout] --> src/core/EventBus.rs:70:32 [INFO] [stdout] | [INFO] [stdout] 70 | if let Some(handlerList) = self.subscribers.get(&event.getEventType()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ doesn't have a size known at compile-time [INFO] [stdout] | [INFO] [stdout] = help: the trait `Sized` is not implemented for `dyn ISubscriber` [INFO] [stdout] note: required by an implicit `Sized` bound in `Vec` [INFO] [stdout] --> /rustc/f609b7e0586f81fefb3523e3e17adf779ac416be/library/alloc/src/vec/mod.rs:397:1 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `iter` found for reference `&Vec` in the current scope [INFO] [stdout] --> src/core/EventBus.rs:71:34 [INFO] [stdout] | [INFO] [stdout] 71 | for handler in handlerList.iter() { [INFO] [stdout] | ^^^^ method not found in `&Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `iter` found for reference `&Vec` in the current scope [INFO] [stdout] --> src/core/EventBus.rs:71:34 [INFO] [stdout] | [INFO] [stdout] 71 | for handler in handlerList.iter() { [INFO] [stdout] | ^^^^ method not found in `&Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/ObjLoader.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `texCoords` [INFO] [stdout] --> src/Mesh.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | texCoords: Vec, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_texCoords` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `normals` [INFO] [stdout] --> src/Mesh.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | normals: Vec, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_normals` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shader` [INFO] [stdout] --> src/Mesh.rs:45:25 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn render(self, shader: &Shader) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_shader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/ObjLoader.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `texCoords` [INFO] [stdout] --> src/Mesh.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | texCoords: Vec, [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_texCoords` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `normals` [INFO] [stdout] --> src/Mesh.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | normals: Vec, [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_normals` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `shader` [INFO] [stdout] --> src/Mesh.rs:45:25 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn render(self, shader: &Shader) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_shader` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/ObjLoader.rs:179:14 [INFO] [stdout] | [INFO] [stdout] 179 | for (idx, line) in text.lines().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `idx` [INFO] [stdout] --> src/ObjLoader.rs:179:14 [INFO] [stdout] | [INFO] [stdout] 179 | for (idx, line) in text.lines().enumerate() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_idx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ObjLoader.rs:178:18 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn parse(mut self: &'_ mut Self, text: &String) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/ObjLoader.rs:178:18 [INFO] [stdout] | [INFO] [stdout] 178 | pub fn parse(mut self: &'_ mut Self, text: &String) { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ObjLoader.rs:289:9 [INFO] [stdout] | [INFO] [stdout] 289 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/ObjLoader.rs:289:9 [INFO] [stdout] | [INFO] [stdout] 289 | unsafe { [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `log` [INFO] [stdout] --> src/core/Shader.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 38 | let log = gl.get_shader_info_log(&shader).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `log` [INFO] [stdout] --> src/core/Shader.rs:38:21 [INFO] [stdout] | [INFO] [stdout] 38 | let log = gl.get_shader_info_log(&shader).unwrap(); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_log` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.eventType` which is behind a shared reference [INFO] [stdout] --> src/core/EventBus.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | self.eventType [INFO] [stdout] | ^^^^^^^^^^^^^^ move occurs because `self.eventType` has type `EventType`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `EventType` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/core/EventBus.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | enum EventType { [INFO] [stdout] | ^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 35 | self.eventType [INFO] [stdout] | -------------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.eventType` which is behind a shared reference [INFO] [stdout] --> src/core/EventBus.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | self.eventType [INFO] [stdout] | ^^^^^^^^^^^^^^ move occurs because `self.eventType` has type `EventType`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `EventType` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/core/EventBus.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | enum EventType { [INFO] [stdout] | ^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 41 | self.eventType [INFO] [stdout] | -------------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.eventType` which is behind a shared reference [INFO] [stdout] --> src/core/EventBus.rs:35:5 [INFO] [stdout] | [INFO] [stdout] 35 | self.eventType [INFO] [stdout] | ^^^^^^^^^^^^^^ move occurs because `self.eventType` has type `EventType`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `EventType` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/core/EventBus.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | enum EventType { [INFO] [stdout] | ^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 35 | self.eventType [INFO] [stdout] | -------------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0507]: cannot move out of `self.eventType` which is behind a shared reference [INFO] [stdout] --> src/core/EventBus.rs:41:5 [INFO] [stdout] | [INFO] [stdout] 41 | self.eventType [INFO] [stdout] | ^^^^^^^^^^^^^^ move occurs because `self.eventType` has type `EventType`, which does not implement the `Copy` trait [INFO] [stdout] | [INFO] [stdout] note: if `EventType` implemented `Clone`, you could clone the value [INFO] [stdout] --> src/core/EventBus.rs:10:1 [INFO] [stdout] | [INFO] [stdout] 10 | enum EventType { [INFO] [stdout] | ^^^^^^^^^^^^^^ consider implementing `Clone` for this type [INFO] [stdout] ... [INFO] [stdout] 41 | self.eventType [INFO] [stdout] | -------------- you could clone this value [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/core/EventBus.rs:53:33 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn init(&self) { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 52 | [INFO] [stdout] 53 | let closure = Closure::wrap(Box::new (move |event: web_sys::MouseEvent| { [INFO] [stdout] | _________________________________^ [INFO] [stdout] 54 | | self.publish(&MouseEvent{eventType: EventType::MouseDown, x: event.offset_x(), y: event.offset_y()}); [INFO] [stdout] 55 | | }) as Box); [INFO] [stdout] | |______^ cast requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/core/EventBus.rs:53:33 [INFO] [stdout] | [INFO] [stdout] 51 | pub fn init(&self) { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 52 | [INFO] [stdout] 53 | let closure = Closure::wrap(Box::new (move |event: web_sys::MouseEvent| { [INFO] [stdout] | _________________________________^ [INFO] [stdout] 54 | | self.publish(&MouseEvent{eventType: EventType::MouseDown, x: event.offset_x(), y: event.offset_y()}); [INFO] [stdout] 55 | | }) as Box); [INFO] [stdout] | |______^ cast requires that `'1` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `document` [INFO] [stdout] --> src/lib.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let document = window.document().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_document` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `document` [INFO] [stdout] --> src/lib.rs:80:13 [INFO] [stdout] | [INFO] [stdout] 80 | let document = window.document().unwrap(); [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_document` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0507, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0507, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hello_world` (lib) due to 12 previous errors; 29 warnings emitted [INFO] [stderr] error: could not compile `hello_world` (lib test) due to 12 previous errors; 29 warnings emitted [INFO] running `Command { std: "docker" "inspect" "c2e2c485ba2b24f262689b193405665991f2f05cd48159fdaf14538dbd066bff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c2e2c485ba2b24f262689b193405665991f2f05cd48159fdaf14538dbd066bff", kill_on_drop: false }` [INFO] [stdout] c2e2c485ba2b24f262689b193405665991f2f05cd48159fdaf14538dbd066bff