[INFO] cloning repository https://github.com/ebinwalter/klein [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ebinwalter/klein" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Febinwalter%2Fklein", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Febinwalter%2Fklein'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] b5eb20297fc3d1868579b671bb14c8677934caaf [INFO] testing ebinwalter/klein against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Febinwalter%2Fklein" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ebinwalter/klein [INFO] finished tweaking git repo https://github.com/ebinwalter/klein [INFO] tweaked toml for git repo https://github.com/ebinwalter/klein written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ebinwalter/klein on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ebinwalter/klein 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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded lrtable v0.13.10 [INFO] [stderr] Downloaded cfgrammar v0.13.10 [INFO] [stderr] Downloaded cactus v1.0.7 [INFO] [stderr] Downloaded sparsevec v0.2.2 [INFO] [stderr] Downloaded packedvec v1.2.5 [INFO] [stderr] Downloaded vob v3.0.4 [INFO] [stderr] Downloaded getopts v0.2.21 [INFO] [stderr] Downloaded vergen v8.3.2 [INFO] [stderr] Downloaded lrpar v0.13.10 [INFO] [stderr] Downloaded lrlex v0.13.10 [INFO] [stderr] Downloaded bincode v1.3.3 [INFO] [stderr] Downloaded num_threads v0.1.7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2fc4acead0d0e4b8185cd653d4f8edee7f7bd085b97e2777d833360056c41b23 [INFO] running `Command { std: "docker" "start" "-a" "2fc4acead0d0e4b8185cd653d4f8edee7f7bd085b97e2777d833360056c41b23", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2fc4acead0d0e4b8185cd653d4f8edee7f7bd085b97e2777d833360056c41b23", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2fc4acead0d0e4b8185cd653d4f8edee7f7bd085b97e2777d833360056c41b23", kill_on_drop: false }` [INFO] [stdout] 2fc4acead0d0e4b8185cd653d4f8edee7f7bd085b97e2777d833360056c41b23 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 8ed3f05a25b04c3b59943109104fe02a401aab14fd213cbce48f8f54dc6e6839 [INFO] running `Command { std: "docker" "start" "-a" "8ed3f05a25b04c3b59943109104fe02a401aab14fd213cbce48f8f54dc6e6839", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling libc v0.2.172 [INFO] [stderr] Compiling rustversion v1.0.20 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling powerfmt v0.2.0 [INFO] [stderr] Compiling time-core v0.1.4 [INFO] [stderr] Compiling deranged v0.4.0 [INFO] [stderr] Compiling num-conv v0.1.0 [INFO] [stderr] Compiling itoa v1.0.15 [INFO] [stderr] Compiling num_threads v0.1.7 [INFO] [stderr] Compiling memchr v2.7.4 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.101 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling vergen v8.3.2 [INFO] [stderr] Compiling time v0.3.41 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling hashbrown v0.15.3 [INFO] [stderr] Compiling indexmap v2.9.0 [INFO] [stderr] Compiling lazy_static v1.5.0 [INFO] [stderr] Compiling regex-automata v0.4.9 [INFO] [stderr] Compiling filetime v0.2.25 [INFO] [stderr] Compiling static_assertions v1.1.0 [INFO] [stderr] Compiling cactus v1.0.7 [INFO] [stderr] Compiling unicode-width v0.1.14 [INFO] [stderr] Compiling getopts v0.2.21 [INFO] [stderr] Compiling lrpar v0.13.10 [INFO] [stderr] Compiling lrlex v0.13.10 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling regex v1.11.1 [INFO] [stderr] Compiling vob v3.0.4 [INFO] [stderr] Compiling packedvec v1.2.5 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling sparsevec v0.2.2 [INFO] [stderr] Compiling cfgrammar v0.13.10 [INFO] [stderr] Compiling lrtable v0.13.10 [INFO] [stderr] Compiling kleinc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the feature `deref_patterns` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(deref_patterns, if_let_guard)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #87121 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` [INFO] [stdout] --> src/ast/contexts.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[feature(never_type)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cg` [INFO] [stdout] --> src/ast/exprs/ops.rs:16:23 [INFO] [stdout] | [INFO] [stdout] 16 | fn codegen(&self, cg: &mut Codegen, lhs_ty: &Type) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs_ty` [INFO] [stdout] --> src/ast/exprs/ops.rs:16:41 [INFO] [stdout] | [INFO] [stdout] 16 | fn codegen(&self, cg: &mut Codegen, lhs_ty: &Type) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lhs_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs_ty` [INFO] [stdout] --> src/ast/exprs/ops.rs:306:41 [INFO] [stdout] | [INFO] [stdout] 306 | fn codegen(&self, cg: &mut Codegen, lhs_ty: &Type) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lhs_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs_ty` [INFO] [stdout] --> src/ast/exprs/ops.rs:350:41 [INFO] [stdout] | [INFO] [stdout] 350 | fn codegen(&self, cg: &mut Codegen, lhs_ty: &Type) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lhs_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs_ty` [INFO] [stdout] --> src/ast/exprs/ops.rs:371:41 [INFO] [stdout] | [INFO] [stdout] 371 | fn codegen(&self, cg: &mut Codegen, lhs_ty: &Type) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lhs_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs_ty` [INFO] [stdout] --> src/ast/exprs/ops.rs:439:41 [INFO] [stdout] | [INFO] [stdout] 439 | fn codegen(&self, cg: &mut Codegen, lhs_ty: &Type) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lhs_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs_ty` [INFO] [stdout] --> src/ast/exprs/ops.rs:470:41 [INFO] [stdout] | [INFO] [stdout] 470 | fn codegen(&self, cg: &mut Codegen, lhs_ty: &Type) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lhs_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tc` [INFO] [stdout] --> src/ast/mod.rs:93:26 [INFO] [stdout] | [INFO] [stdout] 93 | fn split_decl(&self, tc: &mut TypeCache) -> Option<(Rc, Rc)> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> /opt/rustwide/target/x86_64-unknown-linux-musl/debug/build/kleinc-7b4769e72563e320/out/klein.y.rs:1281:11 [INFO] [stdout] | [INFO] [stdout] 1281 | let ((line, col), _) = __gt_lexer.line_col(span); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col` [INFO] [stdout] --> /opt/rustwide/target/x86_64-unknown-linux-musl/debug/build/kleinc-7b4769e72563e320/out/klein.y.rs:1281:17 [INFO] [stdout] | [INFO] [stdout] 1281 | let ((line, col), _) = __gt_lexer.line_col(span); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/mod.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 154 | impl Program { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 155 | pub fn new(decls: Vec) -> Rc { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/mod.rs:243:8 [INFO] [stdout] | [INFO] [stdout] 242 | impl ScopeBlock { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 243 | fn new(list: Vec) -> Rc { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/exprs.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl IntLit { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 36 | pub fn new(value: usize, line: usize, col: usize) -> Rc { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/exprs.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 77 | impl StringLit { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 78 | pub fn new(span: Span, line: usize, col: usize) -> Rc { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/exprs.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 123 | impl BoolLit { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 124 | pub fn new(value: bool, line: usize, col: usize) -> Rc { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `fun_sym` is never read [INFO] [stdout] --> src/ast/exprs.rs:336:9 [INFO] [stdout] | [INFO] [stdout] 333 | pub struct CallExpr { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 336 | pub fun_sym: OnceCell> [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/exprs.rs:736:12 [INFO] [stdout] | [INFO] [stdout] 735 | impl IndexExpr { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 736 | pub fn new(ptr: Boxpr, index: Boxpr) -> Boxpr { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/stmts.rs:266:12 [INFO] [stdout] | [INFO] [stdout] 265 | impl InputStmt { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 266 | pub fn new(loc: BoxLoc) -> Rc { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/stmts.rs:347:12 [INFO] [stdout] | [INFO] [stdout] 346 | impl OutputStmt { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 347 | pub fn new(expr: Boxpr) -> Rc { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SelfRef` is never constructed [INFO] [stdout] --> src/ast/types.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Type { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 11 | SelfRef, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Type` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `offset_stack` is never read [INFO] [stdout] --> src/ast/contexts.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 100 | pub struct NameAnalysisContext<'a> { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 104 | pub offset_stack: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `start_frame`, `end_frame`, `start_branch`, `end_branch`, and `add_offset` are never used [INFO] [stdout] --> src/ast/contexts.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 108 | impl<'a> NameAnalysisContext<'a> { [INFO] [stdout] | -------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn start_frame(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn end_frame(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn start_branch(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn end_branch(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn add_offset(&mut self, size: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `struct_sym` is never used [INFO] [stdout] --> src/symbols.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Symbol { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 16 | pub fn struct_sym(&self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `scope` is never read [INFO] [stdout] --> src/symbols.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct FuncSymbol { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 44 | pub id: String, [INFO] [stdout] 45 | pub scope: TableLayer, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `box_decl` is never used [INFO] [stdout] --> /opt/rustwide/target/x86_64-unknown-linux-musl/debug/build/kleinc-7b4769e72563e320/out/klein.y.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn box_decl(decl: T) -> BoxDecl { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `box_loc` is never used [INFO] [stdout] --> /opt/rustwide/target/x86_64-unknown-linux-musl/debug/build/kleinc-7b4769e72563e320/out/klein.y.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn box_loc(loc: T) -> BoxLoc { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_i32` is never used [INFO] [stdout] --> /opt/rustwide/target/x86_64-unknown-linux-musl/debug/build/kleinc-7b4769e72563e320/out/klein.y.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn parse_i32(s: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/mod.rs:272:21 [INFO] [stdout] | [INFO] [stdout] 272 | pub fn get_list(&self) -> std::cell::Ref> { [INFO] [stdout] | ^^^^^ ------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 272 | pub fn get_list(&self) -> std::cell::Ref<'_, Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/symbols.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | vs.global.set(true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 100 | let _ = vs.global.set(true); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/symbols.rs:102:17 [INFO] [stdout] | [INFO] [stdout] 102 | vs.global.set(false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 102 | let _ = vs.global.set(false); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1m 15s [INFO] running `Command { std: "docker" "inspect" "8ed3f05a25b04c3b59943109104fe02a401aab14fd213cbce48f8f54dc6e6839", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ed3f05a25b04c3b59943109104fe02a401aab14fd213cbce48f8f54dc6e6839", kill_on_drop: false }` [INFO] [stdout] 8ed3f05a25b04c3b59943109104fe02a401aab14fd213cbce48f8f54dc6e6839 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 274c1ce4d501bd620243638dbded1645d7198f7b36f8ffd45b127edd61809d00 [INFO] running `Command { std: "docker" "start" "-a" "274c1ce4d501bd620243638dbded1645d7198f7b36f8ffd45b127edd61809d00", kill_on_drop: false }` [INFO] [stderr] Compiling kleinc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the feature `deref_patterns` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stdout] --> src/main.rs:1:12 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(deref_patterns, if_let_guard)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: see issue #87121 for more information [INFO] [stdout] = note: `#[warn(incomplete_features)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` [INFO] [stdout] --> src/ast/contexts.rs:1:1 [INFO] [stdout] | [INFO] [stdout] 1 | #[feature(never_type)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cg` [INFO] [stdout] --> src/ast/exprs/ops.rs:16:23 [INFO] [stdout] | [INFO] [stdout] 16 | fn codegen(&self, cg: &mut Codegen, lhs_ty: &Type) { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_cg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs_ty` [INFO] [stdout] --> src/ast/exprs/ops.rs:16:41 [INFO] [stdout] | [INFO] [stdout] 16 | fn codegen(&self, cg: &mut Codegen, lhs_ty: &Type) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lhs_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs_ty` [INFO] [stdout] --> src/ast/exprs/ops.rs:306:41 [INFO] [stdout] | [INFO] [stdout] 306 | fn codegen(&self, cg: &mut Codegen, lhs_ty: &Type) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lhs_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs_ty` [INFO] [stdout] --> src/ast/exprs/ops.rs:350:41 [INFO] [stdout] | [INFO] [stdout] 350 | fn codegen(&self, cg: &mut Codegen, lhs_ty: &Type) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lhs_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs_ty` [INFO] [stdout] --> src/ast/exprs/ops.rs:371:41 [INFO] [stdout] | [INFO] [stdout] 371 | fn codegen(&self, cg: &mut Codegen, lhs_ty: &Type) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lhs_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs_ty` [INFO] [stdout] --> src/ast/exprs/ops.rs:439:41 [INFO] [stdout] | [INFO] [stdout] 439 | fn codegen(&self, cg: &mut Codegen, lhs_ty: &Type) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lhs_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs_ty` [INFO] [stdout] --> src/ast/exprs/ops.rs:470:41 [INFO] [stdout] | [INFO] [stdout] 470 | fn codegen(&self, cg: &mut Codegen, lhs_ty: &Type) { [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lhs_ty` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `tc` [INFO] [stdout] --> src/ast/mod.rs:93:26 [INFO] [stdout] | [INFO] [stdout] 93 | fn split_decl(&self, tc: &mut TypeCache) -> Option<(Rc, Rc)> { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_tc` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `line` [INFO] [stdout] --> /opt/rustwide/target/x86_64-unknown-linux-musl/debug/build/kleinc-7b4769e72563e320/out/klein.y.rs:1281:11 [INFO] [stdout] | [INFO] [stdout] 1281 | let ((line, col), _) = __gt_lexer.line_col(span); [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `col` [INFO] [stdout] --> /opt/rustwide/target/x86_64-unknown-linux-musl/debug/build/kleinc-7b4769e72563e320/out/klein.y.rs:1281:17 [INFO] [stdout] | [INFO] [stdout] 1281 | let ((line, col), _) = __gt_lexer.line_col(span); [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_col` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/mod.rs:155:12 [INFO] [stdout] | [INFO] [stdout] 154 | impl Program { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 155 | pub fn new(decls: Vec) -> Rc { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/mod.rs:243:8 [INFO] [stdout] | [INFO] [stdout] 242 | impl ScopeBlock { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 243 | fn new(list: Vec) -> Rc { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/exprs.rs:36:12 [INFO] [stdout] | [INFO] [stdout] 35 | impl IntLit { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 36 | pub fn new(value: usize, line: usize, col: usize) -> Rc { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/exprs.rs:78:12 [INFO] [stdout] | [INFO] [stdout] 77 | impl StringLit { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 78 | pub fn new(span: Span, line: usize, col: usize) -> Rc { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/exprs.rs:124:12 [INFO] [stdout] | [INFO] [stdout] 123 | impl BoolLit { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 124 | pub fn new(value: bool, line: usize, col: usize) -> Rc { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `fun_sym` is never read [INFO] [stdout] --> src/ast/exprs.rs:336:9 [INFO] [stdout] | [INFO] [stdout] 333 | pub struct CallExpr { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 336 | pub fun_sym: OnceCell> [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/exprs.rs:736:12 [INFO] [stdout] | [INFO] [stdout] 735 | impl IndexExpr { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 736 | pub fn new(ptr: Boxpr, index: Boxpr) -> Boxpr { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/stmts.rs:266:12 [INFO] [stdout] | [INFO] [stdout] 265 | impl InputStmt { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 266 | pub fn new(loc: BoxLoc) -> Rc { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/ast/stmts.rs:347:12 [INFO] [stdout] | [INFO] [stdout] 346 | impl OutputStmt { [INFO] [stdout] | --------------- associated function in this implementation [INFO] [stdout] 347 | pub fn new(expr: Boxpr) -> Rc { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SelfRef` is never constructed [INFO] [stdout] --> src/ast/types.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Type { [INFO] [stdout] | ---- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 11 | SelfRef, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Type` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `offset_stack` is never read [INFO] [stdout] --> src/ast/contexts.rs:104:9 [INFO] [stdout] | [INFO] [stdout] 100 | pub struct NameAnalysisContext<'a> { [INFO] [stdout] | ------------------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 104 | pub offset_stack: Vec, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `start_frame`, `end_frame`, `start_branch`, `end_branch`, and `add_offset` are never used [INFO] [stdout] --> src/ast/contexts.rs:114:12 [INFO] [stdout] | [INFO] [stdout] 108 | impl<'a> NameAnalysisContext<'a> { [INFO] [stdout] | -------------------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 114 | pub fn start_frame(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 117 | pub fn end_frame(&mut self) { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 120 | pub fn start_branch(&mut self) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 123 | pub fn end_branch(&mut self) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 126 | pub fn add_offset(&mut self, size: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `struct_sym` is never used [INFO] [stdout] --> src/symbols.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Symbol { [INFO] [stdout] | ----------- method in this implementation [INFO] [stdout] 16 | pub fn struct_sym(&self) -> Option> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `scope` is never read [INFO] [stdout] --> src/symbols.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 43 | pub struct FuncSymbol { [INFO] [stdout] | ---------- field in this struct [INFO] [stdout] 44 | pub id: String, [INFO] [stdout] 45 | pub scope: TableLayer, [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `box_decl` is never used [INFO] [stdout] --> /opt/rustwide/target/x86_64-unknown-linux-musl/debug/build/kleinc-7b4769e72563e320/out/klein.y.rs:22:4 [INFO] [stdout] | [INFO] [stdout] 22 | fn box_decl(decl: T) -> BoxDecl { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `box_loc` is never used [INFO] [stdout] --> /opt/rustwide/target/x86_64-unknown-linux-musl/debug/build/kleinc-7b4769e72563e320/out/klein.y.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn box_loc(loc: T) -> BoxLoc { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_i32` is never used [INFO] [stdout] --> /opt/rustwide/target/x86_64-unknown-linux-musl/debug/build/kleinc-7b4769e72563e320/out/klein.y.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn parse_i32(s: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/ast/mod.rs:272:21 [INFO] [stdout] | [INFO] [stdout] 272 | pub fn get_list(&self) -> std::cell::Ref> { [INFO] [stdout] | ^^^^^ ------------------------------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 272 | pub fn get_list(&self) -> std::cell::Ref<'_, Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/symbols.rs:100:17 [INFO] [stdout] | [INFO] [stdout] 100 | vs.global.set(true); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 100 | let _ = vs.global.set(true); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/symbols.rs:102:17 [INFO] [stdout] | [INFO] [stdout] 102 | vs.global.set(false); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 102 | let _ = vs.global.set(false); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.91s [INFO] running `Command { std: "docker" "inspect" "274c1ce4d501bd620243638dbded1645d7198f7b36f8ffd45b127edd61809d00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "274c1ce4d501bd620243638dbded1645d7198f7b36f8ffd45b127edd61809d00", kill_on_drop: false }` [INFO] [stdout] 274c1ce4d501bd620243638dbded1645d7198f7b36f8ffd45b127edd61809d00 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 0ff4c5b48cdf12924219d54a1b54645e41e01ceff8d5348323dd04f9d66a43ea [INFO] running `Command { std: "docker" "start" "-a" "0ff4c5b48cdf12924219d54a1b54645e41e01ceff8d5348323dd04f9d66a43ea", kill_on_drop: false }` [INFO] [stderr] warning: the feature `deref_patterns` is incomplete and may not be safe to use and/or cause compiler crashes [INFO] [stderr] --> src/main.rs:1:12 [INFO] [stderr] | [INFO] [stderr] 1 | #![feature(deref_patterns, if_let_guard)] [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: see issue #87121 for more information [INFO] [stderr] = note: `#[warn(incomplete_features)]` on by default [INFO] [stderr] [INFO] [stderr] warning: crate-level attribute should be an inner attribute: add an exclamation mark: `#![foo]` [INFO] [stderr] --> src/ast/contexts.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | #[feature(never_type)] [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_attributes)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `cg` [INFO] [stderr] --> src/ast/exprs/ops.rs:16:23 [INFO] [stderr] | [INFO] [stderr] 16 | fn codegen(&self, cg: &mut Codegen, lhs_ty: &Type) { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_cg` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `lhs_ty` [INFO] [stderr] --> src/ast/exprs/ops.rs:16:41 [INFO] [stderr] | [INFO] [stderr] 16 | fn codegen(&self, cg: &mut Codegen, lhs_ty: &Type) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lhs_ty` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `lhs_ty` [INFO] [stderr] --> src/ast/exprs/ops.rs:306:41 [INFO] [stderr] | [INFO] [stderr] 306 | fn codegen(&self, cg: &mut Codegen, lhs_ty: &Type) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lhs_ty` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `lhs_ty` [INFO] [stderr] --> src/ast/exprs/ops.rs:350:41 [INFO] [stderr] | [INFO] [stderr] 350 | fn codegen(&self, cg: &mut Codegen, lhs_ty: &Type) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lhs_ty` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `lhs_ty` [INFO] [stderr] --> src/ast/exprs/ops.rs:371:41 [INFO] [stderr] | [INFO] [stderr] 371 | fn codegen(&self, cg: &mut Codegen, lhs_ty: &Type) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lhs_ty` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `lhs_ty` [INFO] [stderr] --> src/ast/exprs/ops.rs:439:41 [INFO] [stderr] | [INFO] [stderr] 439 | fn codegen(&self, cg: &mut Codegen, lhs_ty: &Type) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lhs_ty` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `lhs_ty` [INFO] [stderr] --> src/ast/exprs/ops.rs:470:41 [INFO] [stderr] | [INFO] [stderr] 470 | fn codegen(&self, cg: &mut Codegen, lhs_ty: &Type) { [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_lhs_ty` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `tc` [INFO] [stderr] --> src/ast/mod.rs:93:26 [INFO] [stderr] | [INFO] [stderr] 93 | fn split_decl(&self, tc: &mut TypeCache) -> Option<(Rc, Rc)> { [INFO] [stderr] | ^^ help: if this is intentional, prefix it with an underscore: `_tc` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `line` [INFO] [stderr] --> /opt/rustwide/target/x86_64-unknown-linux-musl/debug/build/kleinc-7b4769e72563e320/out/klein.y.rs:1281:11 [INFO] [stderr] | [INFO] [stderr] 1281 | let ((line, col), _) = __gt_lexer.line_col(span); [INFO] [stderr] | ^^^^ help: if this is intentional, prefix it with an underscore: `_line` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `col` [INFO] [stderr] --> /opt/rustwide/target/x86_64-unknown-linux-musl/debug/build/kleinc-7b4769e72563e320/out/klein.y.rs:1281:17 [INFO] [stderr] | [INFO] [stderr] 1281 | let ((line, col), _) = __gt_lexer.line_col(span); [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_col` [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/ast/mod.rs:155:12 [INFO] [stderr] | [INFO] [stderr] 154 | impl Program { [INFO] [stderr] | ------------ associated function in this implementation [INFO] [stderr] 155 | pub fn new(decls: Vec) -> Rc { [INFO] [stderr] | ^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/ast/mod.rs:243:8 [INFO] [stderr] | [INFO] [stderr] 242 | impl ScopeBlock { [INFO] [stderr] | --------------- associated function in this implementation [INFO] [stderr] 243 | fn new(list: Vec) -> Rc { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/ast/exprs.rs:36:12 [INFO] [stderr] | [INFO] [stderr] 35 | impl IntLit { [INFO] [stderr] | ----------- associated function in this implementation [INFO] [stderr] 36 | pub fn new(value: usize, line: usize, col: usize) -> Rc { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/ast/exprs.rs:78:12 [INFO] [stderr] | [INFO] [stderr] 77 | impl StringLit { [INFO] [stderr] | -------------- associated function in this implementation [INFO] [stderr] 78 | pub fn new(span: Span, line: usize, col: usize) -> Rc { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/ast/exprs.rs:124:12 [INFO] [stderr] | [INFO] [stderr] 123 | impl BoolLit { [INFO] [stderr] | ------------ associated function in this implementation [INFO] [stderr] 124 | pub fn new(value: bool, line: usize, col: usize) -> Rc { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: field `fun_sym` is never read [INFO] [stderr] --> src/ast/exprs.rs:336:9 [INFO] [stderr] | [INFO] [stderr] 333 | pub struct CallExpr { [INFO] [stderr] | -------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 336 | pub fun_sym: OnceCell> [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/ast/exprs.rs:736:12 [INFO] [stderr] | [INFO] [stderr] 735 | impl IndexExpr { [INFO] [stderr] | -------------- associated function in this implementation [INFO] [stderr] 736 | pub fn new(ptr: Boxpr, index: Boxpr) -> Boxpr { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/ast/stmts.rs:266:12 [INFO] [stderr] | [INFO] [stderr] 265 | impl InputStmt { [INFO] [stderr] | -------------- associated function in this implementation [INFO] [stderr] 266 | pub fn new(loc: BoxLoc) -> Rc { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: associated function `new` is never used [INFO] [stderr] --> src/ast/stmts.rs:347:12 [INFO] [stderr] | [INFO] [stderr] 346 | impl OutputStmt { [INFO] [stderr] | --------------- associated function in this implementation [INFO] [stderr] 347 | pub fn new(expr: Boxpr) -> Rc { [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: variant `SelfRef` is never constructed [INFO] [stderr] --> src/ast/types.rs:11:5 [INFO] [stderr] | [INFO] [stderr] 4 | pub enum Type { [INFO] [stderr] | ---- variant in this enum [INFO] [stderr] ... [INFO] [stderr] 11 | SelfRef, [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `Type` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stderr] [INFO] [stderr] warning: field `offset_stack` is never read [INFO] [stderr] --> src/ast/contexts.rs:104:9 [INFO] [stderr] | [INFO] [stderr] 100 | pub struct NameAnalysisContext<'a> { [INFO] [stderr] | ------------------- field in this struct [INFO] [stderr] ... [INFO] [stderr] 104 | pub offset_stack: Vec, [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: methods `start_frame`, `end_frame`, `start_branch`, `end_branch`, and `add_offset` are never used [INFO] [stderr] --> src/ast/contexts.rs:114:12 [INFO] [stderr] | [INFO] [stderr] 108 | impl<'a> NameAnalysisContext<'a> { [INFO] [stderr] | -------------------------------- methods in this implementation [INFO] [stderr] ... [INFO] [stderr] 114 | pub fn start_frame(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 117 | pub fn end_frame(&mut self) { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 120 | pub fn start_branch(&mut self) { [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 123 | pub fn end_branch(&mut self) { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] ... [INFO] [stderr] 126 | pub fn add_offset(&mut self, size: u32) -> u32 { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method `struct_sym` is never used [INFO] [stderr] --> src/symbols.rs:16:12 [INFO] [stderr] | [INFO] [stderr] 15 | impl Symbol { [INFO] [stderr] | ----------- method in this implementation [INFO] [stderr] 16 | pub fn struct_sym(&self) -> Option> { [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: field `scope` is never read [INFO] [stderr] --> src/symbols.rs:45:9 [INFO] [stderr] | [INFO] [stderr] 43 | pub struct FuncSymbol { [INFO] [stderr] | ---------- field in this struct [INFO] [stderr] 44 | pub id: String, [INFO] [stderr] 45 | pub scope: TableLayer, [INFO] [stderr] | ^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `box_decl` is never used [INFO] [stderr] --> /opt/rustwide/target/x86_64-unknown-linux-musl/debug/build/kleinc-7b4769e72563e320/out/klein.y.rs:22:4 [INFO] [stderr] | [INFO] [stderr] 22 | fn box_decl(decl: T) -> BoxDecl { [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `box_loc` is never used [INFO] [stderr] --> /opt/rustwide/target/x86_64-unknown-linux-musl/debug/build/kleinc-7b4769e72563e320/out/klein.y.rs:32:4 [INFO] [stderr] | [INFO] [stderr] 32 | fn box_loc(loc: T) -> BoxLoc { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function `parse_i32` is never used [INFO] [stderr] --> /opt/rustwide/target/x86_64-unknown-linux-musl/debug/build/kleinc-7b4769e72563e320/out/klein.y.rs:36:4 [INFO] [stderr] | [INFO] [stderr] 36 | fn parse_i32(s: &str) -> Result { [INFO] [stderr] | ^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stderr] --> src/ast/mod.rs:272:21 [INFO] [stderr] | [INFO] [stderr] 272 | pub fn get_list(&self) -> std::cell::Ref> { [INFO] [stderr] | ^^^^^ ------------------------------- the lifetime gets resolved as `'_` [INFO] [stderr] | | [INFO] [stderr] | this lifetime flows to the output [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stderr] | [INFO] [stderr] 272 | pub fn get_list(&self) -> std::cell::Ref<'_, Vec> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/symbols.rs:100:17 [INFO] [stderr] | [INFO] [stderr] 100 | vs.global.set(true); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 100 | let _ = vs.global.set(true); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/symbols.rs:102:17 [INFO] [stderr] | [INFO] [stderr] 102 | vs.global.set(false); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 102 | let _ = vs.global.set(false); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `kleinc` (bin "kleinc" test) generated 32 warnings (run `cargo fix --bin "kleinc" --tests` to apply 1 suggestion) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.11s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/kleinc-ed00e8e89e3dd54e) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test ast::contexts::aligner_test ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 1 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "0ff4c5b48cdf12924219d54a1b54645e41e01ceff8d5348323dd04f9d66a43ea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0ff4c5b48cdf12924219d54a1b54645e41e01ceff8d5348323dd04f9d66a43ea", kill_on_drop: false }` [INFO] [stdout] 0ff4c5b48cdf12924219d54a1b54645e41e01ceff8d5348323dd04f9d66a43ea