[INFO] cloning repository https://github.com/lollek/omoria [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/lollek/omoria" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flollek%2Fomoria", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flollek%2Fomoria'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8d1c28a2b002d49c0466d6fe0c02df73bcb7da14 [INFO] testing lollek/omoria against master#d98a5da813da67eb189387b8ccfb73cf481275d8+rustflags=-Copt-level=3 for pr-138759-retry [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Flollek%2Fomoria" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/lollek/omoria [INFO] finished tweaking git repo https://github.com/lollek/omoria [INFO] tweaked toml for git repo https://github.com/lollek/omoria written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/lollek/omoria on toolchain d98a5da813da67eb189387b8ccfb73cf481275d8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/lollek/omoria 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" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded winreg v0.5.1 [INFO] [stderr] Downloaded pancurses v0.16.1 [INFO] [stderr] Downloaded serial_test_derive v3.2.0 [INFO] [stderr] Downloaded serial_test v3.2.0 [INFO] [stderr] Downloaded addr2line v0.17.0 [INFO] [stderr] Downloaded rustc-demangle v0.1.21 [INFO] [stderr] Downloaded sdd v3.0.5 [INFO] [stderr] Downloaded miniz_oxide v0.5.4 [INFO] [stderr] Downloaded scc v2.3.0 [INFO] [stderr] Downloaded serde_json v1.0.135 [INFO] [stderr] Downloaded backtrace v0.3.66 [INFO] [stderr] Downloaded unicode-ident v1.0.1 [INFO] [stderr] Downloaded object v0.29.0 [INFO] [stderr] Downloaded gimli v0.26.2 [INFO] [stderr] Downloaded winapi v0.3.5 [INFO] [stderr] Downloaded pdcurses-sys v0.7.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d3ec31348f1f7b3ca0394cf2ca72cc19b6c9d77e3e62ceb8068ded3b2d4ee619 [INFO] running `Command { std: "docker" "start" "-a" "d3ec31348f1f7b3ca0394cf2ca72cc19b6c9d77e3e62ceb8068ded3b2d4ee619", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d3ec31348f1f7b3ca0394cf2ca72cc19b6c9d77e3e62ceb8068ded3b2d4ee619", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d3ec31348f1f7b3ca0394cf2ca72cc19b6c9d77e3e62ceb8068ded3b2d4ee619", kill_on_drop: false }` [INFO] [stdout] d3ec31348f1f7b3ca0394cf2ca72cc19b6c9d77e3e62ceb8068ded3b2d4ee619 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Copt-level=3" "-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" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1f9476e8026e835291001cf3446f84edf3559bceac653bb0136954f6bf6e3c73 [INFO] running `Command { std: "docker" "start" "-a" "1f9476e8026e835291001cf3446f84edf3559bceac653bb0136954f6bf6e3c73", kill_on_drop: false }` [INFO] [stderr] Compiling cc v1.0.73 [INFO] [stderr] Compiling unicode-ident v1.0.1 [INFO] [stderr] Compiling serde v1.0.217 [INFO] [stderr] Compiling serde_json v1.0.135 [INFO] [stderr] Compiling gimli v0.26.2 [INFO] [stderr] Compiling itoa v1.0.14 [INFO] [stderr] Compiling rustc-demangle v0.1.21 [INFO] [stderr] Compiling libc v0.2.169 [INFO] [stderr] Compiling miniz_oxide v0.5.4 [INFO] [stderr] Compiling object v0.29.0 [INFO] [stderr] Compiling proc-macro2 v1.0.93 [INFO] [stderr] Compiling quote v1.0.38 [INFO] [stderr] Compiling syn v2.0.96 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling addr2line v0.17.0 [INFO] [stderr] Compiling ncurses v5.101.0 [INFO] [stderr] Compiling backtrace v0.3.66 [INFO] [stderr] Compiling pancurses v0.16.1 [INFO] [stderr] Compiling enum-iterator-derive v1.4.0 [INFO] [stderr] Compiling serde_derive v1.0.217 [INFO] [stderr] Compiling enum-iterator v1.5.0 [INFO] [stderr] Compiling omoria v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/data/item_name/helpers.rs:105:38 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn maybe_special_attribute(item: &Item) -> Option> { [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 105 | pub fn maybe_special_attribute(item: &Item) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/data/item_name/subtype/misc_usable.rs:42:23 [INFO] [stdout] | [INFO] [stdout] 42 | fn subtype_name(item: &Item) -> Cow { [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 42 | fn subtype_name(item: &Item) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/player/data.rs:88:22 [INFO] [stdout] | [INFO] [stdout] 88 | libc::strcpy(player_name.as_mut_ptr() as *mut i8, cstr.as_ptr()); [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] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/player/data.rs:100:22 [INFO] [stdout] | [INFO] [stdout] 100 | libc::strcpy(player_race.as_mut_ptr(), cstr.as_ptr()); [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] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/player/data.rs:111:22 [INFO] [stdout] | [INFO] [stdout] 111 | libc::strcpy(player_sex.as_mut_ptr(), cstr.as_ptr()); [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] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/player/data.rs:123:22 [INFO] [stdout] | [INFO] [stdout] 123 | libc::strcpy(player_tclass.as_mut_ptr(), cstr.as_ptr()); [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 1m 25s [INFO] running `Command { std: "docker" "inspect" "1f9476e8026e835291001cf3446f84edf3559bceac653bb0136954f6bf6e3c73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f9476e8026e835291001cf3446f84edf3559bceac653bb0136954f6bf6e3c73", kill_on_drop: false }` [INFO] [stdout] 1f9476e8026e835291001cf3446f84edf3559bceac653bb0136954f6bf6e3c73 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Copt-level=3" "-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" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 1ddf2680e9bba8f02b560c596a0846a3509d4bae46e1124666b40adf815479cf [INFO] running `Command { std: "docker" "start" "-a" "1ddf2680e9bba8f02b560c596a0846a3509d4bae46e1124666b40adf815479cf", kill_on_drop: false }` [INFO] [stderr] Compiling futures-core v0.3.31 [INFO] [stderr] Compiling lock_api v0.4.12 [INFO] [stderr] Compiling sdd v3.0.5 [INFO] [stderr] Compiling once_cell v1.20.2 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling serial_test_derive v3.2.0 [INFO] [stderr] Compiling futures-channel v0.3.31 [INFO] [stderr] Compiling scc v2.3.0 [INFO] [stderr] Compiling futures-util v0.3.31 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling futures-executor v0.3.31 [INFO] [stderr] Compiling futures v0.3.31 [INFO] [stderr] Compiling serial_test v3.2.0 [INFO] [stderr] Compiling omoria v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/data/item_name/helpers.rs:105:38 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn maybe_special_attribute(item: &Item) -> Option> { [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 105 | pub fn maybe_special_attribute(item: &Item) -> Option> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/data/item_name/subtype/misc_usable.rs:42:23 [INFO] [stdout] | [INFO] [stdout] 42 | fn subtype_name(item: &Item) -> Cow { [INFO] [stdout] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 42 | fn subtype_name(item: &Item) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/player/data.rs:88:22 [INFO] [stdout] | [INFO] [stdout] 88 | libc::strcpy(player_name.as_mut_ptr() as *mut i8, cstr.as_ptr()); [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] = note: `#[warn(static_mut_refs)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/player/data.rs:100:22 [INFO] [stdout] | [INFO] [stdout] 100 | libc::strcpy(player_race.as_mut_ptr(), cstr.as_ptr()); [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] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/player/data.rs:111:22 [INFO] [stdout] | [INFO] [stdout] 111 | libc::strcpy(player_sex.as_mut_ptr(), cstr.as_ptr()); [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] [stdout] warning: creating a mutable reference to mutable static [INFO] [stdout] --> src/player/data.rs:123:22 [INFO] [stdout] | [INFO] [stdout] 123 | libc::strcpy(player_tclass.as_mut_ptr(), cstr.as_ptr()); [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 `test` profile [unoptimized + debuginfo] target(s) in 39.70s [INFO] running `Command { std: "docker" "inspect" "1ddf2680e9bba8f02b560c596a0846a3509d4bae46e1124666b40adf815479cf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1ddf2680e9bba8f02b560c596a0846a3509d4bae46e1124666b40adf815479cf", kill_on_drop: false }` [INFO] [stdout] 1ddf2680e9bba8f02b560c596a0846a3509d4bae46e1124666b40adf815479cf [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Copt-level=3" "-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" "+d98a5da813da67eb189387b8ccfb73cf481275d8" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 991c22af6cdacceee75602c370d1454268250cd4efaf91dba4478fb51f18f202 [INFO] running `Command { std: "docker" "start" "-a" "991c22af6cdacceee75602c370d1454268250cd4efaf91dba4478fb51f18f202", kill_on_drop: false }` [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/data/item_name/helpers.rs:105:38 [INFO] [stderr] | [INFO] [stderr] 105 | pub fn maybe_special_attribute(item: &Item) -> Option> { [INFO] [stderr] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 105 | pub fn maybe_special_attribute(item: &Item) -> Option> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/data/item_name/subtype/misc_usable.rs:42:23 [INFO] [stderr] | [INFO] [stderr] 42 | fn subtype_name(item: &Item) -> Cow { [INFO] [stderr] | ^^^^^ -------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 42 | fn subtype_name(item: &Item) -> Cow<'_, str> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/player/data.rs:88:22 [INFO] [stderr] | [INFO] [stderr] 88 | libc::strcpy(player_name.as_mut_ptr() as *mut i8, cstr.as_ptr()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [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)]` on by default [INFO] [stderr] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/player/data.rs:100:22 [INFO] [stderr] | [INFO] [stderr] 100 | libc::strcpy(player_race.as_mut_ptr(), cstr.as_ptr()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [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] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/player/data.rs:111:22 [INFO] [stderr] | [INFO] [stderr] 111 | libc::strcpy(player_sex.as_mut_ptr(), cstr.as_ptr()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [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] [INFO] [stderr] warning: creating a mutable reference to mutable static [INFO] [stderr] --> src/player/data.rs:123:22 [INFO] [stderr] | [INFO] [stderr] 123 | libc::strcpy(player_tclass.as_mut_ptr(), cstr.as_ptr()); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ mutable reference to mutable static [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] [INFO] [stderr] warning: `omoria` (lib test) generated 6 warnings [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.10s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/omoria-1d38d0ed04e32dde) [INFO] [stdout] [INFO] [stdout] running 173 tests [INFO] [stdout] test conversion::item_subtype::amulet::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::arrow::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::bag::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::belt::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::bolt::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::boots::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::bracers::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::chest::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::chime::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::food::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::gem::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::flask_of_oil::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::hafted_weapon::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::gloves::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::dagger::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::magic_book::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::maul::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::misc_item::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::misc_usable::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::pick::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::horn::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::polearm::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::lodging_at_inn::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::cloak::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::light_source::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::potion::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::junk_food::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::prayer_book::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::ranged_weapon::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::ring::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::scroll::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::shield::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::sling_ammo::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::soft_armor::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::song_book::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::spike::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::staff::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::sword::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::wand::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::wearable_gem::tests::test_double_conversion ... ok [INFO] [stdout] test data::item_name::subtype::ammo::tests::test_arrow ... ok [INFO] [stdout] test data::item_name::subtype::ammo::tests::test_bolt ... ok [INFO] [stdout] test data::item_name::subtype::ammo::tests::test_iron_shot ... ok [INFO] [stdout] test data::item_name::subtype::ammo::tests::test_rounded_pebble ... ok [INFO] [stdout] test conversion::item_subtype::helm::tests::test_double_conversion ... ok [INFO] [stdout] test conversion::item_subtype::jewelry::tests::test_double_conversion ... ok [INFO] [stdout] test data::item_name::subtype::amulet::test::test_names_multiple_unidentified ... ok [INFO] [stdout] test data::item_name::subtype::amulet::test::test_names_single_identified ... ok [INFO] [stdout] test data::item_name::subtype::armor::tests::test_identified ... ok [INFO] [stdout] test data::item_name::subtype::amulet::test::test_names_single_known_type_unidentified ... ok [INFO] [stdout] test data::item_name::subtype::armor::tests::test_special_attribute_resist_acid ... ok [INFO] [stdout] test data::item_name::subtype::armor::tests::test_special_attribute_resist ... ok [INFO] [stdout] test data::item_name::subtype::armor::tests::test_special_attribute_resist_fire ... ok [INFO] [stdout] test data::item_name::subtype::armor::tests::test_known ... ok [INFO] [stdout] test data::item_name::subtype::amulet::test::test_names_single_unidentified ... ok [INFO] [stdout] test data::item_name::subtype::bag::tests::test_bag_of_holding1000 ... ok [INFO] [stdout] test data::item_name::subtype::armor::tests::test_unidentified_to_hit ... ok [INFO] [stdout] test data::item_name::subtype::bag::tests::test_bag_of_devouring ... ok [INFO] [stdout] test data::item_name::subtype::bag::tests::test_bag_of_holding1500 ... ok [INFO] [stdout] test data::item_name::subtype::armor::tests::test_special_attribute_resist_cold ... ok [INFO] [stdout] test data::item_name::subtype::bag::tests::test_bag_of_holding500 ... ok [INFO] [stdout] test conversion::item_subtype::hard_armor::tests::test_double_conversion ... ok [INFO] [stdout] test data::item_name::subtype::chest::tests::test_chest_large_wooden_chest ... ok [INFO] [stdout] test data::item_name::subtype::chest::tests::test_chest_large_steel_chest ... ok [INFO] [stdout] test data::item_name::subtype::bag::tests::test_bag_of_holding250 ... ok [INFO] [stdout] test data::item_name::subtype::chest::tests::test_chest_large_iron_chest ... ok [INFO] [stdout] test data::item_name::subtype::gem::tests::test_fine_sapphire ... ok [INFO] [stdout] test data::item_name::subtype::chest::tests::test_chest_small_steel_chest ... ok [INFO] [stdout] test data::item_name::subtype::gem::tests::test_fine_diamond ... ok [INFO] [stdout] test data::item_name::subtype::chest::tests::test_chest_small_iron_chest ... ok [INFO] [stdout] test data::item_name::subtype::food::tests::test_ration_of_food ... ok [INFO] [stdout] test data::item_name::subtype::chest::tests::test_chest_small_wooden_chest ... ok [INFO] [stdout] test data::item_name::subtype::gem::tests::test_gem_of_acid_balls ... ok [INFO] [stdout] test data::item_name::subtype::gem::tests::test_fine_agate ... ok [INFO] [stdout] test data::item_name::subtype::book::tests::test_magic_book_2 ... ok [INFO] [stdout] test data::item_name::subtype::gem::tests::test_gem_of_annihilation ... ok [INFO] [stdout] test data::item_name::subtype::gem::tests::test_gem_of_dispel_evil ... ok [INFO] [stdout] test data::item_name::subtype::armor::tests::test_unidentified ... ok [INFO] [stdout] test data::item_name::subtype::gem::tests::test_gem_of_summoning ... ok [INFO] [stdout] test data::item_name::subtype::gem::tests::test_gem_of_remove_curse ... ok [INFO] [stdout] test data::item_name::subtype::gem::tests::test_large_pouch_of_diamonds ... ok [INFO] [stdout] test data::item_name::subtype::gem::tests::test_gem_of_identify ... ok [INFO] [stdout] test data::item_name::subtype::armor::tests::test_special_attribute_resist_lightning ... ok [INFO] [stdout] test data::item_name::subtype::gem::tests::test_gem_of_recall ... ok [INFO] [stdout] test data::item_name::subtype::gem::tests::test_gem_of_detect_monster ... ok [INFO] [stdout] test data::item_name::subtype::gem::tests::test_gem_of_darkness ... ok [INFO] [stdout] test data::item_name::subtype::gem::tests::test_large_sack_of_pearls ... ok [INFO] [stdout] test data::item_name::subtype::gem::tests::test_gem_of_detect_invisible ... ok [INFO] [stdout] test data::item_name::subtype::gem::tests::test_gem_of_light ... ok [INFO] [stdout] test data::item_name::subtype::gem::tests::test_large_sack_of_sapphires ... ok [INFO] [stdout] test data::item_name::subtype::gem::tests::test_rough_diamond ... ok [INFO] [stdout] test data::item_name::subtype::gem::tests::test_rough_sapphire ... ok [INFO] [stdout] test data::item_name::subtype::gem::tests::test_small_bag_of_opals ... ok [INFO] [stdout] test data::item_name::subtype::gem::tests::test_small_bag_of_sapphires ... ok [INFO] [stdout] test data::item_name::subtype::gem::tests::test_small_pouch_of_diamonds ... ok [INFO] [stdout] test data::item_name::subtype::jewelry::tests::test_jewelry_large_mithril_garter_belt ... ok [INFO] [stdout] test data::item_name::subtype::jewelry::tests::test_jewelry_small_gold_pendant ... ok [INFO] [stdout] test data::item_name::subtype::jewelry::tests::test_jewelry_small_mithril_pendant ... ok [INFO] [stdout] test data::item_name::subtype::jewelry::tests::test_jewelry_small_silver_pendant ... ok [INFO] [stdout] test data::item_name::subtype::light_source::tests::test_light_source_brass_lantern ... ok [INFO] [stdout] test data::item_name::subtype::light_source::tests::test_light_source_magic_lantern ... ok [INFO] [stdout] test data::item_name::subtype::light_source::tests::test_light_source_wooden_torch ... ok [INFO] [stdout] test data::item_name::subtype::melee_weapon::tests::test_names_unidentified ... ok [INFO] [stdout] test data::item_name::subtype::melee_weapon::tests::test_identified ... ok [INFO] [stdout] test data::item_name::subtype::misc_object::tests::test_misc_object_type_broken_set_of_teeth ... ok [INFO] [stdout] test data::item_name::subtype::misc_object::tests::test_misc_object_type_broken_stick ... ok [INFO] [stdout] test data::item_name::subtype::misc_object::tests::test_misc_object_type_dwarf_skeleton ... ok [INFO] [stdout] test data::item_name::subtype::misc_object::tests::test_misc_object_type_elf_skeleton ... ok [INFO] [stdout] test data::item_name::subtype::misc_object::tests::test_misc_object_type_giant_centipede_skeleton ... ok [INFO] [stdout] test data::item_name::subtype::misc_object::tests::test_misc_object_type_empty_bottle ... ok [INFO] [stdout] test data::item_name::subtype::light_source::tests::test_light_source_magic_torch ... ok [INFO] [stdout] test data::item_name::subtype::misc_object::tests::test_misc_object_type_gnome_skeleton ... ok [INFO] [stdout] test data::item_name::subtype::misc_object::tests::test_misc_object_type_human_skeleton ... ok [INFO] [stdout] test data::item_name::subtype::misc_object::tests::test_misc_object_type_large_broken_bone ... ok [INFO] [stdout] test data::item_name::subtype::misc_usable::tests::test_bottle_of_djinni ... ok [INFO] [stdout] test data::item_name::subtype::misc_usable::tests::test_cross_of_demon_dispelling ... ok [INFO] [stdout] test data::item_name::subtype::misc_object::tests::test_misc_object_type_rat_skeleton ... ok [INFO] [stdout] test data::item_name::subtype::misc_usable::tests::test_cross_of_demon_summoning ... ok [INFO] [stdout] test data::item_name::subtype::misc_usable::tests::test_cross_of_turning ... ok [INFO] [stdout] test data::item_name::subtype::misc_usable::tests::test_cross_of_undead_summoning ... ok [INFO] [stdout] test data::item_name::subtype::misc_usable::tests::test_misc_usable_corked_bottle ... ok [INFO] [stdout] test data::item_name::subtype::misc_usable::tests::test_misc_usable_cross ... ok [INFO] [stdout] test data::item_name::subtype::misc_usable::tests::test_misc_usable_gold_cross ... ok [INFO] [stdout] test data::item_name::subtype::misc_usable::tests::test_bottle_of_demons ... ok [INFO] [stdout] test data::item_name::subtype::misc_usable::tests::test_misc_usable_mithril_cross ... ok [INFO] [stdout] test data::item_name::subtype::misc_object::tests::test_misc_object_type_shards_of_pottery ... ok [INFO] [stdout] test data::item_name::subtype::misc_usable::tests::test_misc_usable_silver_cross ... ok [INFO] [stdout] test data::item_name::subtype::misc_usable::tests::test_misc_usable_statue ... ok [INFO] [stdout] test conversion::item_subtype::instrument::tests::test_double_conversion ... ok [INFO] [stdout] test data::item_name::subtype::misc_usable::tests::test_statue_of_give_life ... ok [INFO] [stdout] test data::item_name::subtype::ranged_weapon::tests::test_ballista ... ok [INFO] [stdout] test data::item_name::subtype::misc_usable::tests::test_statue_of_summon_demon ... ok [INFO] [stdout] test data::item_name::subtype::misc_usable::tests::test_statue_of_summon_undead ... ok [INFO] [stdout] test data::item_name::subtype::ranged_weapon::tests::test_composite_bow ... ok [INFO] [stdout] test data::item_name::subtype::ranged_weapon::tests::test_heavy_crossbow ... ok [INFO] [stdout] test data::item_name::subtype::ranged_weapon::tests::test_hunters_bow ... ok [INFO] [stdout] test data::item_name::subtype::ranged_weapon::tests::test_double_bow ... ok [INFO] [stdout] test data::item_name::subtype::ranged_weapon::tests::test_sling ... ok [INFO] [stdout] test data::item_name::subtype::ranged_weapon::tests::test_shortbow ... ok [INFO] [stdout] test data::item_name::subtype::ranged_weapon::tests::test_war_bow ... ok [INFO] [stdout] test data::item_name::subtype::ranged_weapon::tests::test_siege_bow ... ok [INFO] [stdout] test data::item_name::subtype::ranged_weapon::tests::test_warded_bow ... ok [INFO] [stdout] test data::item_name::subtype::small_armor::tests::test_identified ... ok [INFO] [stdout] test data::item_name::subtype::small_armor::tests::test_known_type ... ok [INFO] [stdout] test data::item_name::subtype::ranged_weapon::tests::test_siege_crossbow ... ok [INFO] [stdout] test data::item_name::subtype::ranged_weapon::tests::test_light_crossbow ... ok [INFO] [stdout] test data::item_name::subtype::wand::tests::test_wand_identified ... ok [INFO] [stdout] test data::item_name::subtype::ranged_weapon::tests::test_special_of_criticals ... ok [INFO] [stdout] test data::item_name::subtype::wearable_gem::tests::test_gem_of_see_invisible ... ok [INFO] [stdout] test data::item_name::subtype::wearable_gem::tests::test_gem_of_resist_cold ... ok [INFO] [stdout] test identification::tests::test_get_set_identification ... ok [INFO] [stdout] test data::item_name::subtype::wearable_gem::tests::test_gem_of_teleportation ... ok [INFO] [stdout] test data::item_name::subtype::wearable_gem::tests::test_gem_of_lordly_protection_fire ... ok [INFO] [stdout] test data::item_name::subtype::wearable_gem::tests::test_gem_of_resist_acid ... ok [INFO] [stdout] test data::item_name::subtype::wearable_gem::tests::test_gem_of_stealth ... ok [INFO] [stdout] test model::dungeon_record::tests::test_serialize ... ok [INFO] [stdout] test model::inven_record::tests::test_serialize ... ok [INFO] [stdout] test data::item_name::subtype::small_armor::tests::test_unidentified ... ok [INFO] [stdout] test identification::tests::test_serialize_deserialize ... ok [INFO] [stdout] test model::cave::tests::test_serialize ... ok [INFO] [stdout] test model::player_record::tests::test_serializeable ... ok [INFO] [stdout] test model::store::tests::test_serialize ... ok [INFO] [stdout] test data::item_name::subtype::wearable_gem::tests::test_gem_of_slow_digestion ... ok [INFO] [stdout] test data::item_name::subtype::wand::tests::test_wand_unidentified ... ok [INFO] [stdout] test model::item::tests::test_serialize ... ok [INFO] [stdout] test data::item_name::subtype::wand::tests::test_wand_type_identified ... ok [INFO] [stdout] test model::town_record::tests::test_serialize ... ok [INFO] [stdout] test identification::tests::test_read_write ... ok [INFO] [stdout] test model::race::tests::test_serialize ... ok [INFO] [stdout] test model::monster::tests::test_serialize ... ok [INFO] [stdout] test model::treasure_and_coordinate::tests::test_serialize ... ok [INFO] [stdout] test data::item_name::subtype::spike::tests::test_spike ... ok [INFO] [stdout] test save::save_record::tests::test_serializeable ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 173 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.07s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "991c22af6cdacceee75602c370d1454268250cd4efaf91dba4478fb51f18f202", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "991c22af6cdacceee75602c370d1454268250cd4efaf91dba4478fb51f18f202", kill_on_drop: false }` [INFO] [stdout] 991c22af6cdacceee75602c370d1454268250cd4efaf91dba4478fb51f18f202