[INFO] cloning repository https://github.com/uditaagarwal31/asa-language [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/uditaagarwal31/asa-language" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuditaagarwal31%2Fasa-language", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuditaagarwal31%2Fasa-language'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 840495a1a9e92582aa2aeddbd547f37db662716e [INFO] testing uditaagarwal31/asa-language against try#17092ad00ed8fe1e7f81a7e38238ff70779034b1 for pr-140985 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuditaagarwal31%2Fasa-language" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/uditaagarwal31/asa-language on toolchain 17092ad00ed8fe1e7f81a7e38238ff70779034b1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/uditaagarwal31/asa-language [INFO] finished tweaking git repo https://github.com/uditaagarwal31/asa-language [INFO] tweaked toml for git repo https://github.com/uditaagarwal31/asa-language written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/uditaagarwal31/asa-language 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" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] testing uditaagarwal31/asa-language against try#17092ad00ed8fe1e7f81a7e38238ff70779034b1 for pr-140985 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuditaagarwal31%2Fasa-language" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/uditaagarwal31/asa-language on toolchain 17092ad00ed8fe1e7f81a7e38238ff70779034b1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/uditaagarwal31/asa-language [INFO] finished tweaking git repo https://github.com/uditaagarwal31/asa-language [INFO] tweaked toml for git repo https://github.com/uditaagarwal31/asa-language written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/uditaagarwal31/asa-language 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" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] Error response from daemon: mkdir /var/lib/docker/overlay2/5e4ff6ce001c4360a43b0279cbd738c2a360b77914d159117cc37284d7b2bdf9-init/work: no space left on device [INFO] testing uditaagarwal31/asa-language against try#17092ad00ed8fe1e7f81a7e38238ff70779034b1 for pr-140985 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fuditaagarwal31%2Fasa-language" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/uditaagarwal31/asa-language on toolchain 17092ad00ed8fe1e7f81a7e38238ff70779034b1 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/uditaagarwal31/asa-language [INFO] finished tweaking git repo https://github.com/uditaagarwal31/asa-language [INFO] tweaked toml for git repo https://github.com/uditaagarwal31/asa-language written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/uditaagarwal31/asa-language 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" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 623662bc1a75eb465c5954af381c50f98675531492f17e125d0d30386021bd2f [INFO] running `Command { std: "docker" "start" "-a" "623662bc1a75eb465c5954af381c50f98675531492f17e125d0d30386021bd2f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "623662bc1a75eb465c5954af381c50f98675531492f17e125d0d30386021bd2f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "623662bc1a75eb465c5954af381c50f98675531492f17e125d0d30386021bd2f", kill_on_drop: false }` [INFO] [stdout] 623662bc1a75eb465c5954af381c50f98675531492f17e125d0d30386021bd2f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d96fd9f1520b75162f5468f24dd6b6ae6bf8b47ba4191b0e1f647fd3718ecec0 [INFO] running `Command { std: "docker" "start" "-a" "d96fd9f1520b75162f5468f24dd6b6ae6bf8b47ba4191b0e1f647fd3718ecec0", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling asalang v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::fmt::Display` [INFO] [stdout] --> src/interpreter.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/interpreter.rs:193:18 [INFO] [stdout] | [INFO] [stdout] 193 | _ => ("Operator error".to_string()) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 193 - _ => ("Operator error".to_string()) [INFO] [stdout] 193 + _ => "Operator error".to_string() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/interpreter.rs:225:11 [INFO] [stdout] | [INFO] [stdout] 225 | if((lhs_bool && rhs_number) || (rhs_bool && lhs_number)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 225 - if((lhs_bool && rhs_number) || (rhs_bool && lhs_number)){ [INFO] [stdout] 225 + if (lhs_bool && rhs_number) || (rhs_bool && lhs_number) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/interpreter.rs:230:12 [INFO] [stdout] | [INFO] [stdout] 230 | if (string_op_val == "<"){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 230 - if (string_op_val == "<"){ [INFO] [stdout] 230 + if string_op_val == "<" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/interpreter.rs:232:19 [INFO] [stdout] | [INFO] [stdout] 232 | } else if (string_op_val == ">"){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 232 - } else if (string_op_val == ">"){ [INFO] [stdout] 232 + } else if string_op_val == ">" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/interpreter.rs:234:19 [INFO] [stdout] | [INFO] [stdout] 234 | } else if (string_op_val == "=="){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 234 - } else if (string_op_val == "=="){ [INFO] [stdout] 234 + } else if string_op_val == "==" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/interpreter.rs:236:19 [INFO] [stdout] | [INFO] [stdout] 236 | } else if (string_op_val == "!="){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 236 - } else if (string_op_val == "!="){ [INFO] [stdout] 236 + } else if string_op_val == "!=" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/interpreter.rs:238:19 [INFO] [stdout] | [INFO] [stdout] 238 | } else if (string_op_val == ">="){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 238 - } else if (string_op_val == ">="){ [INFO] [stdout] 238 + } else if string_op_val == ">=" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/interpreter.rs:240:19 [INFO] [stdout] | [INFO] [stdout] 240 | } else if (string_op_val == "<="){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 240 - } else if (string_op_val == "<="){ [INFO] [stdout] 240 + } else if string_op_val == "<=" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/interpreter.rs:297:11 [INFO] [stdout] | [INFO] [stdout] 297 | if(condition){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 297 - if(condition){ [INFO] [stdout] 297 + if condition { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/interpreter.rs:328:11 [INFO] [stdout] | [INFO] [stdout] 328 | if(condition){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 328 - if(condition){ [INFO] [stdout] 328 + if condition { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `combinator::opt` [INFO] [stdout] --> src/parser.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | combinator::opt, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/interpreter.rs:69:29 [INFO] [stdout] | [INFO] [stdout] 69 | for i in 0..rhs { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `check_lhs` [INFO] [stdout] --> src/interpreter.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | let check_lhs = match lhs_val.clone().unwrap(){ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_check_lhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs_val` [INFO] [stdout] --> src/interpreter.rs:203:25 [INFO] [stdout] | [INFO] [stdout] 203 | Value::Bool(lhs_val) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lhs_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> src/interpreter.rs:206:27 [INFO] [stdout] | [INFO] [stdout] 206 | Value::Number(lhs) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `check_rhs` [INFO] [stdout] --> src/interpreter.rs:213:13 [INFO] [stdout] | [INFO] [stdout] 213 | let check_rhs = match rhs_val.clone().unwrap(){ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_check_rhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs_val` [INFO] [stdout] --> src/interpreter.rs:214:25 [INFO] [stdout] | [INFO] [stdout] 214 | Value::Bool(rhs_val) =>{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rhs_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs_val` [INFO] [stdout] --> src/interpreter.rs:217:27 [INFO] [stdout] | [INFO] [stdout] 217 | Value::Number(rhs_val) =>{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rhs_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interpreter.rs:299:21 [INFO] [stdout] | [INFO] [stdout] 299 | let result = match c { // matches the children to Statement node [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interpreter.rs:330:21 [INFO] [stdout] | [INFO] [stdout] 330 | let result = match c { // matches each element to Statement node [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interpreter.rs:345:17 [INFO] [stdout] | [INFO] [stdout] 345 | let result = match c { // matches each element to Statement node [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | let (input, mut args) = many0(arguments)(input)?; // applies parser 0 or more times to recognise arguments function and returns in args [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interpreter.rs:31:15 [INFO] [stdout] | [INFO] [stdout] 31 | self.run(n); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 31 | let _ = self.run(n); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interpreter.rs:262:13 [INFO] [stdout] | [INFO] [stdout] 262 | / match c { [INFO] [stdout] 263 | | Node::IfStatement { .. } => { [INFO] [stdout] 264 | | self.run(&children[0]) [INFO] [stdout] 265 | | }, [INFO] [stdout] ... | [INFO] [stdout] 272 | | _ => Err("Unknown Statement".to_string()), // if none match, returns error message [INFO] [stdout] 273 | | }; [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 262 | let _ = match c { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interpreter.rs:434:3 [INFO] [stdout] | [INFO] [stdout] 434 | runtime.run(node); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 434 | let _ = runtime.run(node); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Node` and `Runtime` [INFO] [stdout] --> src/main.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use asalang::{program, Runtime, Node, start_interpreter}; [INFO] [stdout] | ^^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.85s [INFO] running `Command { std: "docker" "inspect" "d96fd9f1520b75162f5468f24dd6b6ae6bf8b47ba4191b0e1f647fd3718ecec0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d96fd9f1520b75162f5468f24dd6b6ae6bf8b47ba4191b0e1f647fd3718ecec0", kill_on_drop: false }` [INFO] [stdout] d96fd9f1520b75162f5468f24dd6b6ae6bf8b47ba4191b0e1f647fd3718ecec0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 847038d17928e0d47481309f668ba89b152bc53f3dec4e2a32c3d68baf51d0f5 [INFO] running `Command { std: "docker" "start" "-a" "847038d17928e0d47481309f668ba89b152bc53f3dec4e2a32c3d68baf51d0f5", kill_on_drop: false }` [INFO] [stdout] warning: unused import: `std::fmt::Display` [INFO] [stdout] --> src/interpreter.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/interpreter.rs:193:18 [INFO] [stdout] | [INFO] [stdout] 193 | _ => ("Operator error".to_string()) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 193 - _ => ("Operator error".to_string()) [INFO] [stdout] 193 + _ => "Operator error".to_string() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/interpreter.rs:225:11 [INFO] [stdout] | [INFO] [stdout] 225 | if((lhs_bool && rhs_number) || (rhs_bool && lhs_number)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 225 - if((lhs_bool && rhs_number) || (rhs_bool && lhs_number)){ [INFO] [stdout] 225 + if (lhs_bool && rhs_number) || (rhs_bool && lhs_number) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/interpreter.rs:230:12 [INFO] [stdout] | [INFO] [stdout] 230 | if (string_op_val == "<"){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 230 - if (string_op_val == "<"){ [INFO] [stdout] 230 + if string_op_val == "<" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/interpreter.rs:232:19 [INFO] [stdout] | [INFO] [stdout] 232 | } else if (string_op_val == ">"){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 232 - } else if (string_op_val == ">"){ [INFO] [stdout] 232 + } else if string_op_val == ">" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/interpreter.rs:234:19 [INFO] [stdout] | [INFO] [stdout] 234 | } else if (string_op_val == "=="){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 234 - } else if (string_op_val == "=="){ [INFO] [stdout] 234 + } else if string_op_val == "==" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/interpreter.rs:236:19 [INFO] [stdout] | [INFO] [stdout] 236 | } else if (string_op_val == "!="){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 236 - } else if (string_op_val == "!="){ [INFO] [stdout] 236 + } else if string_op_val == "!=" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/interpreter.rs:238:19 [INFO] [stdout] | [INFO] [stdout] 238 | } else if (string_op_val == ">="){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 238 - } else if (string_op_val == ">="){ [INFO] [stdout] 238 + } else if string_op_val == ">=" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/interpreter.rs:240:19 [INFO] [stdout] | [INFO] [stdout] 240 | } else if (string_op_val == "<="){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 240 - } else if (string_op_val == "<="){ [INFO] [stdout] 240 + } else if string_op_val == "<=" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/interpreter.rs:297:11 [INFO] [stdout] | [INFO] [stdout] 297 | if(condition){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 297 - if(condition){ [INFO] [stdout] 297 + if condition { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/interpreter.rs:328:11 [INFO] [stdout] | [INFO] [stdout] 328 | if(condition){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 328 - if(condition){ [INFO] [stdout] 328 + if condition { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `combinator::opt` [INFO] [stdout] --> src/parser.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | combinator::opt, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/interpreter.rs:69:29 [INFO] [stdout] | [INFO] [stdout] 69 | for i in 0..rhs { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `check_lhs` [INFO] [stdout] --> src/interpreter.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | let check_lhs = match lhs_val.clone().unwrap(){ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_check_lhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs_val` [INFO] [stdout] --> src/interpreter.rs:203:25 [INFO] [stdout] | [INFO] [stdout] 203 | Value::Bool(lhs_val) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lhs_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> src/interpreter.rs:206:27 [INFO] [stdout] | [INFO] [stdout] 206 | Value::Number(lhs) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `check_rhs` [INFO] [stdout] --> src/interpreter.rs:213:13 [INFO] [stdout] | [INFO] [stdout] 213 | let check_rhs = match rhs_val.clone().unwrap(){ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_check_rhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs_val` [INFO] [stdout] --> src/interpreter.rs:214:25 [INFO] [stdout] | [INFO] [stdout] 214 | Value::Bool(rhs_val) =>{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rhs_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs_val` [INFO] [stdout] --> src/interpreter.rs:217:27 [INFO] [stdout] | [INFO] [stdout] 217 | Value::Number(rhs_val) =>{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rhs_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interpreter.rs:299:21 [INFO] [stdout] | [INFO] [stdout] 299 | let result = match c { // matches the children to Statement node [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interpreter.rs:330:21 [INFO] [stdout] | [INFO] [stdout] 330 | let result = match c { // matches each element to Statement node [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interpreter.rs:345:17 [INFO] [stdout] | [INFO] [stdout] 345 | let result = match c { // matches each element to Statement node [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | let (input, mut args) = many0(arguments)(input)?; // applies parser 0 or more times to recognise arguments function and returns in args [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interpreter.rs:31:15 [INFO] [stdout] | [INFO] [stdout] 31 | self.run(n); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 31 | let _ = self.run(n); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interpreter.rs:262:13 [INFO] [stdout] | [INFO] [stdout] 262 | / match c { [INFO] [stdout] 263 | | Node::IfStatement { .. } => { [INFO] [stdout] 264 | | self.run(&children[0]) [INFO] [stdout] 265 | | }, [INFO] [stdout] ... | [INFO] [stdout] 272 | | _ => Err("Unknown Statement".to_string()), // if none match, returns error message [INFO] [stdout] 273 | | }; [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 262 | let _ = match c { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interpreter.rs:434:3 [INFO] [stdout] | [INFO] [stdout] 434 | runtime.run(node); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 434 | let _ = runtime.run(node); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling asalang v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `Node` and `Runtime` [INFO] [stdout] --> src/main.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use asalang::{program, Runtime, Node, start_interpreter}; [INFO] [stdout] | ^^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `Node` and `Runtime` [INFO] [stdout] --> src/main.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use asalang::{program, Runtime, Node, start_interpreter}; [INFO] [stdout] | ^^^^^^^ ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Node` [INFO] [stdout] --> tests/test.rs:4:24 [INFO] [stdout] | [INFO] [stdout] 4 | use asalang::{program, Node, Value, Runtime}; [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/test.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use nom::IResult; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Display` [INFO] [stdout] --> src/interpreter.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::fmt::Display; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around match arm expression [INFO] [stdout] --> src/interpreter.rs:193:18 [INFO] [stdout] | [INFO] [stdout] 193 | _ => ("Operator error".to_string()) [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 193 - _ => ("Operator error".to_string()) [INFO] [stdout] 193 + _ => "Operator error".to_string() [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/interpreter.rs:225:11 [INFO] [stdout] | [INFO] [stdout] 225 | if((lhs_bool && rhs_number) || (rhs_bool && lhs_number)){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 225 - if((lhs_bool && rhs_number) || (rhs_bool && lhs_number)){ [INFO] [stdout] 225 + if (lhs_bool && rhs_number) || (rhs_bool && lhs_number) { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/interpreter.rs:230:12 [INFO] [stdout] | [INFO] [stdout] 230 | if (string_op_val == "<"){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 230 - if (string_op_val == "<"){ [INFO] [stdout] 230 + if string_op_val == "<" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/interpreter.rs:232:19 [INFO] [stdout] | [INFO] [stdout] 232 | } else if (string_op_val == ">"){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 232 - } else if (string_op_val == ">"){ [INFO] [stdout] 232 + } else if string_op_val == ">" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/interpreter.rs:234:19 [INFO] [stdout] | [INFO] [stdout] 234 | } else if (string_op_val == "=="){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 234 - } else if (string_op_val == "=="){ [INFO] [stdout] 234 + } else if string_op_val == "==" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/interpreter.rs:236:19 [INFO] [stdout] | [INFO] [stdout] 236 | } else if (string_op_val == "!="){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 236 - } else if (string_op_val == "!="){ [INFO] [stdout] 236 + } else if string_op_val == "!=" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/interpreter.rs:238:19 [INFO] [stdout] | [INFO] [stdout] 238 | } else if (string_op_val == ">="){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 238 - } else if (string_op_val == ">="){ [INFO] [stdout] 238 + } else if string_op_val == ">=" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/interpreter.rs:240:19 [INFO] [stdout] | [INFO] [stdout] 240 | } else if (string_op_val == "<="){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 240 - } else if (string_op_val == "<="){ [INFO] [stdout] 240 + } else if string_op_val == "<=" { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/interpreter.rs:297:11 [INFO] [stdout] | [INFO] [stdout] 297 | if(condition){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 297 - if(condition){ [INFO] [stdout] 297 + if condition { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around `if` condition [INFO] [stdout] --> src/interpreter.rs:328:11 [INFO] [stdout] | [INFO] [stdout] 328 | if(condition){ [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 328 - if(condition){ [INFO] [stdout] 328 + if condition { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `combinator::opt` [INFO] [stdout] --> src/parser.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | combinator::opt, [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 27 | test!(numeric, r#"123"#, Ok(Value::Number(123))); [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 27 | test!(numeric, r#"123"#, Ok(Value::Number(123))); [INFO] [stdout] | ------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 28 | test!(identifier, r#"x"#, Err("Undefined variable".to_string())); [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 28 | test!(identifier, r#"x"#, Err("Undefined variable".to_string())); [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 29 | test!(string, r#""hello world""#, Ok(Value::String("hello world".to_string()))); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 29 | test!(string, r#""hello world""#, Ok(Value::String("hello world".to_string()))); [INFO] [stdout] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 30 | test!(bool_true, r#"true"#, Ok(Value::Bool(true))); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 30 | test!(bool_true, r#"true"#, Ok(Value::Bool(true))); [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 31 | test!(bool_false, r#"false"#, Ok(Value::Bool(false))); [INFO] [stdout] | ----------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 31 | test!(bool_false, r#"false"#, Ok(Value::Bool(false))); [INFO] [stdout] | ----------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 32 | test!(function_call, r#"foo()"#, Err("Undefined function".to_string())); [INFO] [stdout] | ----------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 32 | test!(function_call, r#"foo()"#, Err("Undefined function".to_string())); [INFO] [stdout] | ----------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 33 | test!(function_call_one_arg, r#"foo(a)"#, Err("Undefined function".to_string())); [INFO] [stdout] | -------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 33 | test!(function_call_one_arg, r#"foo(a)"#, Err("Undefined function".to_string())); [INFO] [stdout] | -------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 34 | test!(function_call_more_args, r#"foo(a,b,c)"#, Err("Undefined function".to_string())); [INFO] [stdout] | -------------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 34 | test!(function_call_more_args, r#"foo(a,b,c)"#, Err("Undefined function".to_string())); [INFO] [stdout] | -------------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 35 | test!(variable_define, r#"let x = 123;"#, Ok(Value::Number(123))); [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 35 | test!(variable_define, r#"let x = 123;"#, Ok(Value::Number(123))); [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 36 | test!(variable_init, r#"let x = 1;"#, Ok(Value::Number(1))); [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 36 | test!(variable_init, r#"let x = 1;"#, Ok(Value::Number(1))); [INFO] [stdout] | ----------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 37 | test!(variable_bool, r#"let bool = true;"#, Ok(Value::Bool(true))); [INFO] [stdout] | ------------------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 37 | test!(variable_bool, r#"let bool = true;"#, Ok(Value::Bool(true))); [INFO] [stdout] | ------------------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 38 | test!(variable_string, r#"let string = "Hello World";"#, Ok(Value::String("Hello World".to_string()))); [INFO] [stdout] | ------------------------------------------------------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 38 | test!(variable_string, r#"let string = "Hello World";"#, Ok(Value::String("Hello World".to_string()))); [INFO] [stdout] | ------------------------------------------------------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 39 | test!(variable_init_no_space, r#"let x=1;"#, Ok(Value::Number(1))); [INFO] [stdout] | ------------------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 39 | test!(variable_init_no_space, r#"let x=1;"#, Ok(Value::Number(1))); [INFO] [stdout] | ------------------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 40 | test!(math, r#"1 + 1"#, Ok(Value::Number(2))); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 40 | test!(math, r#"1 + 1"#, Ok(Value::Number(2))); [INFO] [stdout] | --------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 41 | test!(math_no_space, r#"1+1"#, Ok(Value::Number(2))); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 41 | test!(math_no_space, r#"1+1"#, Ok(Value::Number(2))); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 42 | test!(math_subtraction, r#"1 - 1"#, Ok(Value::Number(0))); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 42 | test!(math_subtraction, r#"1 - 1"#, Ok(Value::Number(0))); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 43 | test!(math_multiply, r#"2 * 4"#, Ok(Value::Number(8))); [INFO] [stdout] | ------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 43 | test!(math_multiply, r#"2 * 4"#, Ok(Value::Number(8))); [INFO] [stdout] | ------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 44 | test!(math_divide, r#"6 / 2"#, Ok(Value::Number(3))); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 44 | test!(math_divide, r#"6 / 2"#, Ok(Value::Number(3))); [INFO] [stdout] | ---------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 45 | test!(math_exponent, r#"2 ^ 4"#, Ok(Value::Number(16))); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 45 | test!(math_exponent, r#"2 ^ 4"#, Ok(Value::Number(16))); [INFO] [stdout] | ------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 46 | test!(math_more_terms, r#"10 + 2*6"#, Ok(Value::Number(22))); [INFO] [stdout] | ------------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 46 | test!(math_more_terms, r#"10 + 2*6"#, Ok(Value::Number(22))); [INFO] [stdout] | ------------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 47 | test!(math_more_terms_paren, r#"((10+2)*6)/4"#, Ok(Value::Number(18))); [INFO] [stdout] | ---------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 47 | test!(math_more_terms_paren, r#"((10+2)*6)/4"#, Ok(Value::Number(18))); [INFO] [stdout] | ---------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 48 | test!(assign_math, r#"let x = 1 + 1;"#, Ok(Value::Number(2))); [INFO] [stdout] | ------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 48 | test!(assign_math, r#"let x = 1 + 1;"#, Ok(Value::Number(2))); [INFO] [stdout] | ------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 49 | test!(assign_function, r#"let x = foo();"#, Err("Undefined function".to_string())); [INFO] [stdout] | ---------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 49 | test!(assign_function, r#"let x = foo();"#, Err("Undefined function".to_string())); [INFO] [stdout] | ---------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 50 | test!(assign_function_arguments, r#"let x = foo(a,b,c);"#, Err("Undefined function".to_string())); [INFO] [stdout] | ------------------------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 50 | test!(assign_function_arguments, r#"let x = foo(a,b,c);"#, Err("Undefined function".to_string())); [INFO] [stdout] | ------------------------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 51 | test!(define_function, r#"fn main(){return foo();} fn foo(){return 5;}"#, Ok(Value::Number(5))); [INFO] [stdout] | ----------------------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 51 | test!(define_function, r#"fn main(){return foo();} fn foo(){return 5;}"#, Ok(Value::Number(5))); [INFO] [stdout] | ----------------------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 52 | test!(define_function_args, r#"fn main(){return foo(1,2,3);} fn foo(a,b,c){return a+b+c;}"#, Ok(Value::Number(6))); [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 52 | test!(define_function_args, r#"fn main(){return foo(1,2,3);} fn foo(a,b,c){return a+b+c;}"#, Ok(Value::Number(6))); [INFO] [stdout] | ------------------------------------------------------------------------------------------------------------------ in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 53 | / test!(define_function_more_statement, r#"fn main() { [INFO] [stdout] 54 | | return foo(); [INFO] [stdout] 55 | | } [INFO] [stdout] 56 | | fn foo(){ [INFO] [stdout] 57 | | let x = 5; [INFO] [stdout] 58 | | return x; [INFO] [stdout] 59 | | }"#, Ok(Value::Number(5))); [INFO] [stdout] | |__________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 53 | / test!(define_function_more_statement, r#"fn main() { [INFO] [stdout] 54 | | return foo(); [INFO] [stdout] 55 | | } [INFO] [stdout] 56 | | fn foo(){ [INFO] [stdout] 57 | | let x = 5; [INFO] [stdout] 58 | | return x; [INFO] [stdout] 59 | | }"#, Ok(Value::Number(5))); [INFO] [stdout] | |__________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 60 | / test!(define_full_program, r#"fn foo(a,b,c) { [INFO] [stdout] 61 | | let x = a + 1; [INFO] [stdout] 62 | | let y = bar(c - b); [INFO] [stdout] 63 | | return x * y; [INFO] [stdout] ... | [INFO] [stdout] 71 | | return foo(1,2,3); [INFO] [stdout] 72 | | }"#, Ok(Value::Number(6))); [INFO] [stdout] | |__________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 60 | / test!(define_full_program, r#"fn foo(a,b,c) { [INFO] [stdout] 61 | | let x = a + 1; [INFO] [stdout] 62 | | let y = bar(c - b); [INFO] [stdout] 63 | | return x * y; [INFO] [stdout] ... | [INFO] [stdout] 71 | | return foo(1,2,3); [INFO] [stdout] 72 | | }"#, Ok(Value::Number(6))); [INFO] [stdout] | |__________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 74 | test!(string_new, r#""hi""#, Ok(Value::String("hi".to_string()))); // tests single word strings [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 74 | test!(string_new, r#""hi""#, Ok(Value::String("hi".to_string()))); // tests single word strings [INFO] [stdout] | ----------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 75 | test!(math_new, r#"7 + 7"#, Ok(Value::Number(14))); // tests addition [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 75 | test!(math_new, r#"7 + 7"#, Ok(Value::Number(14))); // tests addition [INFO] [stdout] | -------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 76 | test!(variable_def_new, r#"let z = 99;"#, Ok(Value::Number(99))); // tests variable define [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 76 | test!(variable_def_new, r#"let z = 99;"#, Ok(Value::Number(99))); // tests variable define [INFO] [stdout] | ---------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 77 | test!(math_exponent_new, r#"3 ^ 2"#, Ok(Value::Number(9))); // tests exponents [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 77 | test!(math_exponent_new, r#"3 ^ 2"#, Ok(Value::Number(9))); // tests exponents [INFO] [stdout] | ---------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 78 | test!(conditional_ex1, r#"5 < 7"#, Ok(Value::Bool(true))); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 78 | test!(conditional_ex1, r#"5 < 7"#, Ok(Value::Bool(true))); [INFO] [stdout] | --------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 79 | test!(conditional_ex2, r#"11 + 6 * 2 < 5 * 2 - 3"#, Ok(Value::Bool(false))); [INFO] [stdout] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 79 | test!(conditional_ex2, r#"11 + 6 * 2 < 5 * 2 - 3"#, Ok(Value::Bool(false))); [INFO] [stdout] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 80 | test!(conditional_ex3, r#"7 > true"#, Err("Cannot compare these two values".to_string())); [INFO] [stdout] | ----------------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 80 | test!(conditional_ex3, r#"7 > true"#, Err("Cannot compare these two values".to_string())); [INFO] [stdout] | ----------------------------------------------------------------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 81 | / test!(if_else_ex1, r#"if 1 < 2 { [INFO] [stdout] 82 | | let x = 9; [INFO] [stdout] 83 | | return true; [INFO] [stdout] 84 | | } else if 3 == 2 { [INFO] [stdout] ... | [INFO] [stdout] 89 | | "#, Ok(Value::Bool(true))); [INFO] [stdout] | |____________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 81 | / test!(if_else_ex1, r#"if 1 < 2 { [INFO] [stdout] 82 | | let x = 9; [INFO] [stdout] 83 | | return true; [INFO] [stdout] 84 | | } else if 3 == 2 { [INFO] [stdout] ... | [INFO] [stdout] 89 | | "#, Ok(Value::Bool(true))); [INFO] [stdout] | |____________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 90 | / test!(if_else_ex2, r#"if 1+7 > 9 { [INFO] [stdout] 91 | | return true; [INFO] [stdout] 92 | | } else if 9 != 2 { [INFO] [stdout] 93 | | return true; [INFO] [stdout] ... | [INFO] [stdout] 97 | | "#, Ok(Value::Bool(true))); [INFO] [stdout] | |______________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 90 | / test!(if_else_ex2, r#"if 1+7 > 9 { [INFO] [stdout] 91 | | return true; [INFO] [stdout] 92 | | } else if 9 != 2 { [INFO] [stdout] 93 | | return true; [INFO] [stdout] ... | [INFO] [stdout] 97 | | "#, Ok(Value::Bool(true))); [INFO] [stdout] | |______________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `runtime` [INFO] [stdout] --> tests/test.rs:14:19 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stdout] ... [INFO] [stdout] 98 | / test!(if_else_ex3, r#"if 4 > 3 {return true;} else if 7 == 9 {return false;} else {return true;} [INFO] [stdout] 99 | | "#, Ok(Value::Bool(true))); [INFO] [stdout] | |________________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> tests/test.rs:14:15 [INFO] [stdout] | [INFO] [stdout] 14 | let mut runtime = Runtime::new(); [INFO] [stdout] | ----^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] ... [INFO] [stdout] 98 | / test!(if_else_ex3, r#"if 4 > 3 {return true;} else if 7 == 9 {return false;} else {return true;} [INFO] [stdout] 99 | | "#, Ok(Value::Bool(true))); [INFO] [stdout] | |________________________________- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/interpreter.rs:69:29 [INFO] [stdout] | [INFO] [stdout] 69 | for i in 0..rhs { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `check_lhs` [INFO] [stdout] --> src/interpreter.rs:202:13 [INFO] [stdout] | [INFO] [stdout] 202 | let check_lhs = match lhs_val.clone().unwrap(){ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_check_lhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs_val` [INFO] [stdout] --> src/interpreter.rs:203:25 [INFO] [stdout] | [INFO] [stdout] 203 | Value::Bool(lhs_val) => { [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lhs_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `lhs` [INFO] [stdout] --> src/interpreter.rs:206:27 [INFO] [stdout] | [INFO] [stdout] 206 | Value::Number(lhs) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_lhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `check_rhs` [INFO] [stdout] --> src/interpreter.rs:213:13 [INFO] [stdout] | [INFO] [stdout] 213 | let check_rhs = match rhs_val.clone().unwrap(){ [INFO] [stdout] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_check_rhs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs_val` [INFO] [stdout] --> src/interpreter.rs:214:25 [INFO] [stdout] | [INFO] [stdout] 214 | Value::Bool(rhs_val) =>{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rhs_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rhs_val` [INFO] [stdout] --> src/interpreter.rs:217:27 [INFO] [stdout] | [INFO] [stdout] 217 | Value::Number(rhs_val) =>{ [INFO] [stdout] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rhs_val` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interpreter.rs:299:21 [INFO] [stdout] | [INFO] [stdout] 299 | let result = match c { // matches the children to Statement node [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interpreter.rs:330:21 [INFO] [stdout] | [INFO] [stdout] 330 | let result = match c { // matches each element to Statement node [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `result` [INFO] [stdout] --> src/interpreter.rs:345:17 [INFO] [stdout] | [INFO] [stdout] 345 | let result = match c { // matches each element to Statement node [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/parser.rs:72:17 [INFO] [stdout] | [INFO] [stdout] 72 | let (input, mut args) = many0(arguments)(input)?; // applies parser 0 or more times to recognise arguments function and returns in args [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interpreter.rs:31:15 [INFO] [stdout] | [INFO] [stdout] 31 | self.run(n); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 31 | let _ = self.run(n); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interpreter.rs:262:13 [INFO] [stdout] | [INFO] [stdout] 262 | / match c { [INFO] [stdout] 263 | | Node::IfStatement { .. } => { [INFO] [stdout] 264 | | self.run(&children[0]) [INFO] [stdout] 265 | | }, [INFO] [stdout] ... | [INFO] [stdout] 272 | | _ => Err("Unknown Statement".to_string()), // if none match, returns error message [INFO] [stdout] 273 | | }; [INFO] [stdout] | |_____________^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 262 | let _ = match c { [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/interpreter.rs:434:3 [INFO] [stdout] | [INFO] [stdout] 434 | runtime.run(node); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 434 | let _ = runtime.run(node); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.23s [INFO] running `Command { std: "docker" "inspect" "847038d17928e0d47481309f668ba89b152bc53f3dec4e2a32c3d68baf51d0f5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "847038d17928e0d47481309f668ba89b152bc53f3dec4e2a32c3d68baf51d0f5", kill_on_drop: false }` [INFO] [stdout] 847038d17928e0d47481309f668ba89b152bc53f3dec4e2a32c3d68baf51d0f5 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+17092ad00ed8fe1e7f81a7e38238ff70779034b1" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] de0c10ade02e67f8930be020705714dc14d83827b35641b0fad1279c4deb70a5 [INFO] running `Command { std: "docker" "start" "-a" "de0c10ade02e67f8930be020705714dc14d83827b35641b0fad1279c4deb70a5", kill_on_drop: false }` [INFO] [stderr] warning: unused import: `std::fmt::Display` [INFO] [stderr] --> src/interpreter.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use std::fmt::Display; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around match arm expression [INFO] [stderr] --> src/interpreter.rs:193:18 [INFO] [stderr] | [INFO] [stderr] 193 | _ => ("Operator error".to_string()) [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_parens)]` on by default [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 193 - _ => ("Operator error".to_string()) [INFO] [stderr] 193 + _ => "Operator error".to_string() [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/interpreter.rs:225:11 [INFO] [stderr] | [INFO] [stderr] 225 | if((lhs_bool && rhs_number) || (rhs_bool && lhs_number)){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 225 - if((lhs_bool && rhs_number) || (rhs_bool && lhs_number)){ [INFO] [stderr] 225 + if (lhs_bool && rhs_number) || (rhs_bool && lhs_number) { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/interpreter.rs:230:12 [INFO] [stderr] | [INFO] [stderr] 230 | if (string_op_val == "<"){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 230 - if (string_op_val == "<"){ [INFO] [stderr] 230 + if string_op_val == "<" { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/interpreter.rs:232:19 [INFO] [stderr] | [INFO] [stderr] 232 | } else if (string_op_val == ">"){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 232 - } else if (string_op_val == ">"){ [INFO] [stderr] 232 + } else if string_op_val == ">" { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/interpreter.rs:234:19 [INFO] [stderr] | [INFO] [stderr] 234 | } else if (string_op_val == "=="){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 234 - } else if (string_op_val == "=="){ [INFO] [stderr] 234 + } else if string_op_val == "==" { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/interpreter.rs:236:19 [INFO] [stderr] | [INFO] [stderr] 236 | } else if (string_op_val == "!="){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 236 - } else if (string_op_val == "!="){ [INFO] [stderr] 236 + } else if string_op_val == "!=" { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/interpreter.rs:238:19 [INFO] [stderr] | [INFO] [stderr] 238 | } else if (string_op_val == ">="){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 238 - } else if (string_op_val == ">="){ [INFO] [stderr] 238 + } else if string_op_val == ">=" { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/interpreter.rs:240:19 [INFO] [stderr] | [INFO] [stderr] 240 | } else if (string_op_val == "<="){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 240 - } else if (string_op_val == "<="){ [INFO] [stderr] 240 + } else if string_op_val == "<=" { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/interpreter.rs:297:11 [INFO] [stderr] | [INFO] [stderr] 297 | if(condition){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 297 - if(condition){ [INFO] [stderr] 297 + if condition { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unnecessary parentheses around `if` condition [INFO] [stderr] --> src/interpreter.rs:328:11 [INFO] [stderr] | [INFO] [stderr] 328 | if(condition){ [INFO] [stderr] | ^ ^ [INFO] [stderr] | [INFO] [stderr] help: remove these parentheses [INFO] [stderr] | [INFO] [stderr] 328 - if(condition){ [INFO] [stderr] 328 + if condition { [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] warning: unused import: `combinator::opt` [INFO] [stderr] --> src/parser.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | combinator::opt, [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `i` [INFO] [stderr] --> src/interpreter.rs:69:29 [INFO] [stderr] | [INFO] [stderr] 69 | for i in 0..rhs { [INFO] [stderr] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused variable: `check_lhs` [INFO] [stderr] --> src/interpreter.rs:202:13 [INFO] [stderr] | [INFO] [stderr] 202 | let check_lhs = match lhs_val.clone().unwrap(){ [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_check_lhs` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `lhs_val` [INFO] [stderr] --> src/interpreter.rs:203:25 [INFO] [stderr] | [INFO] [stderr] 203 | Value::Bool(lhs_val) => { [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_lhs_val` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `lhs` [INFO] [stderr] --> src/interpreter.rs:206:27 [INFO] [stderr] | [INFO] [stderr] 206 | Value::Number(lhs) => { [INFO] [stderr] | ^^^ help: if this is intentional, prefix it with an underscore: `_lhs` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `check_rhs` [INFO] [stderr] --> src/interpreter.rs:213:13 [INFO] [stderr] | [INFO] [stderr] 213 | let check_rhs = match rhs_val.clone().unwrap(){ [INFO] [stderr] | ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_check_rhs` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rhs_val` [INFO] [stderr] --> src/interpreter.rs:214:25 [INFO] [stderr] | [INFO] [stderr] 214 | Value::Bool(rhs_val) =>{ [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rhs_val` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `rhs_val` [INFO] [stderr] --> src/interpreter.rs:217:27 [INFO] [stderr] | [INFO] [stderr] 217 | Value::Number(rhs_val) =>{ [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_rhs_val` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `result` [INFO] [stderr] --> src/interpreter.rs:299:21 [INFO] [stderr] | [INFO] [stderr] 299 | let result = match c { // matches the children to Statement node [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `result` [INFO] [stderr] --> src/interpreter.rs:330:21 [INFO] [stderr] | [INFO] [stderr] 330 | let result = match c { // matches each element to Statement node [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stderr] [INFO] [stderr] warning: unused variable: `result` [INFO] [stderr] --> src/interpreter.rs:345:17 [INFO] [stderr] | [INFO] [stderr] 345 | let result = match c { // matches each element to Statement node [INFO] [stderr] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_result` [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> src/parser.rs:72:17 [INFO] [stderr] | [INFO] [stderr] 72 | let (input, mut args) = many0(arguments)(input)?; // applies parser 0 or more times to recognise arguments function and returns in args [INFO] [stderr] | ----^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/interpreter.rs:31:15 [INFO] [stderr] | [INFO] [stderr] 31 | self.run(n); [INFO] [stderr] | ^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 31 | let _ = self.run(n); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/interpreter.rs:262:13 [INFO] [stderr] | [INFO] [stderr] 262 | / match c { [INFO] [stderr] 263 | | Node::IfStatement { .. } => { [INFO] [stderr] 264 | | self.run(&children[0]) [INFO] [stderr] 265 | | }, [INFO] [stderr] ... | [INFO] [stderr] 272 | | _ => Err("Unknown Statement".to_string()), // if none match, returns error message [INFO] [stderr] 273 | | }; [INFO] [stderr] | |_____________^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 262 | let _ = match c { [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused `Result` that must be used [INFO] [stderr] --> src/interpreter.rs:434:3 [INFO] [stderr] | [INFO] [stderr] 434 | runtime.run(node); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 434 | let _ = runtime.run(node); [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `asalang` (lib) generated 26 warnings (run `cargo fix --lib -p asalang` to apply 13 suggestions) [INFO] [stderr] warning: `asalang` (lib test) generated 26 warnings (26 duplicates) [INFO] [stderr] warning: unused import: `Node` [INFO] [stderr] --> tests/test.rs:4:24 [INFO] [stderr] | [INFO] [stderr] 4 | use asalang::{program, Node, Value, Runtime}; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `nom::IResult` [INFO] [stderr] --> tests/test.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use nom::IResult; [INFO] [stderr] | ^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 27 | test!(numeric, r#"123"#, Ok(Value::Number(123))); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_variables)]` on by default [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 27 | test!(numeric, r#"123"#, Ok(Value::Number(123))); [INFO] [stderr] | ------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_mut)]` on by default [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 28 | test!(identifier, r#"x"#, Err("Undefined variable".to_string())); [INFO] [stderr] | ---------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 28 | test!(identifier, r#"x"#, Err("Undefined variable".to_string())); [INFO] [stderr] | ---------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 29 | test!(string, r#""hello world""#, Ok(Value::String("hello world".to_string()))); [INFO] [stderr] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 29 | test!(string, r#""hello world""#, Ok(Value::String("hello world".to_string()))); [INFO] [stderr] | ------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 30 | test!(bool_true, r#"true"#, Ok(Value::Bool(true))); [INFO] [stderr] | -------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 30 | test!(bool_true, r#"true"#, Ok(Value::Bool(true))); [INFO] [stderr] | -------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 31 | test!(bool_false, r#"false"#, Ok(Value::Bool(false))); [INFO] [stderr] | ----------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 31 | test!(bool_false, r#"false"#, Ok(Value::Bool(false))); [INFO] [stderr] | ----------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 32 | test!(function_call, r#"foo()"#, Err("Undefined function".to_string())); [INFO] [stderr] | ----------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 32 | test!(function_call, r#"foo()"#, Err("Undefined function".to_string())); [INFO] [stderr] | ----------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 33 | test!(function_call_one_arg, r#"foo(a)"#, Err("Undefined function".to_string())); [INFO] [stderr] | -------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 33 | test!(function_call_one_arg, r#"foo(a)"#, Err("Undefined function".to_string())); [INFO] [stderr] | -------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 34 | test!(function_call_more_args, r#"foo(a,b,c)"#, Err("Undefined function".to_string())); [INFO] [stderr] | -------------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 34 | test!(function_call_more_args, r#"foo(a,b,c)"#, Err("Undefined function".to_string())); [INFO] [stderr] | -------------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 35 | test!(variable_define, r#"let x = 123;"#, Ok(Value::Number(123))); [INFO] [stderr] | ----------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 35 | test!(variable_define, r#"let x = 123;"#, Ok(Value::Number(123))); [INFO] [stderr] | ----------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 36 | test!(variable_init, r#"let x = 1;"#, Ok(Value::Number(1))); [INFO] [stderr] | ----------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 36 | test!(variable_init, r#"let x = 1;"#, Ok(Value::Number(1))); [INFO] [stderr] | ----------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 37 | test!(variable_bool, r#"let bool = true;"#, Ok(Value::Bool(true))); [INFO] [stderr] | ------------------------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 37 | test!(variable_bool, r#"let bool = true;"#, Ok(Value::Bool(true))); [INFO] [stderr] | ------------------------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 38 | test!(variable_string, r#"let string = "Hello World";"#, Ok(Value::String("Hello World".to_string()))); [INFO] [stderr] | ------------------------------------------------------------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 38 | test!(variable_string, r#"let string = "Hello World";"#, Ok(Value::String("Hello World".to_string()))); [INFO] [stderr] | ------------------------------------------------------------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 39 | test!(variable_init_no_space, r#"let x=1;"#, Ok(Value::Number(1))); [INFO] [stderr] | ------------------------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 39 | test!(variable_init_no_space, r#"let x=1;"#, Ok(Value::Number(1))); [INFO] [stderr] | ------------------------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 40 | test!(math, r#"1 + 1"#, Ok(Value::Number(2))); [INFO] [stderr] | --------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 40 | test!(math, r#"1 + 1"#, Ok(Value::Number(2))); [INFO] [stderr] | --------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 41 | test!(math_no_space, r#"1+1"#, Ok(Value::Number(2))); [INFO] [stderr] | ---------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 41 | test!(math_no_space, r#"1+1"#, Ok(Value::Number(2))); [INFO] [stderr] | ---------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 42 | test!(math_subtraction, r#"1 - 1"#, Ok(Value::Number(0))); [INFO] [stderr] | --------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 42 | test!(math_subtraction, r#"1 - 1"#, Ok(Value::Number(0))); [INFO] [stderr] | --------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 43 | test!(math_multiply, r#"2 * 4"#, Ok(Value::Number(8))); [INFO] [stderr] | ------------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 43 | test!(math_multiply, r#"2 * 4"#, Ok(Value::Number(8))); [INFO] [stderr] | ------------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 44 | test!(math_divide, r#"6 / 2"#, Ok(Value::Number(3))); [INFO] [stderr] | ---------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 44 | test!(math_divide, r#"6 / 2"#, Ok(Value::Number(3))); [INFO] [stderr] | ---------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 45 | test!(math_exponent, r#"2 ^ 4"#, Ok(Value::Number(16))); [INFO] [stderr] | ------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 45 | test!(math_exponent, r#"2 ^ 4"#, Ok(Value::Number(16))); [INFO] [stderr] | ------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 46 | test!(math_more_terms, r#"10 + 2*6"#, Ok(Value::Number(22))); [INFO] [stderr] | ------------------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 46 | test!(math_more_terms, r#"10 + 2*6"#, Ok(Value::Number(22))); [INFO] [stderr] | ------------------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 47 | test!(math_more_terms_paren, r#"((10+2)*6)/4"#, Ok(Value::Number(18))); [INFO] [stderr] | ---------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 47 | test!(math_more_terms_paren, r#"((10+2)*6)/4"#, Ok(Value::Number(18))); [INFO] [stderr] | ---------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 48 | test!(assign_math, r#"let x = 1 + 1;"#, Ok(Value::Number(2))); [INFO] [stderr] | ------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 48 | test!(assign_math, r#"let x = 1 + 1;"#, Ok(Value::Number(2))); [INFO] [stderr] | ------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 49 | test!(assign_function, r#"let x = foo();"#, Err("Undefined function".to_string())); [INFO] [stderr] | ---------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 49 | test!(assign_function, r#"let x = foo();"#, Err("Undefined function".to_string())); [INFO] [stderr] | ---------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 50 | test!(assign_function_arguments, r#"let x = foo(a,b,c);"#, Err("Undefined function".to_string())); [INFO] [stderr] | ------------------------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 50 | test!(assign_function_arguments, r#"let x = foo(a,b,c);"#, Err("Undefined function".to_string())); [INFO] [stderr] | ------------------------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 51 | test!(define_function, r#"fn main(){return foo();} fn foo(){return 5;}"#, Ok(Value::Number(5))); [INFO] [stderr] | ----------------------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 51 | test!(define_function, r#"fn main(){return foo();} fn foo(){return 5;}"#, Ok(Value::Number(5))); [INFO] [stderr] | ----------------------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 52 | test!(define_function_args, r#"fn main(){return foo(1,2,3);} fn foo(a,b,c){return a+b+c;}"#, Ok(Value::Number(6))); [INFO] [stderr] | ------------------------------------------------------------------------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 52 | test!(define_function_args, r#"fn main(){return foo(1,2,3);} fn foo(a,b,c){return a+b+c;}"#, Ok(Value::Number(6))); [INFO] [stderr] | ------------------------------------------------------------------------------------------------------------------ in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 53 | / test!(define_function_more_statement, r#"fn main() { [INFO] [stderr] 54 | | return foo(); [INFO] [stderr] 55 | | } [INFO] [stderr] 56 | | fn foo(){ [INFO] [stderr] 57 | | let x = 5; [INFO] [stderr] 58 | | return x; [INFO] [stderr] 59 | | }"#, Ok(Value::Number(5))); [INFO] [stderr] | |__________________________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 53 | / test!(define_function_more_statement, r#"fn main() { [INFO] [stderr] 54 | | return foo(); [INFO] [stderr] 55 | | } [INFO] [stderr] 56 | | fn foo(){ [INFO] [stderr] 57 | | let x = 5; [INFO] [stderr] 58 | | return x; [INFO] [stderr] 59 | | }"#, Ok(Value::Number(5))); [INFO] [stderr] | |__________________________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 60 | / test!(define_full_program, r#"fn foo(a,b,c) { [INFO] [stderr] 61 | | let x = a + 1; [INFO] [stderr] 62 | | let y = bar(c - b); [INFO] [stderr] 63 | | return x * y; [INFO] [stderr] ... | [INFO] [stderr] 71 | | return foo(1,2,3); [INFO] [stderr] 72 | | }"#, Ok(Value::Number(6))); [INFO] [stderr] | |__________________________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 60 | / test!(define_full_program, r#"fn foo(a,b,c) { [INFO] [stderr] 61 | | let x = a + 1; [INFO] [stderr] 62 | | let y = bar(c - b); [INFO] [stderr] 63 | | return x * y; [INFO] [stderr] ... | [INFO] [stderr] 71 | | return foo(1,2,3); [INFO] [stderr] 72 | | }"#, Ok(Value::Number(6))); [INFO] [stderr] | |__________________________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 74 | test!(string_new, r#""hi""#, Ok(Value::String("hi".to_string()))); // tests single word strings [INFO] [stderr] | ----------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 74 | test!(string_new, r#""hi""#, Ok(Value::String("hi".to_string()))); // tests single word strings [INFO] [stderr] | ----------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 75 | test!(math_new, r#"7 + 7"#, Ok(Value::Number(14))); // tests addition [INFO] [stderr] | -------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 75 | test!(math_new, r#"7 + 7"#, Ok(Value::Number(14))); // tests addition [INFO] [stderr] | -------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 76 | test!(variable_def_new, r#"let z = 99;"#, Ok(Value::Number(99))); // tests variable define [INFO] [stderr] | ---------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 76 | test!(variable_def_new, r#"let z = 99;"#, Ok(Value::Number(99))); // tests variable define [INFO] [stderr] | ---------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 77 | test!(math_exponent_new, r#"3 ^ 2"#, Ok(Value::Number(9))); // tests exponents [INFO] [stderr] | ---------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 77 | test!(math_exponent_new, r#"3 ^ 2"#, Ok(Value::Number(9))); // tests exponents [INFO] [stderr] | ---------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 78 | test!(conditional_ex1, r#"5 < 7"#, Ok(Value::Bool(true))); [INFO] [stderr] | --------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 78 | test!(conditional_ex1, r#"5 < 7"#, Ok(Value::Bool(true))); [INFO] [stderr] | --------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 79 | test!(conditional_ex2, r#"11 + 6 * 2 < 5 * 2 - 3"#, Ok(Value::Bool(false))); [INFO] [stderr] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 79 | test!(conditional_ex2, r#"11 + 6 * 2 < 5 * 2 - 3"#, Ok(Value::Bool(false))); [INFO] [stderr] | --------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 80 | test!(conditional_ex3, r#"7 > true"#, Err("Cannot compare these two values".to_string())); [INFO] [stderr] | ----------------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 80 | test!(conditional_ex3, r#"7 > true"#, Err("Cannot compare these two values".to_string())); [INFO] [stderr] | ----------------------------------------------------------------------------------------- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 81 | / test!(if_else_ex1, r#"if 1 < 2 { [INFO] [stderr] 82 | | let x = 9; [INFO] [stderr] 83 | | return true; [INFO] [stderr] 84 | | } else if 3 == 2 { [INFO] [stderr] ... | [INFO] [stderr] 89 | | "#, Ok(Value::Bool(true))); [INFO] [stderr] | |____________________________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 81 | / test!(if_else_ex1, r#"if 1 < 2 { [INFO] [stderr] 82 | | let x = 9; [INFO] [stderr] 83 | | return true; [INFO] [stderr] 84 | | } else if 3 == 2 { [INFO] [stderr] ... | [INFO] [stderr] 89 | | "#, Ok(Value::Bool(true))); [INFO] [stderr] | |____________________________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 90 | / test!(if_else_ex2, r#"if 1+7 > 9 { [INFO] [stderr] 91 | | return true; [INFO] [stderr] 92 | | } else if 9 != 2 { [INFO] [stderr] 93 | | return true; [INFO] [stderr] ... | [INFO] [stderr] 97 | | "#, Ok(Value::Bool(true))); [INFO] [stderr] | |______________________________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 90 | / test!(if_else_ex2, r#"if 1+7 > 9 { [INFO] [stderr] 91 | | return true; [INFO] [stderr] 92 | | } else if 9 != 2 { [INFO] [stderr] 93 | | return true; [INFO] [stderr] ... | [INFO] [stderr] 97 | | "#, Ok(Value::Bool(true))); [INFO] [stderr] | |______________________________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused variable: `runtime` [INFO] [stderr] --> tests/test.rs:14:19 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ^^^^^^^ help: if this is intentional, prefix it with an underscore: `_runtime` [INFO] [stderr] ... [INFO] [stderr] 98 | / test!(if_else_ex3, r#"if 4 > 3 {return true;} else if 7 == 9 {return false;} else {return true;} [INFO] [stderr] 99 | | "#, Ok(Value::Bool(true))); [INFO] [stderr] | |________________________________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: variable does not need to be mutable [INFO] [stderr] --> tests/test.rs:14:15 [INFO] [stderr] | [INFO] [stderr] 14 | let mut runtime = Runtime::new(); [INFO] [stderr] | ----^^^^^^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this `mut` [INFO] [stderr] ... [INFO] [stderr] 98 | / test!(if_else_ex3, r#"if 4 > 3 {return true;} else if 7 == 9 {return false;} else {return true;} [INFO] [stderr] 99 | | "#, Ok(Value::Bool(true))); [INFO] [stderr] | |________________________________- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: unused imports: `Node` and `Runtime` [INFO] [stderr] --> src/main.rs:4:24 [INFO] [stderr] | [INFO] [stderr] 4 | use asalang::{program, Runtime, Node, start_interpreter}; [INFO] [stderr] | ^^^^^^^ ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stdout] [INFO] [stderr] warning: `asalang` (test "test") generated 78 warnings (run `cargo fix --test "test"` to apply 40 suggestions) [INFO] [stdout] running 0 tests [INFO] [stderr] warning: `asalang` (bin "asalang") generated 1 warning (run `cargo fix --bin "asalang"` to apply 1 suggestion) [INFO] [stdout] [INFO] [stderr] warning: `asalang` (bin "asalang" test) generated 1 warning (1 duplicate) [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.02s [INFO] [stdout] [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/asalang-b12278c22b57724e) [INFO] [stdout] [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/asalang-e5b665884f55ee1d) [INFO] [stdout] running 0 tests [INFO] [stderr] Running tests/test.rs (/opt/rustwide/target/debug/deps/test-1dcfc845b889e8d5) [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 38 tests [INFO] [stdout] test bool_true ... ok [INFO] [stdout] test assign_function ... ok [INFO] [stdout] test assign_function_arguments ... ok [INFO] [stdout] test bool_false ... ok [INFO] [stdout] test assign_math ... ok [INFO] [stdout] test conditional_ex2 ... ok [INFO] [stdout] test function_call ... ok [INFO] [stdout] test conditional_ex3 ... ok [INFO] [stdout] test function_call_one_arg ... ok [INFO] [stdout] test identifier ... ok [INFO] [stdout] test conditional_ex1 ... ok [INFO] [stdout] test function_call_more_args ... ok [INFO] [stdout] test if_else_ex1 ... ok [INFO] [stdout] test if_else_ex2 ... ok [INFO] [stdout] test if_else_ex3 ... ok [INFO] [stdout] test math_divide ... ok [INFO] [stdout] test math ... ok [INFO] [stdout] test math_exponent ... ok [INFO] [stdout] test math_more_terms ... ok [INFO] [stdout] test math_multiply ... ok [INFO] [stdout] test math_new ... ok [INFO] [stdout] test math_more_terms_paren ... ok [INFO] [stdout] test math_no_space ... ok [INFO] [stdout] test numeric ... ok [INFO] [stdout] test math_exponent_new ... ok [INFO] [stdout] test string_new ... ok [INFO] [stdout] test variable_bool ... ok [INFO] [stdout] test variable_def_new ... ok [INFO] [stdout] test variable_define ... ok [INFO] [stdout] test variable_init ... ok [INFO] [stdout] test variable_string ... ok [INFO] [stdout] test variable_init_no_space ... ok [INFO] [stdout] test math_subtraction ... ok [INFO] [stdout] test string ... ok [INFO] [stdout] test define_function ... FAILED [INFO] [stdout] test define_full_program ... FAILED [INFO] [stdout] test define_function_more_statement ... FAILED [INFO] [stdout] test define_function_args ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- define_function stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'define_function' panicked at tests/test.rs:51:1: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: " main(){return foo();} fn foo(){return 5;}" [INFO] [stdout] right: "" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x57172948ea92 - std::backtrace_rs::backtrace::libunwind::trace::h2bdbdb423cc746ad [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x57172948ea92 - std::backtrace_rs::backtrace::trace_unsynchronized::h876081fa48c0856a [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x57172948ea92 - std::sys::backtrace::_print_fmt::h744638bebbff2806 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x57172948ea92 - ::fmt::he6e74fa9d0076b5d [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x5717294b2983 - core::fmt::rt::Argument::fmt::hf88a3177e76af877 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x5717294b2983 - core::fmt::write::h6442196e41589522 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/fmt/mod.rs:1446:25 [INFO] [stdout] 6: 0x57172948bab3 - std::io::default_write_fmt::h19b804dc75596022 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x57172948bab3 - std::io::Write::write_fmt::h561df7c669043671 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/io/mod.rs:1914:13 [INFO] [stdout] 8: 0x57172948e8e2 - std::sys::backtrace::BacktraceLock::print::h25e1ce4c29150054 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x57172949001c - std::panicking::default_hook::{{closure}}::h36663bdaae83f2bb [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:300:22 [INFO] [stdout] 10: 0x57172948fe72 - std::panicking::default_hook::hb9d7c40580cf1835 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:324:9 [INFO] [stdout] 11: 0x5717294213a4 - as core::ops::function::Fn>::call::h53bdf3f1ac68020f [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/alloc/src/boxed.rs:1980:9 [INFO] [stdout] 12: 0x5717294213a4 - test::test_main_with_exit_callback::{{closure}}::h3ae9af1665ff5b7d [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x571729490b13 - as core::ops::function::Fn>::call::ha3a705c6ebc0f8fb [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/alloc/src/boxed.rs:1980:9 [INFO] [stdout] 14: 0x571729490b13 - std::panicking::rust_panic_with_hook::h2d703857e4ba629f [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:841:13 [INFO] [stdout] 15: 0x5717294907ca - std::panicking::begin_panic_handler::{{closure}}::h53dd12a17ad784b1 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:706:13 [INFO] [stdout] 16: 0x57172948ef99 - std::sys::backtrace::__rust_end_short_backtrace::hf54a874920d38937 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:168:18 [INFO] [stdout] 17: 0x57172949045d - __rustc[22d03d94d4da23d0]::rust_begin_unwind [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:697:5 [INFO] [stdout] 18: 0x5717294b1420 - core::panicking::panic_fmt::hb74c170c8276d1d6 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x5717294b1743 - core::panicking::assert_failed_inner::h1a3c526c7717b97a [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panicking.rs:432:17 [INFO] [stdout] 20: 0x5717293dcf2c - core::panicking::assert_failed::h9724d82ed894f90e [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panicking.rs:387:5 [INFO] [stdout] 21: 0x5717293e4176 - test::define_function::h0dbd6776fd645e22 [INFO] [stdout] at /opt/rustwide/workdir/tests/test.rs:15:11 [INFO] [stdout] 22: 0x5717293e3efd - test::define_function::{{closure}}::hf603c6e0f0a399cb [INFO] [stdout] at /opt/rustwide/workdir/tests/test.rs:11:19 [INFO] [stdout] 23: 0x5717293dcb26 - core::ops::function::FnOnce::call_once::hc80ae718126159b2 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x571729426b9b - core::ops::function::FnOnce::call_once::h0c81d2c7e362685a [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x571729426b9b - test::__rust_begin_short_backtrace::hc62049913de4b9c6 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:648:18 [INFO] [stdout] 26: 0x571729425db2 - test::run_test_in_process::{{closure}}::h906d61461feea06d [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:671:60 [INFO] [stdout] 27: 0x571729425db2 - as core::ops::function::FnOnce<()>>::call_once::h962d8c24a3ec06f1 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 28: 0x571729425db2 - std::panicking::try::do_call::h88e304055018b07f [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:589:40 [INFO] [stdout] 29: 0x571729425db2 - std::panicking::try::h34046f0780b49f58 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:552:19 [INFO] [stdout] 30: 0x571729425db2 - std::panic::catch_unwind::h7d7ad4d133a51a76 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x571729425db2 - test::run_test_in_process::h0871d7f888d1f41c [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:671:27 [INFO] [stdout] 32: 0x571729425db2 - test::run_test::{{closure}}::h696f8114d8bae20e [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:592:43 [INFO] [stdout] 33: 0x5717293e91a4 - test::run_test::{{closure}}::h632082d0bd36bde1 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:622:41 [INFO] [stdout] 34: 0x5717293e91a4 - std::sys::backtrace::__rust_begin_short_backtrace::hf4db03c672d46ea2 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:152:18 [INFO] [stdout] 35: 0x5717293ecc7a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h571ce7b4ea6fba0e [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 36: 0x5717293ecc7a - as core::ops::function::FnOnce<()>>::call_once::h79478c2f2b0b4ed6 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 37: 0x5717293ecc7a - std::panicking::try::do_call::hdfb524d8b1c5ea5d [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:589:40 [INFO] [stdout] 38: 0x5717293ecc7a - std::panicking::try::hb57ee69084fa6c6a [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:552:19 [INFO] [stdout] 39: 0x5717293ecc7a - std::panic::catch_unwind::h1fcc7dadd90dd47c [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x5717293ecc7a - std::thread::Builder::spawn_unchecked_::{{closure}}::h7201710e36d47c29 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 41: 0x5717293ecc7a - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha75b12b48ae5b3d2 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x5717294923bb - as core::ops::function::FnOnce>::call_once::h02517bb8c2b8e279 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/alloc/src/boxed.rs:1966:9 [INFO] [stdout] 43: 0x5717294923bb - as core::ops::function::FnOnce>::call_once::h760bb73d54d4c118 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/alloc/src/boxed.rs:1966:9 [INFO] [stdout] 44: 0x5717294923bb - std::sys::pal::unix::thread::Thread::new::thread_start::h91ff250566269b77 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/pal/unix/thread.rs:97:17 [INFO] [stdout] 45: 0x756315981aa4 - [INFO] [stdout] 46: 0x756315a0ea34 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- define_full_program stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'define_full_program' panicked at tests/test.rs:60:1: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: " foo(a,b,c) {\n let x = a + 1;\n let y = bar(c - b);\n return x * y;\n}\n\nfn bar(a) {\n return a * 3;\n}\n\nfn main() {\n return foo(1,2,3); \n}" [INFO] [stdout] right: "" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x57172948ea92 - std::backtrace_rs::backtrace::libunwind::trace::h2bdbdb423cc746ad [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x57172948ea92 - std::backtrace_rs::backtrace::trace_unsynchronized::h876081fa48c0856a [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x57172948ea92 - std::sys::backtrace::_print_fmt::h744638bebbff2806 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x57172948ea92 - ::fmt::he6e74fa9d0076b5d [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x5717294b2983 - core::fmt::rt::Argument::fmt::hf88a3177e76af877 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x5717294b2983 - core::fmt::write::h6442196e41589522 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/fmt/mod.rs:1446:25 [INFO] [stdout] 6: 0x57172948bab3 - std::io::default_write_fmt::h19b804dc75596022 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x57172948bab3 - std::io::Write::write_fmt::h561df7c669043671 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/io/mod.rs:1914:13 [INFO] [stdout] 8: 0x57172948e8e2 - std::sys::backtrace::BacktraceLock::print::h25e1ce4c29150054 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x57172949001c - std::panicking::default_hook::{{closure}}::h36663bdaae83f2bb [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:300:22 [INFO] [stdout] 10: 0x57172948fe72 - std::panicking::default_hook::hb9d7c40580cf1835 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:324:9 [INFO] [stdout] 11: 0x5717294213a4 - as core::ops::function::Fn>::call::h53bdf3f1ac68020f [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/alloc/src/boxed.rs:1980:9 [INFO] [stdout] 12: 0x5717294213a4 - test::test_main_with_exit_callback::{{closure}}::h3ae9af1665ff5b7d [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x571729490b13 - as core::ops::function::Fn>::call::ha3a705c6ebc0f8fb [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/alloc/src/boxed.rs:1980:9 [INFO] [stdout] 14: 0x571729490b13 - std::panicking::rust_panic_with_hook::h2d703857e4ba629f [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:841:13 [INFO] [stdout] 15: 0x5717294907ca - std::panicking::begin_panic_handler::{{closure}}::h53dd12a17ad784b1 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:706:13 [INFO] [stdout] 16: 0x57172948ef99 - std::sys::backtrace::__rust_end_short_backtrace::hf54a874920d38937 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:168:18 [INFO] [stdout] 17: 0x57172949045d - __rustc[22d03d94d4da23d0]::rust_begin_unwind [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:697:5 [INFO] [stdout] 18: 0x5717294b1420 - core::panicking::panic_fmt::hb74c170c8276d1d6 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x5717294b1743 - core::panicking::assert_failed_inner::h1a3c526c7717b97a [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panicking.rs:432:17 [INFO] [stdout] 20: 0x5717293dcf2c - core::panicking::assert_failed::h9724d82ed894f90e [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panicking.rs:387:5 [INFO] [stdout] 21: 0x5717293e4d16 - test::define_full_program::h34cc529dc95e3548 [INFO] [stdout] at /opt/rustwide/workdir/tests/test.rs:15:11 [INFO] [stdout] 22: 0x5717293e4a9d - test::define_full_program::{{closure}}::ha5bdc6a3cc514b99 [INFO] [stdout] at /opt/rustwide/workdir/tests/test.rs:11:19 [INFO] [stdout] 23: 0x5717293dcae6 - core::ops::function::FnOnce::call_once::hc5a3b1c361e48b21 [INFO] [stderr] error: test failed, to rerun pass `--test test` [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x571729426b9b - core::ops::function::FnOnce::call_once::h0c81d2c7e362685a [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x571729426b9b - test::__rust_begin_short_backtrace::hc62049913de4b9c6 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:648:18 [INFO] [stdout] 26: 0x571729425db2 - test::run_test_in_process::{{closure}}::h906d61461feea06d [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:671:60 [INFO] [stdout] 27: 0x571729425db2 - as core::ops::function::FnOnce<()>>::call_once::h962d8c24a3ec06f1 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 28: 0x571729425db2 - std::panicking::try::do_call::h88e304055018b07f [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:589:40 [INFO] [stdout] 29: 0x571729425db2 - std::panicking::try::h34046f0780b49f58 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:552:19 [INFO] [stdout] 30: 0x571729425db2 - std::panic::catch_unwind::h7d7ad4d133a51a76 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x571729425db2 - test::run_test_in_process::h0871d7f888d1f41c [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:671:27 [INFO] [stdout] 32: 0x571729425db2 - test::run_test::{{closure}}::h696f8114d8bae20e [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:592:43 [INFO] [stdout] 33: 0x5717293e91a4 - test::run_test::{{closure}}::h632082d0bd36bde1 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:622:41 [INFO] [stdout] 34: 0x5717293e91a4 - std::sys::backtrace::__rust_begin_short_backtrace::hf4db03c672d46ea2 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:152:18 [INFO] [stdout] 35: 0x5717293ecc7a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h571ce7b4ea6fba0e [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 36: 0x5717293ecc7a - as core::ops::function::FnOnce<()>>::call_once::h79478c2f2b0b4ed6 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 37: 0x5717293ecc7a - std::panicking::try::do_call::hdfb524d8b1c5ea5d [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:589:40 [INFO] [stdout] 38: 0x5717293ecc7a - std::panicking::try::hb57ee69084fa6c6a [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:552:19 [INFO] [stdout] 39: 0x5717293ecc7a - std::panic::catch_unwind::h1fcc7dadd90dd47c [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x5717293ecc7a - std::thread::Builder::spawn_unchecked_::{{closure}}::h7201710e36d47c29 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 41: 0x5717293ecc7a - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha75b12b48ae5b3d2 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x5717294923bb - as core::ops::function::FnOnce>::call_once::h02517bb8c2b8e279 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/alloc/src/boxed.rs:1966:9 [INFO] [stdout] 43: 0x5717294923bb - as core::ops::function::FnOnce>::call_once::h760bb73d54d4c118 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/alloc/src/boxed.rs:1966:9 [INFO] [stdout] 44: 0x5717294923bb - std::sys::pal::unix::thread::Thread::new::thread_start::h91ff250566269b77 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/pal/unix/thread.rs:97:17 [INFO] [stdout] 45: 0x756315981aa4 - [INFO] [stdout] 46: 0x756315a0ea34 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- define_function_more_statement stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'define_function_more_statement' panicked at tests/test.rs:53:1: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: " main() { \n return foo();\n}\nfn foo(){\n let x = 5;\n return x;\n}" [INFO] [stdout] right: "" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x57172948ea92 - std::backtrace_rs::backtrace::libunwind::trace::h2bdbdb423cc746ad [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x57172948ea92 - std::backtrace_rs::backtrace::trace_unsynchronized::h876081fa48c0856a [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x57172948ea92 - std::sys::backtrace::_print_fmt::h744638bebbff2806 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x57172948ea92 - ::fmt::he6e74fa9d0076b5d [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x5717294b2983 - core::fmt::rt::Argument::fmt::hf88a3177e76af877 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x5717294b2983 - core::fmt::write::h6442196e41589522 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/fmt/mod.rs:1446:25 [INFO] [stdout] 6: 0x57172948bab3 - std::io::default_write_fmt::h19b804dc75596022 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x57172948bab3 - std::io::Write::write_fmt::h561df7c669043671 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/io/mod.rs:1914:13 [INFO] [stdout] 8: 0x57172948e8e2 - std::sys::backtrace::BacktraceLock::print::h25e1ce4c29150054 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x57172949001c - std::panicking::default_hook::{{closure}}::h36663bdaae83f2bb [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:300:22 [INFO] [stdout] 10: 0x57172948fe72 - std::panicking::default_hook::hb9d7c40580cf1835 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:324:9 [INFO] [stdout] 11: 0x5717294213a4 - as core::ops::function::Fn>::call::h53bdf3f1ac68020f [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/alloc/src/boxed.rs:1980:9 [INFO] [stdout] 12: 0x5717294213a4 - test::test_main_with_exit_callback::{{closure}}::h3ae9af1665ff5b7d [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x571729490b13 - as core::ops::function::Fn>::call::ha3a705c6ebc0f8fb [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/alloc/src/boxed.rs:1980:9 [INFO] [stdout] 14: 0x571729490b13 - std::panicking::rust_panic_with_hook::h2d703857e4ba629f [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:841:13 [INFO] [stdout] 15: 0x5717294907ca - std::panicking::begin_panic_handler::{{closure}}::h53dd12a17ad784b1 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:706:13 [INFO] [stdout] 16: 0x57172948ef99 - std::sys::backtrace::__rust_end_short_backtrace::hf54a874920d38937 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:168:18 [INFO] [stdout] 17: 0x57172949045d - __rustc[22d03d94d4da23d0]::rust_begin_unwind [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:697:5 [INFO] [stdout] 18: 0x5717294b1420 - core::panicking::panic_fmt::hb74c170c8276d1d6 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x5717294b1743 - core::panicking::assert_failed_inner::h1a3c526c7717b97a [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panicking.rs:432:17 [INFO] [stdout] 20: 0x5717293dcf2c - core::panicking::assert_failed::h9724d82ed894f90e [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panicking.rs:387:5 [INFO] [stdout] 21: 0x5717293e4936 - test::define_function_more_statement::h24ab1f06ab928e6b [INFO] [stdout] at /opt/rustwide/workdir/tests/test.rs:15:11 [INFO] [stdout] 22: 0x5717293e46bd - test::define_function_more_statement::{{closure}}::h210cdb47a17f258a [INFO] [stdout] at /opt/rustwide/workdir/tests/test.rs:11:19 [INFO] [stdout] 23: 0x5717293dc696 - core::ops::function::FnOnce::call_once::h54c94810faaf6282 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x571729426b9b - core::ops::function::FnOnce::call_once::h0c81d2c7e362685a [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x571729426b9b - test::__rust_begin_short_backtrace::hc62049913de4b9c6 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:648:18 [INFO] [stdout] 26: 0x571729425db2 - test::run_test_in_process::{{closure}}::h906d61461feea06d [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:671:60 [INFO] [stdout] 27: 0x571729425db2 - as core::ops::function::FnOnce<()>>::call_once::h962d8c24a3ec06f1 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 28: 0x571729425db2 - std::panicking::try::do_call::h88e304055018b07f [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:589:40 [INFO] [stdout] 29: 0x571729425db2 - std::panicking::try::h34046f0780b49f58 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:552:19 [INFO] [stdout] 30: 0x571729425db2 - std::panic::catch_unwind::h7d7ad4d133a51a76 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x571729425db2 - test::run_test_in_process::h0871d7f888d1f41c [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:671:27 [INFO] [stdout] 32: 0x571729425db2 - test::run_test::{{closure}}::h696f8114d8bae20e [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:592:43 [INFO] [stdout] 33: 0x5717293e91a4 - test::run_test::{{closure}}::h632082d0bd36bde1 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:622:41 [INFO] [stdout] 34: 0x5717293e91a4 - std::sys::backtrace::__rust_begin_short_backtrace::hf4db03c672d46ea2 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:152:18 [INFO] [stdout] 35: 0x5717293ecc7a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h571ce7b4ea6fba0e [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 36: 0x5717293ecc7a - as core::ops::function::FnOnce<()>>::call_once::h79478c2f2b0b4ed6 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 37: 0x5717293ecc7a - std::panicking::try::do_call::hdfb524d8b1c5ea5d [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:589:40 [INFO] [stdout] 38: 0x5717293ecc7a - std::panicking::try::hb57ee69084fa6c6a [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:552:19 [INFO] [stdout] 39: 0x5717293ecc7a - std::panic::catch_unwind::h1fcc7dadd90dd47c [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x5717293ecc7a - std::thread::Builder::spawn_unchecked_::{{closure}}::h7201710e36d47c29 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 41: 0x5717293ecc7a - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha75b12b48ae5b3d2 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x5717294923bb - as core::ops::function::FnOnce>::call_once::h02517bb8c2b8e279 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/alloc/src/boxed.rs:1966:9 [INFO] [stdout] 43: 0x5717294923bb - as core::ops::function::FnOnce>::call_once::h760bb73d54d4c118 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/alloc/src/boxed.rs:1966:9 [INFO] [stdout] 44: 0x5717294923bb - std::sys::pal::unix::thread::Thread::new::thread_start::h91ff250566269b77 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/pal/unix/thread.rs:97:17 [INFO] [stdout] 45: 0x756315981aa4 - [INFO] [stdout] 46: 0x756315a0ea34 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] ---- define_function_args stdout ---- [INFO] [stdout] [INFO] [stdout] thread 'define_function_args' panicked at tests/test.rs:52:1: [INFO] [stdout] assertion `left == right` failed [INFO] [stdout] left: " main(){return foo(1,2,3);} fn foo(a,b,c){return a+b+c;}" [INFO] [stdout] right: "" [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x57172948ea92 - std::backtrace_rs::backtrace::libunwind::trace::h2bdbdb423cc746ad [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9 [INFO] [stdout] 1: 0x57172948ea92 - std::backtrace_rs::backtrace::trace_unsynchronized::h876081fa48c0856a [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14 [INFO] [stdout] 2: 0x57172948ea92 - std::sys::backtrace::_print_fmt::h744638bebbff2806 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x57172948ea92 - ::fmt::he6e74fa9d0076b5d [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x5717294b2983 - core::fmt::rt::Argument::fmt::hf88a3177e76af877 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/fmt/rt.rs:173:76 [INFO] [stdout] 5: 0x5717294b2983 - core::fmt::write::h6442196e41589522 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/fmt/mod.rs:1446:25 [INFO] [stdout] 6: 0x57172948bab3 - std::io::default_write_fmt::h19b804dc75596022 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/io/mod.rs:639:11 [INFO] [stdout] 7: 0x57172948bab3 - std::io::Write::write_fmt::h561df7c669043671 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/io/mod.rs:1914:13 [INFO] [stdout] 8: 0x57172948e8e2 - std::sys::backtrace::BacktraceLock::print::h25e1ce4c29150054 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 9: 0x57172949001c - std::panicking::default_hook::{{closure}}::h36663bdaae83f2bb [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:300:22 [INFO] [stdout] 10: 0x57172948fe72 - std::panicking::default_hook::hb9d7c40580cf1835 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:324:9 [INFO] [stdout] 11: 0x5717294213a4 - as core::ops::function::Fn>::call::h53bdf3f1ac68020f [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/alloc/src/boxed.rs:1980:9 [INFO] [stdout] 12: 0x5717294213a4 - test::test_main_with_exit_callback::{{closure}}::h3ae9af1665ff5b7d [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:145:21 [INFO] [stdout] 13: 0x571729490b13 - as core::ops::function::Fn>::call::ha3a705c6ebc0f8fb [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/alloc/src/boxed.rs:1980:9 [INFO] [stdout] 14: 0x571729490b13 - std::panicking::rust_panic_with_hook::h2d703857e4ba629f [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:841:13 [INFO] [stdout] 15: 0x5717294907ca - std::panicking::begin_panic_handler::{{closure}}::h53dd12a17ad784b1 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:706:13 [INFO] [stdout] 16: 0x57172948ef99 - std::sys::backtrace::__rust_end_short_backtrace::hf54a874920d38937 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:168:18 [INFO] [stdout] 17: 0x57172949045d - __rustc[22d03d94d4da23d0]::rust_begin_unwind [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:697:5 [INFO] [stdout] 18: 0x5717294b1420 - core::panicking::panic_fmt::hb74c170c8276d1d6 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panicking.rs:75:14 [INFO] [stdout] 19: 0x5717294b1743 - core::panicking::assert_failed_inner::h1a3c526c7717b97a [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panicking.rs:432:17 [INFO] [stdout] 20: 0x5717293dcf2c - core::panicking::assert_failed::h9724d82ed894f90e [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panicking.rs:387:5 [INFO] [stdout] 21: 0x5717293e4556 - test::define_function_args::h7f4465856bab8b8e [INFO] [stdout] at /opt/rustwide/workdir/tests/test.rs:15:11 [INFO] [stdout] 22: 0x5717293e42dd - test::define_function_args::{{closure}}::he8ef106e0246eb8d [INFO] [stdout] at /opt/rustwide/workdir/tests/test.rs:11:19 [INFO] [stdout] 23: 0x5717293dc866 - core::ops::function::FnOnce::call_once::h84479538ab664f47 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x571729426b9b - core::ops::function::FnOnce::call_once::h0c81d2c7e362685a [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 25: 0x571729426b9b - test::__rust_begin_short_backtrace::hc62049913de4b9c6 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:648:18 [INFO] [stdout] 26: 0x571729425db2 - test::run_test_in_process::{{closure}}::h906d61461feea06d [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:671:60 [INFO] [stdout] 27: 0x571729425db2 - as core::ops::function::FnOnce<()>>::call_once::h962d8c24a3ec06f1 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 28: 0x571729425db2 - std::panicking::try::do_call::h88e304055018b07f [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:589:40 [INFO] [stdout] 29: 0x571729425db2 - std::panicking::try::h34046f0780b49f58 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:552:19 [INFO] [stdout] 30: 0x571729425db2 - std::panic::catch_unwind::h7d7ad4d133a51a76 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panic.rs:359:14 [INFO] [stdout] 31: 0x571729425db2 - test::run_test_in_process::h0871d7f888d1f41c [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:671:27 [INFO] [stdout] 32: 0x571729425db2 - test::run_test::{{closure}}::h696f8114d8bae20e [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:592:43 [INFO] [stdout] 33: 0x5717293e91a4 - test::run_test::{{closure}}::h632082d0bd36bde1 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/test/src/lib.rs:622:41 [INFO] [stdout] 34: 0x5717293e91a4 - std::sys::backtrace::__rust_begin_short_backtrace::hf4db03c672d46ea2 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/backtrace.rs:152:18 [INFO] [stdout] 35: 0x5717293ecc7a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h571ce7b4ea6fba0e [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/thread/mod.rs:559:17 [INFO] [stdout] 36: 0x5717293ecc7a - as core::ops::function::FnOnce<()>>::call_once::h79478c2f2b0b4ed6 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 37: 0x5717293ecc7a - std::panicking::try::do_call::hdfb524d8b1c5ea5d [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:589:40 [INFO] [stdout] 38: 0x5717293ecc7a - std::panicking::try::hb57ee69084fa6c6a [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panicking.rs:552:19 [INFO] [stdout] 39: 0x5717293ecc7a - std::panic::catch_unwind::h1fcc7dadd90dd47c [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/panic.rs:359:14 [INFO] [stdout] 40: 0x5717293ecc7a - std::thread::Builder::spawn_unchecked_::{{closure}}::h7201710e36d47c29 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/thread/mod.rs:557:30 [INFO] [stdout] 41: 0x5717293ecc7a - core::ops::function::FnOnce::call_once{{vtable.shim}}::ha75b12b48ae5b3d2 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 42: 0x5717294923bb - as core::ops::function::FnOnce>::call_once::h02517bb8c2b8e279 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/alloc/src/boxed.rs:1966:9 [INFO] [stdout] 43: 0x5717294923bb - as core::ops::function::FnOnce>::call_once::h760bb73d54d4c118 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/alloc/src/boxed.rs:1966:9 [INFO] [stdout] 44: 0x5717294923bb - std::sys::pal::unix::thread::Thread::new::thread_start::h91ff250566269b77 [INFO] [stdout] at /rustc/17092ad00ed8fe1e7f81a7e38238ff70779034b1/library/std/src/sys/pal/unix/thread.rs:97:17 [INFO] [stdout] 45: 0x756315981aa4 - [INFO] [stdout] 46: 0x756315a0ea34 - clone [INFO] [stdout] 47: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] define_full_program [INFO] [stdout] define_function [INFO] [stdout] define_function_args [INFO] [stdout] define_function_more_statement [INFO] [stdout] [INFO] [stdout] test result: FAILED. 34 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "de0c10ade02e67f8930be020705714dc14d83827b35641b0fad1279c4deb70a5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "de0c10ade02e67f8930be020705714dc14d83827b35641b0fad1279c4deb70a5", kill_on_drop: false }` [INFO] [stdout] de0c10ade02e67f8930be020705714dc14d83827b35641b0fad1279c4deb70a5