[INFO] cloning repository https://github.com/djmill0326/active [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/djmill0326/active" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdjmill0326%2Factive", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdjmill0326%2Factive'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0fbc444dd9bef8a9aa05cd4052922fdf714e2eed [INFO] checking djmill0326/active against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdjmill0326%2Factive" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/djmill0326/active [INFO] finished tweaking git repo https://github.com/djmill0326/active [INFO] tweaked toml for git repo https://github.com/djmill0326/active written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/djmill0326/active on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/djmill0326/active 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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] dc1323ca4f2e143d50949d3c8092096daeccae0d5cf37e5a6eb6f8fb93e90df3 [INFO] running `Command { std: "docker" "start" "-a" "dc1323ca4f2e143d50949d3c8092096daeccae0d5cf37e5a6eb6f8fb93e90df3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "dc1323ca4f2e143d50949d3c8092096daeccae0d5cf37e5a6eb6f8fb93e90df3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "dc1323ca4f2e143d50949d3c8092096daeccae0d5cf37e5a6eb6f8fb93e90df3", kill_on_drop: false }` [INFO] [stdout] dc1323ca4f2e143d50949d3c8092096daeccae0d5cf37e5a6eb6f8fb93e90df3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 5e0b356f6c865adfadc293f7381ec3980628ca68012976f56612d78a8f264379 [INFO] running `Command { std: "docker" "start" "-a" "5e0b356f6c865adfadc293f7381ec3980628ca68012976f56612d78a8f264379", kill_on_drop: false }` [INFO] [stderr] Checking active v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `MaybeUninit`, `borrow::BorrowMut`, and `fmt::Debug` [INFO] [stdout] --> src/active.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | ...::{borrow::BorrowMut, cell::UnsafeCell, collections::{HashMap, HashSet}, ffi::c_void, fmt::Debug, marker::PhantomData, mem::{size_of, MaybeUninit}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/active.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | unsafe { $name.as_mut().unwrap_unchecked() } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 22 | unsafe { std::mem::transmute($expr) } [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 63 | erase!(global!(LISTENERS).get(&tag).unwrap_unchecked()) [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] = note: this warning originates in the macro `global` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/active.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | unsafe { $name.as_mut().unwrap_unchecked() } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 22 | unsafe { std::mem::transmute($expr) } [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 67 | erase!(global!(LISTENERS).get_mut(&tag).unwrap_unchecked()) [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `global` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `2` and `3` are never read [INFO] [stdout] --> src/active.rs:78:75 [INFO] [stdout] | [INFO] [stdout] 78 | struct ValueShell (T, Option, Transform, usize); [INFO] [stdout] | ---------- fields in this struct ^^^^^^^^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] = note: `ValueShell` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update` is never used [INFO] [stdout] --> src/active.rs:198:8 [INFO] [stdout] | [INFO] [stdout] 183 | impl<'a, T: Copy> Slab<'a, T> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 198 | fn update(&mut self, index: usize, value: &Type) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `addEventListener` should have a snake case name [INFO] [stdout] --> src/active.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn addEventListener(&mut self, f: ErasedListener) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `add_event_listener` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `removeEventListener` should have a snake case name [INFO] [stdout] --> src/active.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | fn removeEventListener(&mut self, f: ErasedListener) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `remove_event_listener` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/active.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | unsafe { $name.as_mut().unwrap_unchecked() } [INFO] [stdout] | ^^^^^ mutable reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 63 | erase!(global!(LISTENERS).get(&tag).unwrap_unchecked()) [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] = note: this warning originates in the macro `global` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/active.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | unsafe { $name.as_mut().unwrap_unchecked() } [INFO] [stdout] | ^^^^^ mutable reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 67 | erase!(global!(LISTENERS).get_mut(&tag).unwrap_unchecked()) [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: this warning originates in the macro `global` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/active.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | unsafe { $name.as_mut().unwrap_unchecked() } [INFO] [stdout] | ^^^^^ mutable reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 71 | let tag = global!(LISTENER_TAG); [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: this warning originates in the macro `global` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/active.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | unsafe { $name.as_mut().unwrap_unchecked() } [INFO] [stdout] | ^^^^^ mutable reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 73 | global!(LISTENERS).insert(*tag, HashSet::new()); [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: this warning originates in the macro `global` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/active.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | unsafe { $name.as_mut().unwrap_unchecked() } [INFO] [stdout] | ^^^^^ mutable reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 222 | Slab::new(&mut global!(STORAGE)[size_of::>()]) [INFO] [stdout] | ---------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: this warning originates in the macro `global` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/active.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | unsafe { $name.as_mut().unwrap_unchecked() } [INFO] [stdout] | ^^^^^ mutable reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 283 | global!(STORAGE).resize(64, Vec::new()); [INFO] [stdout] | ---------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: this warning originates in the macro `global` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MaybeUninit`, `borrow::BorrowMut`, and `fmt::Debug` [INFO] [stdout] --> src/active.rs:1:11 [INFO] [stdout] | [INFO] [stdout] 1 | ...::{borrow::BorrowMut, cell::UnsafeCell, collections::{HashMap, HashSet}, ffi::c_void, fmt::Debug, marker::PhantomData, mem::{size_of, MaybeUninit}}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ ^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/active.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | unsafe { $name.as_mut().unwrap_unchecked() } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 22 | unsafe { std::mem::transmute($expr) } [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 63 | erase!(global!(LISTENERS).get(&tag).unwrap_unchecked()) [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_unsafe)]` on by default [INFO] [stdout] = note: this warning originates in the macro `global` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary `unsafe` block [INFO] [stdout] --> src/active.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | unsafe { $name.as_mut().unwrap_unchecked() } [INFO] [stdout] | ^^^^^^ unnecessary `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 22 | unsafe { std::mem::transmute($expr) } [INFO] [stdout] | ------ because it's nested under this `unsafe` block [INFO] [stdout] ... [INFO] [stdout] 67 | erase!(global!(LISTENERS).get_mut(&tag).unwrap_unchecked()) [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `global` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `2` and `3` are never read [INFO] [stdout] --> src/active.rs:78:75 [INFO] [stdout] | [INFO] [stdout] 78 | struct ValueShell (T, Option, Transform, usize); [INFO] [stdout] | ---------- fields in this struct ^^^^^^^^^^^^^^^^^^^ ^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: consider removing these fields [INFO] [stdout] = note: `ValueShell` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `update` is never used [INFO] [stdout] --> src/active.rs:198:8 [INFO] [stdout] | [INFO] [stdout] 183 | impl<'a, T: Copy> Slab<'a, T> { [INFO] [stdout] | ----------------------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 198 | fn update(&mut self, index: usize, value: &Type) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `addEventListener` should have a snake case name [INFO] [stdout] --> src/active.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | fn addEventListener(&mut self, f: ErasedListener) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `add_event_listener` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait method `removeEventListener` should have a snake case name [INFO] [stdout] --> src/active.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | fn removeEventListener(&mut self, f: ErasedListener) -> bool; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `remove_event_listener` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/active.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | unsafe { $name.as_mut().unwrap_unchecked() } [INFO] [stdout] | ^^^^^ mutable reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 63 | erase!(global!(LISTENERS).get(&tag).unwrap_unchecked()) [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] = note: this warning originates in the macro `global` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/active.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | unsafe { $name.as_mut().unwrap_unchecked() } [INFO] [stdout] | ^^^^^ mutable reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 67 | erase!(global!(LISTENERS).get_mut(&tag).unwrap_unchecked()) [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: this warning originates in the macro `global` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/active.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | unsafe { $name.as_mut().unwrap_unchecked() } [INFO] [stdout] | ^^^^^ mutable reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 71 | let tag = global!(LISTENER_TAG); [INFO] [stdout] | --------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: this warning originates in the macro `global` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/active.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | unsafe { $name.as_mut().unwrap_unchecked() } [INFO] [stdout] | ^^^^^ mutable reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 73 | global!(LISTENERS).insert(*tag, HashSet::new()); [INFO] [stdout] | ------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: this warning originates in the macro `global` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/active.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | unsafe { $name.as_mut().unwrap_unchecked() } [INFO] [stdout] | ^^^^^ mutable reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 222 | Slab::new(&mut global!(STORAGE)[size_of::>()]) [INFO] [stdout] | ---------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: this warning originates in the macro `global` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/active.rs:13:18 [INFO] [stdout] | [INFO] [stdout] 13 | unsafe { $name.as_mut().unwrap_unchecked() } [INFO] [stdout] | ^^^^^ mutable reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 283 | global!(STORAGE).resize(64, Vec::new()); [INFO] [stdout] | ---------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: mutable references to mutable statics are dangerous; it's undefined behavior if any other pointer to the static is used or if any other reference is created for the static while the mutable reference lives [INFO] [stdout] = note: this warning originates in the macro `global` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.32s [INFO] running `Command { std: "docker" "inspect" "5e0b356f6c865adfadc293f7381ec3980628ca68012976f56612d78a8f264379", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e0b356f6c865adfadc293f7381ec3980628ca68012976f56612d78a8f264379", kill_on_drop: false }` [INFO] [stdout] 5e0b356f6c865adfadc293f7381ec3980628ca68012976f56612d78a8f264379