[INFO] cloning repository https://github.com/kek/editor [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/kek/editor" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkek%2Feditor", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkek%2Feditor'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 94bfc2f8d854f36fb89c6ce9191ac1b9dd992110 [INFO] building kek/editor against try#d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 for pr-146237-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fkek%2Feditor" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] removed /workspace/builds/worker-1-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/kek/editor [INFO] finished tweaking git repo https://github.com/kek/editor [INFO] tweaked toml for git repo https://github.com/kek/editor written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/kek/editor on toolchain d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/kek/editor 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" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fb1fd1dde85a7c2ae02abf9e5454135961633c8746ac5bf3d5f3405096c06784 [INFO] running `Command { std: "docker" "start" "-a" "fb1fd1dde85a7c2ae02abf9e5454135961633c8746ac5bf3d5f3405096c06784", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fb1fd1dde85a7c2ae02abf9e5454135961633c8746ac5bf3d5f3405096c06784", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fb1fd1dde85a7c2ae02abf9e5454135961633c8746ac5bf3d5f3405096c06784", kill_on_drop: false }` [INFO] [stdout] fb1fd1dde85a7c2ae02abf9e5454135961633c8746ac5bf3d5f3405096c06784 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] baae2ea0d11cccc7683774bf58ba1a480b7d0739ce1b9e5b5e9faaa2b52952fb [INFO] running `Command { std: "docker" "start" "-a" "baae2ea0d11cccc7683774bf58ba1a480b7d0739ce1b9e5b5e9faaa2b52952fb", kill_on_drop: false }` [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling xml-rs v0.8.25 [INFO] [stderr] Compiling log v0.4.26 [INFO] [stderr] Compiling libloading v0.8.6 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling memoffset v0.6.5 [INFO] [stderr] Compiling wayland-sys v0.29.5 [INFO] [stderr] Compiling cfg_aliases v0.1.1 [INFO] [stderr] Compiling slotmap v1.0.7 [INFO] [stderr] Compiling downcast-rs v1.2.1 [INFO] [stderr] Compiling ttf-parser v0.25.1 [INFO] [stderr] Compiling scoped-tls v1.0.1 [INFO] [stderr] Compiling ab_glyph_rasterizer v0.1.8 [INFO] [stderr] Compiling miniz_oxide v0.8.5 [INFO] [stderr] Compiling x11-dl v2.21.0 [INFO] [stderr] Compiling smithay-client-toolkit v0.16.1 [INFO] [stderr] Compiling xcursor v0.3.8 [INFO] [stderr] Compiling ahash v0.8.11 [INFO] [stderr] Compiling dlib v0.5.2 [INFO] [stderr] Compiling strict-num v0.1.1 [INFO] [stderr] Compiling zerocopy v0.7.35 [INFO] [stderr] Compiling rustix v0.38.44 [INFO] [stderr] Compiling wayland-sys v0.30.1 [INFO] [stderr] Compiling raw-window-handle v0.5.2 [INFO] [stderr] Compiling linux-raw-sys v0.4.15 [INFO] [stderr] Compiling tracing v0.1.41 [INFO] [stderr] Compiling flate2 v1.1.0 [INFO] [stderr] Compiling form_urlencoded v1.2.1 [INFO] [stderr] Compiling glutin v0.30.10 [INFO] [stderr] Compiling instant v0.1.13 [INFO] [stderr] Compiling x11rb-protocol v0.13.1 [INFO] [stderr] Compiling glutin-winit v0.3.0 [INFO] [stderr] Compiling libloading v0.7.4 [INFO] [stderr] Compiling rustler v0.36.1 [INFO] [stderr] Compiling glow v0.12.3 [INFO] [stderr] Compiling inventory v0.3.20 [INFO] [stderr] Compiling wayland-scanner v0.29.5 [INFO] [stderr] Compiling gl_generator v0.14.0 [INFO] [stderr] Compiling png v0.17.16 [INFO] [stderr] Compiling glutin_glx_sys v0.4.0 [INFO] [stderr] Compiling glutin_egl_sys v0.5.1 [INFO] [stderr] Compiling owned_ttf_parser v0.25.0 [INFO] [stderr] Compiling nix v0.24.3 [INFO] [stderr] Compiling nix v0.25.1 [INFO] [stderr] Compiling ab_glyph v0.2.29 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling memmap2 v0.5.10 [INFO] [stderr] Compiling wayland-client v0.29.5 [INFO] [stderr] Compiling wayland-protocols v0.29.5 [INFO] [stderr] Compiling winit v0.28.7 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling mio v0.8.11 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling synstructure v0.13.1 [INFO] [stderr] Compiling directories-next v2.0.0 [INFO] [stderr] Compiling wayland-commons v0.29.5 [INFO] [stderr] Compiling zerofrom-derive v0.1.6 [INFO] [stderr] Compiling yoke-derive v0.7.5 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling zerovec-derive v0.10.3 [INFO] [stderr] Compiling displaydoc v0.2.5 [INFO] [stderr] Compiling bytemuck_derive v1.8.1 [INFO] [stderr] Compiling icu_provider_macros v1.5.0 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Compiling rustler_codegen v0.36.1 [INFO] [stderr] Compiling wayland-cursor v0.29.5 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling bytemuck v1.22.0 [INFO] [stderr] Compiling calloop v0.10.6 [INFO] [stderr] Compiling tiny-skia-path v0.8.4 [INFO] [stderr] Compiling zerofrom v0.1.6 [INFO] [stderr] Compiling yoke v0.7.5 [INFO] [stderr] Compiling tiny-skia v0.8.4 [INFO] [stderr] Compiling zerovec v0.10.4 [INFO] [stderr] Compiling tinystr v0.7.6 [INFO] [stderr] Compiling icu_collections v1.5.0 [INFO] [stderr] Compiling icu_locid v1.5.0 [INFO] [stderr] Compiling icu_provider v1.5.0 [INFO] [stderr] Compiling icu_locid_transform v1.5.0 [INFO] [stderr] Compiling icu_properties v1.5.1 [INFO] [stderr] Compiling bitflags v2.9.0 [INFO] [stderr] Compiling emath v0.21.0 (https://github.com/emilk/egui.git?rev=eb0812a9#eb0812a9) [INFO] [stderr] Compiling ecolor v0.21.0 (https://github.com/emilk/egui.git?rev=eb0812a9#eb0812a9) [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling icu_normalizer v1.5.0 [INFO] [stderr] Compiling ron v0.8.1 [INFO] [stderr] Compiling epaint v0.21.0 (https://github.com/emilk/egui.git?rev=eb0812a9#eb0812a9) [INFO] [stderr] Compiling idna_adapter v1.2.0 [INFO] [stderr] Compiling idna v1.0.3 [INFO] [stderr] Compiling url v2.5.4 [INFO] [stderr] Compiling webbrowser v0.8.15 [INFO] [stderr] Compiling egui v0.21.0 (https://github.com/emilk/egui.git?rev=eb0812a9#eb0812a9) [INFO] [stderr] Compiling x11rb v0.13.1 [INFO] [stderr] Compiling arboard v3.4.1 [INFO] [stderr] Compiling egui_glow v0.21.0 (https://github.com/emilk/egui.git?rev=eb0812a9#eb0812a9) [INFO] [stderr] Compiling sctk-adwaita v0.5.4 [INFO] [stderr] Compiling smithay-clipboard v0.6.6 [INFO] [stderr] Compiling egui-winit v0.21.1 (https://github.com/emilk/egui.git?rev=eb0812a9#eb0812a9) [INFO] [stderr] Compiling eframe v0.21.3 (https://github.com/emilk/egui.git?rev=eb0812a9#eb0812a9) [INFO] [stderr] Compiling editor v0.1.0 (/opt/rustwide/workdir/native/editor) [INFO] [stdout] warning: use of deprecated constant `rustler_init::explicit_nif_functions`: Passing NIF functions explicitly is deprecated and this argument is ignored, please remove it [INFO] [stdout] --> native/editor/src/glue.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | / [ [INFO] [stdout] 111 | | spawn_thread, [INFO] [stdout] 112 | | make_number, [INFO] [stdout] 113 | | read_resource, [INFO] [stdout] ... | [INFO] [stdout] 119 | | set_buffer_json, [INFO] [stdout] 120 | | ], [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> native/editor/src/glue.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | msg_env.send_and_clear(&debug_pid, |env| data.encode(env)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 14 | let _ = msg_env.send_and_clear(&debug_pid, |env| data.encode(env)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Result::::is_ok` that must be used [INFO] [stdout] --> native/editor/src/glue.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | rustler::resource!(TestResource, env); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you intended to assert that this is ok, consider `.unwrap()` instead [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 19 | let _ = rustler::resource!(TestResource, env);; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> native/editor/src/glue.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | fn load(env: Env, _term: Term) -> bool { [INFO] [stdout] | -------------------------------------- move the `impl` block outside of this function `load` [INFO] [stdout] 19 | rustler::resource!(TestResource, env); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^------------^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `TestResource` is not local [INFO] [stdout] | `Resource` is not local [INFO] [stdout] | [INFO] [stdout] = note: the macro `rustler::resource` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the macro `rustler::resource` may come from an old version of the `rustler` crate, try updating your dependency with `cargo update -p rustler` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the macro `rustler::resource` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Result::::is_ok` that must be used [INFO] [stdout] --> native/editor/src/glue.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | rustler::resource!(ChannelResource, env); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you intended to assert that this is ok, consider `.unwrap()` instead [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 20 | let _ = rustler::resource!(ChannelResource, env);; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> native/editor/src/glue.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 18 | fn load(env: Env, _term: Term) -> bool { [INFO] [stdout] | -------------------------------------- move the `impl` block outside of this function `load` [INFO] [stdout] 19 | rustler::resource!(TestResource, env); [INFO] [stdout] 20 | rustler::resource!(ChannelResource, env); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^---------------^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `ChannelResource` is not local [INFO] [stdout] | `Resource` is not local [INFO] [stdout] | [INFO] [stdout] = note: the macro `rustler::resource` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the macro `rustler::resource` may come from an old version of the `rustler` crate, try updating your dependency with `cargo update -p rustler` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the macro `rustler::resource` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> native/editor/src/glue.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | msg_env.send_and_clear(&debug_pid, |env| some_number.encode(env)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 48 | let _ = msg_env.send_and_clear(&debug_pid, |env| some_number.encode(env)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 29s [INFO] running `Command { std: "docker" "inspect" "baae2ea0d11cccc7683774bf58ba1a480b7d0739ce1b9e5b5e9faaa2b52952fb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "baae2ea0d11cccc7683774bf58ba1a480b7d0739ce1b9e5b5e9faaa2b52952fb", kill_on_drop: false }` [INFO] [stdout] baae2ea0d11cccc7683774bf58ba1a480b7d0739ce1b9e5b5e9faaa2b52952fb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d79d87d4c0f7f0d0785ad6e493cf8cf718ed89a6" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ca7f5e87525adb103d13ac6e4eebe4c67d9051001c9ba789fdbe9049ae910fd0 [INFO] running `Command { std: "docker" "start" "-a" "ca7f5e87525adb103d13ac6e4eebe4c67d9051001c9ba789fdbe9049ae910fd0", kill_on_drop: false }` [INFO] [stderr] Compiling editor v0.1.0 (/opt/rustwide/workdir/native/editor) [INFO] [stdout] warning: use of deprecated constant `rustler_init::explicit_nif_functions`: Passing NIF functions explicitly is deprecated and this argument is ignored, please remove it [INFO] [stdout] --> native/editor/src/glue.rs:110:5 [INFO] [stdout] | [INFO] [stdout] 110 | / [ [INFO] [stdout] 111 | | spawn_thread, [INFO] [stdout] 112 | | make_number, [INFO] [stdout] 113 | | read_resource, [INFO] [stdout] ... | [INFO] [stdout] 119 | | set_buffer_json, [INFO] [stdout] 120 | | ], [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> native/editor/src/glue.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | msg_env.send_and_clear(&debug_pid, |env| data.encode(env)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 14 | let _ = msg_env.send_and_clear(&debug_pid, |env| data.encode(env)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Result::::is_ok` that must be used [INFO] [stdout] --> native/editor/src/glue.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 19 | rustler::resource!(TestResource, env); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you intended to assert that this is ok, consider `.unwrap()` instead [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 19 | let _ = rustler::resource!(TestResource, env);; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> native/editor/src/glue.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 18 | fn load(env: Env, _term: Term) -> bool { [INFO] [stdout] | -------------------------------------- move the `impl` block outside of this function `load` [INFO] [stdout] 19 | rustler::resource!(TestResource, env); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^------------^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `TestResource` is not local [INFO] [stdout] | `Resource` is not local [INFO] [stdout] | [INFO] [stdout] = note: the macro `rustler::resource` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the macro `rustler::resource` may come from an old version of the `rustler` crate, try updating your dependency with `cargo update -p rustler` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the macro `rustler::resource` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Result::::is_ok` that must be used [INFO] [stdout] --> native/editor/src/glue.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | rustler::resource!(ChannelResource, env); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you intended to assert that this is ok, consider `.unwrap()` instead [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 20 | let _ = rustler::resource!(ChannelResource, env);; [INFO] [stdout] | +++++++ + [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> native/editor/src/glue.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 18 | fn load(env: Env, _term: Term) -> bool { [INFO] [stdout] | -------------------------------------- move the `impl` block outside of this function `load` [INFO] [stdout] 19 | rustler::resource!(TestResource, env); [INFO] [stdout] 20 | rustler::resource!(ChannelResource, env); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^---------------^^^^^^^^^^^ [INFO] [stdout] | | | [INFO] [stdout] | | `ChannelResource` is not local [INFO] [stdout] | `Resource` is not local [INFO] [stdout] | [INFO] [stdout] = note: the macro `rustler::resource` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the macro `rustler::resource` may come from an old version of the `rustler` crate, try updating your dependency with `cargo update -p rustler` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: this warning originates in the macro `rustler::resource` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> native/editor/src/glue.rs:48:9 [INFO] [stdout] | [INFO] [stdout] 48 | msg_env.send_and_clear(&debug_pid, |env| some_number.encode(env)); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 48 | let _ = msg_env.send_and_clear(&debug_pid, |env| some_number.encode(env)); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.72s [INFO] running `Command { std: "docker" "inspect" "ca7f5e87525adb103d13ac6e4eebe4c67d9051001c9ba789fdbe9049ae910fd0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ca7f5e87525adb103d13ac6e4eebe4c67d9051001c9ba789fdbe9049ae910fd0", kill_on_drop: false }` [INFO] [stdout] ca7f5e87525adb103d13ac6e4eebe4c67d9051001c9ba789fdbe9049ae910fd0