[INFO] cloning repository https://github.com/yui-915/dbless [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/yui-915/dbless" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyui-915%2Fdbless", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyui-915%2Fdbless'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5e8f668c8ffa5ee3937a12ffda8366de5e6abbfb [INFO] checking yui-915/dbless against master#17ffbc81a30c094193836a5d7f90dff273b5df93 for pr-138785 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyui-915%2Fdbless" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yui-915/dbless on toolchain 17ffbc81a30c094193836a5d7f90dff273b5df93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+17ffbc81a30c094193836a5d7f90dff273b5df93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-2-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/yui-915/dbless [INFO] finished tweaking git repo https://github.com/yui-915/dbless [INFO] tweaked toml for git repo https://github.com/yui-915/dbless written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/yui-915/dbless 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" "+17ffbc81a30c094193836a5d7f90dff273b5df93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking yui-915/dbless against master#17ffbc81a30c094193836a5d7f90dff273b5df93 for pr-138785 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyui-915%2Fdbless" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yui-915/dbless on toolchain 17ffbc81a30c094193836a5d7f90dff273b5df93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+17ffbc81a30c094193836a5d7f90dff273b5df93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-2-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/yui-915/dbless [INFO] finished tweaking git repo https://github.com/yui-915/dbless [INFO] tweaked toml for git repo https://github.com/yui-915/dbless written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/yui-915/dbless 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" "+17ffbc81a30c094193836a5d7f90dff273b5df93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking yui-915/dbless against master#17ffbc81a30c094193836a5d7f90dff273b5df93 for pr-138785 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyui-915%2Fdbless" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yui-915/dbless on toolchain 17ffbc81a30c094193836a5d7f90dff273b5df93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+17ffbc81a30c094193836a5d7f90dff273b5df93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-2-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/yui-915/dbless [INFO] finished tweaking git repo https://github.com/yui-915/dbless [INFO] tweaked toml for git repo https://github.com/yui-915/dbless written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/yui-915/dbless 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" "+17ffbc81a30c094193836a5d7f90dff273b5df93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking yui-915/dbless against master#17ffbc81a30c094193836a5d7f90dff273b5df93 for pr-138785 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyui-915%2Fdbless" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yui-915/dbless on toolchain 17ffbc81a30c094193836a5d7f90dff273b5df93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+17ffbc81a30c094193836a5d7f90dff273b5df93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-2-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/yui-915/dbless [INFO] finished tweaking git repo https://github.com/yui-915/dbless [INFO] tweaked toml for git repo https://github.com/yui-915/dbless written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/yui-915/dbless 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" "+17ffbc81a30c094193836a5d7f90dff273b5df93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [INFO] checking yui-915/dbless against master#17ffbc81a30c094193836a5d7f90dff273b5df93 for pr-138785 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fyui-915%2Fdbless" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/yui-915/dbless on toolchain 17ffbc81a30c094193836a5d7f90dff273b5df93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+17ffbc81a30c094193836a5d7f90dff273b5df93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] removed /workspace/builds/worker-2-tc2/source/.cargo/config.toml [INFO] started tweaking git repo https://github.com/yui-915/dbless [INFO] finished tweaking git repo https://github.com/yui-915/dbless [INFO] tweaked toml for git repo https://github.com/yui-915/dbless written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/yui-915/dbless 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" "+17ffbc81a30c094193836a5d7f90dff273b5df93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded redb v2.1.3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+17ffbc81a30c094193836a5d7f90dff273b5df93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d9e9421b54557359e2f44c8f6ea80fb1bf082793d36abcf03f025a9d3ecc9ebf [INFO] running `Command { std: "docker" "start" "-a" "d9e9421b54557359e2f44c8f6ea80fb1bf082793d36abcf03f025a9d3ecc9ebf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d9e9421b54557359e2f44c8f6ea80fb1bf082793d36abcf03f025a9d3ecc9ebf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d9e9421b54557359e2f44c8f6ea80fb1bf082793d36abcf03f025a9d3ecc9ebf", kill_on_drop: false }` [INFO] [stdout] d9e9421b54557359e2f44c8f6ea80fb1bf082793d36abcf03f025a9d3ecc9ebf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+17ffbc81a30c094193836a5d7f90dff273b5df93" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8e2c9a55defb55910efcadf39615c7c66f9c8162bf8ce38ca8f2ef42d49d9240 [INFO] running `Command { std: "docker" "start" "-a" "8e2c9a55defb55910efcadf39615c7c66f9c8162bf8ce38ca8f2ef42d49d9240", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.86 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling autocfg v1.3.0 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Compiling libc v0.2.158 [INFO] [stderr] Compiling serde v1.0.210 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Compiling anyhow v1.0.89 [INFO] [stderr] Compiling redb v2.1.3 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling syn v2.0.77 [INFO] [stderr] Checking rmp v0.8.14 [INFO] [stderr] Compiling serde_derive v1.0.210 [INFO] [stderr] Compiling ctor v0.2.8 [INFO] [stderr] Checking rmp-serde v1.3.0 [INFO] [stderr] Checking dbless v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition value: `used_linker` [INFO] [stdout] --> src/tests.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | #[run_before_tests] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: no expected values for `feature` [INFO] [stdout] = note: using a cfg inside a attribute macro will use the cfgs from the destination crate and not the ones from the defining crate [INFO] [stdout] = help: try referring to `run_before_tests` crate for guidance on how handle this unexpected cfg [INFO] [stdout] = help: the attribute macro `run_before_tests` may come from an old version of the `ctor` crate, try updating your dependency with `cargo update -p ctor` [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `run_before_tests` (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 is discouraged [INFO] [stdout] --> src/tests.rs:22:32 [INFO] [stdout] | [INFO] [stdout] 22 | let mut $db = unsafe { DB.as_mut().unwrap() }; [INFO] [stdout] | ^^ mutable reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 52 | / test_db_and_tables!(|db| { [INFO] [stdout] 53 | | db.set("key2", &"value")?; // overwritten 2 lines later [INFO] [stdout] 54 | | db.set("key1", &"value")?; [INFO] [stdout] 55 | | db.set("key2", &1234)?; [INFO] [stdout] ... | [INFO] [stdout] 76 | | assert_eq!(db.entries::()?.len(), 0); [INFO] [stdout] 77 | | }) [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 `test_db_and_tables` (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 is discouraged [INFO] [stdout] --> src/tests.rs:22:32 [INFO] [stdout] | [INFO] [stdout] 22 | let mut $db = unsafe { DB.as_mut().unwrap() }; [INFO] [stdout] | ^^ mutable reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 82 | / test_db_and_tables!(|db| { [INFO] [stdout] 83 | | assert!(db.get::("key")?.is_none()); [INFO] [stdout] 84 | | db.set("key", &"value")?; [INFO] [stdout] 85 | | assert_eq!(db.get::("key")?.unwrap(), "value".to_owned()); [INFO] [stdout] ... | [INFO] [stdout] 89 | | assert_eq!(db.get::("key")?.unwrap(), "value".to_owned()); [INFO] [stdout] 90 | | }) [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 `test_db_and_tables` (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 is discouraged [INFO] [stdout] --> src/tests.rs:22:32 [INFO] [stdout] | [INFO] [stdout] 22 | let mut $db = unsafe { DB.as_mut().unwrap() }; [INFO] [stdout] | ^^ mutable reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 95 | / test_db_and_tables!(|db| { [INFO] [stdout] 96 | | db.set("key", &"value")?; [INFO] [stdout] 97 | | assert_eq!(db.get::("key")?.unwrap(), "value".to_owned()); [INFO] [stdout] 98 | | db.remove("key")?; [INFO] [stdout] 99 | | assert!(db.get::("key")?.is_none()); [INFO] [stdout] 100 | | db.remove("key")?; // should not error [INFO] [stdout] 101 | | }) [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 `test_db_and_tables` (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 is discouraged [INFO] [stdout] --> src/tests.rs:22:32 [INFO] [stdout] | [INFO] [stdout] 22 | let mut $db = unsafe { DB.as_mut().unwrap() }; [INFO] [stdout] | ^^ mutable reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 106 | / test_db_and_tables!(|db| { [INFO] [stdout] 107 | | assert!(!db.contains("key")?); [INFO] [stdout] 108 | | assert!(!db.contains_key("key")?); [INFO] [stdout] 109 | | assert!(!db.has("key")?); [INFO] [stdout] ... | [INFO] [stdout] 117 | | assert!(!db.has("key")?); [INFO] [stdout] 118 | | }) [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 `test_db_and_tables` (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 is discouraged [INFO] [stdout] --> src/tests.rs:22:32 [INFO] [stdout] | [INFO] [stdout] 22 | let mut $db = unsafe { DB.as_mut().unwrap() }; [INFO] [stdout] | ^^ mutable reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 123 | / test_db_and_tables!(|db| { [INFO] [stdout] 124 | | assert_eq!(db.keys()?.len(), 0); [INFO] [stdout] 125 | | assert_eq!(db.values::()?.len(), 0); [INFO] [stdout] 126 | | assert_eq!(db.entries::()?.len(), 0); [INFO] [stdout] ... | [INFO] [stdout] 176 | | assert_eq!(expected, reality); [INFO] [stdout] 177 | | }) [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 `test_db_and_tables` (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 is discouraged [INFO] [stdout] --> src/tests.rs:22:32 [INFO] [stdout] | [INFO] [stdout] 22 | let mut $db = unsafe { DB.as_mut().unwrap() }; [INFO] [stdout] | ^^ mutable reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 208 | / test_db_and_tables!(|db| { [INFO] [stdout] 209 | | db.set( [INFO] [stdout] 210 | | "user1", [INFO] [stdout] 211 | | &UserV1 { [INFO] [stdout] ... | [INFO] [stdout] 239 | | ); [INFO] [stdout] 240 | | }) [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 `test_db_and_tables` (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 is discouraged [INFO] [stdout] --> src/tests.rs:22:32 [INFO] [stdout] | [INFO] [stdout] 22 | let mut $db = unsafe { DB.as_mut().unwrap() }; [INFO] [stdout] | ^^ mutable reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 253 | / test_db_and_tables!(|db| { [INFO] [stdout] 254 | | assert_eq!(db.get_or("key", "default".to_owned())?, "default"); [INFO] [stdout] 255 | | db.set("key", &"value")?; [INFO] [stdout] 256 | | assert_eq!(db.get_or("key", "default".to_owned())?, "value"); [INFO] [stdout] ... | [INFO] [stdout] 270 | | ); [INFO] [stdout] 271 | | }) [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 `test_db_and_tables` (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 is discouraged [INFO] [stdout] --> src/tests.rs:22:32 [INFO] [stdout] | [INFO] [stdout] 22 | let mut $db = unsafe { DB.as_mut().unwrap() }; [INFO] [stdout] | ^^ mutable reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 276 | / test_db_and_tables!(|db| { [INFO] [stdout] 277 | | assert_eq!(db.get_or_insert("key", "default".to_owned())?, "default"); [INFO] [stdout] 278 | | assert_eq!(db.get_or_insert("key", "hello".to_owned())?, "default"); [INFO] [stdout] ... | [INFO] [stdout] 290 | | assert!(db.get::("key3")?.is_some()); [INFO] [stdout] 291 | | }) [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 `test_db_and_tables` (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 is discouraged [INFO] [stdout] --> src/tests.rs:296:23 [INFO] [stdout] | [INFO] [stdout] 296 | let db = unsafe { DB.as_mut().unwrap() }; [INFO] [stdout] | ^^^^^^^^^^^ mutable reference to mutable static [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] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.23s [INFO] running `Command { std: "docker" "inspect" "8e2c9a55defb55910efcadf39615c7c66f9c8162bf8ce38ca8f2ef42d49d9240", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e2c9a55defb55910efcadf39615c7c66f9c8162bf8ce38ca8f2ef42d49d9240", kill_on_drop: false }` [INFO] [stdout] 8e2c9a55defb55910efcadf39615c7c66f9c8162bf8ce38ca8f2ef42d49d9240