[INFO] fetching crate dbless 0.2.0... [INFO] testing dbless-0.2.0 against try#c2e32f1c9652b13ed99608599c1e855462f421f3 for pr-146098-7 [INFO] extracting crate dbless 0.2.0 into /workspace/builds/worker-1-tc2/source [INFO] removed /workspace/builds/worker-1-tc2/source/.cargo/config.toml [INFO] started tweaking crates.io crate dbless 0.2.0 [INFO] finished tweaking crates.io crate dbless 0.2.0 [INFO] tweaked toml for crates.io crate dbless 0.2.0 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate dbless 0.2.0 on toolchain c2e32f1c9652b13ed99608599c1e855462f421f3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 17 packages to latest compatible versions [INFO] [stderr] Adding ctor v0.2.9 (available: v0.6.1) [INFO] [stderr] Adding redb v2.6.3 (available: v3.1.0) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5e2739f8334d3fbe39fb72e9987b2123912235426b407fd853e94389f78fe595 [INFO] running `Command { std: "docker" "start" "-a" "5e2739f8334d3fbe39fb72e9987b2123912235426b407fd853e94389f78fe595", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5e2739f8334d3fbe39fb72e9987b2123912235426b407fd853e94389f78fe595", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e2739f8334d3fbe39fb72e9987b2123912235426b407fd853e94389f78fe595", kill_on_drop: false }` [INFO] [stdout] 5e2739f8334d3fbe39fb72e9987b2123912235426b407fd853e94389f78fe595 [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8cbfca7254f1b07dcc5bc0d841916b7cb8bda077780413d0de5ce149402f3ea4 [INFO] running `Command { std: "docker" "start" "-a" "8cbfca7254f1b07dcc5bc0d841916b7cb8bda077780413d0de5ce149402f3ea4", kill_on_drop: false }` [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling redb v2.6.3 [INFO] [stderr] Compiling anyhow v1.0.100 [INFO] [stderr] Compiling rmp-serde v1.3.0 [INFO] [stderr] Compiling dbless v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 5.81s [INFO] running `Command { std: "docker" "inspect" "8cbfca7254f1b07dcc5bc0d841916b7cb8bda077780413d0de5ce149402f3ea4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8cbfca7254f1b07dcc5bc0d841916b7cb8bda077780413d0de5ce149402f3ea4", kill_on_drop: false }` [INFO] [stdout] 8cbfca7254f1b07dcc5bc0d841916b7cb8bda077780413d0de5ce149402f3ea4 [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] addd40f997421e6a73a75a26f49599028aacbb1b13f627ca6db83a326c6aca8e [INFO] running `Command { std: "docker" "start" "-a" "addd40f997421e6a73a75a26f49599028aacbb1b13f627ca6db83a326c6aca8e", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.103 [INFO] [stderr] Compiling quote v1.0.42 [INFO] [stderr] Compiling syn v2.0.110 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling ctor v0.2.9 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling rmp-serde v1.3.0 [INFO] [stderr] Compiling dbless v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a mutable reference to mutable static [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)]` (part of `#[warn(rust_2024_compatibility)]`) 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 [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 [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 [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 [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 [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 [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 [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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 9.11s [INFO] running `Command { std: "docker" "inspect" "addd40f997421e6a73a75a26f49599028aacbb1b13f627ca6db83a326c6aca8e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "addd40f997421e6a73a75a26f49599028aacbb1b13f627ca6db83a326c6aca8e", kill_on_drop: false }` [INFO] [stdout] addd40f997421e6a73a75a26f49599028aacbb1b13f627ca6db83a326c6aca8e [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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+c2e32f1c9652b13ed99608599c1e855462f421f3" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] b149fd2e374aca4a198b92bcb76ec7f04b71a058cd950ade2b270309d39269ca [INFO] running `Command { std: "docker" "start" "-a" "b149fd2e374aca4a198b92bcb76ec7f04b71a058cd950ade2b270309d39269ca", kill_on_drop: false }` [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/tests.rs:22:32 [INFO] [stderr] | [INFO] [stderr] 22 | let mut $db = unsafe { DB.as_mut().unwrap() }; [INFO] [stderr] | ^^ mutable reference to mutable static [INFO] [stderr] ... [INFO] [stderr] 52 | / test_db_and_tables!(|db| { [INFO] [stderr] 53 | | db.set("key2", &"value")?; // overwritten 2 lines later [INFO] [stderr] 54 | | db.set("key1", &"value")?; [INFO] [stderr] 55 | | db.set("key2", &1234)?; [INFO] [stderr] ... | [INFO] [stderr] 76 | | assert_eq!(db.entries::()?.len(), 0); [INFO] [stderr] 77 | | }) [INFO] [stderr] | |______- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stderr] = note: this warning originates in the macro `test_db_and_tables` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/tests.rs:22:32 [INFO] [stderr] | [INFO] [stderr] 22 | let mut $db = unsafe { DB.as_mut().unwrap() }; [INFO] [stderr] | ^^ mutable reference to mutable static [INFO] [stderr] ... [INFO] [stderr] 82 | / test_db_and_tables!(|db| { [INFO] [stderr] 83 | | assert!(db.get::("key")?.is_none()); [INFO] [stderr] 84 | | db.set("key", &"value")?; [INFO] [stderr] 85 | | assert_eq!(db.get::("key")?.unwrap(), "value".to_owned()); [INFO] [stderr] ... | [INFO] [stderr] 89 | | assert_eq!(db.get::("key")?.unwrap(), "value".to_owned()); [INFO] [stderr] 90 | | }) [INFO] [stderr] | |______- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] = note: this warning originates in the macro `test_db_and_tables` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/tests.rs:22:32 [INFO] [stderr] | [INFO] [stderr] 22 | let mut $db = unsafe { DB.as_mut().unwrap() }; [INFO] [stderr] | ^^ mutable reference to mutable static [INFO] [stderr] ... [INFO] [stderr] 95 | / test_db_and_tables!(|db| { [INFO] [stderr] 96 | | db.set("key", &"value")?; [INFO] [stderr] 97 | | assert_eq!(db.get::("key")?.unwrap(), "value".to_owned()); [INFO] [stderr] 98 | | db.remove("key")?; [INFO] [stderr] 99 | | assert!(db.get::("key")?.is_none()); [INFO] [stderr] 100 | | db.remove("key")?; // should not error [INFO] [stderr] 101 | | }) [INFO] [stderr] | |______- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] = note: this warning originates in the macro `test_db_and_tables` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/tests.rs:22:32 [INFO] [stderr] | [INFO] [stderr] 22 | let mut $db = unsafe { DB.as_mut().unwrap() }; [INFO] [stderr] | ^^ mutable reference to mutable static [INFO] [stderr] ... [INFO] [stderr] 106 | / test_db_and_tables!(|db| { [INFO] [stderr] 107 | | assert!(!db.contains("key")?); [INFO] [stderr] 108 | | assert!(!db.contains_key("key")?); [INFO] [stderr] 109 | | assert!(!db.has("key")?); [INFO] [stderr] ... | [INFO] [stderr] 117 | | assert!(!db.has("key")?); [INFO] [stderr] 118 | | }) [INFO] [stderr] | |______- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] = note: this warning originates in the macro `test_db_and_tables` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/tests.rs:22:32 [INFO] [stderr] | [INFO] [stderr] 22 | let mut $db = unsafe { DB.as_mut().unwrap() }; [INFO] [stderr] | ^^ mutable reference to mutable static [INFO] [stderr] ... [INFO] [stderr] 123 | / test_db_and_tables!(|db| { [INFO] [stderr] 124 | | assert_eq!(db.keys()?.len(), 0); [INFO] [stderr] 125 | | assert_eq!(db.values::()?.len(), 0); [INFO] [stderr] 126 | | assert_eq!(db.entries::()?.len(), 0); [INFO] [stderr] ... | [INFO] [stderr] 176 | | assert_eq!(expected, reality); [INFO] [stderr] 177 | | }) [INFO] [stderr] | |______- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] = note: this warning originates in the macro `test_db_and_tables` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/tests.rs:22:32 [INFO] [stderr] | [INFO] [stderr] 22 | let mut $db = unsafe { DB.as_mut().unwrap() }; [INFO] [stderr] | ^^ mutable reference to mutable static [INFO] [stderr] ... [INFO] [stderr] 208 | / test_db_and_tables!(|db| { [INFO] [stderr] 209 | | db.set( [INFO] [stderr] 210 | | "user1", [INFO] [stderr] 211 | | &UserV1 { [INFO] [stderr] ... | [INFO] [stderr] 239 | | ); [INFO] [stderr] 240 | | }) [INFO] [stderr] | |______- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] = note: this warning originates in the macro `test_db_and_tables` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/tests.rs:22:32 [INFO] [stderr] | [INFO] [stderr] 22 | let mut $db = unsafe { DB.as_mut().unwrap() }; [INFO] [stderr] | ^^ mutable reference to mutable static [INFO] [stderr] ... [INFO] [stderr] 253 | / test_db_and_tables!(|db| { [INFO] [stderr] 254 | | assert_eq!(db.get_or("key", "default".to_owned())?, "default"); [INFO] [stderr] 255 | | db.set("key", &"value")?; [INFO] [stderr] 256 | | assert_eq!(db.get_or("key", "default".to_owned())?, "value"); [INFO] [stderr] ... | [INFO] [stderr] 270 | | ); [INFO] [stderr] 271 | | }) [INFO] [stderr] | |______- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] = note: this warning originates in the macro `test_db_and_tables` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/tests.rs:22:32 [INFO] [stderr] | [INFO] [stderr] 22 | let mut $db = unsafe { DB.as_mut().unwrap() }; [INFO] [stderr] | ^^ mutable reference to mutable static [INFO] [stderr] ... [INFO] [stderr] 276 | / test_db_and_tables!(|db| { [INFO] [stderr] 277 | | assert_eq!(db.get_or_insert("key", "default".to_owned())?, "default"); [INFO] [stderr] 278 | | assert_eq!(db.get_or_insert("key", "hello".to_owned())?, "default"); [INFO] [stderr] ... | [INFO] [stderr] 290 | | assert!(db.get::("key3")?.is_some()); [INFO] [stderr] 291 | | }) [INFO] [stderr] | |______- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = 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] [stderr] = note: this warning originates in the macro `test_db_and_tables` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `dbless` (lib test) generated 8 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/dbless-7d3731a05b1c6f9a) [INFO] [stderr] [INFO] [stderr] thread '' (24) panicked at src/tests.rs:15:48: [INFO] [stderr] called `Result::unwrap()` on an `Err` value: I/O error: Read-only file system (os error 30) [INFO] [stderr] [INFO] [stderr] Stack backtrace: [INFO] [stderr] 0: anyhow::error:: for anyhow::Error>::from [INFO] [stderr] at /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/anyhow-1.0.100/src/backtrace.rs:27:14 [INFO] [stderr] 1: as core::ops::try_trait::FromResidual>>::from_residual [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/result.rs:2184:27 [INFO] [stderr] 2: dbless::store::Store::file [INFO] [stderr] at ./src/store.rs:34:18 [INFO] [stderr] 3: dbless::Database::open [INFO] [stderr] at ./src/lib.rs:45:20 [INFO] [stderr] 4: dbless::tests::init_tests [INFO] [stderr] at ./src/tests.rs:15:19 [INFO] [stderr] 5: dbless::tests::init_tests___rust_ctor___ctor::init_tests___rust_ctor___ctor [INFO] [stderr] at ./src/tests.rs:11:1 [INFO] [stderr] 6: __libc_start_main [INFO] [stderr] 7: _start [INFO] [stderr] stack backtrace: [INFO] [stderr] 0: 0x5d95dd10b022 - std::backtrace_rs::backtrace::libunwind::trace::h9ea1e07ac77a25d7 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stderr] 1: 0x5d95dd10b022 - std::backtrace_rs::backtrace::trace_unsynchronized::h72b75eb83b53d15a [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stderr] 2: 0x5d95dd10b022 - std::sys::backtrace::_print_fmt::h255777b7ec902439 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/sys/backtrace.rs:66:9 [INFO] [stderr] 3: 0x5d95dd10b022 - ::fmt::h8a1ac49fcd7ee8ce [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/sys/backtrace.rs:39:26 [INFO] [stderr] 4: 0x5d95dd11baef - core::fmt::rt::Argument::fmt::h635cbf3c6754cc90 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/fmt/rt.rs:173:76 [INFO] [stderr] 5: 0x5d95dd11baef - core::fmt::write::hbdcc0ec4f1bab1db [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/fmt/mod.rs:1469:25 [INFO] [stderr] 6: 0x5d95dd0d6f03 - std::io::default_write_fmt::hb29d13affe7e9cd0 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/io/mod.rs:639:11 [INFO] [stderr] 7: 0x5d95dd0d6f03 - std::io::Write::write_fmt::hec441b8c6eca32b9 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/io/mod.rs:1954:13 [INFO] [stderr] 8: 0x5d95dd0e2f12 - std::sys::backtrace::BacktraceLock::print::h052febbd86f7bf07 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/sys/backtrace.rs:42:9 [INFO] [stderr] 9: 0x5d95dd0e838f - std::panicking::default_hook::{{closure}}::h66aeee20dd470abb [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:301:27 [INFO] [stderr] 10: 0x5d95dd0e81e9 - std::panicking::default_hook::h9d66b9642014ce48 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:328:9 [INFO] [stderr] 11: 0x5d95dd0e8965 - std::panicking::panic_with_hook::h6d5921a1a1fa5a8e [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:834:13 [INFO] [stderr] 12: 0x5d95dd0e87fa - std::panicking::panic_handler::{{closure}}::hafeef6f707d43542 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:707:13 [INFO] [stderr] 13: 0x5d95dd0e3049 - std::sys::backtrace::__rust_end_short_backtrace::h08cbc3319a3d0120 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/sys/backtrace.rs:174:18 [INFO] [stderr] 14: 0x5d95dd0cb3ad - __rustc[ce5c411ff86ab1b2]::rust_begin_unwind [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/std/src/panicking.rs:698:5 [INFO] [stderr] 15: 0x5d95dd123710 - core::panicking::panic_fmt::h774fb860369a0f7b [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/panicking.rs:80:14 [INFO] [stderr] 16: 0x5d95dd122c96 - core::result::unwrap_failed::h72ee8fcbf1bf8ff9 [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/result.rs:1862:5 [INFO] [stderr] 17: 0x5d95dceaf435 - core::result::Result::unwrap::hc85c09869807c96d [INFO] [stderr] at /rustc/c2e32f1c9652b13ed99608599c1e855462f421f3/library/core/src/result.rs:1233:23 [INFO] [stderr] 18: 0x5d95dceaf435 - dbless::tests::init_tests::h816655edc59ea9d9 [INFO] [stderr] at /opt/rustwide/workdir/src/tests.rs:15:48 [INFO] [stderr] 19: 0x5d95dcebd976 - dbless::tests::init_tests___rust_ctor___ctor::init_tests___rust_ctor___ctor::h13a9c1c38b7ef4db [INFO] [stderr] at /opt/rustwide/workdir/src/tests.rs:11:1 [INFO] [stderr] 20: 0x7e8c3373f304 - __libc_start_main [INFO] [stderr] 21: 0x5d95dceabe35 - _start [INFO] [stderr] 22: 0x0 - [INFO] [stderr] fatal runtime error: failed to initiate panic, error 5, aborting [INFO] [stderr] error: test failed, to rerun pass `--lib` [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `/opt/rustwide/target/debug/deps/dbless-7d3731a05b1c6f9a` (signal: 6, SIGABRT: process abort signal) [INFO] running `Command { std: "docker" "inspect" "b149fd2e374aca4a198b92bcb76ec7f04b71a058cd950ade2b270309d39269ca", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b149fd2e374aca4a198b92bcb76ec7f04b71a058cd950ade2b270309d39269ca", kill_on_drop: false }` [INFO] [stdout] b149fd2e374aca4a198b92bcb76ec7f04b71a058cd950ade2b270309d39269ca