[INFO] fetching crate confmap 1.0.3... [INFO] testing confmap-1.0.3 against try#b83b707f97d809763b7861afa7638871f3339a33 for pr-145838-1 [INFO] extracting crate confmap 1.0.3 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate confmap 1.0.3 [INFO] finished tweaking crates.io crate confmap 1.0.3 [INFO] tweaked toml for crates.io crate confmap 1.0.3 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate confmap 1.0.3 on toolchain b83b707f97d809763b7861afa7638871f3339a33 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "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" "+b83b707f97d809763b7861afa7638871f3339a33" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 11 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 031576f813c2934da5d5de282634ba46a4cbad8b40b8519ca757e284e318e2c1 [INFO] running `Command { std: "docker" "start" "-a" "031576f813c2934da5d5de282634ba46a4cbad8b40b8519ca757e284e318e2c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "031576f813c2934da5d5de282634ba46a4cbad8b40b8519ca757e284e318e2c1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "031576f813c2934da5d5de282634ba46a4cbad8b40b8519ca757e284e318e2c1", kill_on_drop: false }` [INFO] [stdout] 031576f813c2934da5d5de282634ba46a4cbad8b40b8519ca757e284e318e2c1 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b49adf7446b27bc02045ef0ee6809c709beeb8021a318e3a3ee7b40ea7eee75f [INFO] running `Command { std: "docker" "start" "-a" "b49adf7446b27bc02045ef0ee6809c709beeb8021a318e3a3ee7b40ea7eee75f", kill_on_drop: false }` [INFO] [stderr] Compiling serde_json v1.0.143 [INFO] [stderr] Compiling confmap v1.0.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:120:18 [INFO] [stdout] | [INFO] [stdout] 120 | if !unsafe { CONFIG_NAME.is_empty() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:125:29 [INFO] [stdout] | [INFO] [stdout] 125 | let file_path = CONFIG_PATH.to_owned() + &CONFIG_NAME; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:125:54 [INFO] [stdout] | [INFO] [stdout] 125 | let file_path = CONFIG_PATH.to_owned() + &CONFIG_NAME; [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 125 | let file_path = CONFIG_PATH.to_owned() + &raw const CONFIG_NAME; [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:134:36 [INFO] [stdout] | [INFO] [stdout] 134 | if filename == CONFIG_NAME.to_string() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:163:25 [INFO] [stdout] | [INFO] [stdout] 163 | let path = unsafe { CONFIG_PATH.to_string() + &CONFIG_NAME }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:163:51 [INFO] [stdout] | [INFO] [stdout] 163 | let path = unsafe { CONFIG_PATH.to_string() + &CONFIG_NAME }; [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 163 | let path = unsafe { CONFIG_PATH.to_string() + &raw const CONFIG_NAME }; [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.70s [INFO] running `Command { std: "docker" "inspect" "b49adf7446b27bc02045ef0ee6809c709beeb8021a318e3a3ee7b40ea7eee75f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b49adf7446b27bc02045ef0ee6809c709beeb8021a318e3a3ee7b40ea7eee75f", kill_on_drop: false }` [INFO] [stdout] b49adf7446b27bc02045ef0ee6809c709beeb8021a318e3a3ee7b40ea7eee75f [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 578668fd7cd78ea9592779a4980476b75c1444c7cb4f664c18fce49f266082d3 [INFO] running `Command { std: "docker" "start" "-a" "578668fd7cd78ea9592779a4980476b75c1444c7cb4f664c18fce49f266082d3", kill_on_drop: false }` [INFO] [stderr] Compiling confmap v1.0.3 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:120:18 [INFO] [stdout] | [INFO] [stdout] 120 | if !unsafe { CONFIG_NAME.is_empty() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:125:29 [INFO] [stdout] | [INFO] [stdout] 125 | let file_path = CONFIG_PATH.to_owned() + &CONFIG_NAME; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:125:54 [INFO] [stdout] | [INFO] [stdout] 125 | let file_path = CONFIG_PATH.to_owned() + &CONFIG_NAME; [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 125 | let file_path = CONFIG_PATH.to_owned() + &raw const CONFIG_NAME; [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:134:36 [INFO] [stdout] | [INFO] [stdout] 134 | if filename == CONFIG_NAME.to_string() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:163:25 [INFO] [stdout] | [INFO] [stdout] 163 | let path = unsafe { CONFIG_PATH.to_string() + &CONFIG_NAME }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:163:51 [INFO] [stdout] | [INFO] [stdout] 163 | let path = unsafe { CONFIG_PATH.to_string() + &CONFIG_NAME }; [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 163 | let path = unsafe { CONFIG_PATH.to_string() + &raw const CONFIG_NAME }; [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:120:18 [INFO] [stdout] | [INFO] [stdout] 120 | if !unsafe { CONFIG_NAME.is_empty() } { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:125:29 [INFO] [stdout] | [INFO] [stdout] 125 | let file_path = CONFIG_PATH.to_owned() + &CONFIG_NAME; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:125:54 [INFO] [stdout] | [INFO] [stdout] 125 | let file_path = CONFIG_PATH.to_owned() + &CONFIG_NAME; [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 125 | let file_path = CONFIG_PATH.to_owned() + &raw const CONFIG_NAME; [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:134:36 [INFO] [stdout] | [INFO] [stdout] 134 | if filename == CONFIG_NAME.to_string() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:163:25 [INFO] [stdout] | [INFO] [stdout] 163 | let path = unsafe { CONFIG_PATH.to_string() + &CONFIG_NAME }; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/lib.rs:163:51 [INFO] [stdout] | [INFO] [stdout] 163 | let path = unsafe { CONFIG_PATH.to_string() + &CONFIG_NAME }; [INFO] [stdout] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 163 | let path = unsafe { CONFIG_PATH.to_string() + &raw const CONFIG_NAME }; [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.78s [INFO] running `Command { std: "docker" "inspect" "578668fd7cd78ea9592779a4980476b75c1444c7cb4f664c18fce49f266082d3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "578668fd7cd78ea9592779a4980476b75c1444c7cb4f664c18fce49f266082d3", kill_on_drop: false }` [INFO] [stdout] 578668fd7cd78ea9592779a4980476b75c1444c7cb4f664c18fce49f266082d3 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+b83b707f97d809763b7861afa7638871f3339a33" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 184ce1b49be46251224fc6af33551aa359b1d416237912779c6697b1bdb66355 [INFO] running `Command { std: "docker" "start" "-a" "184ce1b49be46251224fc6af33551aa359b1d416237912779c6697b1bdb66355", kill_on_drop: false }` [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/lib.rs:120:18 [INFO] [stderr] | [INFO] [stderr] 120 | if !unsafe { CONFIG_NAME.is_empty() } { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/lib.rs:125:29 [INFO] [stderr] | [INFO] [stderr] 125 | let file_path = CONFIG_PATH.to_owned() + &CONFIG_NAME; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/lib.rs:125:54 [INFO] [stderr] | [INFO] [stderr] 125 | let file_path = CONFIG_PATH.to_owned() + &CONFIG_NAME; [INFO] [stderr] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 125 | let file_path = CONFIG_PATH.to_owned() + &raw const CONFIG_NAME; [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/lib.rs:134:36 [INFO] [stderr] | [INFO] [stderr] 134 | if filename == CONFIG_NAME.to_string() { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/lib.rs:163:25 [INFO] [stderr] | [INFO] [stderr] 163 | let path = unsafe { CONFIG_PATH.to_string() + &CONFIG_NAME }; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/lib.rs:163:51 [INFO] [stderr] | [INFO] [stderr] 163 | let path = unsafe { CONFIG_PATH.to_string() + &CONFIG_NAME }; [INFO] [stderr] | ^^^^^^^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] = note: for more information, see [INFO] [stderr] = note: shared references to mutable statics are dangerous; it's undefined behavior if the static is mutated or if a mutable reference is created for it while the shared reference lives [INFO] [stderr] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 163 | let path = unsafe { CONFIG_PATH.to_string() + &raw const CONFIG_NAME }; [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: `confmap` (lib) generated 6 warnings [INFO] [stderr] warning: `confmap` (lib test) generated 6 warnings (6 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.07s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/confmap-d56c5b6035b11201) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stderr] Doc-tests confmap [INFO] [stdout] test tests::it_works ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 20 tests [INFO] [stdout] test src/lib.rs - (line 23) ... FAILED [INFO] [stdout] test src/lib.rs - get_i16 (line 278) ... FAILED [INFO] [stdout] test src/lib.rs - (line 29) ... FAILED [INFO] [stdout] test src/lib.rs - (line 11) ... FAILED [INFO] [stdout] test src/lib.rs - get_i32 (line 261) ... FAILED [INFO] [stdout] test src/lib.rs - get_float64_array (line 329) ... ok [INFO] [stdout] test src/lib.rs - get_float32 (line 355) ... ok [INFO] [stdout] test src/lib.rs - get_float64 (line 312) ... ok [INFO] [stdout] test src/lib.rs - get_int8 (line 295) ... ok [INFO] [stdout] test src/lib.rs - get_int64 (line 218) ... ok [INFO] [stdout] test src/lib.rs - add_config_path (line 95) ... ok [INFO] [stdout] test src/lib.rs - get_string (line 180) ... ok [INFO] [stdout] test src/lib.rs - get (line 386) ... ok [INFO] [stdout] test src/lib.rs - get_string_array (line 194) ... ok [INFO] [stdout] test src/lib.rs - get_int64_array (line 235) ... ok [INFO] [stdout] test src/lib.rs - set_config_name (line 85) ... ok [INFO] [stdout] test src/lib.rs - get_map (line 419) ... ok [INFO] [stdout] test src/lib.rs - get_array (line 395) ... ok [INFO] [stdout] test src/lib.rs - read_config (line 116) ... ok [INFO] [stdout] test src/lib.rs - get_bool (line 372) ... ok [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 23) stdout ---- [INFO] [stdout] error: expected item, found `[` [INFO] [stdout] --> src/lib.rs:24:1 [INFO] [stdout] | [INFO] [stdout] 1 | [dependencies] [INFO] [stdout] | ^ expected item [INFO] [stdout] | [INFO] [stdout] = note: for a full list of items that can appear in modules, see [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - get_i16 (line 278) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `get_int16` in crate `confmap` [INFO] [stdout] --> src/lib.rs:280:10 [INFO] [stdout] | [INFO] [stdout] 5 | confmap::get_int16("testGetInt16"); [INFO] [stdout] | ^^^^^^^^^ help: a function with a similar name exists: `get_i16` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:281:1 [INFO] [stdout] | [INFO] [stdout] 281 | pub fn get_i16(key: &str) -> Option { [INFO] [stdout] | ---------------------------------------- similarly named function `get_i16` defined here [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 29) stdout ---- [INFO] [stdout] error[E0254]: the name `confmap` is defined multiple times [INFO] [stdout] --> src/lib.rs:31:5 [INFO] [stdout] | [INFO] [stdout] 3 | extern crate r#confmap; [INFO] [stdout] | ----------------------- previous import of the extern crate `confmap` here [INFO] [stdout] 4 | use confmap; [INFO] [stdout] | ^^^^^^^ `confmap` reimported here [INFO] [stdout] | [INFO] [stdout] = note: `confmap` must be defined only once in the type namespace of this module [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `path_str` in this scope [INFO] [stdout] --> src/lib.rs:35:30 [INFO] [stdout] | [INFO] [stdout] 8 | confmap::add_config_path(path_str); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0254, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0254`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 11) stdout ---- [INFO] [stdout] error: expected one of `!` or `::`, found `.` [INFO] [stdout] --> src/lib.rs:12:11 [INFO] [stdout] | [INFO] [stdout] 1 | config.json [INFO] [stdout] | ^ expected one of `!` or `::` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - get_i32 (line 261) stdout ---- [INFO] [stdout] error[E0425]: cannot find function `get_int32` in crate `confmap` [INFO] [stdout] --> src/lib.rs:263:10 [INFO] [stdout] | [INFO] [stdout] 5 | confmap::get_int32("testGetInt32"); [INFO] [stdout] | ^^^^^^^^^ help: a function with a similar name exists: `get_i32` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/workdir/src/lib.rs:264:1 [INFO] [stdout] | [INFO] [stdout] 264 | pub fn get_i32(key: &str) -> Option { [INFO] [stdout] | ---------------------------------------- similarly named function `get_i32` defined here [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 11) [INFO] [stdout] src/lib.rs - (line 23) [INFO] [stdout] src/lib.rs - (line 29) [INFO] [stdout] src/lib.rs - get_i16 (line 278) [INFO] [stdout] src/lib.rs - get_i32 (line 261) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 15 passed; 5 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.33s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "184ce1b49be46251224fc6af33551aa359b1d416237912779c6697b1bdb66355", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "184ce1b49be46251224fc6af33551aa359b1d416237912779c6697b1bdb66355", kill_on_drop: false }` [INFO] [stdout] 184ce1b49be46251224fc6af33551aa359b1d416237912779c6697b1bdb66355