[INFO] fetching crate knightrs 0.8.12... [INFO] testing knightrs-0.8.12 against master#562dee4820c458d823175268e41601d4c060588a for pr-154210-1 [INFO] extracting crate knightrs 0.8.12 into /workspace/builds/worker-1-tc1/source [INFO] started tweaking crates.io crate knightrs 0.8.12 [INFO] finished tweaking crates.io crate knightrs 0.8.12 [INFO] tweaked toml for crates.io crate knightrs 0.8.12 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate knightrs 0.8.12 on toolchain 562dee4820c458d823175268e41601d4c060588a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate knightrs 0.8.12 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" "+562dee4820c458d823175268e41601d4c060588a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded once_cell v1.7.2 [INFO] [stderr] Downloaded rand_core v0.6.2 [INFO] [stderr] Downloaded rand_chacha v0.3.0 [INFO] [stderr] Downloaded rand_hc v0.3.0 [INFO] [stderr] Downloaded hermit-abi v0.1.18 [INFO] [stderr] Downloaded unicode-width v0.1.8 [INFO] [stderr] Downloaded ppv-lite86 v0.2.10 [INFO] [stderr] Downloaded getrandom v0.2.2 [INFO] [stderr] Downloaded rand v0.8.3 [INFO] [stderr] Downloaded clap v2.33.3 [INFO] [stderr] Downloaded libc v0.2.91 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c244457d671cc4795fd6529d8bc0030f0f406166d94a6d4c419320d6b814f26f [INFO] running `Command { std: "docker" "start" "-a" "c244457d671cc4795fd6529d8bc0030f0f406166d94a6d4c419320d6b814f26f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c244457d671cc4795fd6529d8bc0030f0f406166d94a6d4c419320d6b814f26f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c244457d671cc4795fd6529d8bc0030f0f406166d94a6d4c419320d6b814f26f", kill_on_drop: false }` [INFO] [stdout] c244457d671cc4795fd6529d8bc0030f0f406166d94a6d4c419320d6b814f26f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 986821d4d963c554c799b3dc43902632b6be1db3ea4ff5965283f41a0d717ea3 [INFO] running `Command { std: "docker" "start" "-a" "986821d4d963c554c799b3dc43902632b6be1db3ea4ff5965283f41a0d717ea3", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.91 [INFO] [stderr] Compiling getrandom v0.2.2 [INFO] [stderr] Compiling ppv-lite86 v0.2.10 [INFO] [stderr] Compiling once_cell v1.7.2 [INFO] [stderr] Compiling rand_core v0.6.2 [INFO] [stderr] Compiling rand_chacha v0.3.0 [INFO] [stderr] Compiling rand v0.8.3 [INFO] [stderr] Compiling knightrs v0.8.12 (/opt/rustwide/workdir) [INFO] [stdout] warning: unexpected `cfg` condition name: `Feature` [INFO] [stdout] --> src/function.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 151 | #[cfg(Feature="variable-lookup")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] help: there is a config with a similar name and value (notice the capitalization) [INFO] [stdout] | [INFO] [stdout] 151 - #[cfg(Feature="variable-lookup")] [INFO] [stdout] 151 + #[cfg(feature="variable-lookup")] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/text.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | unsafe { &EMPTY }.get_or_init(|| unsafe { Self::new_unchecked("") }).clone() [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 51 | unsafe { &raw const EMPTY }.get_or_init(|| unsafe { Self::new_unchecked("") }).clone() [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/value.rs:108:30 [INFO] [stdout] | [INFO] [stdout] 108 | Value::Null => Ok(unsafe {&NULL}.get_or_init(|| unsafe { Self::new_unchecked("null") }).clone()), [INFO] [stdout] | ^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 108 | Value::Null => Ok(unsafe {&raw const NULL}.get_or_init(|| unsafe { Self::new_unchecked("null") }).clone()), [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/value.rs:109:39 [INFO] [stdout] | [INFO] [stdout] 109 | Value::Boolean(true) => Ok(unsafe {&TRUE}.get_or_init(|| unsafe { Self::new_unchecked("true") }).clone()), [INFO] [stdout] | ^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 109 | Value::Boolean(true) => Ok(unsafe {&raw const TRUE}.get_or_init(|| unsafe { Self::new_unchecked("true") }).clone()), [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/value.rs:110:40 [INFO] [stdout] | [INFO] [stdout] 110 | Value::Boolean(false) => Ok(unsafe {&FALSE}.get_or_init(|| unsafe { Self::new_unchecked("false") }).clone()), [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 110 | Value::Boolean(false) => Ok(unsafe {&raw const FALSE}.get_or_init(|| unsafe { Self::new_unchecked("false") }).clone()), [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/value.rs:111:35 [INFO] [stdout] | [INFO] [stdout] 111 | Value::Number(0) => Ok(unsafe {&ZERO}.get_or_init(|| unsafe { Self::new_unchecked("0") }).clone()), [INFO] [stdout] | ^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 111 | Value::Number(0) => Ok(unsafe {&raw const ZERO}.get_or_init(|| unsafe { Self::new_unchecked("0") }).clone()), [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/value.rs:112:35 [INFO] [stdout] | [INFO] [stdout] 112 | Value::Number(1) => Ok(unsafe {&ONE}.get_or_init(|| unsafe { Self::new_unchecked("1") }).clone()), [INFO] [stdout] | ^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 112 | Value::Number(1) => Ok(unsafe {&raw const ONE}.get_or_init(|| unsafe { Self::new_unchecked("1") }).clone()), [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.85s [INFO] running `Command { std: "docker" "inspect" "986821d4d963c554c799b3dc43902632b6be1db3ea4ff5965283f41a0d717ea3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "986821d4d963c554c799b3dc43902632b6be1db3ea4ff5965283f41a0d717ea3", kill_on_drop: false }` [INFO] [stdout] 986821d4d963c554c799b3dc43902632b6be1db3ea4ff5965283f41a0d717ea3 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f48500309df1a252c3aa92bf00b38e2449f0d23dfadcf0799be7c42bedb5ec82 [INFO] running `Command { std: "docker" "start" "-a" "f48500309df1a252c3aa92bf00b38e2449f0d23dfadcf0799be7c42bedb5ec82", kill_on_drop: false }` [INFO] [stdout] warning: unexpected `cfg` condition name: `Feature` [INFO] [stdout] --> src/function.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 151 | #[cfg(Feature="variable-lookup")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] help: there is a config with a similar name and value (notice the capitalization) [INFO] [stdout] | [INFO] [stdout] 151 - #[cfg(Feature="variable-lookup")] [INFO] [stdout] 151 + #[cfg(feature="variable-lookup")] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/text.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | unsafe { &EMPTY }.get_or_init(|| unsafe { Self::new_unchecked("") }).clone() [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 51 | unsafe { &raw const EMPTY }.get_or_init(|| unsafe { Self::new_unchecked("") }).clone() [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/value.rs:108:30 [INFO] [stdout] | [INFO] [stdout] 108 | Value::Null => Ok(unsafe {&NULL}.get_or_init(|| unsafe { Self::new_unchecked("null") }).clone()), [INFO] [stdout] | ^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 108 | Value::Null => Ok(unsafe {&raw const NULL}.get_or_init(|| unsafe { Self::new_unchecked("null") }).clone()), [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/value.rs:109:39 [INFO] [stdout] | [INFO] [stdout] 109 | Value::Boolean(true) => Ok(unsafe {&TRUE}.get_or_init(|| unsafe { Self::new_unchecked("true") }).clone()), [INFO] [stdout] | ^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 109 | Value::Boolean(true) => Ok(unsafe {&raw const TRUE}.get_or_init(|| unsafe { Self::new_unchecked("true") }).clone()), [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/value.rs:110:40 [INFO] [stdout] | [INFO] [stdout] 110 | Value::Boolean(false) => Ok(unsafe {&FALSE}.get_or_init(|| unsafe { Self::new_unchecked("false") }).clone()), [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 110 | Value::Boolean(false) => Ok(unsafe {&raw const FALSE}.get_or_init(|| unsafe { Self::new_unchecked("false") }).clone()), [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling knightrs v0.8.12 (/opt/rustwide/workdir) [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/value.rs:111:35 [INFO] [stdout] | [INFO] [stdout] 111 | Value::Number(0) => Ok(unsafe {&ZERO}.get_or_init(|| unsafe { Self::new_unchecked("0") }).clone()), [INFO] [stdout] | ^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 111 | Value::Number(0) => Ok(unsafe {&raw const ZERO}.get_or_init(|| unsafe { Self::new_unchecked("0") }).clone()), [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/value.rs:112:35 [INFO] [stdout] | [INFO] [stdout] 112 | Value::Number(1) => Ok(unsafe {&ONE}.get_or_init(|| unsafe { Self::new_unchecked("1") }).clone()), [INFO] [stdout] | ^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 112 | Value::Number(1) => Ok(unsafe {&raw const ONE}.get_or_init(|| unsafe { Self::new_unchecked("1") }).clone()), [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unexpected `cfg` condition name: `Feature` [INFO] [stdout] --> src/function.rs:151:9 [INFO] [stdout] | [INFO] [stdout] 151 | #[cfg(Feature="variable-lookup")] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see for more information about checking conditional configuration [INFO] [stdout] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stdout] help: there is a config with a similar name and value (notice the capitalization) [INFO] [stdout] | [INFO] [stdout] 151 - #[cfg(Feature="variable-lookup")] [INFO] [stdout] 151 + #[cfg(feature="variable-lookup")] [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/text.rs:51:12 [INFO] [stdout] | [INFO] [stdout] 51 | unsafe { &EMPTY }.get_or_init(|| unsafe { Self::new_unchecked("") }).clone() [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 51 | unsafe { &raw const EMPTY }.get_or_init(|| unsafe { Self::new_unchecked("") }).clone() [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/value.rs:108:30 [INFO] [stdout] | [INFO] [stdout] 108 | Value::Null => Ok(unsafe {&NULL}.get_or_init(|| unsafe { Self::new_unchecked("null") }).clone()), [INFO] [stdout] | ^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 108 | Value::Null => Ok(unsafe {&raw const NULL}.get_or_init(|| unsafe { Self::new_unchecked("null") }).clone()), [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/value.rs:109:39 [INFO] [stdout] | [INFO] [stdout] 109 | Value::Boolean(true) => Ok(unsafe {&TRUE}.get_or_init(|| unsafe { Self::new_unchecked("true") }).clone()), [INFO] [stdout] | ^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 109 | Value::Boolean(true) => Ok(unsafe {&raw const TRUE}.get_or_init(|| unsafe { Self::new_unchecked("true") }).clone()), [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/value.rs:110:40 [INFO] [stdout] | [INFO] [stdout] 110 | Value::Boolean(false) => Ok(unsafe {&FALSE}.get_or_init(|| unsafe { Self::new_unchecked("false") }).clone()), [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 110 | Value::Boolean(false) => Ok(unsafe {&raw const FALSE}.get_or_init(|| unsafe { Self::new_unchecked("false") }).clone()), [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/value.rs:111:35 [INFO] [stdout] | [INFO] [stdout] 111 | Value::Number(0) => Ok(unsafe {&ZERO}.get_or_init(|| unsafe { Self::new_unchecked("0") }).clone()), [INFO] [stdout] | ^^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 111 | Value::Number(0) => Ok(unsafe {&raw const ZERO}.get_or_init(|| unsafe { Self::new_unchecked("0") }).clone()), [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/value.rs:112:35 [INFO] [stdout] | [INFO] [stdout] 112 | Value::Number(1) => Ok(unsafe {&ONE}.get_or_init(|| unsafe { Self::new_unchecked("1") }).clone()), [INFO] [stdout] | ^^^^ shared reference to mutable static [INFO] [stdout] | [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: for more information, see [INFO] [stdout] help: use `&raw const` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 112 | Value::Number(1) => Ok(unsafe {&raw const ONE}.get_or_init(|| unsafe { Self::new_unchecked("1") }).clone()), [INFO] [stdout] | +++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.69s [INFO] running `Command { std: "docker" "inspect" "f48500309df1a252c3aa92bf00b38e2449f0d23dfadcf0799be7c42bedb5ec82", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f48500309df1a252c3aa92bf00b38e2449f0d23dfadcf0799be7c42bedb5ec82", kill_on_drop: false }` [INFO] [stdout] f48500309df1a252c3aa92bf00b38e2449f0d23dfadcf0799be7c42bedb5ec82 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+562dee4820c458d823175268e41601d4c060588a" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 4c8ea756f5d4a98c4394b89a921d2d81292aea313b4cb015c66bfeeb632de851 [INFO] running `Command { std: "docker" "start" "-a" "4c8ea756f5d4a98c4394b89a921d2d81292aea313b4cb015c66bfeeb632de851", kill_on_drop: false }` [INFO] [stderr] warning: unexpected `cfg` condition name: `Feature` [INFO] [stderr] --> src/function.rs:151:9 [INFO] [stderr] | [INFO] [stderr] 151 | #[cfg(Feature="variable-lookup")] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see for more information about checking conditional configuration [INFO] [stderr] = note: `#[warn(unexpected_cfgs)]` on by default [INFO] [stderr] help: there is a config with a similar name and value (notice the capitalization) [INFO] [stderr] | [INFO] [stderr] 151 - #[cfg(Feature="variable-lookup")] [INFO] [stderr] 151 + #[cfg(feature="variable-lookup")] [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/text.rs:51:12 [INFO] [stderr] | [INFO] [stderr] 51 | unsafe { &EMPTY }.get_or_init(|| unsafe { Self::new_unchecked("") }).clone() [INFO] [stderr] | ^^^^^^ shared reference to mutable static [INFO] [stderr] | [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: for more information, see [INFO] [stderr] = note: `#[warn(static_mut_refs)]` (part of `#[warn(rust_2024_compatibility)]`) on by default [INFO] [stderr] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 51 | unsafe { &raw const EMPTY }.get_or_init(|| unsafe { Self::new_unchecked("") }).clone() [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/value.rs:108:30 [INFO] [stderr] | [INFO] [stderr] 108 | Value::Null => Ok(unsafe {&NULL}.get_or_init(|| unsafe { Self::new_unchecked("null") }).clone()), [INFO] [stderr] | ^^^^^ shared reference to mutable static [INFO] [stderr] | [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: for more information, see [INFO] [stderr] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 108 | Value::Null => Ok(unsafe {&raw const NULL}.get_or_init(|| unsafe { Self::new_unchecked("null") }).clone()), [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/value.rs:109:39 [INFO] [stderr] | [INFO] [stderr] 109 | Value::Boolean(true) => Ok(unsafe {&TRUE}.get_or_init(|| unsafe { Self::new_unchecked("true") }).clone()), [INFO] [stderr] | ^^^^^ shared reference to mutable static [INFO] [stderr] | [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: for more information, see [INFO] [stderr] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 109 | Value::Boolean(true) => Ok(unsafe {&raw const TRUE}.get_or_init(|| unsafe { Self::new_unchecked("true") }).clone()), [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/value.rs:110:40 [INFO] [stderr] | [INFO] [stderr] 110 | Value::Boolean(false) => Ok(unsafe {&FALSE}.get_or_init(|| unsafe { Self::new_unchecked("false") }).clone()), [INFO] [stderr] | ^^^^^^ shared reference to mutable static [INFO] [stderr] | [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: for more information, see [INFO] [stderr] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 110 | Value::Boolean(false) => Ok(unsafe {&raw const FALSE}.get_or_init(|| unsafe { Self::new_unchecked("false") }).clone()), [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/value.rs:111:35 [INFO] [stderr] | [INFO] [stderr] 111 | Value::Number(0) => Ok(unsafe {&ZERO}.get_or_init(|| unsafe { Self::new_unchecked("0") }).clone()), [INFO] [stderr] | ^^^^^ shared reference to mutable static [INFO] [stderr] | [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: for more information, see [INFO] [stderr] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 111 | Value::Number(0) => Ok(unsafe {&raw const ZERO}.get_or_init(|| unsafe { Self::new_unchecked("0") }).clone()), [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/value.rs:112:35 [INFO] [stderr] | [INFO] [stderr] 112 | Value::Number(1) => Ok(unsafe {&ONE}.get_or_init(|| unsafe { Self::new_unchecked("1") }).clone()), [INFO] [stderr] | ^^^^ shared reference to mutable static [INFO] [stderr] | [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: for more information, see [INFO] [stderr] help: use `&raw const` instead to create a raw pointer [INFO] [stderr] | [INFO] [stderr] 112 | Value::Number(1) => Ok(unsafe {&raw const ONE}.get_or_init(|| unsafe { Self::new_unchecked("1") }).clone()), [INFO] [stderr] | +++++++++ [INFO] [stderr] [INFO] [stderr] warning: `knightrs` (lib) generated 7 warnings [INFO] [stderr] warning: `knightrs` (lib test) generated 7 warnings (7 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/knightrs-2a201702986e6aac) [INFO] [stderr] Doc-tests knightrs [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 9 tests [INFO] [stdout] test src/environment.rs - environment::Environment (line 27) - compile ... ok [INFO] [stdout] test src/environment/variable.rs - environment::variable::Variable::is_assigned (line 83) ... ok [INFO] [stdout] test src/environment.rs - environment::Environment<'i,'o,'c>::builder (line 89) ... ok [INFO] [stdout] test src/environment/variable.rs - environment::variable::Variable::fetch (line 126) ... ok [INFO] [stdout] test src/environment.rs - environment::Environment<'i,'o,'c>::new (line 73) ... ok [INFO] [stdout] test src/environment.rs - environment::Environment<'i,'o,'c>::get (line 106) ... ok [INFO] [stdout] test src/environment.rs - environment::Environment<'i,'o,'c>::system (line 131) ... ok [INFO] [stdout] test src/environment/variable.rs - environment::variable::Variable::name (line 68) ... ok [INFO] [stdout] test src/environment/variable.rs - environment::variable::Variable::assign (line 106) ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 9 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.60s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "4c8ea756f5d4a98c4394b89a921d2d81292aea313b4cb015c66bfeeb632de851", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4c8ea756f5d4a98c4394b89a921d2d81292aea313b4cb015c66bfeeb632de851", kill_on_drop: false }` [INFO] [stdout] 4c8ea756f5d4a98c4394b89a921d2d81292aea313b4cb015c66bfeeb632de851