[INFO] cloning repository https://github.com/u66u/rcc [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/u66u/rcc" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fu66u%2Frcc", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fu66u%2Frcc'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7085bacece952510c403059022176bdf1f07033b [INFO] building u66u/rcc 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%2Fu66u%2Frcc" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/u66u/rcc 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/u66u/rcc [INFO] finished tweaking git repo https://github.com/u66u/rcc [INFO] tweaked toml for git repo https://github.com/u66u/rcc written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/u66u/rcc 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-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] f499782ba906ef6fcc4e4845f83fa0795bf5e2c3314f1a3b28a5ca77771560a1 [INFO] running `Command { std: "docker" "start" "-a" "f499782ba906ef6fcc4e4845f83fa0795bf5e2c3314f1a3b28a5ca77771560a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f499782ba906ef6fcc4e4845f83fa0795bf5e2c3314f1a3b28a5ca77771560a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f499782ba906ef6fcc4e4845f83fa0795bf5e2c3314f1a3b28a5ca77771560a1", kill_on_drop: false }` [INFO] [stdout] f499782ba906ef6fcc4e4845f83fa0795bf5e2c3314f1a3b28a5ca77771560a1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] f9ab00edd0f6282a0143c8f5511be5bfea09d8f61e575ea3069d273bf49c733b [INFO] running `Command { std: "docker" "start" "-a" "f9ab00edd0f6282a0143c8f5511be5bfea09d8f61e575ea3069d273bf49c733b", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling arrayvec v0.7.4 [INFO] [stderr] Compiling joinery v2.1.0 [INFO] [stderr] Compiling indent_write v2.2.0 [INFO] [stderr] Compiling brownstone v3.0.0 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling nom-supreme v0.8.0 [INFO] [stderr] Compiling rcc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `VerboseError` [INFO] [stdout] --> src/parser.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | error::{VerboseError, context}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BaseErrorKind`, `Expectation`, and `StackContext` [INFO] [stdout] --> src/parser.rs:11:37 [INFO] [stdout] | [INFO] [stdout] 11 | use nom_supreme::error::{ErrorTree, BaseErrorKind, StackContext, Expectation}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let func = "int add(int a, int b) {a = 5; b = 6; return a + b;}" ; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_constant` is never used [INFO] [stdout] --> src/parser.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn parse_constant(input: &str) -> VerboseIResult<&str, Expression> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Program` is never constructed [INFO] [stdout] --> src/ast.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Program { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ExternalDeclaration` is never used [INFO] [stdout] --> src/ast.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum ExternalDeclaration { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `type_specifier` and `name` are never read [INFO] [stdout] --> src/ast.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct FunctionParameter { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 15 | pub type_specifier: TypeSpecifier, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 16 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunctionParameter` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `return_type`, `name`, `parameters`, and `body` are never read [INFO] [stdout] --> src/ast.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct FunctionDefinition { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 22 | pub return_type: TypeSpecifier, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 23 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 24 | pub parameters: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 25 | pub body: CompoundStatement, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunctionDefinition` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `statements` is never read [INFO] [stdout] --> src/ast.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct CompoundStatement { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 31 | pub statements: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CompoundStatement` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | ReturnStmt(Expression), [INFO] [stdout] | ---------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Statement` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 39 | ReturnStmt(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ExpressionStmt`, `CompoundStmt`, and `IfThenStmt` are never constructed [INFO] [stdout] --> src/ast.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub enum Statement { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 37 | ExpressionStmt(Expression), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 38 | CompoundStmt(CompoundStatement), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 39 | ReturnStmt(Expression), [INFO] [stdout] 40 | IfThenStmt { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Statement` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:50:16 [INFO] [stdout] | [INFO] [stdout] 50 | Identifier(String), [INFO] [stdout] | ---------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 50 | Identifier(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `left`, `operator`, and `right` are never read [INFO] [stdout] --> src/ast.rs:54:16 [INFO] [stdout] | [INFO] [stdout] 54 | BinaryOp { left: Box, operator: BinaryOperator, right: Box }, [INFO] [stdout] | -------- ^^^^ ^^^^^^^^ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Constant`, `StringLiteral`, `FunctionCall`, `UnaryOp`, and `EqualityOp` are never constructed [INFO] [stdout] --> src/ast.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub enum Expression { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 50 | Identifier(String), [INFO] [stdout] 51 | Constant(i32), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 52 | StringLiteral(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 53 | FunctionCall { name: String, arguments: Vec }, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 54 | BinaryOp { left: Box, operator: BinaryOperator, right: Box }, [INFO] [stdout] 55 | UnaryOp { operator: UnaryOperator, operand: Box }, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 56 | EqualityOp { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VariableDeclaration` is never constructed [INFO] [stdout] --> src/ast.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct VariableDeclaration { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InitDeclarator` is never constructed [INFO] [stdout] --> src/ast.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct InitDeclarator { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Void` and `Char` are never constructed [INFO] [stdout] --> src/ast.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 77 | pub enum TypeSpecifier { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 78 | Void, [INFO] [stdout] | ^^^^ [INFO] [stdout] 79 | Char, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeSpecifier` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Modulo`, `Equals`, `LogicalAnd`, and `LogicalOr` are never constructed [INFO] [stdout] --> src/ast.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 86 | pub enum BinaryOperator { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 91 | Modulo, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 92 | Equals, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 93 | LogicalAnd, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 94 | LogicalOr [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinaryOperator` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Negate` and `LogicalNot` are never constructed [INFO] [stdout] --> src/ast.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 99 | pub enum UnaryOperator { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 100 | Negate, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 101 | LogicalNot, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UnaryOperator` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.30s [INFO] running `Command { std: "docker" "inspect" "f9ab00edd0f6282a0143c8f5511be5bfea09d8f61e575ea3069d273bf49c733b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f9ab00edd0f6282a0143c8f5511be5bfea09d8f61e575ea3069d273bf49c733b", kill_on_drop: false }` [INFO] [stdout] f9ab00edd0f6282a0143c8f5511be5bfea09d8f61e575ea3069d273bf49c733b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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] 15f0e78a20a2c299a266ae4ca99058f7db8187af856429ad0f488173b34d5a99 [INFO] running `Command { std: "docker" "start" "-a" "15f0e78a20a2c299a266ae4ca99058f7db8187af856429ad0f488173b34d5a99", kill_on_drop: false }` [INFO] [stderr] Compiling rcc v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `VerboseError` [INFO] [stdout] --> src/parser.rs:4:13 [INFO] [stdout] | [INFO] [stdout] 4 | error::{VerboseError, context}, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `BaseErrorKind`, `Expectation`, and `StackContext` [INFO] [stdout] --> src/parser.rs:11:37 [INFO] [stdout] | [INFO] [stdout] 11 | use nom_supreme::error::{ErrorTree, BaseErrorKind, StackContext, Expectation}; [INFO] [stdout] | ^^^^^^^^^^^^^ ^^^^^^^^^^^^ ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `func` [INFO] [stdout] --> src/main.rs:24:9 [INFO] [stdout] | [INFO] [stdout] 24 | let func = "int add(int a, int b) {a = 5; b = 6; return a + b;}" ; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_func` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `parse_constant` is never used [INFO] [stdout] --> src/parser.rs:31:8 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn parse_constant(input: &str) -> VerboseIResult<&str, Expression> { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Program` is never constructed [INFO] [stdout] --> src/ast.rs:2:12 [INFO] [stdout] | [INFO] [stdout] 2 | pub struct Program { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `ExternalDeclaration` is never used [INFO] [stdout] --> src/ast.rs:8:10 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum ExternalDeclaration { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `type_specifier` and `name` are never read [INFO] [stdout] --> src/ast.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 14 | pub struct FunctionParameter { [INFO] [stdout] | ----------------- fields in this struct [INFO] [stdout] 15 | pub type_specifier: TypeSpecifier, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 16 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunctionParameter` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `return_type`, `name`, `parameters`, and `body` are never read [INFO] [stdout] --> src/ast.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 21 | pub struct FunctionDefinition { [INFO] [stdout] | ------------------ fields in this struct [INFO] [stdout] 22 | pub return_type: TypeSpecifier, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 23 | pub name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] 24 | pub parameters: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 25 | pub body: CompoundStatement, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `FunctionDefinition` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `statements` is never read [INFO] [stdout] --> src/ast.rs:31:9 [INFO] [stdout] | [INFO] [stdout] 30 | pub struct CompoundStatement { [INFO] [stdout] | ----------------- field in this struct [INFO] [stdout] 31 | pub statements: Vec, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `CompoundStatement` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:39:16 [INFO] [stdout] | [INFO] [stdout] 39 | ReturnStmt(Expression), [INFO] [stdout] | ---------- ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Statement` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 39 | ReturnStmt(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `ExpressionStmt`, `CompoundStmt`, and `IfThenStmt` are never constructed [INFO] [stdout] --> src/ast.rs:37:5 [INFO] [stdout] | [INFO] [stdout] 36 | pub enum Statement { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 37 | ExpressionStmt(Expression), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 38 | CompoundStmt(CompoundStatement), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 39 | ReturnStmt(Expression), [INFO] [stdout] 40 | IfThenStmt { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Statement` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/ast.rs:50:16 [INFO] [stdout] | [INFO] [stdout] 50 | Identifier(String), [INFO] [stdout] | ---------- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [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] 50 | Identifier(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `left`, `operator`, and `right` are never read [INFO] [stdout] --> src/ast.rs:54:16 [INFO] [stdout] | [INFO] [stdout] 54 | BinaryOp { left: Box, operator: BinaryOperator, right: Box }, [INFO] [stdout] | -------- ^^^^ ^^^^^^^^ ^^^^^ [INFO] [stdout] | | [INFO] [stdout] | fields in this variant [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Constant`, `StringLiteral`, `FunctionCall`, `UnaryOp`, and `EqualityOp` are never constructed [INFO] [stdout] --> src/ast.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 49 | pub enum Expression { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 50 | Identifier(String), [INFO] [stdout] 51 | Constant(i32), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 52 | StringLiteral(String), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 53 | FunctionCall { name: String, arguments: Vec }, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 54 | BinaryOp { left: Box, operator: BinaryOperator, right: Box }, [INFO] [stdout] 55 | UnaryOp { operator: UnaryOperator, operand: Box }, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 56 | EqualityOp { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expression` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `VariableDeclaration` is never constructed [INFO] [stdout] --> src/ast.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 64 | pub struct VariableDeclaration { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `InitDeclarator` is never constructed [INFO] [stdout] --> src/ast.rs:70:12 [INFO] [stdout] | [INFO] [stdout] 70 | pub struct InitDeclarator { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Void` and `Char` are never constructed [INFO] [stdout] --> src/ast.rs:78:5 [INFO] [stdout] | [INFO] [stdout] 77 | pub enum TypeSpecifier { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 78 | Void, [INFO] [stdout] | ^^^^ [INFO] [stdout] 79 | Char, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TypeSpecifier` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Modulo`, `Equals`, `LogicalAnd`, and `LogicalOr` are never constructed [INFO] [stdout] --> src/ast.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 86 | pub enum BinaryOperator { [INFO] [stdout] | -------------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 91 | Modulo, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 92 | Equals, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 93 | LogicalAnd, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 94 | LogicalOr [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinaryOperator` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Negate` and `LogicalNot` are never constructed [INFO] [stdout] --> src/ast.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 99 | pub enum UnaryOperator { [INFO] [stdout] | ------------- variants in this enum [INFO] [stdout] 100 | Negate, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 101 | LogicalNot, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `UnaryOperator` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.38s [INFO] running `Command { std: "docker" "inspect" "15f0e78a20a2c299a266ae4ca99058f7db8187af856429ad0f488173b34d5a99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "15f0e78a20a2c299a266ae4ca99058f7db8187af856429ad0f488173b34d5a99", kill_on_drop: false }` [INFO] [stdout] 15f0e78a20a2c299a266ae4ca99058f7db8187af856429ad0f488173b34d5a99