[INFO] cloning repository https://github.com/nilq/ketchup [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/nilq/ketchup" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnilq%2Fketchup", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnilq%2Fketchup'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] a7015cf97d074264852cf4941843d1bc058d2501 [INFO] checking nilq/ketchup against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnilq%2Fketchup" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nilq/ketchup on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/nilq/ketchup [INFO] finished tweaking git repo https://github.com/nilq/ketchup [INFO] tweaked toml for git repo https://github.com/nilq/ketchup written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/nilq/ketchup 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" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] ae29413413ef7b4310df302542cb37862b3d95c239e1f6378a4334009e224c93 [INFO] running `Command { std: "docker" "start" "-a" "ae29413413ef7b4310df302542cb37862b3d95c239e1f6378a4334009e224c93", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ae29413413ef7b4310df302542cb37862b3d95c239e1f6378a4334009e224c93", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ae29413413ef7b4310df302542cb37862b3d95c239e1f6378a4334009e224c93", kill_on_drop: false }` [INFO] [stdout] ae29413413ef7b4310df302542cb37862b3d95c239e1f6378a4334009e224c93 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] e9bf6d19bf5bdc6fcaa958238c31c80b6a838a4456c4cb7bdde448371669a321 [INFO] running `Command { std: "docker" "start" "-a" "e9bf6d19bf5bdc6fcaa958238c31c80b6a838a4456c4cb7bdde448371669a321", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking ketchup v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `flatten_branch` and `lex_branch` [INFO] [stdout] --> src/language/syntax/lexer/mod.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | pub use self::lexer::{lexer, lex_branch, flatten_branch, process_branch}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::lexer` [INFO] [stdout] --> src/language/syntax/parser/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use super::lexer; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/language/vm/mod.rs:45:56 [INFO] [stdout] | [INFO] [stdout] 45 | Op::Add => binary_op!(self, a, b, try!(a.add(b))), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/language/vm/mod.rs:46:56 [INFO] [stdout] | [INFO] [stdout] 46 | Op::Sub => binary_op!(self, a, b, try!(a.sub(b))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/language/vm/mod.rs:47:56 [INFO] [stdout] | [INFO] [stdout] 47 | Op::Mul => binary_op!(self, a, b, try!(a.mul(b))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/language/vm/mod.rs:48:56 [INFO] [stdout] | [INFO] [stdout] 48 | Op::Div => binary_op!(self, a, b, try!(a.div(b))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/language/vm/mod.rs:108:43 [INFO] [stdout] | [INFO] [stdout] 108 | ... match try!(frame.run(scopes)) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Op` [INFO] [stdout] --> src/language/mod.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | use vm::{Op, Value, Object, Native}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `flatten_branch` and `lex_branch` [INFO] [stdout] --> src/language/syntax/lexer/mod.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | pub use self::lexer::{lexer, lex_branch, flatten_branch, process_branch}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::lexer` [INFO] [stdout] --> src/language/syntax/parser/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use super::lexer; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/language/vm/mod.rs:45:56 [INFO] [stdout] | [INFO] [stdout] 45 | Op::Add => binary_op!(self, a, b, try!(a.add(b))), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/language/vm/mod.rs:46:56 [INFO] [stdout] | [INFO] [stdout] 46 | Op::Sub => binary_op!(self, a, b, try!(a.sub(b))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/language/vm/mod.rs:47:56 [INFO] [stdout] | [INFO] [stdout] 47 | Op::Mul => binary_op!(self, a, b, try!(a.mul(b))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/language/vm/mod.rs:48:56 [INFO] [stdout] | [INFO] [stdout] 48 | Op::Div => binary_op!(self, a, b, try!(a.div(b))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/language/vm/mod.rs:108:43 [INFO] [stdout] | [INFO] [stdout] 108 | ... match try!(frame.run(scopes)) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Op` [INFO] [stdout] --> src/language/mod.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | use vm::{Op, Value, Object, Native}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/language/syntax/lexer/lexer.rs:116:23 [INFO] [stdout] | [INFO] [stdout] 116 | matchers: Vec>, [INFO] [stdout] | ^^^^^^^ [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(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 116 | matchers: Vec>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/language/syntax/lexer/lexer.rs:116:23 [INFO] [stdout] | [INFO] [stdout] 116 | matchers: Vec>, [INFO] [stdout] | ^^^^^^^ [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(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 116 | matchers: Vec>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/language/syntax/lexer/tokenizer.rs:41:28 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn new(items: &mut Iterator) -> Tokenizer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 41 | pub fn new(items: &mut dyn Iterator) -> Tokenizer { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/language/syntax/lexer/tokenizer.rs:41:28 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn new(items: &mut Iterator) -> Tokenizer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 41 | pub fn new(items: &mut dyn Iterator) -> Tokenizer { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/language/syntax/lexer/tokenizer.rs:112:49 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn try_match_token(&mut self, matcher: &Matcher) -> Option { [INFO] [stdout] | ^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 112 | pub fn try_match_token(&mut self, matcher: &dyn Matcher) -> Option { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/language/syntax/lexer/tokenizer.rs:112:49 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn try_match_token(&mut self, matcher: &Matcher) -> Option { [INFO] [stdout] | ^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 112 | pub fn try_match_token(&mut self, matcher: &dyn Matcher) -> Option { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/language/syntax/lexer/lexer.rs:138:40 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn matchers(&self) -> &Vec> { [INFO] [stdout] | ^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 138 | pub fn matchers(&self) -> &Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/language/syntax/lexer/lexer.rs:138:40 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn matchers(&self) -> &Vec> { [INFO] [stdout] | ^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 138 | pub fn matchers(&self) -> &Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/language/syntax/lexer/lexer.rs:142:52 [INFO] [stdout] | [INFO] [stdout] 142 | pub fn matchers_mut(&mut self) -> &mut Vec> { [INFO] [stdout] | ^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 142 | pub fn matchers_mut(&mut self) -> &mut Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/language/syntax/lexer/lexer.rs:142:52 [INFO] [stdout] | [INFO] [stdout] 142 | pub fn matchers_mut(&mut self) -> &mut Vec> { [INFO] [stdout] | ^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 142 | pub fn matchers_mut(&mut self) -> &mut Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/language/mod.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 48 | panic!(s.join(" ")); [INFO] [stdout] | ------------------- any code following this expression is unreachable [INFO] [stdout] 49 | [INFO] [stdout] 50 | Value::Nil [INFO] [stdout] | ^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/language/mod.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 48 | panic!(s.join(" ")); [INFO] [stdout] | ------------------- any code following this expression is unreachable [INFO] [stdout] 49 | [INFO] [stdout] 50 | Value::Nil [INFO] [stdout] | ^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `body` is never read [INFO] [stdout] --> src/language/syntax/parser/mod.rs:186:29 [INFO] [stdout] | [INFO] [stdout] 186 | let mut body: Option> = None; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/language/syntax/parser/mod.rs:215:25 [INFO] [stdout] | [INFO] [stdout] 215 | t => body = Some(vec!(Statement::Expression(Box::new(self.expression())))), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `body` is never read [INFO] [stdout] --> src/language/syntax/parser/mod.rs:186:29 [INFO] [stdout] | [INFO] [stdout] 186 | let mut body: Option> = None; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/language/syntax/parser/mod.rs:215:25 [INFO] [stdout] | [INFO] [stdout] 215 | t => body = Some(vec!(Statement::Expression(Box::new(self.expression())))), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/language/vm/mod.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 59 | Op::Name(ref n) => match scopes.get(n) { [INFO] [stdout] | --------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 63 | Op::Name(ref n) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/language/vm/mod.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 129 | _ => panic!("angery, not covered!?!"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/language/vm/mod.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 44 | Op::Value(ref v) => self.stack.push(v.clone()), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 45 | Op::Add => binary_op!(self, a, b, try!(a.add(b))), [INFO] [stdout] | ------- matches some of the same values [INFO] [stdout] 46 | Op::Sub => binary_op!(self, a, b, try!(a.sub(b))), [INFO] [stdout] | ------- matches some of the same values [INFO] [stdout] 47 | Op::Mul => binary_op!(self, a, b, try!(a.mul(b))), [INFO] [stdout] | ------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 129 | _ => panic!("angery, not covered!?!"), [INFO] [stdout] | ^ ...and 14 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/language/vm/mod.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 59 | Op::Name(ref n) => match scopes.get(n) { [INFO] [stdout] | --------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 63 | Op::Name(ref n) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/language/vm/mod.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 129 | _ => panic!("angery, not covered!?!"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/language/vm/mod.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 44 | Op::Value(ref v) => self.stack.push(v.clone()), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 45 | Op::Add => binary_op!(self, a, b, try!(a.add(b))), [INFO] [stdout] | ------- matches some of the same values [INFO] [stdout] 46 | Op::Sub => binary_op!(self, a, b, try!(a.sub(b))), [INFO] [stdout] | ------- matches some of the same values [INFO] [stdout] 47 | Op::Mul => binary_op!(self, a, b, try!(a.mul(b))), [INFO] [stdout] | ------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 129 | _ => panic!("angery, not covered!?!"), [INFO] [stdout] | ^ ...and 14 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/language/mod.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | _ => panic!("unimplemented expression!") , [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/language/mod.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 60 | Expression::Atom(ref v) => script.push(Op::Value(v.clone())), [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] 61 | Expression::Operation(ref l, ref op, ref r) => { [INFO] [stdout] | ------------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 77 | Expression::Identifier(ref n) => script.push(Op::Name(n.clone())), [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 78 | Expression::Call(ref args) => { [INFO] [stdout] | -------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 114 | _ => panic!("unimplemented expression!") , [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/language/mod.rs:157:17 [INFO] [stdout] | [INFO] [stdout] 157 | _ => panic!("unstable/unimplemented statement!?") [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/language/mod.rs:157:17 [INFO] [stdout] | [INFO] [stdout] 130 | Statement::Expression(e) => expression(&mut script, &e), [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] 131 | Statement::Block(ve) => script.append(&mut statements(*ve)), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 132 | Statement::Definition(n, e) => assignment(&mut script, &n, &*e), [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] 133 | Statement::If(cond, body) => { [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 157 | _ => panic!("unstable/unimplemented statement!?") [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/language/mod.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | _ => panic!("unimplemented expression!") , [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/language/mod.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 60 | Expression::Atom(ref v) => script.push(Op::Value(v.clone())), [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] 61 | Expression::Operation(ref l, ref op, ref r) => { [INFO] [stdout] | ------------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 77 | Expression::Identifier(ref n) => script.push(Op::Name(n.clone())), [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 78 | Expression::Call(ref args) => { [INFO] [stdout] | -------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 114 | _ => panic!("unimplemented expression!") , [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/language/mod.rs:157:17 [INFO] [stdout] | [INFO] [stdout] 157 | _ => panic!("unstable/unimplemented statement!?") [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/language/mod.rs:157:17 [INFO] [stdout] | [INFO] [stdout] 130 | Statement::Expression(e) => expression(&mut script, &e), [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] 131 | Statement::Block(ve) => script.append(&mut statements(*ve)), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 132 | Statement::Definition(n, e) => assignment(&mut script, &n, &*e), [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] 133 | Statement::If(cond, body) => { [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 157 | _ => panic!("unstable/unimplemented statement!?") [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let mut test = r#" [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: function `test` is never used [INFO] [stdout] --> src/main.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Block` is never constructed [INFO] [stdout] --> src/language/syntax/lexer/token.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum TokenType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 3 | Block(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/language/syntax/lexer/block_tree.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | Source(String), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ChunkValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 5 | Source(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/language/syntax/lexer/block_tree.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | Block(Branch), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ChunkValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 7 | Block(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Tokens` is never constructed [INFO] [stdout] --> src/language/syntax/lexer/block_tree.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ChunkValue { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 5 | Source(String), [INFO] [stdout] 6 | Tokens(Vec), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChunkValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/language/syntax/lexer/block_tree.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Chunk { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 12 | value: ChunkValue, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Chunk` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/language/syntax/lexer/block_tree.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Chunk { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn value(&self) -> &ChunkValue { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lex_branch` is never used [INFO] [stdout] --> src/language/syntax/lexer/lexer.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn lex_branch(branch: &Branch) -> Branch { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `flatten_branch` is never used [INFO] [stdout] --> src/language/syntax/lexer/lexer.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn flatten_branch(branch: &Branch) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_branch` is never used [INFO] [stdout] --> src/language/syntax/lexer/lexer.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn process_branch(branch: &Branch) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Block` is never constructed [INFO] [stdout] --> src/language/syntax/parser/ast.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum Statement { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 15 | Block(Box>), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Statement` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Jump` is never constructed [INFO] [stdout] --> src/language/vm/op.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Op { [INFO] [stdout] | -- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 21 | Jump(i32), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Op` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | vm.run(&mut scopes); [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] 53 | let _ = vm.run(&mut scopes); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/main.rs:56:30 [INFO] [stdout] | [INFO] [stdout] 56 | Err(e) => panic!(e), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 56 | Err(e) => panic!("{}", e), [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 56 | Err(e) => std::panic::panic_any(e), [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | vm.run(&mut scopes); [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 _ = vm.run(&mut scopes); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let mut test = r#" [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: panic message is not a string literal [INFO] [stdout] --> src/language/mod.rs:48:16 [INFO] [stdout] | [INFO] [stdout] 48 | panic!(s.join(" ")); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 48 | panic!("{}", s.join(" ")); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/main.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Block` is never constructed [INFO] [stdout] --> src/language/syntax/lexer/token.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum TokenType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 3 | Block(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/language/syntax/lexer/block_tree.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | Source(String), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ChunkValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 5 | Source(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/language/syntax/lexer/block_tree.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | Block(Branch), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ChunkValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 7 | Block(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Tokens` is never constructed [INFO] [stdout] --> src/language/syntax/lexer/block_tree.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ChunkValue { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 5 | Source(String), [INFO] [stdout] 6 | Tokens(Vec), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChunkValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/language/syntax/lexer/block_tree.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Chunk { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 12 | value: ChunkValue, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Chunk` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/language/syntax/lexer/block_tree.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Chunk { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn value(&self) -> &ChunkValue { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lex_branch` is never used [INFO] [stdout] --> src/language/syntax/lexer/lexer.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn lex_branch(branch: &Branch) -> Branch { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `flatten_branch` is never used [INFO] [stdout] --> src/language/syntax/lexer/lexer.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn flatten_branch(branch: &Branch) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_branch` is never used [INFO] [stdout] --> src/language/syntax/lexer/lexer.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn process_branch(branch: &Branch) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Block` is never constructed [INFO] [stdout] --> src/language/syntax/parser/ast.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum Statement { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 15 | Block(Box>), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Statement` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Jump` is never constructed [INFO] [stdout] --> src/language/vm/op.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Op { [INFO] [stdout] | -- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 21 | Jump(i32), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Op` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | vm.run(&mut scopes); [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] 53 | let _ = vm.run(&mut scopes); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/main.rs:56:30 [INFO] [stdout] | [INFO] [stdout] 56 | Err(e) => panic!(e), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 56 | Err(e) => panic!("{}", e), [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 56 | Err(e) => std::panic::panic_any(e), [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | vm.run(&mut scopes); [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 _ = vm.run(&mut scopes); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/language/mod.rs:48:16 [INFO] [stdout] | [INFO] [stdout] 48 | panic!(s.join(" ")); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 48 | panic!("{}", s.join(" ")); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.18s [INFO] running `Command { std: "docker" "inspect" "e9bf6d19bf5bdc6fcaa958238c31c80b6a838a4456c4cb7bdde448371669a321", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e9bf6d19bf5bdc6fcaa958238c31c80b6a838a4456c4cb7bdde448371669a321", kill_on_drop: false }` [INFO] [stdout] e9bf6d19bf5bdc6fcaa958238c31c80b6a838a4456c4cb7bdde448371669a321 [INFO] checking nilq/ketchup against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnilq%2Fketchup" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nilq/ketchup on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/nilq/ketchup [INFO] finished tweaking git repo https://github.com/nilq/ketchup [INFO] tweaked toml for git repo https://github.com/nilq/ketchup written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/nilq/ketchup 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" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] db3b031747b40e7892be6c3ae7dc5a60046c277bd310f366cf7463bd86a68f7b [INFO] running `Command { std: "docker" "start" "-a" "db3b031747b40e7892be6c3ae7dc5a60046c277bd310f366cf7463bd86a68f7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "db3b031747b40e7892be6c3ae7dc5a60046c277bd310f366cf7463bd86a68f7b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "db3b031747b40e7892be6c3ae7dc5a60046c277bd310f366cf7463bd86a68f7b", kill_on_drop: false }` [INFO] [stdout] db3b031747b40e7892be6c3ae7dc5a60046c277bd310f366cf7463bd86a68f7b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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 -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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 18d7b9bf9fb088825408500282ed573f120091781765502934316667ee84daf8 [INFO] running `Command { std: "docker" "start" "-a" "18d7b9bf9fb088825408500282ed573f120091781765502934316667ee84daf8", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2021 [INFO] [stderr] Checking ketchup v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `flatten_branch` and `lex_branch` [INFO] [stdout] --> src/language/syntax/lexer/mod.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | pub use self::lexer::{lexer, lex_branch, flatten_branch, process_branch}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::lexer` [INFO] [stdout] --> src/language/syntax/parser/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use super::lexer; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/language/vm/mod.rs:45:56 [INFO] [stdout] | [INFO] [stdout] 45 | Op::Add => binary_op!(self, a, b, try!(a.add(b))), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/language/vm/mod.rs:46:56 [INFO] [stdout] | [INFO] [stdout] 46 | Op::Sub => binary_op!(self, a, b, try!(a.sub(b))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/language/vm/mod.rs:47:56 [INFO] [stdout] | [INFO] [stdout] 47 | Op::Mul => binary_op!(self, a, b, try!(a.mul(b))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `flatten_branch` and `lex_branch` [INFO] [stdout] --> src/language/syntax/lexer/mod.rs:11:30 [INFO] [stdout] | [INFO] [stdout] 11 | pub use self::lexer::{lexer, lex_branch, flatten_branch, process_branch}; [INFO] [stdout] | ^^^^^^^^^^ ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/language/vm/mod.rs:48:56 [INFO] [stdout] | [INFO] [stdout] 48 | Op::Div => binary_op!(self, a, b, try!(a.div(b))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `super::lexer` [INFO] [stdout] --> src/language/syntax/parser/mod.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 9 | pub use super::lexer; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/language/vm/mod.rs:108:43 [INFO] [stdout] | [INFO] [stdout] 108 | ... match try!(frame.run(scopes)) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Op` [INFO] [stdout] --> src/language/mod.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | use vm::{Op, Value, Object, Native}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/language/vm/mod.rs:45:56 [INFO] [stdout] | [INFO] [stdout] 45 | Op::Add => binary_op!(self, a, b, try!(a.add(b))), [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/language/vm/mod.rs:46:56 [INFO] [stdout] | [INFO] [stdout] 46 | Op::Sub => binary_op!(self, a, b, try!(a.sub(b))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/language/vm/mod.rs:47:56 [INFO] [stdout] | [INFO] [stdout] 47 | Op::Mul => binary_op!(self, a, b, try!(a.mul(b))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/language/vm/mod.rs:48:56 [INFO] [stdout] | [INFO] [stdout] 48 | Op::Div => binary_op!(self, a, b, try!(a.div(b))), [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated macro `try`: use the `?` operator instead [INFO] [stdout] --> src/language/vm/mod.rs:108:43 [INFO] [stdout] | [INFO] [stdout] 108 | ... match try!(frame.run(scopes)) { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Op` [INFO] [stdout] --> src/language/mod.rs:11:14 [INFO] [stdout] | [INFO] [stdout] 11 | use vm::{Op, Value, Object, Native}; [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/language/syntax/lexer/lexer.rs:116:23 [INFO] [stdout] | [INFO] [stdout] 116 | matchers: Vec>, [INFO] [stdout] | ^^^^^^^ [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(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 116 | matchers: Vec>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/language/syntax/lexer/lexer.rs:116:23 [INFO] [stdout] | [INFO] [stdout] 116 | matchers: Vec>, [INFO] [stdout] | ^^^^^^^ [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(bare_trait_objects)]` on by default [INFO] [stdout] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 116 | matchers: Vec>, [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/language/syntax/lexer/tokenizer.rs:41:28 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn new(items: &mut Iterator) -> Tokenizer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 41 | pub fn new(items: &mut dyn Iterator) -> Tokenizer { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/language/syntax/lexer/tokenizer.rs:41:28 [INFO] [stdout] | [INFO] [stdout] 41 | pub fn new(items: &mut Iterator) -> Tokenizer { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 41 | pub fn new(items: &mut dyn Iterator) -> Tokenizer { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/language/syntax/lexer/tokenizer.rs:112:49 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn try_match_token(&mut self, matcher: &Matcher) -> Option { [INFO] [stdout] | ^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 112 | pub fn try_match_token(&mut self, matcher: &dyn Matcher) -> Option { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/language/syntax/lexer/tokenizer.rs:112:49 [INFO] [stdout] | [INFO] [stdout] 112 | pub fn try_match_token(&mut self, matcher: &Matcher) -> Option { [INFO] [stdout] | ^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 112 | pub fn try_match_token(&mut self, matcher: &dyn Matcher) -> Option { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/language/syntax/lexer/lexer.rs:138:40 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn matchers(&self) -> &Vec> { [INFO] [stdout] | ^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 138 | pub fn matchers(&self) -> &Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/language/syntax/lexer/lexer.rs:138:40 [INFO] [stdout] | [INFO] [stdout] 138 | pub fn matchers(&self) -> &Vec> { [INFO] [stdout] | ^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 138 | pub fn matchers(&self) -> &Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/language/syntax/lexer/lexer.rs:142:52 [INFO] [stdout] | [INFO] [stdout] 142 | pub fn matchers_mut(&mut self) -> &mut Vec> { [INFO] [stdout] | ^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 142 | pub fn matchers_mut(&mut self) -> &mut Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stdout] --> src/language/syntax/lexer/lexer.rs:142:52 [INFO] [stdout] | [INFO] [stdout] 142 | pub fn matchers_mut(&mut self) -> &mut Vec> { [INFO] [stdout] | ^^^^^^^ [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] help: if this is an object-safe trait, use `dyn` [INFO] [stdout] | [INFO] [stdout] 142 | pub fn matchers_mut(&mut self) -> &mut Vec> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/language/mod.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 48 | panic!(s.join(" ")); [INFO] [stdout] | ------------------- any code following this expression is unreachable [INFO] [stdout] 49 | [INFO] [stdout] 50 | Value::Nil [INFO] [stdout] | ^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/language/mod.rs:50:9 [INFO] [stdout] | [INFO] [stdout] 48 | panic!(s.join(" ")); [INFO] [stdout] | ------------------- any code following this expression is unreachable [INFO] [stdout] 49 | [INFO] [stdout] 50 | Value::Nil [INFO] [stdout] | ^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `body` is never read [INFO] [stdout] --> src/language/syntax/parser/mod.rs:186:29 [INFO] [stdout] | [INFO] [stdout] 186 | let mut body: Option> = None; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `body` is never read [INFO] [stdout] --> src/language/syntax/parser/mod.rs:186:29 [INFO] [stdout] | [INFO] [stdout] 186 | let mut body: Option> = None; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/language/syntax/parser/mod.rs:215:25 [INFO] [stdout] | [INFO] [stdout] 215 | t => body = Some(vec!(Statement::Expression(Box::new(self.expression())))), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `t` [INFO] [stdout] --> src/language/syntax/parser/mod.rs:215:25 [INFO] [stdout] | [INFO] [stdout] 215 | t => body = Some(vec!(Statement::Expression(Box::new(self.expression())))), [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_t` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/language/vm/mod.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 59 | Op::Name(ref n) => match scopes.get(n) { [INFO] [stdout] | --------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 63 | Op::Name(ref n) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/language/vm/mod.rs:63:17 [INFO] [stdout] | [INFO] [stdout] 59 | Op::Name(ref n) => match scopes.get(n) { [INFO] [stdout] | --------------- matches all the relevant values [INFO] [stdout] ... [INFO] [stdout] 63 | Op::Name(ref n) => { [INFO] [stdout] | ^^^^^^^^^^^^^^^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/language/vm/mod.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 129 | _ => panic!("angery, not covered!?!"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/language/vm/mod.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 44 | Op::Value(ref v) => self.stack.push(v.clone()), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 45 | Op::Add => binary_op!(self, a, b, try!(a.add(b))), [INFO] [stdout] | ------- matches some of the same values [INFO] [stdout] 46 | Op::Sub => binary_op!(self, a, b, try!(a.sub(b))), [INFO] [stdout] | ------- matches some of the same values [INFO] [stdout] 47 | Op::Mul => binary_op!(self, a, b, try!(a.mul(b))), [INFO] [stdout] | ------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 129 | _ => panic!("angery, not covered!?!"), [INFO] [stdout] | ^ ...and 14 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/language/vm/mod.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 129 | _ => panic!("angery, not covered!?!"), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/language/vm/mod.rs:129:17 [INFO] [stdout] | [INFO] [stdout] 44 | Op::Value(ref v) => self.stack.push(v.clone()), [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] 45 | Op::Add => binary_op!(self, a, b, try!(a.add(b))), [INFO] [stdout] | ------- matches some of the same values [INFO] [stdout] 46 | Op::Sub => binary_op!(self, a, b, try!(a.sub(b))), [INFO] [stdout] | ------- matches some of the same values [INFO] [stdout] 47 | Op::Mul => binary_op!(self, a, b, try!(a.mul(b))), [INFO] [stdout] | ------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 129 | _ => panic!("angery, not covered!?!"), [INFO] [stdout] | ^ ...and 14 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/language/mod.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | _ => panic!("unimplemented expression!") , [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/language/mod.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 60 | Expression::Atom(ref v) => script.push(Op::Value(v.clone())), [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] 61 | Expression::Operation(ref l, ref op, ref r) => { [INFO] [stdout] | ------------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 77 | Expression::Identifier(ref n) => script.push(Op::Name(n.clone())), [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 78 | Expression::Call(ref args) => { [INFO] [stdout] | -------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 114 | _ => panic!("unimplemented expression!") , [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/language/mod.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 114 | _ => panic!("unimplemented expression!") , [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/language/mod.rs:114:13 [INFO] [stdout] | [INFO] [stdout] 60 | Expression::Atom(ref v) => script.push(Op::Value(v.clone())), [INFO] [stdout] | ----------------------- matches some of the same values [INFO] [stdout] 61 | Expression::Operation(ref l, ref op, ref r) => { [INFO] [stdout] | ------------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 77 | Expression::Identifier(ref n) => script.push(Op::Name(n.clone())), [INFO] [stdout] | ----------------------------- matches some of the same values [INFO] [stdout] 78 | Expression::Call(ref args) => { [INFO] [stdout] | -------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 114 | _ => panic!("unimplemented expression!") , [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/language/mod.rs:157:17 [INFO] [stdout] | [INFO] [stdout] 157 | _ => panic!("unstable/unimplemented statement!?") [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/language/mod.rs:157:17 [INFO] [stdout] | [INFO] [stdout] 130 | Statement::Expression(e) => expression(&mut script, &e), [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] 131 | Statement::Block(ve) => script.append(&mut statements(*ve)), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 132 | Statement::Definition(n, e) => assignment(&mut script, &n, &*e), [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] 133 | Statement::If(cond, body) => { [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 157 | _ => panic!("unstable/unimplemented statement!?") [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/language/mod.rs:157:17 [INFO] [stdout] | [INFO] [stdout] 157 | _ => panic!("unstable/unimplemented statement!?") [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/language/mod.rs:157:17 [INFO] [stdout] | [INFO] [stdout] 130 | Statement::Expression(e) => expression(&mut script, &e), [INFO] [stdout] | ------------------------ matches some of the same values [INFO] [stdout] 131 | Statement::Block(ve) => script.append(&mut statements(*ve)), [INFO] [stdout] | -------------------- matches some of the same values [INFO] [stdout] 132 | Statement::Definition(n, e) => assignment(&mut script, &n, &*e), [INFO] [stdout] | --------------------------- matches some of the same values [INFO] [stdout] 133 | Statement::If(cond, body) => { [INFO] [stdout] | ------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 157 | _ => panic!("unstable/unimplemented statement!?") [INFO] [stdout] | ^ ...and 2 other patterns collectively make this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let mut test = r#" [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: variable does not need to be mutable [INFO] [stdout] --> src/main.rs:65:9 [INFO] [stdout] | [INFO] [stdout] 65 | let mut test = r#" [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: function `test` is never used [INFO] [stdout] --> src/main.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Block` is never constructed [INFO] [stdout] --> src/language/syntax/lexer/token.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum TokenType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 3 | Block(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/language/syntax/lexer/block_tree.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | Source(String), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ChunkValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 5 | Source(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test` is never used [INFO] [stdout] --> src/main.rs:61:4 [INFO] [stdout] | [INFO] [stdout] 61 | fn test() { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Block` is never constructed [INFO] [stdout] --> src/language/syntax/lexer/token.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum TokenType { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 3 | Block(Vec), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `TokenType` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/language/syntax/lexer/block_tree.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | Block(Branch), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ChunkValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 7 | Block(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Tokens` is never constructed [INFO] [stdout] --> src/language/syntax/lexer/block_tree.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ChunkValue { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 5 | Source(String), [INFO] [stdout] 6 | Tokens(Vec), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChunkValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/language/syntax/lexer/block_tree.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Chunk { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 12 | value: ChunkValue, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Chunk` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/language/syntax/lexer/block_tree.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Chunk { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn value(&self) -> &ChunkValue { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/language/syntax/lexer/block_tree.rs:5:12 [INFO] [stdout] | [INFO] [stdout] 5 | Source(String), [INFO] [stdout] | ------ ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ChunkValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 5 | Source(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lex_branch` is never used [INFO] [stdout] --> src/language/syntax/lexer/lexer.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn lex_branch(branch: &Branch) -> Branch { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `flatten_branch` is never used [INFO] [stdout] --> src/language/syntax/lexer/lexer.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn flatten_branch(branch: &Branch) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_branch` is never used [INFO] [stdout] --> src/language/syntax/lexer/lexer.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn process_branch(branch: &Branch) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Block` is never constructed [INFO] [stdout] --> src/language/syntax/parser/ast.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum Statement { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 15 | Block(Box>), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Statement` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Jump` is never constructed [INFO] [stdout] --> src/language/vm/op.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Op { [INFO] [stdout] | -- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 21 | Jump(i32), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Op` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `0` is never read [INFO] [stdout] --> src/language/syntax/lexer/block_tree.rs:7:11 [INFO] [stdout] | [INFO] [stdout] 7 | Block(Branch), [INFO] [stdout] | ----- ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | field in this variant [INFO] [stdout] | [INFO] [stdout] = note: `ChunkValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field [INFO] [stdout] | [INFO] [stdout] 7 | Block(()), [INFO] [stdout] | ~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | vm.run(&mut scopes); [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] 53 | let _ = vm.run(&mut scopes); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Tokens` is never constructed [INFO] [stdout] --> src/language/syntax/lexer/block_tree.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum ChunkValue { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] 5 | Source(String), [INFO] [stdout] 6 | Tokens(Vec), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `ChunkValue` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/main.rs:56:30 [INFO] [stdout] | [INFO] [stdout] 56 | Err(e) => panic!(e), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 56 | Err(e) => panic!("{}", e), [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 56 | Err(e) => std::panic::panic_any(e), [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | vm.run(&mut scopes); [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 _ = vm.run(&mut scopes); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `value` is never read [INFO] [stdout] --> src/language/syntax/lexer/block_tree.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub struct Chunk { [INFO] [stdout] | ----- field in this struct [INFO] [stdout] 12 | value: ChunkValue, [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Chunk` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `value` is never used [INFO] [stdout] --> src/language/syntax/lexer/block_tree.rs:22:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Chunk { [INFO] [stdout] | ---------- method in this implementation [INFO] [stdout] ... [INFO] [stdout] 22 | pub fn value(&self) -> &ChunkValue { [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lex_branch` is never used [INFO] [stdout] --> src/language/syntax/lexer/lexer.rs:80:8 [INFO] [stdout] | [INFO] [stdout] 80 | pub fn lex_branch(branch: &Branch) -> Branch { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `flatten_branch` is never used [INFO] [stdout] --> src/language/syntax/lexer/lexer.rs:98:8 [INFO] [stdout] | [INFO] [stdout] 98 | pub fn flatten_branch(branch: &Branch) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `process_branch` is never used [INFO] [stdout] --> src/language/syntax/lexer/lexer.rs:110:8 [INFO] [stdout] | [INFO] [stdout] 110 | pub fn process_branch(branch: &Branch) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Block` is never constructed [INFO] [stdout] --> src/language/syntax/parser/ast.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 14 | pub enum Statement { [INFO] [stdout] | --------- variant in this enum [INFO] [stdout] 15 | Block(Box>), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Statement` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Jump` is never constructed [INFO] [stdout] --> src/language/vm/op.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub enum Op { [INFO] [stdout] | -- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 21 | Jump(i32), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Op` has derived impls for the traits `Clone` and `Debug`, but these are intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/language/syntax/parser/mod.rs:251:26 [INFO] [stdout] | [INFO] [stdout] 236 | fn call(&mut self, expr: Expression) -> Expression { [INFO] [stdout] | ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 239 | let mut stack = vec!(expr); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 251 | Expression::Call(Box::new(stack)) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:53:17 [INFO] [stdout] | [INFO] [stdout] 53 | vm.run(&mut scopes); [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] 53 | let _ = vm.run(&mut scopes); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/language/syntax/parser/mod.rs:308:9 [INFO] [stdout] | [INFO] [stdout] 254 | fn operation(&mut self, expression: Expression) -> Expression { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 255 | let mut ex_stack = vec![expression]; [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 308 | ex_stack.pop().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/main.rs:56:30 [INFO] [stdout] | [INFO] [stdout] 56 | Err(e) => panic!(e), [INFO] [stdout] | ^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` on by default [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 56 | Err(e) => panic!("{}", e), [INFO] [stdout] | +++++ [INFO] [stdout] help: or use std::panic::panic_any instead [INFO] [stdout] | [INFO] [stdout] 56 | Err(e) => std::panic::panic_any(e), [INFO] [stdout] | ~~~~~~~~~~~~~~~~~~~~~ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/main.rs:92:5 [INFO] [stdout] | [INFO] [stdout] 92 | vm.run(&mut scopes); [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 _ = vm.run(&mut scopes); [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/language/mod.rs:48:16 [INFO] [stdout] | [INFO] [stdout] 48 | panic!(s.join(" ")); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 48 | panic!("{}", s.join(" ")); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/language/syntax/parser/mod.rs:251:26 [INFO] [stdout] | [INFO] [stdout] 236 | fn call(&mut self, expr: Expression) -> Expression { [INFO] [stdout] | ---------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 239 | let mut stack = vec!(expr); [INFO] [stdout] | ----- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 251 | Expression::Call(Box::new(stack)) [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> src/language/syntax/parser/mod.rs:308:9 [INFO] [stdout] | [INFO] [stdout] 254 | fn operation(&mut self, expression: Expression) -> Expression { [INFO] [stdout] | ---------------------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 255 | let mut ex_stack = vec![expression]; [INFO] [stdout] | -------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] ... [INFO] [stdout] 308 | ex_stack.pop().unwrap() [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/language/mod.rs:48:16 [INFO] [stdout] | [INFO] [stdout] 48 | panic!(s.join(" ")); [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021 [INFO] [stdout] = note: for more information, see [INFO] [stdout] help: add a "{}" format string to `Display` the message [INFO] [stdout] | [INFO] [stdout] 48 | panic!("{}", s.join(" ")); [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors; 37 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `ketchup` (bin "ketchup" test) due to 3 previous errors; 37 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `ketchup` (bin "ketchup") due to 3 previous errors; 37 warnings emitted [INFO] running `Command { std: "docker" "inspect" "18d7b9bf9fb088825408500282ed573f120091781765502934316667ee84daf8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "18d7b9bf9fb088825408500282ed573f120091781765502934316667ee84daf8", kill_on_drop: false }` [INFO] [stdout] 18d7b9bf9fb088825408500282ed573f120091781765502934316667ee84daf8