[INFO] cloning repository https://github.com/FlrnFrmm/rlox [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/FlrnFrmm/rlox" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFlrnFrmm%2Frlox", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFlrnFrmm%2Frlox'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6cfbc3e84190e3dded79111e9a8e163f7c6dc8c0 [INFO] checking FlrnFrmm/rlox/6cfbc3e84190e3dded79111e9a8e163f7c6dc8c0 against master#ab869e094a907cc5d19b4080f22eccaf347f1f95 for pr-129604 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FFlrnFrmm%2Frlox" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/FlrnFrmm/rlox on toolchain ab869e094a907cc5d19b4080f22eccaf347f1f95 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/FlrnFrmm/rlox [INFO] finished tweaking git repo https://github.com/FlrnFrmm/rlox [INFO] tweaked toml for git repo https://github.com/FlrnFrmm/rlox written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/FlrnFrmm/rlox 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" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4f1ddf89bd165d7be284b0ea8bbf42edd340b5a19104a334b819988d2b3d54ff [INFO] running `Command { std: "docker" "start" "-a" "4f1ddf89bd165d7be284b0ea8bbf42edd340b5a19104a334b819988d2b3d54ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4f1ddf89bd165d7be284b0ea8bbf42edd340b5a19104a334b819988d2b3d54ff", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4f1ddf89bd165d7be284b0ea8bbf42edd340b5a19104a334b819988d2b3d54ff", kill_on_drop: false }` [INFO] [stdout] 4f1ddf89bd165d7be284b0ea8bbf42edd340b5a19104a334b819988d2b3d54ff [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+ab869e094a907cc5d19b4080f22eccaf347f1f95" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f468b9c8e2b6302053614e78511c0cb8bf9e1cf09f37289f1589de8c5ce80506 [INFO] running `Command { std: "docker" "start" "-a" "f468b9c8e2b6302053614e78511c0cb8bf9e1cf09f37289f1589de8c5ce80506", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling eyre v0.6.8 [INFO] [stderr] Checking indenter v0.3.3 [INFO] [stderr] Checking nom v7.1.3 [INFO] [stderr] Checking rlox v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `read_test_file_contents` is never used [INFO] [stdout] --> tests/integration_tests.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn read_test_file_contents(test_data_dir: &str) -> Result> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `read_file_contents` is never used [INFO] [stdout] --> tests/integration_tests.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn read_file_contents(file_entry: Result) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::*` [INFO] [stdout] --> src/interpreter/lexer/keywords.rs:86:9 [INFO] [stdout] | [INFO] [stdout] 86 | use super::*; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/interpreter/expression.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Expression { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn string(string: String) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn boolean(boolean: bool) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn nil() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn not(expression: Self) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn negate(expression: Self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn subtraction(left_expression: Self, right_expression: Self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn division(left_expression: Self, right_expression: Self) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn equal(left_expression: Self, right_expression: Self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn not_equal(left_expression: Self, right_expression: Self) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn greater(left_expression: Self, right_expression: Self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn greater_equal(left_expression: Self, right_expression: Self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn less(left_expression: Self, right_expression: Self) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn less_equal(left_expression: Self, right_expression: Self) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn grouping(expression: Self) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/interpreter/expression/binary.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Binary { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 4 | Addition(Box, Box), [INFO] [stdout] 5 | Subtraction(Box, Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 6 | Multiplication(Box, Box), [INFO] [stdout] 7 | Division(Box, Box), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 8 | Equal(Box, Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | NotEqual(Box, Box), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 10 | Greater(Box, Box), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 11 | GreaterEqual(Box, Box), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 12 | Less(Box, Box), [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | LessEqual(Box, Box), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Expression` is never constructed [INFO] [stdout] --> src/interpreter/expression/grouping.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Grouping { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 4 | Expression(Box), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `String`, `Boolean`, and `Nil` are never constructed [INFO] [stdout] --> src/interpreter/expression/literal.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Literal { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 4 | Number(f64), [INFO] [stdout] 5 | String(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 6 | Boolean(bool), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | Nil, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Not` and `Negate` are never constructed [INFO] [stdout] --> src/interpreter/expression/unary.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Unary { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 4 | Not(Box), [INFO] [stdout] | ^^^ [INFO] [stdout] 5 | Negate(Box), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lexical_analysis` is never used [INFO] [stdout] --> src/interpreter/lexer.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn lexical_analysis(code: &str) -> IResult<&str, Vec> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `next_token` is never used [INFO] [stdout] --> src/interpreter/lexer.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn next_token(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `match` is never used [INFO] [stdout] --> src/interpreter/lexer/keywords.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | pub fn r#match(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `and` is never used [INFO] [stdout] --> src/interpreter/lexer/keywords.rs:21:4 [INFO] [stdout] | [INFO] [stdout] 21 | fn and(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `class` is never used [INFO] [stdout] --> src/interpreter/lexer/keywords.rs:25:4 [INFO] [stdout] | [INFO] [stdout] 25 | fn class(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `else` is never used [INFO] [stdout] --> src/interpreter/lexer/keywords.rs:29:4 [INFO] [stdout] | [INFO] [stdout] 29 | fn r#else(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `false` is never used [INFO] [stdout] --> src/interpreter/lexer/keywords.rs:33:4 [INFO] [stdout] | [INFO] [stdout] 33 | fn r#false(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fun` is never used [INFO] [stdout] --> src/interpreter/lexer/keywords.rs:37:4 [INFO] [stdout] | [INFO] [stdout] 37 | fn fun(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `for` is never used [INFO] [stdout] --> src/interpreter/lexer/keywords.rs:41:4 [INFO] [stdout] | [INFO] [stdout] 41 | fn r#for(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `if` is never used [INFO] [stdout] --> src/interpreter/lexer/keywords.rs:45:4 [INFO] [stdout] | [INFO] [stdout] 45 | fn r#if(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `nil` is never used [INFO] [stdout] --> src/interpreter/lexer/keywords.rs:49:4 [INFO] [stdout] | [INFO] [stdout] 49 | fn nil(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `or` is never used [INFO] [stdout] --> src/interpreter/lexer/keywords.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn or(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `print` is never used [INFO] [stdout] --> src/interpreter/lexer/keywords.rs:57:4 [INFO] [stdout] | [INFO] [stdout] 57 | fn print(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `return` is never used [INFO] [stdout] --> src/interpreter/lexer/keywords.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn r#return(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `r_super` is never used [INFO] [stdout] --> src/interpreter/lexer/keywords.rs:65:4 [INFO] [stdout] | [INFO] [stdout] 65 | fn r_super(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `this` is never used [INFO] [stdout] --> src/interpreter/lexer/keywords.rs:69:4 [INFO] [stdout] | [INFO] [stdout] 69 | fn this(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `true` is never used [INFO] [stdout] --> src/interpreter/lexer/keywords.rs:73:4 [INFO] [stdout] | [INFO] [stdout] 73 | fn r#true(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `var` is never used [INFO] [stdout] --> src/interpreter/lexer/keywords.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn var(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `while` is never used [INFO] [stdout] --> src/interpreter/lexer/keywords.rs:81:4 [INFO] [stdout] | [INFO] [stdout] 81 | fn r#while(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `match` is never used [INFO] [stdout] --> src/interpreter/lexer/literals.rs:12:8 [INFO] [stdout] | [INFO] [stdout] 12 | pub fn r#match(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `identifier` is never used [INFO] [stdout] --> src/interpreter/lexer/literals.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn identifier(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `number` is never used [INFO] [stdout] --> src/interpreter/lexer/literals.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn number(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `string` is never used [INFO] [stdout] --> src/interpreter/lexer/literals.rs:43:4 [INFO] [stdout] | [INFO] [stdout] 43 | fn string(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `match` is never used [INFO] [stdout] --> src/interpreter/lexer/operators.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn r#match(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `plus` is never used [INFO] [stdout] --> src/interpreter/lexer/operators.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn plus(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `minus` is never used [INFO] [stdout] --> src/interpreter/lexer/operators.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn minus(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `star` is never used [INFO] [stdout] --> src/interpreter/lexer/operators.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn star(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `solidus` is never used [INFO] [stdout] --> src/interpreter/lexer/operators.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn solidus(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `dot` is never used [INFO] [stdout] --> src/interpreter/lexer/operators.rs:44:4 [INFO] [stdout] | [INFO] [stdout] 44 | fn dot(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bang` is never used [INFO] [stdout] --> src/interpreter/lexer/operators.rs:48:4 [INFO] [stdout] | [INFO] [stdout] 48 | fn bang(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bang_equal` is never used [INFO] [stdout] --> src/interpreter/lexer/operators.rs:52:4 [INFO] [stdout] | [INFO] [stdout] 52 | fn bang_equal(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `equal` is never used [INFO] [stdout] --> src/interpreter/lexer/operators.rs:56:4 [INFO] [stdout] | [INFO] [stdout] 56 | fn equal(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `equal_equal` is never used [INFO] [stdout] --> src/interpreter/lexer/operators.rs:60:4 [INFO] [stdout] | [INFO] [stdout] 60 | fn equal_equal(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `greater` is never used [INFO] [stdout] --> src/interpreter/lexer/operators.rs:64:4 [INFO] [stdout] | [INFO] [stdout] 64 | fn greater(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `greater_equal` is never used [INFO] [stdout] --> src/interpreter/lexer/operators.rs:68:4 [INFO] [stdout] | [INFO] [stdout] 68 | fn greater_equal(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `less` is never used [INFO] [stdout] --> src/interpreter/lexer/operators.rs:72:4 [INFO] [stdout] | [INFO] [stdout] 72 | fn less(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `less_equal` is never used [INFO] [stdout] --> src/interpreter/lexer/operators.rs:76:4 [INFO] [stdout] | [INFO] [stdout] 76 | fn less_equal(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `match` is never used [INFO] [stdout] --> src/interpreter/lexer/punctuations.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 9 | pub fn r#match(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `opening_round_bracket` is never used [INFO] [stdout] --> src/interpreter/lexer/punctuations.rs:20:4 [INFO] [stdout] | [INFO] [stdout] 20 | fn opening_round_bracket(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `closing_round_bracket` is never used [INFO] [stdout] --> src/interpreter/lexer/punctuations.rs:24:4 [INFO] [stdout] | [INFO] [stdout] 24 | fn closing_round_bracket(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `opening_curly_bracket` is never used [INFO] [stdout] --> src/interpreter/lexer/punctuations.rs:28:4 [INFO] [stdout] | [INFO] [stdout] 28 | fn opening_curly_bracket(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `closing_curly_bracket` is never used [INFO] [stdout] --> src/interpreter/lexer/punctuations.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn closing_curly_bracket(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `comma` is never used [INFO] [stdout] --> src/interpreter/lexer/punctuations.rs:36:4 [INFO] [stdout] | [INFO] [stdout] 36 | fn comma(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `semicolon` is never used [INFO] [stdout] --> src/interpreter/lexer/punctuations.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn semicolon(code: &str) -> IResult<&str, Token> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/interpreter/lexer/token/keyword.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Keyword { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 5 | And, [INFO] [stdout] | ^^^ [INFO] [stdout] 6 | Class, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | Else, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | False, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Fun, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | For, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | If, [INFO] [stdout] | ^^ [INFO] [stdout] 12 | Nil, [INFO] [stdout] | ^^^ [INFO] [stdout] 13 | Or, [INFO] [stdout] | ^^ [INFO] [stdout] 14 | Print, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 15 | Return, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 16 | Super, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 17 | This, [INFO] [stdout] | ^^^^ [INFO] [stdout] 18 | True, [INFO] [stdout] | ^^^^ [INFO] [stdout] 19 | Var, [INFO] [stdout] | ^^^ [INFO] [stdout] 20 | While, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Keyword` 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: variants `Identifier`, `String`, and `Number` are never constructed [INFO] [stdout] --> src/interpreter/lexer/token/literal.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Literal { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 5 | Identifier(String), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 6 | String(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 7 | Number(f64), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Literal` 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: multiple variants are never constructed [INFO] [stdout] --> src/interpreter/lexer/token/operator.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Operator { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 5 | Plus, [INFO] [stdout] | ^^^^ [INFO] [stdout] 6 | Minus, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 7 | Star, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Solidus, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 9 | Dot, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | Bang, [INFO] [stdout] | ^^^^ [INFO] [stdout] 11 | BangEqual, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 12 | Equal, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 13 | EqualEqual, [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] 14 | Greater, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 15 | GreaterEqual, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 16 | Less, [INFO] [stdout] | ^^^^ [INFO] [stdout] 17 | LessEqual, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Operator` 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: variants `OpeningRoundBracket`, `ClosingRoundBracket`, `OpeningCurlyBracket`, `ClosingCurlyBracket`, `Comma`, and `Semicolon` are never constructed [INFO] [stdout] --> src/interpreter/lexer/token/punctuation.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Punctuation { [INFO] [stdout] | ----------- variants in this enum [INFO] [stdout] 5 | OpeningRoundBracket, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 6 | ClosingRoundBracket, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 7 | OpeningCurlyBracket, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 8 | ClosingCurlyBracket, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | Comma, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 10 | Semicolon, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Punctuation` 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: struct `Repl` is never constructed [INFO] [stdout] --> src/repl.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Repl {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `run` are never used [INFO] [stdout] --> src/repl.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Repl { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 6 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | pub fn run(&self) -> Result<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 56 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple associated functions are never used [INFO] [stdout] --> src/interpreter/expression.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Expression { [INFO] [stdout] | --------------- associated functions in this implementation [INFO] [stdout] ... [INFO] [stdout] 23 | pub fn string(string: String) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 27 | pub fn boolean(boolean: bool) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn nil() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | pub fn not(expression: Self) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 39 | pub fn negate(expression: Self) -> Self { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 47 | pub fn subtraction(left_expression: Self, right_expression: Self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 55 | pub fn division(left_expression: Self, right_expression: Self) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 59 | pub fn equal(left_expression: Self, right_expression: Self) -> Self { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 63 | pub fn not_equal(left_expression: Self, right_expression: Self) -> Self { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 67 | pub fn greater(left_expression: Self, right_expression: Self) -> Self { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 71 | pub fn greater_equal(left_expression: Self, right_expression: Self) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 75 | pub fn less(left_expression: Self, right_expression: Self) -> Self { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 79 | pub fn less_equal(left_expression: Self, right_expression: Self) -> Self { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 83 | pub fn grouping(expression: Self) -> Self { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/interpreter/expression/binary.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Binary { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 4 | Addition(Box, Box), [INFO] [stdout] 5 | Subtraction(Box, Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 6 | Multiplication(Box, Box), [INFO] [stdout] 7 | Division(Box, Box), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 8 | Equal(Box, Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | NotEqual(Box, Box), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 10 | Greater(Box, Box), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 11 | GreaterEqual(Box, Box), [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] 12 | Less(Box, Box), [INFO] [stdout] | ^^^^ [INFO] [stdout] 13 | LessEqual(Box, Box), [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Expression` is never constructed [INFO] [stdout] --> src/interpreter/expression/grouping.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Grouping { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 4 | Expression(Box), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `String`, `Boolean`, and `Nil` are never constructed [INFO] [stdout] --> src/interpreter/expression/literal.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Literal { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 4 | Number(f64), [INFO] [stdout] 5 | String(String), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 6 | Boolean(bool), [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 7 | Nil, [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Not` and `Negate` are never constructed [INFO] [stdout] --> src/interpreter/expression/unary.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 3 | pub enum Unary { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 4 | Not(Box), [INFO] [stdout] | ^^^ [INFO] [stdout] 5 | Negate(Box), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Repl` is never constructed [INFO] [stdout] --> src/repl.rs:3:12 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Repl {} [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `run` are never used [INFO] [stdout] --> src/repl.rs:6:12 [INFO] [stdout] | [INFO] [stdout] 5 | impl Repl { [INFO] [stdout] | --------- associated items in this implementation [INFO] [stdout] 6 | pub fn new() -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 10 | pub fn run(&self) -> Result<()> { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 7 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 3.69s [INFO] running `Command { std: "docker" "inspect" "f468b9c8e2b6302053614e78511c0cb8bf9e1cf09f37289f1589de8c5ce80506", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f468b9c8e2b6302053614e78511c0cb8bf9e1cf09f37289f1589de8c5ce80506", kill_on_drop: false }` [INFO] [stdout] f468b9c8e2b6302053614e78511c0cb8bf9e1cf09f37289f1589de8c5ce80506