[INFO] cloning repository https://github.com/ShivanshuKantPrasad/lox [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ShivanshuKantPrasad/lox" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShivanshuKantPrasad%2Flox", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShivanshuKantPrasad%2Flox'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 06a7b994e0789bede1b7111d87c2bcf934e07239 [INFO] checking ShivanshuKantPrasad/lox against master#561b5dea1e7e5c21f0fb550ca579229ceb878297 for pr-124661 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShivanshuKantPrasad%2Flox" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ShivanshuKantPrasad/lox on toolchain 561b5dea1e7e5c21f0fb550ca579229ceb878297 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+561b5dea1e7e5c21f0fb550ca579229ceb878297" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ShivanshuKantPrasad/lox [INFO] finished tweaking git repo https://github.com/ShivanshuKantPrasad/lox [INFO] tweaked toml for git repo https://github.com/ShivanshuKantPrasad/lox written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/ShivanshuKantPrasad/lox 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" "+561b5dea1e7e5c21f0fb550ca579229ceb878297" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking ShivanshuKantPrasad/lox against try#8348c7b12e5a2c6b3311d00662c71e8ceda0a1c8 for pr-124661 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShivanshuKantPrasad%2Flox" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ShivanshuKantPrasad/lox on toolchain 8348c7b12e5a2c6b3311d00662c71e8ceda0a1c8 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8348c7b12e5a2c6b3311d00662c71e8ceda0a1c8" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ShivanshuKantPrasad/lox [INFO] finished tweaking git repo https://github.com/ShivanshuKantPrasad/lox [INFO] tweaked toml for git repo https://github.com/ShivanshuKantPrasad/lox written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/ShivanshuKantPrasad/lox 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" "+8348c7b12e5a2c6b3311d00662c71e8ceda0a1c8" "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-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+8348c7b12e5a2c6b3311d00662c71e8ceda0a1c8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 603bdf1ee81d568c2482d0999ada25e97b1e56b2aeeeed386c5b30937923fa7a [INFO] running `Command { std: "docker" "start" "-a" "603bdf1ee81d568c2482d0999ada25e97b1e56b2aeeeed386c5b30937923fa7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "603bdf1ee81d568c2482d0999ada25e97b1e56b2aeeeed386c5b30937923fa7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "603bdf1ee81d568c2482d0999ada25e97b1e56b2aeeeed386c5b30937923fa7a", kill_on_drop: false }` [INFO] [stdout] 603bdf1ee81d568c2482d0999ada25e97b1e56b2aeeeed386c5b30937923fa7a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:99613afd962a8cfa530ec1899472a458bd015a1ab0af876cf7eb06f6006d81ea" "/opt/rustwide/cargo-home/bin/cargo" "+8348c7b12e5a2c6b3311d00662c71e8ceda0a1c8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8f1cfdae6c48c987d9d8b627f678a3c25b742416a2557c707f285a5dcad23cd0 [INFO] running `Command { std: "docker" "start" "-a" "8f1cfdae6c48c987d9d8b627f678a3c25b742416a2557c707f285a5dcad23cd0", kill_on_drop: false }` [INFO] [stderr] Compiling paste v1.0.11 [INFO] [stderr] Checking lox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `core::any::Any` [INFO] [stdout] --> src/expr.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use core::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `core::any::Any` [INFO] [stdout] --> src/expr.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use core::any::Any; [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/expr.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let x: Box = Box::new("Hello".to_string()); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `x` [INFO] [stdout] --> src/expr.rs:6:9 [INFO] [stdout] | [INFO] [stdout] 6 | let x: Box = Box::new("Hello".to_string()); [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/expr.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Expr` is never used [INFO] [stdout] --> src/expr.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | Expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_ast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `accept` is never used [INFO] [stdout] --> src/ast.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 9 | impl Expr { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 10 | pub fn accept(&self, paste!([<$class:lower _visitor>]): &dyn ExprVisitor) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/expr.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / define_ast!( [INFO] [stdout] 10 | | Expr, [INFO] [stdout] 11 | | (Binary -> left : Box , operator : Token, right : Box), [INFO] [stdout] 12 | | (Grouping -> expression : Box), [INFO] [stdout] 13 | | (Literal -> value : Token), [INFO] [stdout] 14 | | (Unary -> operator : Token, right : Box) [INFO] [stdout] 15 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_ast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ExprVisitor` is never used [INFO] [stdout] --> src/ast.rs:17:26 [INFO] [stdout] | [INFO] [stdout] 17 | paste!(pub trait [< $class Visitor >] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/expr.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / define_ast!( [INFO] [stdout] 10 | | Expr, [INFO] [stdout] 11 | | (Binary -> left : Box , operator : Token, right : Box), [INFO] [stdout] 12 | | (Grouping -> expression : Box), [INFO] [stdout] 13 | | (Literal -> value : Token), [INFO] [stdout] 14 | | (Unary -> operator : Token, right : Box) [INFO] [stdout] 15 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_ast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BinaryExpr` is never constructed [INFO] [stdout] --> src/ast.rs:21:29 [INFO] [stdout] | [INFO] [stdout] 21 | paste!($(pub struct [<$rule Expr>] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/expr.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / define_ast!( [INFO] [stdout] 10 | | Expr, [INFO] [stdout] 11 | | (Binary -> left : Box , operator : Token, right : Box), [INFO] [stdout] 12 | | (Grouping -> expression : Box), [INFO] [stdout] 13 | | (Literal -> value : Token), [INFO] [stdout] 14 | | (Unary -> operator : Token, right : Box) [INFO] [stdout] 15 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_ast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GroupingExpr` is never constructed [INFO] [stdout] --> src/ast.rs:21:29 [INFO] [stdout] | [INFO] [stdout] 21 | paste!($(pub struct [<$rule Expr>] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/expr.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / define_ast!( [INFO] [stdout] 10 | | Expr, [INFO] [stdout] 11 | | (Binary -> left : Box , operator : Token, right : Box), [INFO] [stdout] 12 | | (Grouping -> expression : Box), [INFO] [stdout] 13 | | (Literal -> value : Token), [INFO] [stdout] 14 | | (Unary -> operator : Token, right : Box) [INFO] [stdout] 15 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_ast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LiteralExpr` is never constructed [INFO] [stdout] --> src/ast.rs:21:29 [INFO] [stdout] | [INFO] [stdout] 21 | paste!($(pub struct [<$rule Expr>] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/expr.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / define_ast!( [INFO] [stdout] 10 | | Expr, [INFO] [stdout] 11 | | (Binary -> left : Box , operator : Token, right : Box), [INFO] [stdout] 12 | | (Grouping -> expression : Box), [INFO] [stdout] 13 | | (Literal -> value : Token), [INFO] [stdout] 14 | | (Unary -> operator : Token, right : Box) [INFO] [stdout] 15 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_ast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UnaryExpr` is never constructed [INFO] [stdout] --> src/ast.rs:21:29 [INFO] [stdout] | [INFO] [stdout] 21 | paste!($(pub struct [<$rule Expr>] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/expr.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / define_ast!( [INFO] [stdout] 10 | | Expr, [INFO] [stdout] 11 | | (Binary -> left : Box , operator : Token, right : Box), [INFO] [stdout] 12 | | (Grouping -> expression : Box), [INFO] [stdout] 13 | | (Literal -> value : Token), [INFO] [stdout] 14 | | (Unary -> operator : Token, right : Box) [INFO] [stdout] 15 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_ast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `accept` is never used [INFO] [stdout] --> src/ast.rs:26:24 [INFO] [stdout] | [INFO] [stdout] 25 | impl [< $rule Expr >]{ [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 26 | pub fn accept(&self, visitor: &dyn[< $class Visitor>]) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/expr.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / define_ast!( [INFO] [stdout] 10 | | Expr, [INFO] [stdout] 11 | | (Binary -> left : Box , operator : Token, right : Box), [INFO] [stdout] 12 | | (Grouping -> expression : Box), [INFO] [stdout] 13 | | (Literal -> value : Token), [INFO] [stdout] 14 | | (Unary -> operator : Token, right : Box) [INFO] [stdout] 15 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_ast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Break` is never constructed [INFO] [stdout] --> src/token.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Token { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 6 | Break, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `main` is never used [INFO] [stdout] --> src/expr.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn main() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Expr` is never used [INFO] [stdout] --> src/expr.rs:10:4 [INFO] [stdout] | [INFO] [stdout] 10 | Expr, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_ast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `accept` is never used [INFO] [stdout] --> src/ast.rs:10:20 [INFO] [stdout] | [INFO] [stdout] 9 | impl Expr { [INFO] [stdout] | --------- method in this implementation [INFO] [stdout] 10 | pub fn accept(&self, paste!([<$class:lower _visitor>]): &dyn ExprVisitor) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/expr.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / define_ast!( [INFO] [stdout] 10 | | Expr, [INFO] [stdout] 11 | | (Binary -> left : Box , operator : Token, right : Box), [INFO] [stdout] 12 | | (Grouping -> expression : Box), [INFO] [stdout] 13 | | (Literal -> value : Token), [INFO] [stdout] 14 | | (Unary -> operator : Token, right : Box) [INFO] [stdout] 15 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_ast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ExprVisitor` is never used [INFO] [stdout] --> src/ast.rs:17:26 [INFO] [stdout] | [INFO] [stdout] 17 | paste!(pub trait [< $class Visitor >] { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/expr.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / define_ast!( [INFO] [stdout] 10 | | Expr, [INFO] [stdout] 11 | | (Binary -> left : Box , operator : Token, right : Box), [INFO] [stdout] 12 | | (Grouping -> expression : Box), [INFO] [stdout] 13 | | (Literal -> value : Token), [INFO] [stdout] 14 | | (Unary -> operator : Token, right : Box) [INFO] [stdout] 15 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_ast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `BinaryExpr` is never constructed [INFO] [stdout] --> src/ast.rs:21:29 [INFO] [stdout] | [INFO] [stdout] 21 | paste!($(pub struct [<$rule Expr>] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/expr.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / define_ast!( [INFO] [stdout] 10 | | Expr, [INFO] [stdout] 11 | | (Binary -> left : Box , operator : Token, right : Box), [INFO] [stdout] 12 | | (Grouping -> expression : Box), [INFO] [stdout] 13 | | (Literal -> value : Token), [INFO] [stdout] 14 | | (Unary -> operator : Token, right : Box) [INFO] [stdout] 15 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_ast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `GroupingExpr` is never constructed [INFO] [stdout] --> src/ast.rs:21:29 [INFO] [stdout] | [INFO] [stdout] 21 | paste!($(pub struct [<$rule Expr>] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/expr.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / define_ast!( [INFO] [stdout] 10 | | Expr, [INFO] [stdout] 11 | | (Binary -> left : Box , operator : Token, right : Box), [INFO] [stdout] 12 | | (Grouping -> expression : Box), [INFO] [stdout] 13 | | (Literal -> value : Token), [INFO] [stdout] 14 | | (Unary -> operator : Token, right : Box) [INFO] [stdout] 15 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_ast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `LiteralExpr` is never constructed [INFO] [stdout] --> src/ast.rs:21:29 [INFO] [stdout] | [INFO] [stdout] 21 | paste!($(pub struct [<$rule Expr>] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/expr.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / define_ast!( [INFO] [stdout] 10 | | Expr, [INFO] [stdout] 11 | | (Binary -> left : Box , operator : Token, right : Box), [INFO] [stdout] 12 | | (Grouping -> expression : Box), [INFO] [stdout] 13 | | (Literal -> value : Token), [INFO] [stdout] 14 | | (Unary -> operator : Token, right : Box) [INFO] [stdout] 15 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_ast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UnaryExpr` is never constructed [INFO] [stdout] --> src/ast.rs:21:29 [INFO] [stdout] | [INFO] [stdout] 21 | paste!($(pub struct [<$rule Expr>] { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/expr.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / define_ast!( [INFO] [stdout] 10 | | Expr, [INFO] [stdout] 11 | | (Binary -> left : Box , operator : Token, right : Box), [INFO] [stdout] 12 | | (Grouping -> expression : Box), [INFO] [stdout] 13 | | (Literal -> value : Token), [INFO] [stdout] 14 | | (Unary -> operator : Token, right : Box) [INFO] [stdout] 15 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_ast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `accept` is never used [INFO] [stdout] --> src/ast.rs:26:24 [INFO] [stdout] | [INFO] [stdout] 25 | impl [< $rule Expr >]{ [INFO] [stdout] | --------------------- method in this implementation [INFO] [stdout] 26 | pub fn accept(&self, visitor: &dyn[< $class Visitor>]) [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: src/expr.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / define_ast!( [INFO] [stdout] 10 | | Expr, [INFO] [stdout] 11 | | (Binary -> left : Box , operator : Token, right : Box), [INFO] [stdout] 12 | | (Grouping -> expression : Box), [INFO] [stdout] 13 | | (Literal -> value : Token), [INFO] [stdout] 14 | | (Unary -> operator : Token, right : Box) [INFO] [stdout] 15 | | ); [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `define_ast` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Break` is never constructed [INFO] [stdout] --> src/token.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Token { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 6 | Break, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Token` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 12 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.75s [INFO] running `Command { std: "docker" "inspect" "8f1cfdae6c48c987d9d8b627f678a3c25b742416a2557c707f285a5dcad23cd0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f1cfdae6c48c987d9d8b627f678a3c25b742416a2557c707f285a5dcad23cd0", kill_on_drop: false }` [INFO] [stdout] 8f1cfdae6c48c987d9d8b627f678a3c25b742416a2557c707f285a5dcad23cd0