[INFO] cloning repository https://github.com/soumen-pradhan/rlox [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/soumen-pradhan/rlox" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsoumen-pradhan%2Frlox", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsoumen-pradhan%2Frlox'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] cd823a1beaadace544b0186eb738487526507ec3 [INFO] testing soumen-pradhan/rlox against master#1ef7943ee607160a564655b6596f83670ef95df5 for pr-146098-6 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsoumen-pradhan%2Frlox" "/workspace/builds/worker-4-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/soumen-pradhan/rlox [INFO] finished tweaking git repo https://github.com/soumen-pradhan/rlox [INFO] tweaked toml for git repo https://github.com/soumen-pradhan/rlox written to /workspace/builds/worker-4-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/soumen-pradhan/rlox on toolchain 1ef7943ee607160a564655b6596f83670ef95df5 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/soumen-pradhan/rlox 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" "+1ef7943ee607160a564655b6596f83670ef95df5" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 52ce96cd48fbbca2f1153c3178c8ab8a03b32a7fe46c609b6d07f6fca63c1c15 [INFO] running `Command { std: "docker" "start" "-a" "52ce96cd48fbbca2f1153c3178c8ab8a03b32a7fe46c609b6d07f6fca63c1c15", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "52ce96cd48fbbca2f1153c3178c8ab8a03b32a7fe46c609b6d07f6fca63c1c15", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "52ce96cd48fbbca2f1153c3178c8ab8a03b32a7fe46c609b6d07f6fca63c1c15", kill_on_drop: false }` [INFO] [stdout] 52ce96cd48fbbca2f1153c3178c8ab8a03b32a7fe46c609b6d07f6fca63c1c15 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a0817467126c6a74621c32c23a3b71eaff986a49fa2517d4bf39472892875c0e [INFO] running `Command { std: "docker" "start" "-a" "a0817467126c6a74621c32c23a3b71eaff986a49fa2517d4bf39472892875c0e", kill_on_drop: false }` [INFO] [stderr] Compiling owo-colors v3.5.0 [INFO] [stderr] Compiling rlox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ErrorLogger` [INFO] [stdout] --> src/error.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | pub use super::{ErrorLogger, Logger, LOGGER}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `log_context` [INFO] [stdout] --> src/error.rs:9:26 [INFO] [stdout] | [INFO] [stdout] 9 | pub use crate::{log, log_context}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/compiler.rs:157:17 [INFO] [stdout] | [INFO] [stdout] 157 | log!(t_err.loc, "unknown token found"); [INFO] [stdout] | -------------------------------------- in this macro invocation [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] = note: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/compiler.rs:175:17 [INFO] [stdout] | [INFO] [stdout] 175 | log!(tok_err.loc, err_msg); [INFO] [stdout] | -------------------------- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/compiler.rs:190:17 [INFO] [stdout] | [INFO] [stdout] 190 | log!(tok.loc, "expected a variable name"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/compiler.rs:311:13 [INFO] [stdout] | [INFO] [stdout] 311 | log!(self.prev.loc, "expected an expression (prefix)"); [INFO] [stdout] | ------------------------------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/compiler.rs:323:17 [INFO] [stdout] | [INFO] [stdout] 323 | log!(self.prev.loc, "expected an expression (infix)"); [INFO] [stdout] | ----------------------------------------------------- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/compiler.rs:330:13 [INFO] [stdout] | [INFO] [stdout] 330 | log!(self.prev.loc, "invalid assignment target"); [INFO] [stdout] | ------------------------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/compiler.rs:418:17 [INFO] [stdout] | [INFO] [stdout] 418 | log!(self.prev.loc, "expected a number"); [INFO] [stdout] | ---------------------------------------- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/compiler.rs:449:17 [INFO] [stdout] | [INFO] [stdout] 449 | log!(operator.loc, "expected an unary operator"); [INFO] [stdout] | ------------------------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/compiler.rs:495:17 [INFO] [stdout] | [INFO] [stdout] 495 | log!(operator.loc, "expected a binary operator"); [INFO] [stdout] | ------------------------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/compiler.rs:514:17 [INFO] [stdout] | [INFO] [stdout] 514 | log!(self.prev.loc, "expected a valid literal"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/compiler.rs:534:13 [INFO] [stdout] | [INFO] [stdout] 534 | log!(self.prev.loc, "expected a string literal"); [INFO] [stdout] | ------------------------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/compiler.rs:595:9 [INFO] [stdout] | [INFO] [stdout] 595 | / log!( [INFO] [stdout] 596 | | parser.prev.loc, [INFO] [stdout] 597 | | format!("fn {name}, prev: {:?}", parser.prev.ty).as_str() [INFO] [stdout] 598 | | ); [INFO] [stdout] | |_________- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/lexer.rs:211:25 [INFO] [stdout] | [INFO] [stdout] 211 | log!(self.loc, num_err.show()); [INFO] [stdout] | ------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/lexer.rs:218:25 [INFO] [stdout] | [INFO] [stdout] 218 | log!(self.loc, str_err.show()); [INFO] [stdout] | ------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | LOGGER.err_line($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/vm.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | log!(line self.line(), "VM: invalid variable name"); [INFO] [stdout] | --------------------------------------------------- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | LOGGER.err_line($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/vm.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | log!(line self.line(), msg.as_str()); [INFO] [stdout] | ------------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | LOGGER.err_line($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/vm.rs:166:33 [INFO] [stdout] | [INFO] [stdout] 166 | ... log!(line self.line(), "VM: not a number"); [INFO] [stdout] | ------------------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | LOGGER.err_line($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/vm.rs:191:37 [INFO] [stdout] | [INFO] [stdout] 191 | ... log!(line self.line(), "VM: unknown operation on strings"); [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | LOGGER.err_line($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/vm.rs:196:33 [INFO] [stdout] | [INFO] [stdout] 196 | ... log!(line self.line(), "VM: require 2 numbers or 2 strings"); [INFO] [stdout] | ------------------------------------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | LOGGER.err_line($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/vm.rs:267:33 [INFO] [stdout] | [INFO] [stdout] 267 | ... log!(line self.line(), msg.as_str()); [INFO] [stdout] | ------------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.90s [INFO] running `Command { std: "docker" "inspect" "a0817467126c6a74621c32c23a3b71eaff986a49fa2517d4bf39472892875c0e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a0817467126c6a74621c32c23a3b71eaff986a49fa2517d4bf39472892875c0e", kill_on_drop: false }` [INFO] [stdout] a0817467126c6a74621c32c23a3b71eaff986a49fa2517d4bf39472892875c0e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 43ddc73dfa88f7741807e34fb05871f525d4c1c8f1caef45fa1d90a9500aaaaa [INFO] running `Command { std: "docker" "start" "-a" "43ddc73dfa88f7741807e34fb05871f525d4c1c8f1caef45fa1d90a9500aaaaa", kill_on_drop: false }` [INFO] [stderr] Compiling rlox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ErrorLogger` [INFO] [stdout] --> src/error.rs:8:21 [INFO] [stdout] | [INFO] [stdout] 8 | pub use super::{ErrorLogger, Logger, LOGGER}; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/compiler.rs:157:17 [INFO] [stdout] | [INFO] [stdout] 157 | log!(t_err.loc, "unknown token found"); [INFO] [stdout] | -------------------------------------- in this macro invocation [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] = note: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/compiler.rs:175:17 [INFO] [stdout] | [INFO] [stdout] 175 | log!(tok_err.loc, err_msg); [INFO] [stdout] | -------------------------- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/compiler.rs:190:17 [INFO] [stdout] | [INFO] [stdout] 190 | log!(tok.loc, "expected a variable name"); [INFO] [stdout] | ----------------------------------------- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/compiler.rs:311:13 [INFO] [stdout] | [INFO] [stdout] 311 | log!(self.prev.loc, "expected an expression (prefix)"); [INFO] [stdout] | ------------------------------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/compiler.rs:323:17 [INFO] [stdout] | [INFO] [stdout] 323 | log!(self.prev.loc, "expected an expression (infix)"); [INFO] [stdout] | ----------------------------------------------------- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/compiler.rs:330:13 [INFO] [stdout] | [INFO] [stdout] 330 | log!(self.prev.loc, "invalid assignment target"); [INFO] [stdout] | ------------------------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/compiler.rs:418:17 [INFO] [stdout] | [INFO] [stdout] 418 | log!(self.prev.loc, "expected a number"); [INFO] [stdout] | ---------------------------------------- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/compiler.rs:449:17 [INFO] [stdout] | [INFO] [stdout] 449 | log!(operator.loc, "expected an unary operator"); [INFO] [stdout] | ------------------------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/compiler.rs:495:17 [INFO] [stdout] | [INFO] [stdout] 495 | log!(operator.loc, "expected a binary operator"); [INFO] [stdout] | ------------------------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/compiler.rs:514:17 [INFO] [stdout] | [INFO] [stdout] 514 | log!(self.prev.loc, "expected a valid literal"); [INFO] [stdout] | ----------------------------------------------- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/compiler.rs:534:13 [INFO] [stdout] | [INFO] [stdout] 534 | log!(self.prev.loc, "expected a string literal"); [INFO] [stdout] | ------------------------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/compiler.rs:595:9 [INFO] [stdout] | [INFO] [stdout] 595 | / log!( [INFO] [stdout] 596 | | parser.prev.loc, [INFO] [stdout] 597 | | format!("fn {name}, prev: {:?}", parser.prev.ty).as_str() [INFO] [stdout] 598 | | ); [INFO] [stdout] | |_________- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 151 | log!(loc, msg); [INFO] [stdout] | -------------- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 183 | log!(loc, msg); [INFO] [stdout] | -------------- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] ... [INFO] [stdout] 205 | log!(loc, msg); [INFO] [stdout] | -------------- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/lexer.rs:211:25 [INFO] [stdout] | [INFO] [stdout] 211 | log!(self.loc, num_err.show()); [INFO] [stdout] | ------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/lexer.rs:218:25 [INFO] [stdout] | [INFO] [stdout] 218 | log!(self.loc, str_err.show()); [INFO] [stdout] | ------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | LOGGER.err_line($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/vm.rs:89:17 [INFO] [stdout] | [INFO] [stdout] 89 | log!(line self.line(), "VM: invalid variable name"); [INFO] [stdout] | --------------------------------------------------- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | LOGGER.err_line($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/vm.rs:102:13 [INFO] [stdout] | [INFO] [stdout] 102 | log!(line self.line(), msg.as_str()); [INFO] [stdout] | ------------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | LOGGER.err_line($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/vm.rs:166:33 [INFO] [stdout] | [INFO] [stdout] 166 | ... log!(line self.line(), "VM: not a number"); [INFO] [stdout] | ------------------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | LOGGER.err_line($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/vm.rs:191:37 [INFO] [stdout] | [INFO] [stdout] 191 | ... log!(line self.line(), "VM: unknown operation on strings"); [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | LOGGER.err_line($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/vm.rs:196:33 [INFO] [stdout] | [INFO] [stdout] 196 | ... log!(line self.line(), "VM: require 2 numbers or 2 strings"); [INFO] [stdout] | ------------------------------------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static [INFO] [stdout] --> src/error.rs:45:13 [INFO] [stdout] | [INFO] [stdout] 45 | LOGGER.err_line($loc, $msg); [INFO] [stdout] | ^^^^^^ shared reference to mutable static [INFO] [stdout] | [INFO] [stdout] ::: src/vm.rs:267:33 [INFO] [stdout] | [INFO] [stdout] 267 | ... log!(line self.line(), msg.as_str()); [INFO] [stdout] | ------------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.32s [INFO] running `Command { std: "docker" "inspect" "43ddc73dfa88f7741807e34fb05871f525d4c1c8f1caef45fa1d90a9500aaaaa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "43ddc73dfa88f7741807e34fb05871f525d4c1c8f1caef45fa1d90a9500aaaaa", kill_on_drop: false }` [INFO] [stdout] 43ddc73dfa88f7741807e34fb05871f525d4c1c8f1caef45fa1d90a9500aaaaa [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+1ef7943ee607160a564655b6596f83670ef95df5" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6faa7fc618b990477680cdb9939caa35b19a3e6854fd6feeb14fb1fba5cac59a [INFO] running `Command { std: "docker" "start" "-a" "6faa7fc618b990477680cdb9939caa35b19a3e6854fd6feeb14fb1fba5cac59a", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `ErrorLogger` [INFO] [stderr] --> src/error.rs:8:21 [INFO] [stderr] | [INFO] [stderr] 8 | pub use super::{ErrorLogger, Logger, LOGGER}; [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/error.rs:51:13 [INFO] [stderr] | [INFO] [stderr] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stderr] | ^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] ::: src/compiler.rs:157:17 [INFO] [stderr] | [INFO] [stderr] 157 | log!(t_err.loc, "unknown token found"); [INFO] [stderr] | -------------------------------------- in this macro invocation [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] = note: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/error.rs:51:13 [INFO] [stderr] | [INFO] [stderr] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stderr] | ^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] ::: src/compiler.rs:175:17 [INFO] [stderr] | [INFO] [stderr] 175 | log!(tok_err.loc, err_msg); [INFO] [stderr] | -------------------------- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/error.rs:51:13 [INFO] [stderr] | [INFO] [stderr] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stderr] | ^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] ::: src/compiler.rs:190:17 [INFO] [stderr] | [INFO] [stderr] 190 | log!(tok.loc, "expected a variable name"); [INFO] [stderr] | ----------------------------------------- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/error.rs:51:13 [INFO] [stderr] | [INFO] [stderr] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stderr] | ^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] ::: src/compiler.rs:311:13 [INFO] [stderr] | [INFO] [stderr] 311 | log!(self.prev.loc, "expected an expression (prefix)"); [INFO] [stderr] | ------------------------------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/error.rs:51:13 [INFO] [stderr] | [INFO] [stderr] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stderr] | ^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] ::: src/compiler.rs:323:17 [INFO] [stderr] | [INFO] [stderr] 323 | log!(self.prev.loc, "expected an expression (infix)"); [INFO] [stderr] | ----------------------------------------------------- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/error.rs:51:13 [INFO] [stderr] | [INFO] [stderr] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stderr] | ^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] ::: src/compiler.rs:330:13 [INFO] [stderr] | [INFO] [stderr] 330 | log!(self.prev.loc, "invalid assignment target"); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/error.rs:51:13 [INFO] [stderr] | [INFO] [stderr] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stderr] | ^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] ::: src/compiler.rs:418:17 [INFO] [stderr] | [INFO] [stderr] 418 | log!(self.prev.loc, "expected a number"); [INFO] [stderr] | ---------------------------------------- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/error.rs:51:13 [INFO] [stderr] | [INFO] [stderr] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stderr] | ^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] ::: src/compiler.rs:449:17 [INFO] [stderr] | [INFO] [stderr] 449 | log!(operator.loc, "expected an unary operator"); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/error.rs:51:13 [INFO] [stderr] | [INFO] [stderr] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stderr] | ^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] ::: src/compiler.rs:495:17 [INFO] [stderr] | [INFO] [stderr] 495 | log!(operator.loc, "expected a binary operator"); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/error.rs:51:13 [INFO] [stderr] | [INFO] [stderr] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stderr] | ^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] ::: src/compiler.rs:514:17 [INFO] [stderr] | [INFO] [stderr] 514 | log!(self.prev.loc, "expected a valid literal"); [INFO] [stderr] | ----------------------------------------------- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/error.rs:51:13 [INFO] [stderr] | [INFO] [stderr] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stderr] | ^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] ::: src/compiler.rs:534:13 [INFO] [stderr] | [INFO] [stderr] 534 | log!(self.prev.loc, "expected a string literal"); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/error.rs:51:13 [INFO] [stderr] | [INFO] [stderr] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stderr] | ^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] ::: src/compiler.rs:595:9 [INFO] [stderr] | [INFO] [stderr] 595 | / log!( [INFO] [stderr] 596 | | parser.prev.loc, [INFO] [stderr] 597 | | format!("fn {name}, prev: {:?}", parser.prev.ty).as_str() [INFO] [stderr] 598 | | ); [INFO] [stderr] | |_________- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/error.rs:51:13 [INFO] [stderr] | [INFO] [stderr] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stderr] | ^^^^^^ shared reference to mutable static [INFO] [stderr] ... [INFO] [stderr] 151 | log!(loc, msg); [INFO] [stderr] | -------------- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/error.rs:51:13 [INFO] [stderr] | [INFO] [stderr] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stderr] | ^^^^^^ shared reference to mutable static [INFO] [stderr] ... [INFO] [stderr] 183 | log!(loc, msg); [INFO] [stderr] | -------------- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/error.rs:51:13 [INFO] [stderr] | [INFO] [stderr] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stderr] | ^^^^^^ shared reference to mutable static [INFO] [stderr] ... [INFO] [stderr] 205 | log!(loc, msg); [INFO] [stderr] | -------------- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/error.rs:51:13 [INFO] [stderr] | [INFO] [stderr] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stderr] | ^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] ::: src/lexer.rs:211:25 [INFO] [stderr] | [INFO] [stderr] 211 | log!(self.loc, num_err.show()); [INFO] [stderr] | ------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/error.rs:51:13 [INFO] [stderr] | [INFO] [stderr] 51 | LOGGER.err_loc($loc, $msg); [INFO] [stderr] | ^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] ::: src/lexer.rs:218:25 [INFO] [stderr] | [INFO] [stderr] 218 | log!(self.loc, str_err.show()); [INFO] [stderr] | ------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/error.rs:45:13 [INFO] [stderr] | [INFO] [stderr] 45 | LOGGER.err_line($loc, $msg); [INFO] [stderr] | ^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] ::: src/vm.rs:89:17 [INFO] [stderr] | [INFO] [stderr] 89 | log!(line self.line(), "VM: invalid variable name"); [INFO] [stderr] | --------------------------------------------------- in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/error.rs:45:13 [INFO] [stdout] [INFO] [stderr] | [INFO] [stdout] running 37 tests [INFO] [stderr] 45 | LOGGER.err_line($loc, $msg); [INFO] [stdout] test chunk::tests::check_rle ... ok [INFO] [stderr] | ^^^^^^ shared reference to mutable static [INFO] [stdout] test chunk::tests::unknown_opcode ... ok [INFO] [stderr] | [INFO] [stdout] test compiler::tests::arithmetic ... ok [INFO] [stderr] ::: src/vm.rs:102:13 [INFO] [stdout] test compiler::tests::precedence_inc ... ok [INFO] [stderr] | [INFO] [stdout] test compiler::tests::print_stmt ... ok [INFO] [stderr] 102 | log!(line self.line(), msg.as_str()); [INFO] [stdout] test chunk::tests::check_constant_long ... ok [INFO] [stderr] | ------------------------------------ in this macro invocation [INFO] [stdout] test compiler::tests::var_stmt ... ok [INFO] [stderr] | [INFO] [stdout] test lexer::tests::check_keywords ... ok [INFO] [stderr] = note: for more information, see [INFO] [stdout] test lexer::tests::check_numbers ... ok [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] [stdout] test lexer::tests::check_strings_error ... ok [INFO] [stderr] = note: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] test lexer::tests::check_primitives ... ok [INFO] [stderr] [INFO] [stdout] test vm::tests::divide ... ok [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stdout] test compiler::tests::logical ... ok [INFO] [stderr] --> src/error.rs:45:13 [INFO] [stdout] test value::tests::check_fractional_printing ... ok [INFO] [stderr] | [INFO] [stdout] test vm::tests::add ... ok [INFO] [stderr] 45 | LOGGER.err_line($loc, $msg); [INFO] [stdout] test vm::tests::greater ... ok [INFO] [stderr] | ^^^^^^ shared reference to mutable static [INFO] [stdout] test vm::tests::expr ... ok [INFO] [stderr] | [INFO] [stdout] test value::tests::check_value_to_logical ... ok [INFO] [stderr] ::: src/vm.rs:166:33 [INFO] [stdout] test vm::tests::it_works ... ok [INFO] [stderr] | [INFO] [stdout] test vm::tests::less ... ok [INFO] [stderr] 166 | ... log!(line self.line(), "VM: not a number"); [INFO] [stdout] test compiler::tests::string ... ok [INFO] [stderr] | ------------------------------------------ in this macro invocation [INFO] [stdout] test chunk::tests::abrupt_end ... ok [INFO] [stderr] | [INFO] [stdout] test error::tests::check ... ok [INFO] [stderr] = note: for more information, see [INFO] [stdout] test vm::tests::eq_logical ... ok [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] [stdout] test vm::tests::eq_num ... ok [INFO] [stderr] = note: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] test lexer::tests::check_strings ... ok [INFO] [stderr] [INFO] [stdout] test lexer::tests::check_comments ... ok [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stdout] test error::tests::single_line_error ... ok [INFO] [stderr] --> src/error.rs:45:13 [INFO] [stdout] test vm::tests::global_var ... ok [INFO] [stderr] | [INFO] [stdout] test error::tests::multiple_line_error ... ok [INFO] [stderr] 45 | LOGGER.err_line($loc, $msg); [INFO] [stdout] test error::tests::width_of_numbers ... ok [INFO] [stderr] | ^^^^^^ shared reference to mutable static [INFO] [stdout] test vm::tests::string ... ok [INFO] [stderr] | [INFO] [stdout] test vm::tests::multiply ... ok [INFO] [stderr] ::: src/vm.rs:191:37 [INFO] [stdout] test vm::tests::not ... ok [INFO] [stderr] | [INFO] [stdout] test vm::tests::print ... ok [INFO] [stderr] 191 | ... log!(line self.line(), "VM: unknown operation on strings"); [INFO] [stdout] test vm::tests::subtract ... ok [INFO] [stderr] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] test vm::tests::negate ... ok [INFO] [stderr] | [INFO] [stdout] [INFO] [stderr] = note: for more information, see [INFO] [stdout] test result: ok. 37 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [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] [stdout] [INFO] [stderr] = note: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/error.rs:45:13 [INFO] [stderr] | [INFO] [stderr] 45 | LOGGER.err_line($loc, $msg); [INFO] [stderr] | ^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] ::: src/vm.rs:196:33 [INFO] [stderr] | [INFO] [stderr] 196 | ... log!(line self.line(), "VM: require 2 numbers or 2 strings"); [INFO] [stderr] | ------------------------------------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static [INFO] [stderr] --> src/error.rs:45:13 [INFO] [stderr] | [INFO] [stderr] 45 | LOGGER.err_line($loc, $msg); [INFO] [stderr] | ^^^^^^ shared reference to mutable static [INFO] [stderr] | [INFO] [stderr] ::: src/vm.rs:267:33 [INFO] [stderr] | [INFO] [stderr] 267 | ... log!(line self.line(), msg.as_str()); [INFO] [stderr] | ------------------------------------ in this macro invocation [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: this warning originates in the macro `log` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `rlox` (bin "rlox" test) generated 24 warnings (run `cargo fix --bin "rlox" -p rlox --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rlox-9da367d27fef8ec8) [INFO] running `Command { std: "docker" "inspect" "6faa7fc618b990477680cdb9939caa35b19a3e6854fd6feeb14fb1fba5cac59a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6faa7fc618b990477680cdb9939caa35b19a3e6854fd6feeb14fb1fba5cac59a", kill_on_drop: false }` [INFO] [stdout] 6faa7fc618b990477680cdb9939caa35b19a3e6854fd6feeb14fb1fba5cac59a