[INFO] cloning repository https://github.com/Yvan-xy/Lamb [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Yvan-xy/Lamb" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYvan-xy%2FLamb", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYvan-xy%2FLamb'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 807f20ed082c9b932289ab509af4cf2ae1738278 [INFO] checking Yvan-xy/Lamb against master#385fa9d845dd326c6bbfd58c22244215e431948a for absurd-question-mark-desugar [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FYvan-xy%2FLamb" "/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/Yvan-xy/Lamb 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/Yvan-xy/Lamb [INFO] finished tweaking git repo https://github.com/Yvan-xy/Lamb [INFO] tweaked toml for git repo https://github.com/Yvan-xy/Lamb written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/Yvan-xy/Lamb 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] 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] 60155ef704870d892d4b3387707b4b49d875bce40bf9f20222ddf7f08bf51ad3 [INFO] running `Command { std: "docker" "start" "-a" "60155ef704870d892d4b3387707b4b49d875bce40bf9f20222ddf7f08bf51ad3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "60155ef704870d892d4b3387707b4b49d875bce40bf9f20222ddf7f08bf51ad3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "60155ef704870d892d4b3387707b4b49d875bce40bf9f20222ddf7f08bf51ad3", kill_on_drop: false }` [INFO] [stdout] 60155ef704870d892d4b3387707b4b49d875bce40bf9f20222ddf7f08bf51ad3 [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] 155913f9ac9677521716e71847257b869b2cb963a557fd5637328b1940819595 [INFO] running `Command { std: "docker" "start" "-a" "155913f9ac9677521716e71847257b869b2cb963a557fd5637328b1940819595", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.138 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Checking regex-syntax v0.6.28 [INFO] [stderr] Checking quick-error v1.2.3 [INFO] [stderr] Checking termcolor v1.1.3 [INFO] [stderr] Checking aho-corasick v0.7.20 [INFO] [stderr] Checking humantime v1.3.0 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking regex v1.7.0 [INFO] [stderr] Checking env_logger v0.7.1 [INFO] [stderr] Checking pretty_env_logger v0.4.0 [INFO] [stderr] Checking untyped_lambda v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: the item `pretty_env_logger` is imported redundantly [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use pretty_env_logger; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the item `pretty_env_logger` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LevelFilter`, `debug`, `info`, `warn` [INFO] [stdout] --> src/main.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use log::{debug, error, info, warn, LevelFilter}; [INFO] [stdout] | ^^^^^ ^^^^ ^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CompUnit` [INFO] [stdout] --> src/main.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::ast::{ASTNode, CompUnit}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/lexer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::Chars` [INFO] [stdout] --> src/lexer.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Chars; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/parser.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::token::Token` [INFO] [stdout] --> src/parser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::token::Token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `pretty_env_logger` is imported redundantly [INFO] [stdout] --> src/main.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use pretty_env_logger; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ the item `pretty_env_logger` is already defined by prelude [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `LevelFilter`, `debug`, `info`, `warn` [INFO] [stdout] --> src/main.rs:4:11 [INFO] [stdout] | [INFO] [stdout] 4 | use log::{debug, error, info, warn, LevelFilter}; [INFO] [stdout] | ^^^^^ ^^^^ ^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `CompUnit` [INFO] [stdout] --> src/main.rs:5:27 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::ast::{ASTNode, CompUnit}; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::format` [INFO] [stdout] --> src/lexer.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fmt::format; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::str::Chars` [INFO] [stdout] --> src/lexer.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::str::Chars; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Borrow` [INFO] [stdout] --> src/parser.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::borrow::Borrow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::token::Token` [INFO] [stdout] --> src/parser.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use crate::token::Token; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ASTNode` [INFO] [stdout] --> src/main.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::ast::{ASTNode, CompUnit}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `visitor` [INFO] [stdout] --> src/ast.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 16 | fn visit(&self, visitor: &dyn Visitor) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_visitor` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `visitor` [INFO] [stdout] --> src/ast.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | fn visit(&self, visitor: &dyn Visitor) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_visitor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `visitor` [INFO] [stdout] --> src/ast.rs:63:19 [INFO] [stdout] | [INFO] [stdout] 63 | fn visit(&self, visitor: &dyn Visitor) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_visitor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `visit` is never used [INFO] [stdout] --> src/ast.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait ASTNode { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 5 | /// the api for visitor pattern [INFO] [stdout] 6 | fn visit(&self, visitor: &dyn Visitor); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/ast.rs:27:3 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct VariableNode { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 27 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VariableNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_children` is never used [INFO] [stdout] --> src/ast.rs:57:6 [INFO] [stdout] | [INFO] [stdout] 46 | impl CompUnit { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | fn get_children(&self) -> &Vec> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `tok_class` are never read [INFO] [stdout] --> src/token.rs:11:3 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Token { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 11 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | tok_class: TokClass, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `clone`, `get_name`, `get_tok_class`, and `dump` are never used [INFO] [stdout] --> src/token.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 15 | impl Token { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn clone(&self) -> Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn get_name(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn get_tok_class(&self) -> TokClass { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn dump(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lexer.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | EOF(String), [INFO] [stdout] | --- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 7 | EOF(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `next` and `dump` are never used [INFO] [stdout] --> src/lexer.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 23 | impl Lexer { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn next(&mut self) -> Token { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn dump(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `ASTNode` [INFO] [stdout] --> src/main.rs:5:18 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::ast::{ASTNode, CompUnit}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `visitor` [INFO] [stdout] --> src/ast.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 16 | fn visit(&self, visitor: &dyn Visitor) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_visitor` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `visitor` [INFO] [stdout] --> src/ast.rs:31:19 [INFO] [stdout] | [INFO] [stdout] 31 | fn visit(&self, visitor: &dyn Visitor) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_visitor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `visitor` [INFO] [stdout] --> src/ast.rs:63:19 [INFO] [stdout] | [INFO] [stdout] 63 | fn visit(&self, visitor: &dyn Visitor) { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_visitor` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `visit` is never used [INFO] [stdout] --> src/ast.rs:6:6 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait ASTNode { [INFO] [stdout] | ------- method in this trait [INFO] [stdout] 5 | /// the api for visitor pattern [INFO] [stdout] 6 | fn visit(&self, visitor: &dyn Visitor); [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/ast.rs:27:3 [INFO] [stdout] | [INFO] [stdout] 26 | pub struct VariableNode { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 27 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `VariableNode` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `get_children` is never used [INFO] [stdout] --> src/ast.rs:57:6 [INFO] [stdout] | [INFO] [stdout] 46 | impl CompUnit { [INFO] [stdout] | ------------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 57 | fn get_children(&self) -> &Vec> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `tok_class` are never read [INFO] [stdout] --> src/token.rs:11:3 [INFO] [stdout] | [INFO] [stdout] 10 | pub struct Token { [INFO] [stdout] | ----- fields in this struct [INFO] [stdout] 11 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 12 | tok_class: TokClass, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `clone`, `get_name`, `get_tok_class`, and `dump` are never used [INFO] [stdout] --> src/token.rs:23:10 [INFO] [stdout] | [INFO] [stdout] 15 | impl Token { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn clone(&self) -> Token { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 30 | pub fn get_name(&self) -> String { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 34 | pub fn get_tok_class(&self) -> TokClass { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | pub fn dump(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lexer.rs:7:7 [INFO] [stdout] | [INFO] [stdout] 7 | EOF(String), [INFO] [stdout] | --- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 7 | EOF(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `next` and `dump` are never used [INFO] [stdout] --> src/lexer.rs:32:10 [INFO] [stdout] | [INFO] [stdout] 23 | impl Lexer { [INFO] [stdout] | ---------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 32 | pub fn next(&mut self) -> Token { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 46 | pub fn dump(&self) { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 18 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.86s [INFO] running `Command { std: "docker" "inspect" "155913f9ac9677521716e71847257b869b2cb963a557fd5637328b1940819595", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "155913f9ac9677521716e71847257b869b2cb963a557fd5637328b1940819595", kill_on_drop: false }` [INFO] [stdout] 155913f9ac9677521716e71847257b869b2cb963a557fd5637328b1940819595