[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 try#ed7f3d77595b4831fdf085f2529aa13b5b51ff7d for pr-134530 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fsoumen-pradhan%2Frlox" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/soumen-pradhan/rlox on toolchain ed7f3d77595b4831fdf085f2529aa13b5b51ff7d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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-tc2/source/Cargo.toml [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" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 12ad4ea74736d757d97a11ca33b7fe0e48e15c9493cde1cf508e895e70dded16 [INFO] running `Command { std: "docker" "start" "-a" "12ad4ea74736d757d97a11ca33b7fe0e48e15c9493cde1cf508e895e70dded16", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "12ad4ea74736d757d97a11ca33b7fe0e48e15c9493cde1cf508e895e70dded16", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12ad4ea74736d757d97a11ca33b7fe0e48e15c9493cde1cf508e895e70dded16", kill_on_drop: false }` [INFO] [stdout] 12ad4ea74736d757d97a11ca33b7fe0e48e15c9493cde1cf508e895e70dded16 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bab4ebfc0c3447e7095d3d92adec807baa43c3da968beb4700ac013a005d2b0b [INFO] running `Command { std: "docker" "start" "-a" "bab4ebfc0c3447e7095d3d92adec807baa43c3da968beb4700ac013a005d2b0b", 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)]` 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 is discouraged [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)]` 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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 2.00s [INFO] running `Command { std: "docker" "inspect" "bab4ebfc0c3447e7095d3d92adec807baa43c3da968beb4700ac013a005d2b0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bab4ebfc0c3447e7095d3d92adec807baa43c3da968beb4700ac013a005d2b0b", kill_on_drop: false }` [INFO] [stdout] bab4ebfc0c3447e7095d3d92adec807baa43c3da968beb4700ac013a005d2b0b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d79d57b18e39a98421e0f0e06642e6d5c9f092babd02e4bd58784c488918a7a0 [INFO] running `Command { std: "docker" "start" "-a" "d79d57b18e39a98421e0f0e06642e6d5c9f092babd02e4bd58784c488918a7a0", 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)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: creating a shared reference to mutable static is discouraged [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)]` 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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 0.99s [INFO] running `Command { std: "docker" "inspect" "d79d57b18e39a98421e0f0e06642e6d5c9f092babd02e4bd58784c488918a7a0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d79d57b18e39a98421e0f0e06642e6d5c9f092babd02e4bd58784c488918a7a0", kill_on_drop: false }` [INFO] [stdout] d79d57b18e39a98421e0f0e06642e6d5c9f092babd02e4bd58784c488918a7a0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+ed7f3d77595b4831fdf085f2529aa13b5b51ff7d" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 8336d46036c53f3763344e08293418466dcd726da29015c12225c57440da43cd [INFO] running `Command { std: "docker" "start" "-a" "8336d46036c53f3763344e08293418466dcd726da29015c12225c57440da43cd", 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)]` on by default [INFO] [stderr] [INFO] [stderr] warning: creating a shared reference to mutable static is discouraged [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)]` 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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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 is discouraged [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:102:13 [INFO] [stderr] | [INFO] [stderr] 102 | 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: creating a shared reference to mutable static is discouraged [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:166:33 [INFO] [stderr] | [INFO] [stderr] 166 | ... log!(line self.line(), "VM: not 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 is discouraged [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:191:37 [INFO] [stderr] | [INFO] [stderr] 191 | ... log!(line self.line(), "VM: unknown operation on 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 is discouraged [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 is discouraged [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" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rlox-9da367d27fef8ec8) [INFO] [stdout] [INFO] [stdout] running 37 tests [INFO] [stdout] test chunk::tests::abrupt_end ... ok [INFO] [stdout] test chunk::tests::check_rle ... ok [INFO] [stdout] test chunk::tests::check_constant_long ... ok [INFO] [stdout] test compiler::tests::precedence_inc ... ok [INFO] [stdout] test compiler::tests::string ... ok [INFO] [stdout] test error::tests::check ... ok [INFO] [stdout] test error::tests::multiple_line_error ... ok [INFO] [stdout] test chunk::tests::unknown_opcode ... ok [INFO] [stdout] test lexer::tests::check_keywords ... ok [INFO] [stdout] test lexer::tests::check_numbers ... ok [INFO] [stdout] test error::tests::single_line_error ... ok [INFO] [stdout] test error::tests::width_of_numbers ... ok [INFO] [stdout] test lexer::tests::check_comments ... ok [INFO] [stdout] test value::tests::check_fractional_printing ... ok [INFO] [stdout] test value::tests::check_value_to_logical ... ok [INFO] [stdout] test compiler::tests::arithmetic ... ok [INFO] [stdout] test vm::tests::divide ... ok [INFO] [stdout] test lexer::tests::check_primitives ... ok [INFO] [stdout] test vm::tests::eq_logical ... ok [INFO] [stdout] test lexer::tests::check_strings_error ... ok [INFO] [stderr] thread 'compiler::tests::print_stmt' panicked at library/core/src/panicking.rs:218:5: [INFO] [stderr] unsafe precondition(s) violated: slice::from_raw_parts requires the pointer to be aligned and non-null, and the total size of the slice not to exceed `isize::MAX` [INFO] [stderr] stack backtrace: [INFO] [stderr] 0: 0x5d8e315230ba - std::backtrace_rs::backtrace::libunwind::trace::h3dab7ffe210583a3 [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5 [INFO] [stderr] 1: 0x5d8e315230ba - std::backtrace_rs::backtrace::trace_unsynchronized::h85ec3139dd4f9047 [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stderr] 2: 0x5d8e315230ba - std::sys::backtrace::_print_fmt::h3447259688950eab [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/std/src/sys/backtrace.rs:66:9 [INFO] [stderr] 3: 0x5d8e315230ba - ::fmt::ha8d24a0f27cc401d [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/std/src/sys/backtrace.rs:39:26 [INFO] [stderr] 4: 0x5d8e3154b013 - core::fmt::rt::Argument::fmt::h650b92642f481125 [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/core/src/fmt/rt.rs:177:76 [INFO] [stderr] 5: 0x5d8e3154b013 - core::fmt::write::h5becf96591c394eb [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/core/src/fmt/mod.rs:1437:21 [INFO] [stderr] 6: 0x5d8e3151fc83 - std::io::Write::write_fmt::h29c491e9f261d923 [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/std/src/io/mod.rs:1887:15 [INFO] [stderr] 7: 0x5d8e31522f02 - std::sys::backtrace::BacktraceLock::print::hae1dc20f39b0ae80 [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/std/src/sys/backtrace.rs:42:9 [INFO] [stderr] 8: 0x5d8e3152453e - std::panicking::default_hook::{{closure}}::hb3023fc9edf847a9 [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/std/src/panicking.rs:284:22 [INFO] [stderr] 9: 0x5d8e31524383 - std::panicking::default_hook::h271aee2d85880663 [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/std/src/panicking.rs:311:9 [INFO] [stderr] 10: 0x5d8e314ed518 - as core::ops::function::Fn>::call::hbfe4f2a7834d388d [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/alloc/src/boxed.rs:1984:9 [INFO] [stderr] 11: 0x5d8e314ed518 - test::test_main::{{closure}}::hbb7d4fde4185abc5 [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/test/src/lib.rs:134:21 [INFO] [stderr] 12: 0x5d8e31524d58 - as core::ops::function::Fn>::call::hd4cbe0a9e8955cde [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/alloc/src/boxed.rs:1984:9 [INFO] [stderr] 13: 0x5d8e31524d58 - std::panicking::rust_panic_with_hook::he05f4a167c1908ac [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/std/src/panicking.rs:825:13 [INFO] [stderr] 14: 0x5d8e315249d6 - std::panicking::begin_panic_handler::{{closure}}::h79780775730ab9df [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/std/src/panicking.rs:683:13 [INFO] [stderr] 15: 0x5d8e31523589 - std::sys::backtrace::__rust_end_short_backtrace::h753217146a30d8a2 [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/std/src/sys/backtrace.rs:168:18 [INFO] [stderr] 16: 0x5d8e3152469d - rust_begin_unwind [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/std/src/panicking.rs:681:5 [INFO] [stderr] 17: 0x5d8e3154939d - core::panicking::panic_nounwind_fmt::runtime::h4549f1221a838d3c [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/core/src/panicking.rs:117:22 [INFO] [stderr] 18: 0x5d8e3154939d - core::panicking::panic_nounwind_fmt::hee746ede064b4c8e [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/core/src/intrinsics/mod.rs:3840:9 [INFO] [stderr] 19: 0x5d8e31549432 - core::panicking::panic_nounwind::h636d323a073e8fbc [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/core/src/panicking.rs:218:5 [INFO] [stderr] 20: 0x5d8e314b06e3 - core::slice::raw::from_raw_parts::precondition_check::hc4dbde41401d5f8e [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/core/src/ub_checks.rs:68:21 [INFO] [stderr] 21: 0x5d8e3148c14c - core::slice::raw::from_raw_parts::h194d950e31044ac7 [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/core/src/ub_checks.rs:75:17 [INFO] [stderr] 22: 0x5d8e3148c14c - alloc::vec::Vec::as_slice::h5454f06c8ea7816f [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/alloc/src/vec/mod.rs:1574:18 [INFO] [stderr] 23: 0x5d8e3148c48a - as core::ops::deref::Deref>::deref::h2ab62ff60c9843e3 [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/alloc/src/vec/mod.rs:3257:9 [INFO] [stderr] 24: 0x5d8e31491925 - rlox::error::ErrorLogger::get_line::hbe267e538452d753 [INFO] [stderr] at /opt/rustwide/workdir/src/error.rs:60:34 [INFO] [stderr] 25: 0x5d8e314928ec - ::err_loc::hdf32c7495ebfb2b1 [INFO] [stderr] at /opt/rustwide/workdir/src/error.rs:78:46 [INFO] [stderr] 26: 0x5d8e3149b9e5 - rlox::compiler::debug::stack_trace::h4abd595cd4e20260 [INFO] [stderr] at /opt/rustwide/workdir/src/error.rs:51:13 [INFO] [stderr] 27: 0x5d8e31490044 - rlox::compiler::Parser::decl::h9da395d56ebb9753 [INFO] [stderr] at /opt/rustwide/workdir/src/compiler.rs:340:9 [INFO] [stderr] 28: 0x5d8e3148e948 - rlox::compiler::parse::h6caa7fc267ceb7ae [INFO] [stderr] at /opt/rustwide/workdir/src/compiler.rs:117:9 [INFO] [stderr] 29: 0x5d8e3148e68a - rlox::compiler::run_code::h53b27097ecf969bc [INFO] [stderr] at /opt/rustwide/workdir/src/compiler.rs:26:17 [INFO] [stderr] 30: 0x5d8e31496941 - rlox::compiler::tests::print_stmt::h8104b046dda69460 [INFO] [stderr] at /opt/rustwide/workdir/src/compiler.rs:654:13 [INFO] [stderr] 31: 0x5d8e31496867 - rlox::compiler::tests::print_stmt::{{closure}}::h92ae8e7e51396405 [INFO] [stderr] at /opt/rustwide/workdir/src/compiler.rs:649:20 [INFO] [stderr] 32: 0x5d8e314a3c06 - core::ops::function::FnOnce::call_once::h0845273f2fedb187 [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/core/src/ops/function.rs:250:5 [INFO] [stderr] 33: 0x5d8e314f215b - core::ops::function::FnOnce::call_once::h651e3187cb632f8b [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/core/src/ops/function.rs:250:5 [INFO] [stderr] 34: 0x5d8e314f215b - test::__rust_begin_short_backtrace::hf087c08482082584 [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/test/src/lib.rs:632:18 [INFO] [stderr] 35: 0x5d8e314f1a69 - test::run_test_in_process::{{closure}}::h028b11125eb38b18 [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/test/src/lib.rs:655:60 [INFO] [stderr] 36: 0x5d8e314f1a69 - as core::ops::function::FnOnce<()>>::call_once::h8a69fc59e5c0ffcd [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stderr] 37: 0x5d8e314f1a69 - std::panicking::try::do_call::h53d2549af1773521 [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/std/src/panicking.rs:573:40 [INFO] [stderr] 38: 0x5d8e314f1a69 - std::panicking::try::h327579c208c8ae37 [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/std/src/panicking.rs:536:19 [INFO] [stderr] 39: 0x5d8e314f1a69 - std::panic::catch_unwind::hae7e4a4da155a27e [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/std/src/panic.rs:358:14 [INFO] [stderr] 40: 0x5d8e314f1a69 - test::run_test_in_process::hef0a7b0ac1ee3437 [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/test/src/lib.rs:655:27 [INFO] [stderr] 41: 0x5d8e314f1a69 - test::run_test::{{closure}}::h007633ec4ae045b1 [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/test/src/lib.rs:576:43 [INFO] [stderr] 42: 0x5d8e314b47da - test::run_test::{{closure}}::hf3a8c9852b545b46 [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/test/src/lib.rs:606:41 [INFO] [stderr] 43: 0x5d8e314b47da - std::sys::backtrace::__rust_begin_short_backtrace::ha442d5d7942f6ee9 [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/std/src/sys/backtrace.rs:152:18 [INFO] [stderr] 44: 0x5d8e314b8246 - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::hc8fd461cdc84b676 [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/std/src/thread/mod.rs:561:17 [INFO] [stderr] 45: 0x5d8e314b8246 - as core::ops::function::FnOnce<()>>::call_once::h5a459cc955f063ed [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stderr] 46: 0x5d8e314b8246 - std::panicking::try::do_call::hc249aed3a6c9c972 [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/std/src/panicking.rs:573:40 [INFO] [stderr] 47: 0x5d8e314b8246 - std::panicking::try::h649add41232b7ab3 [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/std/src/panicking.rs:536:19 [INFO] [stderr] 48: 0x5d8e314b8246 - std::panic::catch_unwind::h2fd522623ccd57b0 [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/std/src/panic.rs:358:14 [INFO] [stderr] 49: 0x5d8e314b8246 - std::thread::Builder::spawn_unchecked_::{{closure}}::h685de412d0d20b6b [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/std/src/thread/mod.rs:559:30 [INFO] [stderr] 50: 0x5d8e314b8246 - core::ops::function::FnOnce::call_once{{vtable.shim}}::hf3391e711cf5434d [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/core/src/ops/function.rs:250:5 [INFO] [stderr] 51: 0x5d8e31528c2b - as core::ops::function::FnOnce>::call_once::hc98bb0f9729b604d [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/alloc/src/boxed.rs:1970:9 [INFO] [stderr] 52: 0x5d8e31528c2b - as core::ops::function::FnOnce>::call_once::h3b479d8e9f1fef9f [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/alloc/src/boxed.rs:1970:9 [INFO] [stderr] 53: 0x5d8e31528c2b - std::sys::pal::unix::thread::Thread::new::thread_start::he3d5da9652362070 [INFO] [stderr] at /rustc/ed7f3d77595b4831fdf085f2529aa13b5b51ff7d/library/std/src/sys/pal/unix/thread.rs:105:17 [INFO] [stderr] 54: 0x7786e3e29ac3 - [INFO] [stderr] 55: 0x7786e3ebaa04 - clone [INFO] [stderr] 56: 0x0 - [INFO] [stderr] thread caused non-unwinding panic. aborting. [INFO] [stderr] error: test failed, to rerun pass `--bin rlox` [INFO] [stderr] [INFO] [stderr] Caused by: [INFO] [stderr] process didn't exit successfully: `/opt/rustwide/target/debug/deps/rlox-9da367d27fef8ec8` (signal: 6, SIGABRT: process abort signal) [INFO] running `Command { std: "docker" "inspect" "8336d46036c53f3763344e08293418466dcd726da29015c12225c57440da43cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8336d46036c53f3763344e08293418466dcd726da29015c12225c57440da43cd", kill_on_drop: false }` [INFO] [stdout] 8336d46036c53f3763344e08293418466dcd726da29015c12225c57440da43cd