[INFO] cloning repository https://github.com/veekxt/xt_lang [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/veekxt/xt_lang" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fveekxt%2Fxt_lang", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fveekxt%2Fxt_lang'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 0dcfb70820a5a3c2e4c31d95c89184ae0af1395d [INFO] building veekxt/xt_lang against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fveekxt%2Fxt_lang" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/veekxt/xt_lang on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/veekxt/xt_lang [INFO] finished tweaking git repo https://github.com/veekxt/xt_lang [INFO] tweaked toml for git repo https://github.com/veekxt/xt_lang written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/veekxt/xt_lang already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9b54742122021c9aad8c909333f9b68d0f90f6f3d7acf5b908b8307c81aa8c58 [INFO] running `Command { std: "docker" "start" "-a" "9b54742122021c9aad8c909333f9b68d0f90f6f3d7acf5b908b8307c81aa8c58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9b54742122021c9aad8c909333f9b68d0f90f6f3d7acf5b908b8307c81aa8c58", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9b54742122021c9aad8c909333f9b68d0f90f6f3d7acf5b908b8307c81aa8c58", kill_on_drop: false }` [INFO] [stdout] 9b54742122021c9aad8c909333f9b68d0f90f6f3d7acf5b908b8307c81aa8c58 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 295ba5aa731171726da60d0d637c2fbfbf30eaf66dc8bd1607fd3661a7fdf700 [INFO] running `Command { std: "docker" "start" "-a" "295ba5aa731171726da60d0d637c2fbfbf30eaf66dc8bd1607fd3661a7fdf700", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling xt_lang v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | 'a' ... 'z' | 'A' ... 'Z' | '_' => true, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer.rs:122:27 [INFO] [stdout] | [INFO] [stdout] 122 | 'a' ... 'z' | 'A' ... 'Z' | '_' => true, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer.rs:129:13 [INFO] [stdout] | [INFO] [stdout] 129 | '0' ... '9' | 'a' ... 'z' | 'A' ... 'Z' | '_' => true, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer.rs:129:27 [INFO] [stdout] | [INFO] [stdout] 129 | '0' ... '9' | 'a' ... 'z' | 'A' ... 'Z' | '_' => true, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer.rs:129:41 [INFO] [stdout] | [INFO] [stdout] 129 | '0' ... '9' | 'a' ... 'z' | 'A' ... 'Z' | '_' => true, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer.rs:136:13 [INFO] [stdout] | [INFO] [stdout] 136 | '0' ... '9' => true, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 143 | '0' ... '9' => true, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `err_return2` [INFO] [stdout] --> src/parser.rs:294:14 [INFO] [stdout] | [INFO] [stdout] 294 | macro_rules! err_return2 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/xt_type.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/parser.rs:573:21 [INFO] [stdout] | [INFO] [stdout] 573 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/xt_type.rs:27:16 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn new_int(i: i64) -> Box { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/xt_type.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut val = XtValue { [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 variable: `i` [INFO] [stdout] --> src/xt_type.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn new_bool(i: bool) -> Box { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/xt_type.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let mut val = XtValue { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | Err(err) => {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `in_if` and `err` are never read [INFO] [stdout] --> src/parser.rs:483:5 [INFO] [stdout] | [INFO] [stdout] 482 | pub struct Status { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 483 | in_if: isize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 487 | err: bool, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Status` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `RETURN`, `BREAK`, and `CONTINUE` are never constructed [INFO] [stdout] --> src/run.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 59 | enum StmtInfo { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 60 | RETURN(XtValue), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 61 | BREAK, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 62 | CONTINUE, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/xt_type.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct XtValueType { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 6 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `SysFunction` and `DefFunction` are never constructed [INFO] [stdout] --> src/xt_type.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum XtFunction { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 16 | SysFunction(fn(&XtValue) -> ()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 17 | DefFunction(Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `xt_type`, `attribute`, and `method` are never read [INFO] [stdout] --> src/xt_type.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct XtValue { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 21 | pub id: i64, [INFO] [stdout] | ^^ [INFO] [stdout] 22 | pub xt_type: XtValueType, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | pub attribute: HashMap, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 24 | pub method: HashMap, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_bool` is never used [INFO] [stdout] --> src/xt_type.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn new_bool(i: bool) -> Box { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | run(ast); [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] 29 | let _ = run(ast); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/run.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | run_var(context, iden, exp); [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] 92 | let _ = run_var(context, iden, exp); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/run.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | run_stmt(context,stmt); [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] 95 | let _ = run_stmt(context,stmt); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/run.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | run_stmt(&mut context, &ast_vec); [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] 111 | let _ = run_stmt(&mut context, &ast_vec); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.85s [INFO] running `Command { std: "docker" "inspect" "295ba5aa731171726da60d0d637c2fbfbf30eaf66dc8bd1607fd3661a7fdf700", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "295ba5aa731171726da60d0d637c2fbfbf30eaf66dc8bd1607fd3661a7fdf700", kill_on_drop: false }` [INFO] [stdout] 295ba5aa731171726da60d0d637c2fbfbf30eaf66dc8bd1607fd3661a7fdf700 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid -Dtail-expr-drop-order" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 436f423d56e3c839d1a17c9a02364f41a84fa2c25787e122152ac30bf9107f50 [INFO] running `Command { std: "docker" "start" "-a" "436f423d56e3c839d1a17c9a02364f41a84fa2c25787e122152ac30bf9107f50", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling xt_lang v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer.rs:122:13 [INFO] [stdout] | [INFO] [stdout] 122 | 'a' ... 'z' | 'A' ... 'Z' | '_' => true, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(ellipsis_inclusive_range_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer.rs:122:27 [INFO] [stdout] | [INFO] [stdout] 122 | 'a' ... 'z' | 'A' ... 'Z' | '_' => true, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer.rs:129:13 [INFO] [stdout] | [INFO] [stdout] 129 | '0' ... '9' | 'a' ... 'z' | 'A' ... 'Z' | '_' => true, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer.rs:129:27 [INFO] [stdout] | [INFO] [stdout] 129 | '0' ... '9' | 'a' ... 'z' | 'A' ... 'Z' | '_' => true, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer.rs:129:41 [INFO] [stdout] | [INFO] [stdout] 129 | '0' ... '9' | 'a' ... 'z' | 'A' ... 'Z' | '_' => true, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer.rs:136:13 [INFO] [stdout] | [INFO] [stdout] 136 | '0' ... '9' => true, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `...` range patterns are deprecated [INFO] [stdout] --> src/lexer.rs:143:13 [INFO] [stdout] | [INFO] [stdout] 143 | '0' ... '9' => true, [INFO] [stdout] | ^^^ help: use `..=` for an inclusive range [INFO] [stdout] | [INFO] [stdout] = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021! [INFO] [stdout] = note: for more information, see [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition: `err_return2` [INFO] [stdout] --> src/parser.rs:294:14 [INFO] [stdout] | [INFO] [stdout] 294 | macro_rules! err_return2 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::HashSet` [INFO] [stdout] --> src/xt_type.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/parser.rs:573:21 [INFO] [stdout] | [INFO] [stdout] 573 | Err(err) => { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `i` [INFO] [stdout] --> src/xt_type.rs:27:16 [INFO] [stdout] | [INFO] [stdout] 27 | pub fn new_int(i: i64) -> Box { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/xt_type.rs:28:9 [INFO] [stdout] | [INFO] [stdout] 28 | let mut val = XtValue { [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 variable: `i` [INFO] [stdout] --> src/xt_type.rs:37:17 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn new_bool(i: bool) -> Box { [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_i` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/xt_type.rs:38:9 [INFO] [stdout] | [INFO] [stdout] 38 | let mut val = XtValue { [INFO] [stdout] | ----^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `err` [INFO] [stdout] --> src/main.rs:31:21 [INFO] [stdout] | [INFO] [stdout] 31 | Err(err) => {} [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_err` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `in_if` and `err` are never read [INFO] [stdout] --> src/parser.rs:483:5 [INFO] [stdout] | [INFO] [stdout] 482 | pub struct Status { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 483 | in_if: isize, [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 487 | err: bool, [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Status` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `RETURN`, `BREAK`, and `CONTINUE` are never constructed [INFO] [stdout] --> src/run.rs:60:5 [INFO] [stdout] | [INFO] [stdout] 59 | enum StmtInfo { [INFO] [stdout] | -------- variants in this enum [INFO] [stdout] 60 | RETURN(XtValue), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 61 | BREAK, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 62 | CONTINUE, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `name` is never read [INFO] [stdout] --> src/xt_type.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub struct XtValueType { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 6 | name: String, [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `SysFunction` and `DefFunction` are never constructed [INFO] [stdout] --> src/xt_type.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 15 | pub enum XtFunction { [INFO] [stdout] | ---------- variants in this enum [INFO] [stdout] 16 | SysFunction(fn(&XtValue) -> ()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 17 | DefFunction(Box), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `id`, `xt_type`, `attribute`, and `method` are never read [INFO] [stdout] --> src/xt_type.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 20 | pub struct XtValue { [INFO] [stdout] | ------- fields in this struct [INFO] [stdout] 21 | pub id: i64, [INFO] [stdout] | ^^ [INFO] [stdout] 22 | pub xt_type: XtValueType, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] 23 | pub attribute: HashMap, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 24 | pub method: HashMap, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `new_bool` is never used [INFO] [stdout] --> src/xt_type.rs:37:8 [INFO] [stdout] | [INFO] [stdout] 37 | pub fn new_bool(i: bool) -> Box { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:29:21 [INFO] [stdout] | [INFO] [stdout] 29 | run(ast); [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] 29 | let _ = run(ast); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/run.rs:92:17 [INFO] [stdout] | [INFO] [stdout] 92 | run_var(context, iden, exp); [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] 92 | let _ = run_var(context, iden, exp); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/run.rs:95:17 [INFO] [stdout] | [INFO] [stdout] 95 | run_stmt(context,stmt); [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] 95 | let _ = run_stmt(context,stmt); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/run.rs:111:9 [INFO] [stdout] | [INFO] [stdout] 111 | run_stmt(&mut context, &ast_vec); [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] 111 | let _ = run_stmt(&mut context, &ast_vec); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.28s [INFO] running `Command { std: "docker" "inspect" "436f423d56e3c839d1a17c9a02364f41a84fa2c25787e122152ac30bf9107f50", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "436f423d56e3c839d1a17c9a02364f41a84fa2c25787e122152ac30bf9107f50", kill_on_drop: false }` [INFO] [stdout] 436f423d56e3c839d1a17c9a02364f41a84fa2c25787e122152ac30bf9107f50