[INFO] cloning repository https://github.com/jhzhics/SysY [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jhzhics/SysY" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjhzhics%2FSysY", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjhzhics%2FSysY'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f1d8b3af4ec44db1ea41fb4eff4735e94fe064aa [INFO] building jhzhics/SysY against try#8b8eff55bd72abbb57167bc42222a7f91d41cb0d for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjhzhics%2FSysY" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/jhzhics/SysY on toolchain 8b8eff55bd72abbb57167bc42222a7f91d41cb0d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/jhzhics/SysY [INFO] finished tweaking git repo https://github.com/jhzhics/SysY [INFO] tweaked toml for git repo https://github.com/jhzhics/SysY written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 79 packages to latest compatible versions [INFO] [stderr] Adding lalrpop v0.21.0 (available: v0.22.2) [INFO] [stderr] Adding lalrpop-util v0.21.0 (available: v0.22.2) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded lalrpop-util v0.21.0 [INFO] [stderr] Downloaded key-node-list v0.0.5 [INFO] [stderr] Downloaded koopa v0.0.8 [INFO] [stderr] Downloaded lalrpop v0.21.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5becbd9257a82f6a00700e1dffbcd1eb1f90234ae94744b45cd6d9d17178408f [INFO] running `Command { std: "docker" "start" "-a" "5becbd9257a82f6a00700e1dffbcd1eb1f90234ae94744b45cd6d9d17178408f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5becbd9257a82f6a00700e1dffbcd1eb1f90234ae94744b45cd6d9d17178408f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5becbd9257a82f6a00700e1dffbcd1eb1f90234ae94744b45cd6d9d17178408f", kill_on_drop: false }` [INFO] [stdout] 5becbd9257a82f6a00700e1dffbcd1eb1f90234ae94744b45cd6d9d17178408f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 97b48f5702bd215dba2c66c84fff03bf457f0d0aade13ee179865be2cce8bdd4 [INFO] running `Command { std: "docker" "start" "-a" "97b48f5702bd215dba2c66c84fff03bf457f0d0aade13ee179865be2cce8bdd4", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling scopeguard v1.2.0 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling siphasher v1.0.1 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling bit-vec v0.7.0 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling fixedbitset v0.4.2 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling keccak v0.1.5 [INFO] [stderr] Compiling log v0.4.27 [INFO] [stderr] Compiling precomputed-hash v0.1.1 [INFO] [stderr] Compiling either v1.15.0 [INFO] [stderr] Compiling new_debug_unreachable v1.0.6 [INFO] [stderr] Compiling pico-args v0.5.0 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling ena v0.14.3 [INFO] [stderr] Compiling itertools v0.13.0 [INFO] [stderr] Compiling phf_shared v0.11.3 [INFO] [stderr] Compiling walkdir v2.5.0 [INFO] [stderr] Compiling colored v2.2.0 [INFO] [stderr] Compiling bit-set v0.6.0 [INFO] [stderr] Compiling key-node-list v0.0.5 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Compiling koopa v0.0.8 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling dirs-sys-next v0.1.2 [INFO] [stderr] Compiling dirs-next v2.0.0 [INFO] [stderr] Compiling parking_lot v0.12.4 [INFO] [stderr] Compiling term v0.7.0 [INFO] [stderr] Compiling string_cache v0.8.9 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling ascii-canvas v3.0.0 [INFO] [stderr] Compiling petgraph v0.6.5 [INFO] [stderr] Compiling crypto-common v0.1.6 [INFO] [stderr] Compiling block-buffer v0.10.4 [INFO] [stderr] Compiling digest v0.10.7 [INFO] [stderr] Compiling sha3 v0.10.8 [INFO] [stderr] Compiling lalrpop-util v0.21.0 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling lalrpop v0.21.0 [INFO] [stderr] Compiling SysY v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `back` [INFO] [stdout] --> src/asm/mod.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use koopa::{back, ir::{dfg::DataFlowGraph, entities::ValueData, layout::Layout, *}}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc` [INFO] [stdout] --> src/asm/mod.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use core::{alloc, panic}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deref`, `cell::RefCell`, `clone`, `fmt::format`, `i32::MAX`, and `os::linux::raw::stat` [INFO] [stdout] --> src/asm/mod.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{cell::RefCell, clone, collections::{ HashMap, LinkedList }, fmt::format, i32::MAX, ops::{Deref, Index}, os::linux::raw::stat}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `koopa::back::koopa` [INFO] [stdout] --> src/ir/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use koopa::back::koopa; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `::koopa::ir::values::Aggregate` [INFO] [stdout] --> src/ir/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ::koopa::ir::values::Aggregate; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ValueKind` [INFO] [stdout] --> src/ir/mod.rs:5:48 [INFO] [stdout] | [INFO] [stdout] 5 | use ::koopa::ir::{BasicBlock, TypeKind, Value, ValueKind}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/ir/mod.rs:380:38 [INFO] [stdout] | [INFO] [stdout] 380 | let is_load_scaler = (indices.len() == ident.get_dim()); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 380 - let is_load_scaler = (indices.len() == ident.get_dim()); [INFO] [stdout] 380 + let is_load_scaler = indices.len() == ident.get_dim(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `std::os::linux::raw::stat`: these type aliases are no longer supported by the standard library, the `libc` crate on crates.io should be used instead for the correct definitions [INFO] [stdout] --> src/asm/mod.rs:4:131 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{cell::RefCell, clone, collections::{ HashMap, LinkedList }, fmt::format, i32::MAX, ops::{Deref, Index}, os::linux::raw::stat}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Index` [INFO] [stdout] --> src/asm/mod.rs:4:107 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{cell::RefCell, clone, collections::{ HashMap, LinkedList }, fmt::format, i32::MAX, ops::{Deref, Index}, os::linux::raw::stat}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/asm/mod.rs:105:10 [INFO] [stdout] | [INFO] [stdout] 105 | for (value, value_data) in prog.borrow_values().iter() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ins` [INFO] [stdout] --> src/asm/mod.rs:90:33 [INFO] [stdout] | [INFO] [stdout] 90 | ValueKind::ZeroInit(ins) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bb` [INFO] [stdout] --> src/asm/mod.rs:127:15 [INFO] [stdout] | [INFO] [stdout] 127 | for (&bb, node) in func_data.layout().bbs() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ins` [INFO] [stdout] --> src/asm/mod.rs:147:45 [INFO] [stdout] | [INFO] [stdout] 147 | if let ValueKind::Alloc(ins) = value_data.kind() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ins` [INFO] [stdout] --> src/asm/mod.rs:322:36 [INFO] [stdout] | [INFO] [stdout] 322 | ValueKind::GlobalAlloc(ins) => [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ins` [INFO] [stdout] --> src/asm/mod.rs:330:35 [INFO] [stdout] | [INFO] [stdout] 330 | ValueKind::GetElemPtr(ins) => default_getreg(asm), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ins` [INFO] [stdout] --> src/asm/mod.rs:331:31 [INFO] [stdout] | [INFO] [stdout] 331 | ValueKind::GetPtr(ins) => default_getreg(asm), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ins` [INFO] [stdout] --> src/asm/mod.rs:351:32 [INFO] [stdout] | [INFO] [stdout] 351 | ValueKind::Integer(ins) => [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ins` [INFO] [stdout] --> src/asm/mod.rs:369:36 [INFO] [stdout] | [INFO] [stdout] 369 | ValueKind::GlobalAlloc(ins) => default_remove_reg(), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ins` [INFO] [stdout] --> src/asm/mod.rs:370:35 [INFO] [stdout] | [INFO] [stdout] 370 | ValueKind::GetElemPtr(ins) => default_remove_reg(), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ins` [INFO] [stdout] --> src/asm/mod.rs:371:31 [INFO] [stdout] | [INFO] [stdout] 371 | ValueKind::GetPtr(ins) => default_remove_reg(), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func_state` [INFO] [stdout] --> src/asm/mod.rs:335:76 [INFO] [stdout] | [INFO] [stdout] 335 | fn remove_reg(&self, _asm: &mut LinkedList, context: &Context, func_state: &State) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_func_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/ir/mod.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | _ => Err(()), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/ir/mod.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 154 | BinaryOp::Add => Ok(koopa_ir::BinaryOp::Add), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 155 | BinaryOp::Sub => Ok(koopa_ir::BinaryOp::Sub), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 156 | BinaryOp::Mul => Ok(koopa_ir::BinaryOp::Mul), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 157 | BinaryOp::Div => Ok(koopa_ir::BinaryOp::Div), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 167 | _ => Err(()), [INFO] [stdout] | ^ ...and 9 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/ir/mod.rs:186:68 [INFO] [stdout] | [INFO] [stdout] 186 | fn koopa_append(&self, func_data: &mut koopa_ir::FunctionData, context: IRContext, state: &mut IRState) [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/ir/mod.rs:186:88 [INFO] [stdout] | [INFO] [stdout] 186 | fn koopa_append(&self, func_data: &mut koopa_ir::FunctionData, context: IRContext, state: &mut IRState) [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/ir/mod.rs:339:68 [INFO] [stdout] | [INFO] [stdout] 339 | fn koopa_append(&self, func_data: &mut koopa_ir::FunctionData, context: IRContext, state: &mut IRState) [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/ir/mod.rs:1037:61 [INFO] [stdout] | [INFO] [stdout] 1037 | fn koopa_append(&self, program: &mut koopa_ir::Program, context: IRContext, state: &mut IRState) [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `btype` [INFO] [stdout] --> src/ir/mod.rs:1056:54 [INFO] [stdout] | [INFO] [stdout] 1056 | let symvalue = if let FuncParam::Array { btype, ident, shape } = param [INFO] [stdout] | ^^^^^ help: try ignoring the field: `btype: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ident` [INFO] [stdout] --> src/ir/mod.rs:1056:61 [INFO] [stdout] | [INFO] [stdout] 1056 | let symvalue = if let FuncParam::Array { btype, ident, shape } = param [INFO] [stdout] | ^^^^^ help: try ignoring the field: `ident: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/ir/mod.rs:1136:32 [INFO] [stdout] | [INFO] [stdout] 1136 | Exp::Call { ident, args } => Err(format!("Call function {} in const Exp", ident.name)), [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `func` is never used [INFO] [stdout] --> src/asm/mod.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl Context<'_> { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn func(&self) -> &Function { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 25.93s [INFO] running `Command { std: "docker" "inspect" "97b48f5702bd215dba2c66c84fff03bf457f0d0aade13ee179865be2cce8bdd4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "97b48f5702bd215dba2c66c84fff03bf457f0d0aade13ee179865be2cce8bdd4", kill_on_drop: false }` [INFO] [stdout] 97b48f5702bd215dba2c66c84fff03bf457f0d0aade13ee179865be2cce8bdd4 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 140d430fc5813aa322c5e7b1aa503952bb4ea37db48635711dd916dd967c7d51 [INFO] running `Command { std: "docker" "start" "-a" "140d430fc5813aa322c5e7b1aa503952bb4ea37db48635711dd916dd967c7d51", kill_on_drop: false }` [INFO] [stderr] Compiling SysY v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `back` [INFO] [stdout] --> src/asm/mod.rs:2:13 [INFO] [stdout] | [INFO] [stdout] 2 | use koopa::{back, ir::{dfg::DataFlowGraph, entities::ValueData, layout::Layout, *}}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `alloc` [INFO] [stdout] --> src/asm/mod.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | use core::{alloc, panic}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Deref`, `cell::RefCell`, `clone`, `fmt::format`, `i32::MAX`, and `os::linux::raw::stat` [INFO] [stdout] --> src/asm/mod.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{cell::RefCell, clone, collections::{ HashMap, LinkedList }, fmt::format, i32::MAX, ops::{Deref, Index}, os::linux::raw::stat}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^ ^^^^^^^^^^^ ^^^^^^^^ ^^^^^ ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `koopa::back::koopa` [INFO] [stdout] --> src/ir/mod.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use koopa::back::koopa; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `::koopa::ir::values::Aggregate` [INFO] [stdout] --> src/ir/mod.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use ::koopa::ir::values::Aggregate; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ValueKind` [INFO] [stdout] --> src/ir/mod.rs:5:48 [INFO] [stdout] | [INFO] [stdout] 5 | use ::koopa::ir::{BasicBlock, TypeKind, Value, ValueKind}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/ir/mod.rs:380:38 [INFO] [stdout] | [INFO] [stdout] 380 | let is_load_scaler = (indices.len() == ident.get_dim()); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 380 - let is_load_scaler = (indices.len() == ident.get_dim()); [INFO] [stdout] 380 + let is_load_scaler = indices.len() == ident.get_dim(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated struct `std::os::linux::raw::stat`: these type aliases are no longer supported by the standard library, the `libc` crate on crates.io should be used instead for the correct definitions [INFO] [stdout] --> src/asm/mod.rs:4:131 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{cell::RefCell, clone, collections::{ HashMap, LinkedList }, fmt::format, i32::MAX, ops::{Deref, Index}, os::linux::raw::stat}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Index` [INFO] [stdout] --> src/asm/mod.rs:4:107 [INFO] [stdout] | [INFO] [stdout] 4 | use std::{cell::RefCell, clone, collections::{ HashMap, LinkedList }, fmt::format, i32::MAX, ops::{Deref, Index}, os::linux::raw::stat}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/asm/mod.rs:105:10 [INFO] [stdout] | [INFO] [stdout] 105 | for (value, value_data) in prog.borrow_values().iter() { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ins` [INFO] [stdout] --> src/asm/mod.rs:90:33 [INFO] [stdout] | [INFO] [stdout] 90 | ValueKind::ZeroInit(ins) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `bb` [INFO] [stdout] --> src/asm/mod.rs:127:15 [INFO] [stdout] | [INFO] [stdout] 127 | for (&bb, node) in func_data.layout().bbs() { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_bb` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ins` [INFO] [stdout] --> src/asm/mod.rs:147:45 [INFO] [stdout] | [INFO] [stdout] 147 | if let ValueKind::Alloc(ins) = value_data.kind() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ins` [INFO] [stdout] --> src/asm/mod.rs:322:36 [INFO] [stdout] | [INFO] [stdout] 322 | ValueKind::GlobalAlloc(ins) => [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ins` [INFO] [stdout] --> src/asm/mod.rs:330:35 [INFO] [stdout] | [INFO] [stdout] 330 | ValueKind::GetElemPtr(ins) => default_getreg(asm), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ins` [INFO] [stdout] --> src/asm/mod.rs:331:31 [INFO] [stdout] | [INFO] [stdout] 331 | ValueKind::GetPtr(ins) => default_getreg(asm), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ins` [INFO] [stdout] --> src/asm/mod.rs:351:32 [INFO] [stdout] | [INFO] [stdout] 351 | ValueKind::Integer(ins) => [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ins` [INFO] [stdout] --> src/asm/mod.rs:369:36 [INFO] [stdout] | [INFO] [stdout] 369 | ValueKind::GlobalAlloc(ins) => default_remove_reg(), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ins` [INFO] [stdout] --> src/asm/mod.rs:370:35 [INFO] [stdout] | [INFO] [stdout] 370 | ValueKind::GetElemPtr(ins) => default_remove_reg(), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ins` [INFO] [stdout] --> src/asm/mod.rs:371:31 [INFO] [stdout] | [INFO] [stdout] 371 | ValueKind::GetPtr(ins) => default_remove_reg(), [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ins` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func_state` [INFO] [stdout] --> src/asm/mod.rs:335:76 [INFO] [stdout] | [INFO] [stdout] 335 | fn remove_reg(&self, _asm: &mut LinkedList, context: &Context, func_state: &State) { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_func_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/ir/mod.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 167 | _ => Err(()), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/ir/mod.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 154 | BinaryOp::Add => Ok(koopa_ir::BinaryOp::Add), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 155 | BinaryOp::Sub => Ok(koopa_ir::BinaryOp::Sub), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 156 | BinaryOp::Mul => Ok(koopa_ir::BinaryOp::Mul), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] 157 | BinaryOp::Div => Ok(koopa_ir::BinaryOp::Div), [INFO] [stdout] | ------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 167 | _ => Err(()), [INFO] [stdout] | ^ ...and 9 other patterns collectively make this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/ir/mod.rs:186:68 [INFO] [stdout] | [INFO] [stdout] 186 | fn koopa_append(&self, func_data: &mut koopa_ir::FunctionData, context: IRContext, state: &mut IRState) [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `state` [INFO] [stdout] --> src/ir/mod.rs:186:88 [INFO] [stdout] | [INFO] [stdout] 186 | fn koopa_append(&self, func_data: &mut koopa_ir::FunctionData, context: IRContext, state: &mut IRState) [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_state` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/ir/mod.rs:339:68 [INFO] [stdout] | [INFO] [stdout] 339 | fn koopa_append(&self, func_data: &mut koopa_ir::FunctionData, context: IRContext, state: &mut IRState) [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `context` [INFO] [stdout] --> src/ir/mod.rs:1037:61 [INFO] [stdout] | [INFO] [stdout] 1037 | fn koopa_append(&self, program: &mut koopa_ir::Program, context: IRContext, state: &mut IRState) [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_context` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `btype` [INFO] [stdout] --> src/ir/mod.rs:1056:54 [INFO] [stdout] | [INFO] [stdout] 1056 | let symvalue = if let FuncParam::Array { btype, ident, shape } = param [INFO] [stdout] | ^^^^^ help: try ignoring the field: `btype: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ident` [INFO] [stdout] --> src/ir/mod.rs:1056:61 [INFO] [stdout] | [INFO] [stdout] 1056 | let symvalue = if let FuncParam::Array { btype, ident, shape } = param [INFO] [stdout] | ^^^^^ help: try ignoring the field: `ident: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/ir/mod.rs:1136:32 [INFO] [stdout] | [INFO] [stdout] 1136 | Exp::Call { ident, args } => Err(format!("Call function {} in const Exp", ident.name)), [INFO] [stdout] | ^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `func` is never used [INFO] [stdout] --> src/asm/mod.rs:61:12 [INFO] [stdout] | [INFO] [stdout] 52 | impl Context<'_> { [INFO] [stdout] | ---------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 61 | pub fn func(&self) -> &Function { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.10s [INFO] running `Command { std: "docker" "inspect" "140d430fc5813aa322c5e7b1aa503952bb4ea37db48635711dd916dd967c7d51", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "140d430fc5813aa322c5e7b1aa503952bb4ea37db48635711dd916dd967c7d51", kill_on_drop: false }` [INFO] [stdout] 140d430fc5813aa322c5e7b1aa503952bb4ea37db48635711dd916dd967c7d51