[INFO] cloning repository https://github.com/Martin-Sokolov-Sokolov/lexer [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Martin-Sokolov-Sokolov/lexer" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMartin-Sokolov-Sokolov%2Flexer", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMartin-Sokolov-Sokolov%2Flexer'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 84b6fe9f11ec4a687fd28eabf8c596451671d392 [INFO] checking Martin-Sokolov-Sokolov/lexer against try#438eb4c1a1c3841523d7f672601e8adbe04cff28 for pr-147589-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FMartin-Sokolov-Sokolov%2Flexer" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/Martin-Sokolov-Sokolov/lexer [INFO] finished tweaking git repo https://github.com/Martin-Sokolov-Sokolov/lexer [INFO] tweaked toml for git repo https://github.com/Martin-Sokolov-Sokolov/lexer written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/Martin-Sokolov-Sokolov/lexer on toolchain 438eb4c1a1c3841523d7f672601e8adbe04cff28 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+438eb4c1a1c3841523d7f672601e8adbe04cff28" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/Martin-Sokolov-Sokolov/lexer 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" "+438eb4c1a1c3841523d7f672601e8adbe04cff28" "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] [stderr] Downloading crates ... [INFO] [stderr] Downloaded syn v2.0.75 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+438eb4c1a1c3841523d7f672601e8adbe04cff28" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 93ce5b1c4d012259d9c82829d14c4fb837aaae6efe11989690b82accc1e2a33d [INFO] running `Command { std: "docker" "start" "-a" "93ce5b1c4d012259d9c82829d14c4fb837aaae6efe11989690b82accc1e2a33d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "93ce5b1c4d012259d9c82829d14c4fb837aaae6efe11989690b82accc1e2a33d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93ce5b1c4d012259d9c82829d14c4fb837aaae6efe11989690b82accc1e2a33d", kill_on_drop: false }` [INFO] [stdout] 93ce5b1c4d012259d9c82829d14c4fb837aaae6efe11989690b82accc1e2a33d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+438eb4c1a1c3841523d7f672601e8adbe04cff28" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 61b6d67fee5676ec1f30e0d910d2d85db3c937606751f9aa0386f8739ec1a790 [INFO] running `Command { std: "docker" "start" "-a" "61b6d67fee5676ec1f30e0d910d2d85db3c937606751f9aa0386f8739ec1a790", kill_on_drop: false }` [INFO] [stderr] Compiling anyhow v1.0.86 [INFO] [stderr] Compiling syn v2.0.75 [INFO] [stderr] Compiling thiserror-impl v1.0.63 [INFO] [stderr] Checking thiserror v1.0.63 [INFO] [stderr] Checking codecrafters-interpreter v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/parser.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: denote infinite loops with `loop { ... }` [INFO] [stdout] --> src/parser.rs:74:9 [INFO] [stdout] | [INFO] [stdout] 74 | while true { [INFO] [stdout] | ^^^^^^^^^^ help: use `loop` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(while_true)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ref` [INFO] [stdout] --> src/lox_function.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::{Ref, RefCell}, rc::Rc}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Ref` [INFO] [stdout] --> src/lox_function.rs:1:18 [INFO] [stdout] | [INFO] [stdout] 1 | use std::{cell::{Ref, RefCell}, rc::Rc}; [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `la` [INFO] [stdout] --> src/expr.rs:76:40 [INFO] [stdout] | [INFO] [stdout] 76 | LoxCallables::LoxAnonymous(la) => write!(f, ""), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_la` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `la` [INFO] [stdout] --> src/expr.rs:76:40 [INFO] [stdout] | [INFO] [stdout] 76 | LoxCallables::LoxAnonymous(la) => write!(f, ""), [INFO] [stdout] | ^^ help: if this is intentional, prefix it with an underscore: `_la` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/evaluator.rs:353:9 [INFO] [stdout] | [INFO] [stdout] 352 | pub struct RuntimeError { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 353 | pub token: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RuntimeError` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `UnaryOp` is never used [INFO] [stdout] --> src/expr.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 67 | pub enum UnaryOp { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_string` is never used [INFO] [stdout] --> src/lox_callable.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait LoxCallable { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 6 | fn to_string(&self) -> String; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/expr.rs:81:20 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn unescape(s: &str) -> Cow { [INFO] [stdout] | ^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 81 | pub fn unescape(s: &str) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lox_function.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Clone, PartialEq, Debug)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] 12 | pub struct LoxAnonymous { [INFO] [stdout] 13 | / callq: fn( [INFO] [stdout] 14 | | &mut Evaluator, [INFO] [stdout] 15 | | Vec, [INFO] [stdout] 16 | | ) -> Result>, RuntimeException>, [INFO] [stdout] | |_______________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lox_function.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Clone, PartialEq, Debug)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 17 | arrity: fn() -> usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `token` is never read [INFO] [stdout] --> src/evaluator.rs:353:9 [INFO] [stdout] | [INFO] [stdout] 352 | pub struct RuntimeError { [INFO] [stdout] | ------------ field in this struct [INFO] [stdout] 353 | pub token: Token, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `RuntimeError` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `UnaryOp` is never used [INFO] [stdout] --> src/expr.rs:67:10 [INFO] [stdout] | [INFO] [stdout] 67 | pub enum UnaryOp { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `to_string` is never used [INFO] [stdout] --> src/lox_callable.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 3 | pub trait LoxCallable { [INFO] [stdout] | ----------- method in this trait [INFO] [stdout] ... [INFO] [stdout] 6 | fn to_string(&self) -> String; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/expr.rs:81:20 [INFO] [stdout] | [INFO] [stdout] 81 | pub fn unescape(s: &str) -> Cow { [INFO] [stdout] | ^^^^ ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 81 | pub fn unescape(s: &str) -> Cow<'_, str> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lox_function.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Clone, PartialEq, Debug)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] 12 | pub struct LoxAnonymous { [INFO] [stdout] 13 | / callq: fn( [INFO] [stdout] 14 | | &mut Evaluator, [INFO] [stdout] 15 | | Vec, [INFO] [stdout] 16 | | ) -> Result>, RuntimeException>, [INFO] [stdout] | |_______________________________________________________^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique [INFO] [stdout] --> src/lox_function.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 11 | #[derive(Clone, PartialEq, Debug)] [INFO] [stdout] | --------- in this derive macro expansion [INFO] [stdout] ... [INFO] [stdout] 17 | arrity: fn() -> usize, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the address of the same function can vary between different codegen units [INFO] [stdout] = note: furthermore, different functions could have the same address after being merged together [INFO] [stdout] = note: for more information visit [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 2.15s [INFO] running `Command { std: "docker" "inspect" "61b6d67fee5676ec1f30e0d910d2d85db3c937606751f9aa0386f8739ec1a790", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "61b6d67fee5676ec1f30e0d910d2d85db3c937606751f9aa0386f8739ec1a790", kill_on_drop: false }` [INFO] [stdout] 61b6d67fee5676ec1f30e0d910d2d85db3c937606751f9aa0386f8739ec1a790