[INFO] cloning repository https://github.com/BraedonWooding/CVM [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/BraedonWooding/CVM" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBraedonWooding%2FCVM", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBraedonWooding%2FCVM'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0e56aca584335420d8f22a7eddd54c23fa94316d [INFO] checking BraedonWooding/CVM against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBraedonWooding%2FCVM" "/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/BraedonWooding/CVM on toolchain 385fa9d845dd326c6bbfd58c22244215e431948a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/BraedonWooding/CVM [INFO] finished tweaking git repo https://github.com/BraedonWooding/CVM [INFO] tweaked toml for git repo https://github.com/BraedonWooding/CVM written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/BraedonWooding/CVM 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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded termion v1.5.4 [INFO] [stderr] Downloaded simple_logger v1.3.0 [INFO] [stderr] Downloaded tui v0.7.0 [INFO] [stderr] Downloaded enum-as-inner v0.3.0 [INFO] [stderr] Downloaded impls v1.0.3 [INFO] [stderr] Downloaded atomic-counter v1.0.1 [INFO] [stderr] Downloaded num-rational v0.2.3 [INFO] [stderr] Downloaded colored v1.9.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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] a4df62a115c0945e23ce51438cefa16c2dab4fb7ea24fb16c17b784947f5ca13 [INFO] running `Command { std: "docker" "start" "-a" "a4df62a115c0945e23ce51438cefa16c2dab4fb7ea24fb16c17b784947f5ca13", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "a4df62a115c0945e23ce51438cefa16c2dab4fb7ea24fb16c17b784947f5ca13", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a4df62a115c0945e23ce51438cefa16c2dab4fb7ea24fb16c17b784947f5ca13", kill_on_drop: false }` [INFO] [stdout] a4df62a115c0945e23ce51438cefa16c2dab4fb7ea24fb16c17b784947f5ca13 [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" "+385fa9d845dd326c6bbfd58c22244215e431948a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 96238c1d4fe377ec23ebd5079d6a2b7d088fd7997639ebce506b599b5070a541 [INFO] running `Command { std: "docker" "start" "-a" "96238c1d4fe377ec23ebd5079d6a2b7d088fd7997639ebce506b599b5070a541", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Compiling proc-macro2 v1.0.6 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.11 [INFO] [stderr] Checking unicode-width v0.1.6 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking itertools v0.8.2 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-rational v0.2.3 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Checking cassowary v0.3.0 [INFO] [stderr] Checking atty v0.2.13 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking colored v1.9.0 [INFO] [stderr] Checking termion v1.5.4 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Checking impls v1.0.3 [INFO] [stderr] Checking atomic-counter v1.0.1 [INFO] [stderr] Checking tui v0.7.0 [INFO] [stderr] Checking chrono v0.4.10 [INFO] [stderr] Checking simple_logger v1.3.0 [INFO] [stderr] Checking num v0.2.1 [INFO] [stderr] Compiling enum-as-inner v0.3.0 [INFO] [stderr] Checking cvm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ast::*` [INFO] [stdout] --> src/c_transpiler.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ast::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Postfix` is imported redundantly [INFO] [stdout] --> src/compiler/ast.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::*; [INFO] [stdout] | -------- the item `Postfix` is already imported here [INFO] [stdout] 11 | use compiler::*; [INFO] [stdout] 12 | use lexer::{Postfix, Token, TokenKind}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Token` is imported redundantly [INFO] [stdout] --> src/compiler/ast.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::*; [INFO] [stdout] | -------- the item `Token` is already imported here [INFO] [stdout] 11 | use compiler::*; [INFO] [stdout] 12 | use lexer::{Postfix, Token, TokenKind}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TokenKind` is imported redundantly [INFO] [stdout] --> src/compiler/ast.rs:12:29 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::*; [INFO] [stdout] | -------- the item `TokenKind` is already imported here [INFO] [stdout] 11 | use compiler::*; [INFO] [stdout] 12 | use lexer::{Postfix, Token, TokenKind}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HashMap` is imported redundantly [INFO] [stdout] --> src/compiler/ast.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 11 | use compiler::*; [INFO] [stdout] | ----------- the item `HashMap` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast::*` [INFO] [stdout] --> src/compiler/parser.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ast::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HashMap` is imported redundantly [INFO] [stdout] --> src/compiler/parser.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 4 | use compiler::*; [INFO] [stdout] | ----------- the item `HashMap` is already imported here [INFO] [stdout] ... [INFO] [stdout] 10 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HashMap` is imported redundantly [INFO] [stdout] --> src/compiler/scope.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::compiler::*; [INFO] [stdout] | ------------------ the item `HashMap` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast::*` [INFO] [stdout] --> src/compiler/type_check.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ast::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HashMap` is imported redundantly [INFO] [stdout] --> src/compiler/type_check.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 3 | use compiler::*; [INFO] [stdout] | ----------- the item `HashMap` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> src/compiler/type_check.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use log::{info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast::*` [INFO] [stdout] --> src/compiler/type_infer.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ast::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `info`, `trace` [INFO] [stdout] --> src/logger.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{info, trace, warn}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::compiler::ast::*` [INFO] [stdout] --> src/logger.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::compiler::ast::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::compiler::parser::*` [INFO] [stdout] --> src/logger.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::compiler::parser::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast::*` [INFO] [stdout] --> src/c_transpiler.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ast::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Postfix` is imported redundantly [INFO] [stdout] --> src/compiler/ast.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::*; [INFO] [stdout] | -------- the item `Postfix` is already imported here [INFO] [stdout] 11 | use compiler::*; [INFO] [stdout] 12 | use lexer::{Postfix, Token, TokenKind}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Token` is imported redundantly [INFO] [stdout] --> src/compiler/ast.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::*; [INFO] [stdout] | -------- the item `Token` is already imported here [INFO] [stdout] 11 | use compiler::*; [INFO] [stdout] 12 | use lexer::{Postfix, Token, TokenKind}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TokenKind` is imported redundantly [INFO] [stdout] --> src/compiler/ast.rs:12:29 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::*; [INFO] [stdout] | -------- the item `TokenKind` is already imported here [INFO] [stdout] 11 | use compiler::*; [INFO] [stdout] 12 | use lexer::{Postfix, Token, TokenKind}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HashMap` is imported redundantly [INFO] [stdout] --> src/compiler/ast.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 11 | use compiler::*; [INFO] [stdout] | ----------- the item `HashMap` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast::*` [INFO] [stdout] --> src/compiler/parser.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ast::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HashMap` is imported redundantly [INFO] [stdout] --> src/compiler/parser.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 4 | use compiler::*; [INFO] [stdout] | ----------- the item `HashMap` is already imported here [INFO] [stdout] ... [INFO] [stdout] 10 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HashMap` is imported redundantly [INFO] [stdout] --> src/compiler/scope.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::compiler::*; [INFO] [stdout] | ------------------ the item `HashMap` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast::*` [INFO] [stdout] --> src/compiler/type_check.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ast::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HashMap` is imported redundantly [INFO] [stdout] --> src/compiler/type_check.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 3 | use compiler::*; [INFO] [stdout] | ----------- the item `HashMap` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> src/compiler/type_check.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use log::{info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast::*` [INFO] [stdout] --> src/compiler/type_infer.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ast::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `info`, `trace` [INFO] [stdout] --> src/logger.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{info, trace, warn}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::compiler::ast::*` [INFO] [stdout] --> src/logger.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::compiler::ast::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::compiler::parser::*` [INFO] [stdout] --> src/logger.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::compiler::parser::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `init` [INFO] [stdout] --> src/compiler/type_check.rs:354:48 [INFO] [stdout] | [INFO] [stdout] 354 | ExprKind::Init(ref mut ty, ref mut init) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_init` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> src/compiler/type_check.rs:481:17 [INFO] [stdout] | [INFO] [stdout] 481 | ref mut cond, [INFO] [stdout] | ^^^^^^^^^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `if_true` [INFO] [stdout] --> src/compiler/type_check.rs:482:17 [INFO] [stdout] | [INFO] [stdout] 482 | ref mut if_true, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try ignoring the field: `if_true: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `if_false` [INFO] [stdout] --> src/compiler/type_check.rs:483:17 [INFO] [stdout] | [INFO] [stdout] 483 | ref mut if_false, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try ignoring the field: `if_false: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/compiler/type_infer.rs:132:44 [INFO] [stdout] | [INFO] [stdout] 132 | ExprKind::Member(ref mut expr, id) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/compiler/type_infer.rs:142:35 [INFO] [stdout] | [INFO] [stdout] 142 | ExprKind::GenFuncCall(id, gen_args, args) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gen_args` [INFO] [stdout] --> src/compiler/type_infer.rs:142:39 [INFO] [stdout] | [INFO] [stdout] 142 | ExprKind::GenFuncCall(id, gen_args, args) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gen_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/compiler/type_infer.rs:262:17 [INFO] [stdout] | [INFO] [stdout] 262 | ref mut args, [INFO] [stdout] | ^^^^^^^^^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/compiler/type_infer.rs:263:17 [INFO] [stdout] | [INFO] [stdout] 263 | ref mut block, [INFO] [stdout] | ^^^^^^^^^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/compiler/type_infer.rs:80:21 [INFO] [stdout] | [INFO] [stdout] 80 | std::mem::replace(&mut *cpy.borrow_mut(), decl.decl_type.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 80 | let _ = std::mem::replace(&mut *cpy.borrow_mut(), decl.decl_type.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `test_sets` should have an upper case name [INFO] [stdout] --> tests/misc_tests.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const test_sets: &'static [&'static str] = &[ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `TEST_SETS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cvm_lib::compiler::ast::*` [INFO] [stdout] --> tests/unification_tests.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use cvm_lib::compiler::ast::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cvm_lib::compiler::scope::*` [INFO] [stdout] --> tests/unification_tests.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use cvm_lib::compiler::scope::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> tests/unification_tests.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `init` [INFO] [stdout] --> src/compiler/type_check.rs:354:48 [INFO] [stdout] | [INFO] [stdout] 354 | ExprKind::Init(ref mut ty, ref mut init) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_init` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> src/compiler/type_check.rs:481:17 [INFO] [stdout] | [INFO] [stdout] 481 | ref mut cond, [INFO] [stdout] | ^^^^^^^^^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `if_true` [INFO] [stdout] --> src/compiler/type_check.rs:482:17 [INFO] [stdout] | [INFO] [stdout] 482 | ref mut if_true, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try ignoring the field: `if_true: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `if_false` [INFO] [stdout] --> src/compiler/type_check.rs:483:17 [INFO] [stdout] | [INFO] [stdout] 483 | ref mut if_false, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try ignoring the field: `if_false: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/compiler/type_infer.rs:132:44 [INFO] [stdout] | [INFO] [stdout] 132 | ExprKind::Member(ref mut expr, id) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/compiler/type_infer.rs:142:35 [INFO] [stdout] | [INFO] [stdout] 142 | ExprKind::GenFuncCall(id, gen_args, args) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gen_args` [INFO] [stdout] --> src/compiler/type_infer.rs:142:39 [INFO] [stdout] | [INFO] [stdout] 142 | ExprKind::GenFuncCall(id, gen_args, args) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gen_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/compiler/type_infer.rs:262:17 [INFO] [stdout] | [INFO] [stdout] 262 | ref mut args, [INFO] [stdout] | ^^^^^^^^^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/compiler/type_infer.rs:263:17 [INFO] [stdout] | [INFO] [stdout] 263 | ref mut block, [INFO] [stdout] | ^^^^^^^^^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/compiler/type_infer.rs:80:21 [INFO] [stdout] | [INFO] [stdout] 80 | std::mem::replace(&mut *cpy.borrow_mut(), decl.decl_type.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 80 | let _ = std::mem::replace(&mut *cpy.borrow_mut(), decl.decl_type.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 17.71s [INFO] running `Command { std: "docker" "inspect" "96238c1d4fe377ec23ebd5079d6a2b7d088fd7997639ebce506b599b5070a541", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "96238c1d4fe377ec23ebd5079d6a2b7d088fd7997639ebce506b599b5070a541", kill_on_drop: false }` [INFO] [stdout] 96238c1d4fe377ec23ebd5079d6a2b7d088fd7997639ebce506b599b5070a541 [INFO] checking BraedonWooding/CVM against try#645bb72776a6a56a1a8f52631a44bd082b2ba509 for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FBraedonWooding%2FCVM" "/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/BraedonWooding/CVM on toolchain 645bb72776a6a56a1a8f52631a44bd082b2ba509 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/BraedonWooding/CVM [INFO] finished tweaking git repo https://github.com/BraedonWooding/CVM [INFO] tweaked toml for git repo https://github.com/BraedonWooding/CVM written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/BraedonWooding/CVM 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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] befc5c6db5262b1be9aacb3b161d9f675abbe7c727ade78e70fae78e7cd2460a [INFO] running `Command { std: "docker" "start" "-a" "befc5c6db5262b1be9aacb3b161d9f675abbe7c727ade78e70fae78e7cd2460a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "befc5c6db5262b1be9aacb3b161d9f675abbe7c727ade78e70fae78e7cd2460a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "befc5c6db5262b1be9aacb3b161d9f675abbe7c727ade78e70fae78e7cd2460a", kill_on_drop: false }` [INFO] [stdout] befc5c6db5262b1be9aacb3b161d9f675abbe7c727ade78e70fae78e7cd2460a [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" "-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" "+645bb72776a6a56a1a8f52631a44bd082b2ba509" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 08b8129ac0314e4ae4aff0aec7ea6a747e72d707ea42748ed7f906b5aaec4913 [INFO] running `Command { std: "docker" "start" "-a" "08b8129ac0314e4ae4aff0aec7ea6a747e72d707ea42748ed7f906b5aaec4913", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Compiling proc-macro2 v1.0.6 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling syn v1.0.11 [INFO] [stderr] Checking unicode-width v0.1.6 [INFO] [stderr] Compiling unicode-segmentation v1.6.0 [INFO] [stderr] Checking textwrap v0.11.0 [INFO] [stderr] Checking itertools v0.8.2 [INFO] [stderr] Checking vec_map v0.8.1 [INFO] [stderr] Checking cassowary v0.3.0 [INFO] [stderr] Compiling num-traits v0.2.11 [INFO] [stderr] Compiling num-integer v0.1.42 [INFO] [stderr] Compiling num-bigint v0.2.6 [INFO] [stderr] Compiling num-rational v0.2.3 [INFO] [stderr] Compiling num-complex v0.2.4 [INFO] [stderr] Compiling num-iter v0.1.40 [INFO] [stderr] Compiling heck v0.3.1 [INFO] [stderr] Checking ansi_term v0.11.0 [INFO] [stderr] Checking impls v1.0.3 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking atomic-counter v1.0.1 [INFO] [stderr] Checking atty v0.2.13 [INFO] [stderr] Checking time v0.1.42 [INFO] [stderr] Checking termion v1.5.4 [INFO] [stderr] Checking colored v1.9.0 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Checking tui v0.7.0 [INFO] [stderr] Checking chrono v0.4.10 [INFO] [stderr] Checking simple_logger v1.3.0 [INFO] [stderr] Checking num v0.2.1 [INFO] [stderr] Compiling enum-as-inner v0.3.0 [INFO] [stderr] Checking cvm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `ast::*` [INFO] [stdout] --> src/c_transpiler.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ast::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Postfix` is imported redundantly [INFO] [stdout] --> src/compiler/ast.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::*; [INFO] [stdout] | -------- the item `Postfix` is already imported here [INFO] [stdout] 11 | use compiler::*; [INFO] [stdout] 12 | use lexer::{Postfix, Token, TokenKind}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Token` is imported redundantly [INFO] [stdout] --> src/compiler/ast.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::*; [INFO] [stdout] | -------- the item `Token` is already imported here [INFO] [stdout] 11 | use compiler::*; [INFO] [stdout] 12 | use lexer::{Postfix, Token, TokenKind}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TokenKind` is imported redundantly [INFO] [stdout] --> src/compiler/ast.rs:12:29 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::*; [INFO] [stdout] | -------- the item `TokenKind` is already imported here [INFO] [stdout] 11 | use compiler::*; [INFO] [stdout] 12 | use lexer::{Postfix, Token, TokenKind}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HashMap` is imported redundantly [INFO] [stdout] --> src/compiler/ast.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 11 | use compiler::*; [INFO] [stdout] | ----------- the item `HashMap` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast::*` [INFO] [stdout] --> src/compiler/parser.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ast::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HashMap` is imported redundantly [INFO] [stdout] --> src/compiler/parser.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 4 | use compiler::*; [INFO] [stdout] | ----------- the item `HashMap` is already imported here [INFO] [stdout] ... [INFO] [stdout] 10 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HashMap` is imported redundantly [INFO] [stdout] --> src/compiler/scope.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::compiler::*; [INFO] [stdout] | ------------------ the item `HashMap` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast::*` [INFO] [stdout] --> src/compiler/type_check.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ast::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HashMap` is imported redundantly [INFO] [stdout] --> src/compiler/type_check.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 3 | use compiler::*; [INFO] [stdout] | ----------- the item `HashMap` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> src/compiler/type_check.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use log::{info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast::*` [INFO] [stdout] --> src/compiler/type_infer.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ast::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `info`, `trace` [INFO] [stdout] --> src/logger.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{info, trace, warn}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::compiler::ast::*` [INFO] [stdout] --> src/logger.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::compiler::ast::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::compiler::parser::*` [INFO] [stdout] --> src/logger.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::compiler::parser::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast::*` [INFO] [stdout] --> src/c_transpiler.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ast::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Postfix` is imported redundantly [INFO] [stdout] --> src/compiler/ast.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::*; [INFO] [stdout] | -------- the item `Postfix` is already imported here [INFO] [stdout] 11 | use compiler::*; [INFO] [stdout] 12 | use lexer::{Postfix, Token, TokenKind}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Token` is imported redundantly [INFO] [stdout] --> src/compiler/ast.rs:12:22 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::*; [INFO] [stdout] | -------- the item `Token` is already imported here [INFO] [stdout] 11 | use compiler::*; [INFO] [stdout] 12 | use lexer::{Postfix, Token, TokenKind}; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `TokenKind` is imported redundantly [INFO] [stdout] --> src/compiler/ast.rs:12:29 [INFO] [stdout] | [INFO] [stdout] 10 | use crate::*; [INFO] [stdout] | -------- the item `TokenKind` is already imported here [INFO] [stdout] 11 | use compiler::*; [INFO] [stdout] 12 | use lexer::{Postfix, Token, TokenKind}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HashMap` is imported redundantly [INFO] [stdout] --> src/compiler/ast.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 11 | use compiler::*; [INFO] [stdout] | ----------- the item `HashMap` is already imported here [INFO] [stdout] ... [INFO] [stdout] 15 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast::*` [INFO] [stdout] --> src/compiler/parser.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ast::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HashMap` is imported redundantly [INFO] [stdout] --> src/compiler/parser.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 4 | use compiler::*; [INFO] [stdout] | ----------- the item `HashMap` is already imported here [INFO] [stdout] ... [INFO] [stdout] 10 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HashMap` is imported redundantly [INFO] [stdout] --> src/compiler/scope.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::compiler::*; [INFO] [stdout] | ------------------ the item `HashMap` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast::*` [INFO] [stdout] --> src/compiler/type_check.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use ast::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HashMap` is imported redundantly [INFO] [stdout] --> src/compiler/type_check.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 3 | use compiler::*; [INFO] [stdout] | ----------- the item `HashMap` is already imported here [INFO] [stdout] ... [INFO] [stdout] 6 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `info` [INFO] [stdout] --> src/compiler/type_check.rs:9:11 [INFO] [stdout] | [INFO] [stdout] 9 | use log::{info, warn}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ast::*` [INFO] [stdout] --> src/compiler/type_infer.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use ast::*; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `info`, `trace` [INFO] [stdout] --> src/logger.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use log::{info, trace, warn}; [INFO] [stdout] | ^^^^ ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::compiler::ast::*` [INFO] [stdout] --> src/logger.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::compiler::ast::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::compiler::parser::*` [INFO] [stdout] --> src/logger.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::compiler::parser::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `init` [INFO] [stdout] --> src/compiler/type_check.rs:354:48 [INFO] [stdout] | [INFO] [stdout] 354 | ExprKind::Init(ref mut ty, ref mut init) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_init` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> src/compiler/type_check.rs:481:17 [INFO] [stdout] | [INFO] [stdout] 481 | ref mut cond, [INFO] [stdout] | ^^^^^^^^^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `if_true` [INFO] [stdout] --> src/compiler/type_check.rs:482:17 [INFO] [stdout] | [INFO] [stdout] 482 | ref mut if_true, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try ignoring the field: `if_true: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `if_false` [INFO] [stdout] --> src/compiler/type_check.rs:483:17 [INFO] [stdout] | [INFO] [stdout] 483 | ref mut if_false, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try ignoring the field: `if_false: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/compiler/type_infer.rs:132:44 [INFO] [stdout] | [INFO] [stdout] 132 | ExprKind::Member(ref mut expr, id) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `init` [INFO] [stdout] --> src/compiler/type_check.rs:354:48 [INFO] [stdout] | [INFO] [stdout] 354 | ExprKind::Init(ref mut ty, ref mut init) => { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_init` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `cond` [INFO] [stdout] --> src/compiler/type_check.rs:481:17 [INFO] [stdout] | [INFO] [stdout] 481 | ref mut cond, [INFO] [stdout] | ^^^^^^^^^^^^ help: try ignoring the field: `cond: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `if_true` [INFO] [stdout] --> src/compiler/type_check.rs:482:17 [INFO] [stdout] | [INFO] [stdout] 482 | ref mut if_true, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: try ignoring the field: `if_true: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `if_false` [INFO] [stdout] --> src/compiler/type_check.rs:483:17 [INFO] [stdout] | [INFO] [stdout] 483 | ref mut if_false, [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: try ignoring the field: `if_false: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/compiler/type_infer.rs:142:35 [INFO] [stdout] | [INFO] [stdout] 142 | ExprKind::GenFuncCall(id, gen_args, args) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gen_args` [INFO] [stdout] --> src/compiler/type_infer.rs:142:39 [INFO] [stdout] | [INFO] [stdout] 142 | ExprKind::GenFuncCall(id, gen_args, args) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gen_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/compiler/type_infer.rs:262:17 [INFO] [stdout] | [INFO] [stdout] 262 | ref mut args, [INFO] [stdout] | ^^^^^^^^^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/compiler/type_infer.rs:263:17 [INFO] [stdout] | [INFO] [stdout] 263 | ref mut block, [INFO] [stdout] | ^^^^^^^^^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/compiler/type_infer.rs:132:44 [INFO] [stdout] | [INFO] [stdout] 132 | ExprKind::Member(ref mut expr, id) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `id` [INFO] [stdout] --> src/compiler/type_infer.rs:142:35 [INFO] [stdout] | [INFO] [stdout] 142 | ExprKind::GenFuncCall(id, gen_args, args) => { [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `gen_args` [INFO] [stdout] --> src/compiler/type_infer.rs:142:39 [INFO] [stdout] | [INFO] [stdout] 142 | ExprKind::GenFuncCall(id, gen_args, args) => { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_gen_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/compiler/type_infer.rs:262:17 [INFO] [stdout] | [INFO] [stdout] 262 | ref mut args, [INFO] [stdout] | ^^^^^^^^^^^^ help: try ignoring the field: `args: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `block` [INFO] [stdout] --> src/compiler/type_infer.rs:263:17 [INFO] [stdout] | [INFO] [stdout] 263 | ref mut block, [INFO] [stdout] | ^^^^^^^^^^^^^ help: try ignoring the field: `block: _` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/compiler/type_infer.rs:80:21 [INFO] [stdout] | [INFO] [stdout] 80 | std::mem::replace(&mut *cpy.borrow_mut(), decl.decl_type.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 80 | let _ = std::mem::replace(&mut *cpy.borrow_mut(), decl.decl_type.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `std::mem::replace` that must be used [INFO] [stdout] --> src/compiler/type_infer.rs:80:21 [INFO] [stdout] | [INFO] [stdout] 80 | std::mem::replace(&mut *cpy.borrow_mut(), decl.decl_type.clone()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: if you don't need the old value, you can just assign the new value directly [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 80 | let _ = std::mem::replace(&mut *cpy.borrow_mut(), decl.decl_type.clone()); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 25 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `test_sets` should have an upper case name [INFO] [stdout] --> tests/misc_tests.rs:18:7 [INFO] [stdout] | [INFO] [stdout] 18 | const test_sets: &'static [&'static str] = &[ [INFO] [stdout] | ^^^^^^^^^ help: convert the identifier to upper case: `TEST_SETS` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_upper_case_globals)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cvm_lib::compiler::ast::*` [INFO] [stdout] --> tests/unification_tests.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use cvm_lib::compiler::ast::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `cvm_lib::compiler::scope::*` [INFO] [stdout] --> tests/unification_tests.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use cvm_lib::compiler::scope::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashMap` [INFO] [stdout] --> tests/unification_tests.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 9 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 3 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 13.89s [INFO] running `Command { std: "docker" "inspect" "08b8129ac0314e4ae4aff0aec7ea6a747e72d707ea42748ed7f906b5aaec4913", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "08b8129ac0314e4ae4aff0aec7ea6a747e72d707ea42748ed7f906b5aaec4913", kill_on_drop: false }` [INFO] [stdout] 08b8129ac0314e4ae4aff0aec7ea6a747e72d707ea42748ed7f906b5aaec4913