[INFO] cloning repository https://github.com/brp221/CSE262 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/brp221/CSE262" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrp221%2FCSE262", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrp221%2FCSE262'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 4776d06e4deb3e5b8584f0f07bcc4e7231705840 [INFO] checking brp221/CSE262 against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbrp221%2FCSE262" "/workspace/builds/worker-0/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/brp221/CSE262 on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/brp221/CSE262 [INFO] finished tweaking git repo https://github.com/brp221/CSE262 [INFO] tweaked toml for git repo https://github.com/brp221/CSE262 written to /workspace/builds/worker-0/source/Cargo.toml [INFO] crate git repo https://github.com/brp221/CSE262 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fe5aedc4e2788d0512c6fc237dd12d33bc58fcfd1e038f4f97d301d7c31d0d73 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "fe5aedc4e2788d0512c6fc237dd12d33bc58fcfd1e038f4f97d301d7c31d0d73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fe5aedc4e2788d0512c6fc237dd12d33bc58fcfd1e038f4f97d301d7c31d0d73", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fe5aedc4e2788d0512c6fc237dd12d33bc58fcfd1e038f4f97d301d7c31d0d73", kill_on_drop: false }` [INFO] [stdout] fe5aedc4e2788d0512c6fc237dd12d33bc58fcfd1e038f4f97d301d7c31d0d73 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0b11a5ce4daf51e4ec9590babbcbeef38d3f76d3939a741147aad23471027ce8 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "0b11a5ce4daf51e4ec9590babbcbeef38d3f76d3939a741147aad23471027ce8", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling ryu v1.0.5 [INFO] [stderr] Compiling lexical-core v0.7.4 [INFO] [stderr] Compiling version_check v0.9.2 [INFO] [stderr] Compiling memchr v2.3.3 [INFO] [stderr] Checking arrayvec v0.5.1 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling nom v5.1.2 [INFO] [stderr] Checking cse262-project v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `combinator::opt`, `many1` [INFO] [stdout] --> src/parser.rs:8:3 [INFO] [stdout] | [INFO] [stdout] 8 | combinator::opt, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | multi::{many1, many0}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `combinator::opt`, `many1` [INFO] [stdout] --> src/parser.rs:8:3 [INFO] [stdout] | [INFO] [stdout] 8 | combinator::opt, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] 9 | multi::{many1, many0}, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/parser.rs:50:16 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn boolean(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/parser.rs:62:18 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn arguments(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/parser.rs:71:18 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn other_arg(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/parser.rs:74:22 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn function_call(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/parser.rs:89:33 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn parenthetical_expression(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/parser.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn l3_infix(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/parser.rs:101:11 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn l3(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/parser.rs:105:17 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn l2_infix(input: &str) -> IResult<&str, Node> { //pemdas stuff l1 infix is - + l2 infix * / l3 exponents [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/parser.rs:109:11 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn l2(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/parser.rs:150:18 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn statement(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/parser.rs:154:24 [INFO] [stdout] | [INFO] [stdout] 154 | pub fn function_return(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/parser.rs:170:28 [INFO] [stdout] | [INFO] [stdout] 170 | pub fn function_definition(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/parser.rs:174:16 [INFO] [stdout] | [INFO] [stdout] 174 | pub fn comment(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/runtime.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | for i in 0..rhs { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/parser.rs:50:16 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn boolean(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/parser.rs:62:18 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn arguments(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/parser.rs:71:18 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn other_arg(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/parser.rs:74:22 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn function_call(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/parser.rs:89:33 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn parenthetical_expression(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/parser.rs:97:17 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn l3_infix(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/parser.rs:101:11 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn l3(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/parser.rs:105:17 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn l2_infix(input: &str) -> IResult<&str, Node> { //pemdas stuff l1 infix is - + l2 infix * / l3 exponents [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/parser.rs:109:11 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn l2(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/parser.rs:150:18 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn statement(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/parser.rs:154:24 [INFO] [stdout] | [INFO] [stdout] 154 | pub fn function_return(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/parser.rs:170:28 [INFO] [stdout] | [INFO] [stdout] 170 | pub fn function_definition(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `input` [INFO] [stdout] --> src/parser.rs:174:16 [INFO] [stdout] | [INFO] [stdout] 174 | pub fn comment(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^ help: if this is intentional, prefix it with an underscore: `_input` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/runtime.rs:55:21 [INFO] [stdout] | [INFO] [stdout] 55 | for i in 0..rhs { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `boolean` [INFO] [stdout] --> src/parser.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn boolean(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `arguments` [INFO] [stdout] --> src/parser.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn arguments(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `other_arg` [INFO] [stdout] --> src/parser.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn other_arg(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `function_call` [INFO] [stdout] --> src/parser.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn function_call(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parenthetical_expression` [INFO] [stdout] --> src/parser.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn parenthetical_expression(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `l4` [INFO] [stdout] --> src/parser.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn l4(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `l3_infix` [INFO] [stdout] --> src/parser.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn l3_infix(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `l3` [INFO] [stdout] --> src/parser.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn l3(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `l2_infix` [INFO] [stdout] --> src/parser.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn l2_infix(input: &str) -> IResult<&str, Node> { //pemdas stuff l1 infix is - + l2 infix * / l3 exponents [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `l2` [INFO] [stdout] --> src/parser.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn l2(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `l1_infix` [INFO] [stdout] --> src/parser.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn l1_infix(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `l1` [INFO] [stdout] --> src/parser.rs:122:8 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn l1(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `math_expression` [INFO] [stdout] --> src/parser.rs:138:8 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn math_expression(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `statement` [INFO] [stdout] --> src/parser.rs:150:8 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn statement(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `function_return` [INFO] [stdout] --> src/parser.rs:154:8 [INFO] [stdout] | [INFO] [stdout] 154 | pub fn function_return(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `variable_define` [INFO] [stdout] --> src/parser.rs:160:8 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn variable_define(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `function_definition` [INFO] [stdout] --> src/parser.rs:170:8 [INFO] [stdout] | [INFO] [stdout] 170 | pub fn function_definition(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `comment` [INFO] [stdout] --> src/parser.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 174 | pub fn comment(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `boolean` [INFO] [stdout] --> src/parser.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn boolean(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `arguments` [INFO] [stdout] --> src/parser.rs:62:8 [INFO] [stdout] | [INFO] [stdout] 62 | pub fn arguments(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `other_arg` [INFO] [stdout] --> src/parser.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn other_arg(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `function_call` [INFO] [stdout] --> src/parser.rs:74:8 [INFO] [stdout] | [INFO] [stdout] 74 | pub fn function_call(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `parenthetical_expression` [INFO] [stdout] --> src/parser.rs:89:8 [INFO] [stdout] | [INFO] [stdout] 89 | pub fn parenthetical_expression(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `l4` [INFO] [stdout] --> src/parser.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn l4(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `l3_infix` [INFO] [stdout] --> src/parser.rs:97:8 [INFO] [stdout] | [INFO] [stdout] 97 | pub fn l3_infix(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `l3` [INFO] [stdout] --> src/parser.rs:101:8 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn l3(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `l2_infix` [INFO] [stdout] --> src/parser.rs:105:8 [INFO] [stdout] | [INFO] [stdout] 105 | pub fn l2_infix(input: &str) -> IResult<&str, Node> { //pemdas stuff l1 infix is - + l2 infix * / l3 exponents [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `l2` [INFO] [stdout] --> src/parser.rs:109:8 [INFO] [stdout] | [INFO] [stdout] 109 | pub fn l2(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `l1_infix` [INFO] [stdout] --> src/parser.rs:114:8 [INFO] [stdout] | [INFO] [stdout] 114 | pub fn l1_infix(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `l1` [INFO] [stdout] --> src/parser.rs:122:8 [INFO] [stdout] | [INFO] [stdout] 122 | pub fn l1(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `math_expression` [INFO] [stdout] --> src/parser.rs:138:8 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn math_expression(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `statement` [INFO] [stdout] --> src/parser.rs:150:8 [INFO] [stdout] | [INFO] [stdout] 150 | pub fn statement(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `function_return` [INFO] [stdout] --> src/parser.rs:154:8 [INFO] [stdout] | [INFO] [stdout] 154 | pub fn function_return(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `variable_define` [INFO] [stdout] --> src/parser.rs:160:8 [INFO] [stdout] | [INFO] [stdout] 160 | pub fn variable_define(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `function_definition` [INFO] [stdout] --> src/parser.rs:170:8 [INFO] [stdout] | [INFO] [stdout] 170 | pub fn function_definition(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `comment` [INFO] [stdout] --> src/parser.rs:174:8 [INFO] [stdout] | [INFO] [stdout] 174 | pub fn comment(input: &str) -> IResult<&str, Node> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/runtime.rs:32:15 [INFO] [stdout] | [INFO] [stdout] 32 | self.run(n); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/runtime.rs:188:3 [INFO] [stdout] | [INFO] [stdout] 188 | runtime.run(node); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/runtime.rs:32:15 [INFO] [stdout] | [INFO] [stdout] 32 | self.run(n); [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/runtime.rs:188:3 [INFO] [stdout] | [INFO] [stdout] 188 | runtime.run(node); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 35 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Node` [INFO] [stdout] --> tests/parser.rs:4:31 [INFO] [stdout] | [INFO] [stdout] 4 | use cse262_project::{program, Node, Value, run}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `nom::IResult` [INFO] [stdout] --> tests/parser.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use nom::IResult; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Node` [INFO] [stdout] --> src/main.rs:4:36 [INFO] [stdout] | [INFO] [stdout] 4 | use cse262_project::{program, run, Node}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unparsed` [INFO] [stdout] --> src/main.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | let (unparsed, ast) = program(r#"fn main(){return foo(1,2,3);} fn foo(a,b,c){return a+b+c;}"#)?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unparsed` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Node` [INFO] [stdout] --> src/main.rs:4:36 [INFO] [stdout] | [INFO] [stdout] 4 | use cse262_project::{program, run, Node}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `unparsed` [INFO] [stdout] --> src/main.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | let (unparsed, ast) = program(r#"fn main(){return foo(1,2,3);} fn foo(a,b,c){return a+b+c;}"#)?; [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_unparsed` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 2 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 18.35s [INFO] running `Command { std: "docker" "inspect" "0b11a5ce4daf51e4ec9590babbcbeef38d3f76d3939a741147aad23471027ce8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0b11a5ce4daf51e4ec9590babbcbeef38d3f76d3939a741147aad23471027ce8", kill_on_drop: false }` [INFO] [stdout] 0b11a5ce4daf51e4ec9590babbcbeef38d3f76d3939a741147aad23471027ce8