[INFO] cloning repository https://github.com/CrystalAnalyst/Sysy-alpha [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/CrystalAnalyst/Sysy-alpha" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCrystalAnalyst%2FSysy-alpha", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCrystalAnalyst%2FSysy-alpha'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0128efc58bb49e378cb37553a4b0ab4b14aa2262 [INFO] checking CrystalAnalyst/Sysy-alpha against master#5518eaa946291f00471af8b254b2a1715f234882 for pr-120393-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCrystalAnalyst%2FSysy-alpha" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/CrystalAnalyst/Sysy-alpha on toolchain 5518eaa946291f00471af8b254b2a1715f234882 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/CrystalAnalyst/Sysy-alpha [INFO] finished tweaking git repo https://github.com/CrystalAnalyst/Sysy-alpha [INFO] tweaked toml for git repo https://github.com/CrystalAnalyst/Sysy-alpha written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/CrystalAnalyst/Sysy-alpha 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" "+5518eaa946291f00471af8b254b2a1715f234882" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: package.author [INFO] [stderr] warning: unused manifest key: package.email [INFO] [stderr] warning: unused manifest key: package.nickname [INFO] [stderr] warning: unused manifest key: package.school [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded colored v2.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c4cfdf4c0170799906cad5d1d9ac7abd7cf762a34272043efbae0eb45bdaee72 [INFO] running `Command { std: "docker" "start" "-a" "c4cfdf4c0170799906cad5d1d9ac7abd7cf762a34272043efbae0eb45bdaee72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c4cfdf4c0170799906cad5d1d9ac7abd7cf762a34272043efbae0eb45bdaee72", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c4cfdf4c0170799906cad5d1d9ac7abd7cf762a34272043efbae0eb45bdaee72", kill_on_drop: false }` [INFO] [stdout] c4cfdf4c0170799906cad5d1d9ac7abd7cf762a34272043efbae0eb45bdaee72 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+5518eaa946291f00471af8b254b2a1715f234882" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 00afe6394859a790b33c41f5cc9285029116c15756ab58908ba491f9aa3811bd [INFO] running `Command { std: "docker" "start" "-a" "00afe6394859a790b33c41f5cc9285029116c15756ab58908ba491f9aa3811bd", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: package.author [INFO] [stderr] warning: unused manifest key: package.email [INFO] [stderr] warning: unused manifest key: package.nickname [INFO] [stderr] warning: unused manifest key: package.school [INFO] [stderr] Checking colored v2.1.0 [INFO] [stderr] Checking sysy_alpha v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: shared reference of mutable static is discouraged [INFO] [stdout] --> src/semantics.rs:150:39 [INFO] [stdout] | [INFO] [stdout] 150 | let path = unsafe { Path::new(&FILEPATH) }; [INFO] [stdout] | ^^^^^^^^^ shared reference of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: reference of mutable static is a hard error from 2024 edition [INFO] [stdout] = note: mutable statics can be written to by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] = note: `#[warn(static_mut_ref)]` on by default [INFO] [stdout] help: shared references are dangerous since if there's any kind of mutation of that static while the reference lives, that's UB; use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 150 | let path = unsafe { Path::new(addr_of!(FILEPATH)) }; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: shared reference of mutable static is discouraged [INFO] [stdout] --> src/semantics.rs:150:39 [INFO] [stdout] | [INFO] [stdout] 150 | let path = unsafe { Path::new(&FILEPATH) }; [INFO] [stdout] | ^^^^^^^^^ shared reference of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: reference of mutable static is a hard error from 2024 edition [INFO] [stdout] = note: mutable statics can be written to by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] = note: `#[warn(static_mut_ref)]` on by default [INFO] [stdout] help: shared references are dangerous since if there's any kind of mutation of that static while the reference lives, that's UB; use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 150 | let path = unsafe { Path::new(addr_of!(FILEPATH)) }; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.66s [INFO] running `Command { std: "docker" "inspect" "00afe6394859a790b33c41f5cc9285029116c15756ab58908ba491f9aa3811bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "00afe6394859a790b33c41f5cc9285029116c15756ab58908ba491f9aa3811bd", kill_on_drop: false }` [INFO] [stdout] 00afe6394859a790b33c41f5cc9285029116c15756ab58908ba491f9aa3811bd [INFO] checking CrystalAnalyst/Sysy-alpha against try#7622c0f807a4e13c4db886a1681bf343795692df+rustflags=-Dnon_local_definitions for pr-120393-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FCrystalAnalyst%2FSysy-alpha" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/CrystalAnalyst/Sysy-alpha on toolchain 7622c0f807a4e13c4db886a1681bf343795692df [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/CrystalAnalyst/Sysy-alpha [INFO] finished tweaking git repo https://github.com/CrystalAnalyst/Sysy-alpha [INFO] tweaked toml for git repo https://github.com/CrystalAnalyst/Sysy-alpha written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/CrystalAnalyst/Sysy-alpha 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" "+7622c0f807a4e13c4db886a1681bf343795692df" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: package.author [INFO] [stderr] warning: unused manifest key: package.email [INFO] [stderr] warning: unused manifest key: package.nickname [INFO] [stderr] warning: unused manifest key: package.school [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1f9c984c1f89b4b8ab5e488d287eb1e1b79f55d2cc1b771ce85211c2a08e2408 [INFO] running `Command { std: "docker" "start" "-a" "1f9c984c1f89b4b8ab5e488d287eb1e1b79f55d2cc1b771ce85211c2a08e2408", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1f9c984c1f89b4b8ab5e488d287eb1e1b79f55d2cc1b771ce85211c2a08e2408", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1f9c984c1f89b4b8ab5e488d287eb1e1b79f55d2cc1b771ce85211c2a08e2408", kill_on_drop: false }` [INFO] [stdout] 1f9c984c1f89b4b8ab5e488d287eb1e1b79f55d2cc1b771ce85211c2a08e2408 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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 -Dnon_local_definitions" "-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+7622c0f807a4e13c4db886a1681bf343795692df" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 10f4c376fb53709b6f2910d87fd52dbc089fc501a702d6db7af502976aaf08df [INFO] running `Command { std: "docker" "start" "-a" "10f4c376fb53709b6f2910d87fd52dbc089fc501a702d6db7af502976aaf08df", kill_on_drop: false }` [INFO] [stderr] warning: unused manifest key: package.author [INFO] [stderr] warning: unused manifest key: package.email [INFO] [stderr] warning: unused manifest key: package.nickname [INFO] [stderr] warning: unused manifest key: package.school [INFO] [stderr] Checking colored v2.1.0 [INFO] [stderr] Checking sysy_alpha v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: shared reference of mutable static is discouraged [INFO] [stdout] --> src/semantics.rs:150:39 [INFO] [stdout] | [INFO] [stdout] 150 | let path = unsafe { Path::new(&FILEPATH) }; [INFO] [stdout] | ^^^^^^^^^ shared reference of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: reference of mutable static is a hard error from 2024 edition [INFO] [stdout] = note: mutable statics can be written to by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] = note: `#[warn(static_mut_ref)]` on by default [INFO] [stdout] help: shared references are dangerous since if there's any kind of mutation of that static while the reference lives, that's UB; use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 150 | let path = unsafe { Path::new(addr_of!(FILEPATH)) }; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: shared reference of mutable static is discouraged [INFO] [stdout] --> src/semantics.rs:150:39 [INFO] [stdout] | [INFO] [stdout] 150 | let path = unsafe { Path::new(&FILEPATH) }; [INFO] [stdout] | ^^^^^^^^^ shared reference of mutable static [INFO] [stdout] | [INFO] [stdout] = note: for more information, see issue #114447 [INFO] [stdout] = note: reference of mutable static is a hard error from 2024 edition [INFO] [stdout] = note: mutable statics can be written to by multiple threads: aliasing violations or data races will cause undefined behavior [INFO] [stdout] = note: `#[warn(static_mut_ref)]` on by default [INFO] [stdout] help: shared references are dangerous since if there's any kind of mutation of that static while the reference lives, that's UB; use `addr_of!` instead to create a raw pointer [INFO] [stdout] | [INFO] [stdout] 150 | let path = unsafe { Path::new(addr_of!(FILEPATH)) }; [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/semantics.rs:727:5 [INFO] [stdout] | [INFO] [stdout] 727 | / impl TokenType { [INFO] [stdout] 728 | | fn calc(&self, lhs: i32, rhs: i32) -> i32 { [INFO] [stdout] 729 | | use TokenType::*; [INFO] [stdout] 730 | | match self { [INFO] [stdout] ... | [INFO] [stdout] 749 | | } [INFO] [stdout] 750 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `eval` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: requested on the command line with `-D non-local-definitions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `sysy_alpha` (lib test) due to 2 previous errors; 1 warning emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: non-local `impl` definition, they should be avoided as they go against expectation [INFO] [stdout] --> src/semantics.rs:727:5 [INFO] [stdout] | [INFO] [stdout] 727 | / impl TokenType { [INFO] [stdout] 728 | | fn calc(&self, lhs: i32, rhs: i32) -> i32 { [INFO] [stdout] 729 | | use TokenType::*; [INFO] [stdout] 730 | | match self { [INFO] [stdout] ... | [INFO] [stdout] 749 | | } [INFO] [stdout] 750 | | } [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] = help: move this `impl` block outside the of the current function `eval` [INFO] [stdout] = note: an `impl` definition is non-local if it is nested inside an item and neither the type nor the trait are at the same nesting level as the `impl` block [INFO] [stdout] = note: this lint may become deny-by-default in the edition 2024 and higher, see the tracking issue [INFO] [stdout] = note: requested on the command line with `-D non-local-definitions` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `sysy_alpha` (lib) due to 2 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "10f4c376fb53709b6f2910d87fd52dbc089fc501a702d6db7af502976aaf08df", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "10f4c376fb53709b6f2910d87fd52dbc089fc501a702d6db7af502976aaf08df", kill_on_drop: false }` [INFO] [stdout] 10f4c376fb53709b6f2910d87fd52dbc089fc501a702d6db7af502976aaf08df