[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] building ShivanshuKantPrasad/lox against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FShivanshuKantPrasad%2Flox" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ShivanshuKantPrasad/lox on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "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-5-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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 12cab5232b7aeb9ddf5b7018ff52fb843c436ed139f16179a279b35b2a8379e5 [INFO] running `Command { std: "docker" "start" "-a" "12cab5232b7aeb9ddf5b7018ff52fb843c436ed139f16179a279b35b2a8379e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "12cab5232b7aeb9ddf5b7018ff52fb843c436ed139f16179a279b35b2a8379e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "12cab5232b7aeb9ddf5b7018ff52fb843c436ed139f16179a279b35b2a8379e5", kill_on_drop: false }` [INFO] [stdout] 12cab5232b7aeb9ddf5b7018ff52fb843c436ed139f16179a279b35b2a8379e5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ec29c4ade1a426a08b13a9c267866a4b9efd0c0368408acdbe026eb6c9a209a7 [INFO] running `Command { std: "docker" "start" "-a" "ec29c4ade1a426a08b13a9c267866a4b9efd0c0368408acdbe026eb6c9a209a7", kill_on_drop: false }` [INFO] [stderr] Compiling paste v1.0.11 [INFO] [stderr] Compiling 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 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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.81s [INFO] running `Command { std: "docker" "inspect" "ec29c4ade1a426a08b13a9c267866a4b9efd0c0368408acdbe026eb6c9a209a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ec29c4ade1a426a08b13a9c267866a4b9efd0c0368408acdbe026eb6c9a209a7", kill_on_drop: false }` [INFO] [stdout] ec29c4ade1a426a08b13a9c267866a4b9efd0c0368408acdbe026eb6c9a209a7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a7751d38635b56f48052c20aa06f057c5205e90624202a48e679f128325f37cd [INFO] running `Command { std: "docker" "start" "-a" "a7751d38635b56f48052c20aa06f057c5205e90624202a48e679f128325f37cd", kill_on_drop: false }` [INFO] [stderr] Compiling 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 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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.18s [INFO] running `Command { std: "docker" "inspect" "a7751d38635b56f48052c20aa06f057c5205e90624202a48e679f128325f37cd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7751d38635b56f48052c20aa06f057c5205e90624202a48e679f128325f37cd", kill_on_drop: false }` [INFO] [stdout] a7751d38635b56f48052c20aa06f057c5205e90624202a48e679f128325f37cd