[INFO] cloning repository https://github.com/leximainw/lox_rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/leximainw/lox_rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleximainw%2Flox_rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleximainw%2Flox_rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] db9ffe990a3be0267a075dd5e6b4772fb7f36294 [INFO] checking leximainw/lox_rs/db9ffe990a3be0267a075dd5e6b4772fb7f36294 against master#2fcf1776b9ccef89993dfe40e9f5c4908e2d2d48 for pr-142723 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fleximainw%2Flox_rs" "/workspace/builds/worker-7-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/leximainw/lox_rs on toolchain 2fcf1776b9ccef89993dfe40e9f5c4908e2d2d48 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2fcf1776b9ccef89993dfe40e9f5c4908e2d2d48" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/leximainw/lox_rs [INFO] finished tweaking git repo https://github.com/leximainw/lox_rs [INFO] tweaked toml for git repo https://github.com/leximainw/lox_rs written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/leximainw/lox_rs 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" "+2fcf1776b9ccef89993dfe40e9f5c4908e2d2d48" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+2fcf1776b9ccef89993dfe40e9f5c4908e2d2d48" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4f24f8b5c9627897f7378bb7ca4d424e9e9aace30b220e6958ae15c8b967b0a2 [INFO] running `Command { std: "docker" "start" "-a" "4f24f8b5c9627897f7378bb7ca4d424e9e9aace30b220e6958ae15c8b967b0a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4f24f8b5c9627897f7378bb7ca4d424e9e9aace30b220e6958ae15c8b967b0a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f24f8b5c9627897f7378bb7ca4d424e9e9aace30b220e6958ae15c8b967b0a2", kill_on_drop: false }` [INFO] [stdout] 4f24f8b5c9627897f7378bb7ca4d424e9e9aace30b220e6958ae15c8b967b0a2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+2fcf1776b9ccef89993dfe40e9f5c4908e2d2d48" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c134d2d11bbe1f655afc0bfee6970ded931d8fdc26cbb0b72f826871fb458c21 [INFO] running `Command { std: "docker" "start" "-a" "c134d2d11bbe1f655afc0bfee6970ded931d8fdc26cbb0b72f826871fb458c21", kill_on_drop: false }` [INFO] [stderr] Checking lox_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `self::expr::Expr` [INFO] [stdout] --> src/lox_rs.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use self::expr::Expr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::lexer::Lexer` [INFO] [stdout] --> src/lox_rs.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use self::lexer::Lexer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::expr::Expr` [INFO] [stdout] --> src/lox_rs.rs:13:9 [INFO] [stdout] | [INFO] [stdout] 13 | pub use self::expr::Expr; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `self::lexer::Lexer` [INFO] [stdout] --> src/lox_rs.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub use self::lexer::Lexer; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/lox_rs/closure.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn call(&mut self, args: Vec) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/lox_rs/closure.rs:7:28 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn call(&mut self, args: Vec) -> Result { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/lox_rs/parser.rs:822:25 [INFO] [stdout] | [INFO] [stdout] 822 | if let Some(token) = self.lexer.next_if(|token| match token.kind { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comma` [INFO] [stdout] --> src/lox_rs/parser.rs:844:41 [INFO] [stdout] | [INFO] [stdout] 844 | ... if let Some(comma) = self.lexer.peek_if(|token| match token.kind { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_comma` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `token` [INFO] [stdout] --> src/lox_rs/parser.rs:822:25 [INFO] [stdout] | [INFO] [stdout] 822 | if let Some(token) = self.lexer.next_if(|token| match token.kind { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_token` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `comma` [INFO] [stdout] --> src/lox_rs/parser.rs:844:41 [INFO] [stdout] | [INFO] [stdout] 844 | ... if let Some(comma) = self.lexer.peek_if(|token| match token.kind { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_comma` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/lox_rs.rs:109:26 [INFO] [stdout] | [INFO] [stdout] 109 | LoxValue::Fn(value) => formatter.write_str(""), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Fn` is never constructed [INFO] [stdout] --> src/lox_rs.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum LoxValue { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 25 | Fn(LoxClosure), [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `LoxValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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/lox_rs/backtrace.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Backtrace { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 7 | pub fn new(error: String) -> Backtrace { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `value` [INFO] [stdout] --> src/lox_rs.rs:109:26 [INFO] [stdout] | [INFO] [stdout] 109 | LoxValue::Fn(value) => formatter.write_str(""), [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_value` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Critical`, `Warning`, and `Info` are never constructed [INFO] [stdout] --> src/lox_rs/errors.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub enum Severity { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 69 | Critical, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 70 | Error, [INFO] [stdout] 71 | Warning, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 72 | Info, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Severity` 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 `print` is never used [INFO] [stdout] --> src/lox_rs/expr.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub trait Expr [INFO] [stdout] | ---- method in this trait [INFO] [stdout] ... [INFO] [stdout] 34 | fn print(&self, print: &mut AstPrinter) -> String; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AstPrinter` is never constructed [INFO] [stdout] --> src/lox_rs/expr/printer.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct AstPrinter {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/lox_rs/backtrace.rs:31:17 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn iter(&self) -> std::slice::Iter<(usize, usize)> { [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] 31 | pub fn iter(&self) -> std::slice::Iter<'_, (usize, usize)> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/lox_rs/errors.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn new(source: &str) -> Errors { [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] 8 | pub fn new(source: &str) -> Errors<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/lox_rs/lexer.rs:46:24 [INFO] [stdout] | [INFO] [stdout] 46 | 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] 46 | pub fn new(source: &str) -> Lexer<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Fn` is never constructed [INFO] [stdout] --> src/lox_rs.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 21 | pub enum LoxValue { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 25 | Fn(LoxClosure), [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `LoxValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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/lox_rs/backtrace.rs:7:12 [INFO] [stdout] | [INFO] [stdout] 6 | impl Backtrace { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 7 | pub fn new(error: String) -> Backtrace { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Critical`, `Warning`, and `Info` are never constructed [INFO] [stdout] --> src/lox_rs/errors.rs:69:5 [INFO] [stdout] | [INFO] [stdout] 68 | pub enum Severity { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 69 | Critical, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 70 | Error, [INFO] [stdout] 71 | Warning, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 72 | Info, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Severity` 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 `print` is never used [INFO] [stdout] --> src/lox_rs/expr.rs:34:8 [INFO] [stdout] | [INFO] [stdout] 28 | pub trait Expr [INFO] [stdout] | ---- method in this trait [INFO] [stdout] ... [INFO] [stdout] 34 | fn print(&self, print: &mut AstPrinter) -> String; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `AstPrinter` is never constructed [INFO] [stdout] --> src/lox_rs/expr/printer.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct AstPrinter {} [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/lox_rs/backtrace.rs:31:17 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn iter(&self) -> std::slice::Iter<(usize, usize)> { [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] 31 | pub fn iter(&self) -> std::slice::Iter<'_, (usize, usize)> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/lox_rs/errors.rs:8:24 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn new(source: &str) -> Errors { [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] 8 | pub fn new(source: &str) -> Errors<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/lox_rs/lexer.rs:46:24 [INFO] [stdout] | [INFO] [stdout] 46 | 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] 46 | pub fn new(source: &str) -> Lexer<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.83s [INFO] running `Command { std: "docker" "inspect" "c134d2d11bbe1f655afc0bfee6970ded931d8fdc26cbb0b72f826871fb458c21", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c134d2d11bbe1f655afc0bfee6970ded931d8fdc26cbb0b72f826871fb458c21", kill_on_drop: false }` [INFO] [stdout] c134d2d11bbe1f655afc0bfee6970ded931d8fdc26cbb0b72f826871fb458c21