[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] [stderr] error: copy-fd: write returned: No space left on device [INFO] [stderr] fatal: cannot copy '/usr/share/git-core/templates/hooks/pre-receive.sample' to '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnilq%2Fketchup/hooks/pre-receive.sample': No space left on device [WARN] Retrying crate fetch in 3 seconds (attempt 1) [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] building nilq/ketchup against try#8b8eff55bd72abbb57167bc42222a7f91d41cb0d for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnilq%2Fketchup" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] error: unable to write symref for refs/remotes/origin/HEAD: No space left on device [INFO] [stderr] fatal: unable to update refs/remotes/origin/HEAD [INFO] building nilq/ketchup against try#8b8eff55bd72abbb57167bc42222a7f91d41cb0d for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnilq%2Fketchup" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] error: unable to write file src/language/syntax/mod.rs [INFO] [stderr] fatal: cannot create directory at 'src/language/syntax/parser': No space left on device [INFO] [stderr] warning: Clone succeeded, but checkout failed. [INFO] [stderr] You can inspect what was checked out with 'git status' [INFO] [stderr] and retry with 'git restore --source=HEAD :/' [INFO] [stderr] [INFO] building nilq/ketchup against try#8b8eff55bd72abbb57167bc42222a7f91d41cb0d for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnilq%2Fketchup" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] [stderr] error: unable to write file src/language/mod.rs [INFO] [stderr] fatal: cannot create directory at 'src/language/syntax': No space left on device [INFO] [stderr] warning: Clone succeeded, but checkout failed. [INFO] [stderr] You can inspect what was checked out with 'git status' [INFO] [stderr] and retry with 'git restore --source=HEAD :/' [INFO] [stderr] [INFO] building nilq/ketchup against try#8b8eff55bd72abbb57167bc42222a7f91d41cb0d for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnilq%2Fketchup" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nilq/ketchup on toolchain 8b8eff55bd72abbb57167bc42222a7f91d41cb0d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "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-0-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" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "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] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] Error response from daemon: mkdir /var/lib/docker/overlay2/068906686a68b8e51110dbe5dbec20a606c39018c167e23be20c9ba5bc2c0ea0-init/merged: no space left on device [INFO] building nilq/ketchup against try#8b8eff55bd72abbb57167bc42222a7f91d41cb0d for pr-142134-abi-ast-error [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fnilq%2Fketchup" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/nilq/ketchup on toolchain 8b8eff55bd72abbb57167bc42222a7f91d41cb0d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "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-0-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" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "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-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d707fe1aaa7186e64f15cbb5d1dc0c03ee24e5501fb6fb113d27869ffa425f36 [INFO] running `Command { std: "docker" "start" "-a" "d707fe1aaa7186e64f15cbb5d1dc0c03ee24e5501fb6fb113d27869ffa425f36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d707fe1aaa7186e64f15cbb5d1dc0c03ee24e5501fb6fb113d27869ffa425f36", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d707fe1aaa7186e64f15cbb5d1dc0c03ee24e5501fb6fb113d27869ffa425f36", kill_on_drop: false }` [INFO] [stdout] d707fe1aaa7186e64f15cbb5d1dc0c03ee24e5501fb6fb113d27869ffa425f36 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f649048ce031c0d2935f1883c665dbf37c5c1faa452089394c33db910e9677ba [INFO] running `Command { std: "docker" "start" "-a" "f649048ce031c0d2935f1883c665dbf37c5c1faa452089394c33db910e9677ba", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling 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: 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 a dyn-compatible 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 a dyn-compatible 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 a dyn-compatible 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 a dyn-compatible 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 a dyn-compatible 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: 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/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 `Debug` and `Clone`, 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(String), [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(Branch), [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 `Debug` and `Clone`, 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 `Debug` and `Clone`, 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) => panic!(e), [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: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/language/syntax/lexer/block_tree.rs:48:24 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new(source: &str, current_line: usize) -> BlockTree { [INFO] [stdout] | ^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new(source: &str, current_line: usize) -> BlockTree<'_> { [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] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.94s [INFO] running `Command { std: "docker" "inspect" "f649048ce031c0d2935f1883c665dbf37c5c1faa452089394c33db910e9677ba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f649048ce031c0d2935f1883c665dbf37c5c1faa452089394c33db910e9677ba", kill_on_drop: false }` [INFO] [stdout] f649048ce031c0d2935f1883c665dbf37c5c1faa452089394c33db910e9677ba [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+8b8eff55bd72abbb57167bc42222a7f91d41cb0d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a6bede9d44315ff0aafaba8010b6f294c6bc9711160d33e9fbaf48f4946a10af [INFO] running `Command { std: "docker" "start" "-a" "a6bede9d44315ff0aafaba8010b6f294c6bc9711160d33e9fbaf48f4946a10af", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling 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: 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 a dyn-compatible 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 a dyn-compatible 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 a dyn-compatible 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 a dyn-compatible 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 a dyn-compatible 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: 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/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 `Debug` and `Clone`, 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(String), [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(Branch), [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 `Debug` and `Clone`, 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 `Debug` and `Clone`, 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) => panic!(e), [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: lifetime flowing from input to output with different syntax can be confusing [INFO] [stdout] --> src/language/syntax/lexer/block_tree.rs:48:24 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new(source: &str, current_line: usize) -> BlockTree { [INFO] [stdout] | ^^^^ --------- the lifetime gets resolved as `'_` [INFO] [stdout] | | [INFO] [stdout] | this lifetime flows to the output [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: one option is to remove the lifetime for references and use the anonymous lifetime for paths [INFO] [stdout] | [INFO] [stdout] 48 | pub fn new(source: &str, current_line: usize) -> BlockTree<'_> { [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] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.50s [INFO] running `Command { std: "docker" "inspect" "a6bede9d44315ff0aafaba8010b6f294c6bc9711160d33e9fbaf48f4946a10af", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a6bede9d44315ff0aafaba8010b6f294c6bc9711160d33e9fbaf48f4946a10af", kill_on_drop: false }` [INFO] [stdout] a6bede9d44315ff0aafaba8010b6f294c6bc9711160d33e9fbaf48f4946a10af