[INFO] cloning repository https://github.com/tetsuo-cpp/charm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tetsuo-cpp/charm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftetsuo-cpp%2Fcharm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftetsuo-cpp%2Fcharm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7f857bb35c53721e3c210d399d74a853eedb0e30 [INFO] checking tetsuo-cpp/charm against master#d14d202262d13df896b0c624b0cec6e4bfde631a for pr-143028 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftetsuo-cpp%2Fcharm" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/tetsuo-cpp/charm [INFO] finished tweaking git repo https://github.com/tetsuo-cpp/charm [INFO] tweaked toml for git repo https://github.com/tetsuo-cpp/charm written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/tetsuo-cpp/charm on toolchain d14d202262d13df896b0c624b0cec6e4bfde631a [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+d14d202262d13df896b0c624b0cec6e4bfde631a" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/tetsuo-cpp/charm 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" "+d14d202262d13df896b0c624b0cec6e4bfde631a" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+d14d202262d13df896b0c624b0cec6e4bfde631a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 1b1466d8c05e590097e5eb207638dbbb0a0e046fc826bb677cacb74120e71925 [INFO] running `Command { std: "docker" "start" "-a" "1b1466d8c05e590097e5eb207638dbbb0a0e046fc826bb677cacb74120e71925", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "1b1466d8c05e590097e5eb207638dbbb0a0e046fc826bb677cacb74120e71925", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "1b1466d8c05e590097e5eb207638dbbb0a0e046fc826bb677cacb74120e71925", kill_on_drop: false }` [INFO] [stdout] 1b1466d8c05e590097e5eb207638dbbb0a0e046fc826bb677cacb74120e71925 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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" "+d14d202262d13df896b0c624b0cec6e4bfde631a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b591d2ac011777bbbdfb83d9214ecfcde21f4ea66ce25a2f140ea085bf660ed2 [INFO] running `Command { std: "docker" "start" "-a" "b591d2ac011777bbbdfb83d9214ecfcde21f4ea66ce25a2f140ea085bf660ed2", kill_on_drop: false }` [INFO] [stderr] Checking charm v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib.rs:417:13 [INFO] [stdout] | [INFO] [stdout] 417 | VarDecl(VarDeclNode<'a>), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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] 417 - VarDecl(VarDeclNode<'a>), [INFO] [stdout] 417 + VarDecl(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `If` and `BinOp` are never constructed [INFO] [stdout] --> src/lib.rs:416:5 [INFO] [stdout] | [INFO] [stdout] 415 | enum Ast<'a> { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 416 | If(IfNode<'a>), [INFO] [stdout] | ^^ [INFO] [stdout] 417 | VarDecl(VarDeclNode<'a>), [INFO] [stdout] 418 | BinOp(BinOpNode<'a>), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `condition`, `then_block`, and `else_block` are never read [INFO] [stdout] --> src/lib.rs:422:5 [INFO] [stdout] | [INFO] [stdout] 421 | struct IfNode<'a> { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 422 | condition: Box>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 423 | then_block: Vec>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 424 | else_block: Vec>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `rhs` are never read [INFO] [stdout] --> src/lib.rs:428:5 [INFO] [stdout] | [INFO] [stdout] 427 | struct VarDeclNode<'a> { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 428 | name: &'a [u8], [INFO] [stdout] | ^^^^ [INFO] [stdout] 429 | rhs: Box>>, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `op`, `lhs`, and `rhs` are never read [INFO] [stdout] --> src/lib.rs:433:5 [INFO] [stdout] | [INFO] [stdout] 432 | struct BinOpNode<'a> { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 433 | op: Token<'a>, [INFO] [stdout] | ^^ [INFO] [stdout] 434 | lhs: Box>, [INFO] [stdout] | ^^^ [INFO] [stdout] 435 | rhs: Box>, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `parse_expr`, `parse_addition`, and `parse_multiplication` are never used [INFO] [stdout] --> src/lib.rs:488:8 [INFO] [stdout] | [INFO] [stdout] 456 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 488 | fn parse_expr(&mut self) -> Result>, Box> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 492 | fn parse_addition(&mut self) -> Result>, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 510 | fn parse_multiplication(&mut self) -> Result>, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/lib.rs:10:27 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new(file_name: &str) -> Config { [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] 10 | pub fn new(file_name: &str) -> Config<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/lib.rs:47:47 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn new(kind: TokenKind, value: Option<&[u8]>) -> Token { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 47 | pub fn new(kind: TokenKind, value: Option<&[u8]>) -> Token<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/lib.rs:212:24 [INFO] [stdout] | [INFO] [stdout] 212 | pub fn new(source: &str) -> Lexer { [INFO] [stdout] | ^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 212 | pub fn new(source: &str) -> Lexer<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/lib.rs:402:13 [INFO] [stdout] | [INFO] [stdout] 402 | let mut lexer = Lexer::new(source); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/lib.rs:417:13 [INFO] [stdout] | [INFO] [stdout] 417 | VarDecl(VarDeclNode<'a>), [INFO] [stdout] | ------- ^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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] 417 - VarDecl(VarDeclNode<'a>), [INFO] [stdout] 417 + VarDecl(()), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `If` and `BinOp` are never constructed [INFO] [stdout] --> src/lib.rs:416:5 [INFO] [stdout] | [INFO] [stdout] 415 | enum Ast<'a> { [INFO] [stdout] | --- variants in this enum [INFO] [stdout] 416 | If(IfNode<'a>), [INFO] [stdout] | ^^ [INFO] [stdout] 417 | VarDecl(VarDeclNode<'a>), [INFO] [stdout] 418 | BinOp(BinOpNode<'a>), [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `condition`, `then_block`, and `else_block` are never read [INFO] [stdout] --> src/lib.rs:422:5 [INFO] [stdout] | [INFO] [stdout] 421 | struct IfNode<'a> { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 422 | condition: Box>, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 423 | then_block: Vec>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 424 | else_block: Vec>, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `name` and `rhs` are never read [INFO] [stdout] --> src/lib.rs:428:5 [INFO] [stdout] | [INFO] [stdout] 427 | struct VarDeclNode<'a> { [INFO] [stdout] | ----------- fields in this struct [INFO] [stdout] 428 | name: &'a [u8], [INFO] [stdout] | ^^^^ [INFO] [stdout] 429 | rhs: Box>>, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `op`, `lhs`, and `rhs` are never read [INFO] [stdout] --> src/lib.rs:433:5 [INFO] [stdout] | [INFO] [stdout] 432 | struct BinOpNode<'a> { [INFO] [stdout] | --------- fields in this struct [INFO] [stdout] 433 | op: Token<'a>, [INFO] [stdout] | ^^ [INFO] [stdout] 434 | lhs: Box>, [INFO] [stdout] | ^^^ [INFO] [stdout] 435 | rhs: Box>, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `parse_expr`, `parse_addition`, and `parse_multiplication` are never used [INFO] [stdout] --> src/lib.rs:488:8 [INFO] [stdout] | [INFO] [stdout] 456 | impl<'a> Parser<'a> { [INFO] [stdout] | ------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 488 | fn parse_expr(&mut self) -> Result>, Box> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 492 | fn parse_addition(&mut self) -> Result>, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 510 | fn parse_multiplication(&mut self) -> Result>, Box> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse` is never used [INFO] [stdout] --> src/lib.rs:400:8 [INFO] [stdout] | [INFO] [stdout] 400 | fn parse<'a>(source: &'a str) -> Result>, Box> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/lib.rs:10:27 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn new(file_name: &str) -> Config { [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] 10 | pub fn new(file_name: &str) -> Config<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/lib.rs:47:47 [INFO] [stdout] | [INFO] [stdout] 47 | pub fn new(kind: TokenKind, value: Option<&[u8]>) -> Token { [INFO] [stdout] | ^^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 47 | pub fn new(kind: TokenKind, value: Option<&[u8]>) -> Token<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/lib.rs:212:24 [INFO] [stdout] | [INFO] [stdout] 212 | pub fn new(source: &str) -> Lexer { [INFO] [stdout] | ^^^^ ----- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 212 | pub fn new(source: &str) -> Lexer<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/lib.rs:335:25 [INFO] [stdout] | [INFO] [stdout] 335 | fn lex<'a>(source: &'a str) -> Result, Box> { [INFO] [stdout] | ^^ ----- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 335 | fn lex<'a>(source: &'a str) -> Result>, Box> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/lib.rs:400:27 [INFO] [stdout] | [INFO] [stdout] 400 | fn parse<'a>(source: &'a str) -> Result>, Box> { [INFO] [stdout] | ^^ --- the lifetime gets resolved as `'a` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] help: one option is to consistently use `'a` [INFO] [stdout] | [INFO] [stdout] 400 | fn parse<'a>(source: &'a str) -> Result>>, Box> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.13s [INFO] running `Command { std: "docker" "inspect" "b591d2ac011777bbbdfb83d9214ecfcde21f4ea66ce25a2f140ea085bf660ed2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b591d2ac011777bbbdfb83d9214ecfcde21f4ea66ce25a2f140ea085bf660ed2", kill_on_drop: false }` [INFO] [stdout] b591d2ac011777bbbdfb83d9214ecfcde21f4ea66ce25a2f140ea085bf660ed2