[INFO] cloning repository https://github.com/paavohuhtala/toylang [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/paavohuhtala/toylang" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpaavohuhtala%2Ftoylang", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpaavohuhtala%2Ftoylang'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 3cef30c0fec1d034c80bec83264738666facf326 [INFO] checking paavohuhtala/toylang against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpaavohuhtala%2Ftoylang" "/workspace/builds/worker-0-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/paavohuhtala/toylang 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/paavohuhtala/toylang [INFO] finished tweaking git repo https://github.com/paavohuhtala/toylang [INFO] tweaked toml for git repo https://github.com/paavohuhtala/toylang written to /workspace/builds/worker-0-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/paavohuhtala/toylang 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] 8ca8d58c4c356e42049f0b199188f5519c60063b669cd21e84ac2c0d4cc29a3d [INFO] running `Command { std: "docker" "start" "-a" "8ca8d58c4c356e42049f0b199188f5519c60063b669cd21e84ac2c0d4cc29a3d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8ca8d58c4c356e42049f0b199188f5519c60063b669cd21e84ac2c0d4cc29a3d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8ca8d58c4c356e42049f0b199188f5519c60063b669cd21e84ac2c0d4cc29a3d", kill_on_drop: false }` [INFO] [stdout] 8ca8d58c4c356e42049f0b199188f5519c60063b669cd21e84ac2c0d4cc29a3d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-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] f5f8102bdb31036d0fc4089ef0c68b35c74357473d5f2bf8ae2cef70d7bf9b92 [INFO] running `Command { std: "docker" "start" "-a" "f5f8102bdb31036d0fc4089ef0c68b35c74357473d5f2bf8ae2cef70d7bf9b92", kill_on_drop: false }` [INFO] [stderr] Checking toylanguage v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/interpreter.rs:53:7 [INFO] [stdout] | [INFO] [stdout] 53 | _ => unreachable!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/interpreter.rs:53:7 [INFO] [stdout] | [INFO] [stdout] 33 | IntegerConstant(i) => I32(*i as i32), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 34 | Local(local_id) => *self.locals.get(local_id).unwrap(), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 35 | UnaryOp(Negate, expr) => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 42 | BinaryOp(op, args) => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 53 | _ => unreachable!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/interpreter.rs:53:7 [INFO] [stdout] | [INFO] [stdout] 53 | _ => unreachable!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/interpreter.rs:53:7 [INFO] [stdout] | [INFO] [stdout] 33 | IntegerConstant(i) => I32(*i as i32), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 34 | Local(local_id) => *self.locals.get(local_id).unwrap(), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 35 | UnaryOp(Negate, expr) => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 42 | BinaryOp(op, args) => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 53 | _ => unreachable!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/type_checker.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn are_equal(ctx: &mut SemanticContext, a: TypeRef, b: TypeRef) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/type_checker.rs:43:22 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn is_assignable(ctx: &mut SemanticContext, a: TypeRef, b: TypeRef) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/type_checker.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | _ => unimplemented!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/type_checker.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 65 | IntegerConstant(_) => Ok(Primitive(I32)), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 66 | &Local(local_id) => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 72 | UnaryOp(op, x) => { [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 82 | BinaryOp(op, args) => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 100 | _ => unimplemented!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/type_checker.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 141 | _ => panic!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/type_checker.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 112 | / RastStatement::AssignLocal { [INFO] [stdout] 113 | | local_id, value, .. [INFO] [stdout] 114 | | } => { [INFO] [stdout] | |_____- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 134 | RastStatement::Block { scope_id, inner } => { [INFO] [stdout] | ---------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 141 | _ => panic!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `semantic_ctx` is never read [INFO] [stdout] --> src/interpreter.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Interpreter { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 14 | semantic_ctx: SemanticContext, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/type_checker.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn are_equal(ctx: &mut SemanticContext, a: TypeRef, b: TypeRef) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/type_checker.rs:43:22 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn is_assignable(ctx: &mut SemanticContext, a: TypeRef, b: TypeRef) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/type_checker.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | _ => unimplemented!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/type_checker.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 65 | IntegerConstant(_) => Ok(Primitive(I32)), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 66 | &Local(local_id) => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 72 | UnaryOp(op, x) => { [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 82 | BinaryOp(op, args) => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 100 | _ => unimplemented!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/type_checker.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 141 | _ => panic!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/type_checker.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 112 | / RastStatement::AssignLocal { [INFO] [stdout] 113 | | local_id, value, .. [INFO] [stdout] 114 | | } => { [INFO] [stdout] | |_____- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 134 | RastStatement::Block { scope_id, inner } => { [INFO] [stdout] | ---------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 141 | _ => panic!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `semantic_ctx` is never read [INFO] [stdout] --> src/interpreter.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Interpreter { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 14 | semantic_ctx: SemanticContext, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/interpreter.rs:53:7 [INFO] [stdout] | [INFO] [stdout] 53 | _ => unreachable!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/interpreter.rs:53:7 [INFO] [stdout] | [INFO] [stdout] 33 | IntegerConstant(i) => I32(*i as i32), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 34 | Local(local_id) => *self.locals.get(local_id).unwrap(), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 35 | UnaryOp(Negate, expr) => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 42 | BinaryOp(op, args) => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 53 | _ => unreachable!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/interpreter.rs:53:7 [INFO] [stdout] | [INFO] [stdout] 53 | _ => unreachable!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/interpreter.rs:53:7 [INFO] [stdout] | [INFO] [stdout] 33 | IntegerConstant(i) => I32(*i as i32), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 34 | Local(local_id) => *self.locals.get(local_id).unwrap(), [INFO] [stdout] | --------------- matches some of the same values [INFO] [stdout] 35 | UnaryOp(Negate, expr) => { [INFO] [stdout] | --------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 42 | BinaryOp(op, args) => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 53 | _ => unreachable!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/type_checker.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn are_equal(ctx: &mut SemanticContext, a: TypeRef, b: TypeRef) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/type_checker.rs:43:22 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn is_assignable(ctx: &mut SemanticContext, a: TypeRef, b: TypeRef) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/type_checker.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | _ => unimplemented!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/type_checker.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 65 | IntegerConstant(_) => Ok(Primitive(I32)), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 66 | &Local(local_id) => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 72 | UnaryOp(op, x) => { [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 82 | BinaryOp(op, args) => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 100 | _ => unimplemented!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/type_checker.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 141 | _ => panic!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/type_checker.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 112 | / RastStatement::AssignLocal { [INFO] [stdout] 113 | | local_id, value, .. [INFO] [stdout] 114 | | } => { [INFO] [stdout] | |_____- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 134 | RastStatement::Block { scope_id, inner } => { [INFO] [stdout] | ---------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 141 | _ => panic!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Equals` is never constructed [INFO] [stdout] --> src/ast_common.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum BinaryOperator { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 6 | Equals, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinaryOperator` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Unary` is never constructed [INFO] [stdout] --> src/ast_common.rs:27:3 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum Operator { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 26 | Binary(BinaryOperator), [INFO] [stdout] 27 | Unary(UnaryOperator), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Operator` 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: methods `take` and `skip_until` are never used [INFO] [stdout] --> src/char_stream.rs:31:10 [INFO] [stdout] | [INFO] [stdout] 8 | impl<'a> CharStream<'a> { [INFO] [stdout] | ----------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn take(&mut self) -> Option { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 89 | pub fn skip_until(&mut self, predicate: impl Fn(char) -> bool) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Bool` is never constructed [INFO] [stdout] --> src/interpreter.rs:10:3 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Value { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 9 | I32(i32), [INFO] [stdout] 10 | Bool(bool), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Value` 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 `semantic_ctx` is never read [INFO] [stdout] --> src/interpreter.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Interpreter { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 14 | semantic_ctx: SemanticContext, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `take_integer` is never used [INFO] [stdout] --> src/parser.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 30 | impl<'a> TokenStream<'a> { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn take_integer(&mut self) -> ParseResult<(usize, i128)> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `declare_type` and `resolve_scope_mut` are never used [INFO] [stdout] --> src/semantic.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 26 | impl SemanticContext { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn declare_type(&mut self, type_: UserType) -> TypeRef { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn resolve_scope_mut(&mut self, scope_id: ScopeId) -> &mut Scope { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnterminatedString` is never constructed [INFO] [stdout] --> src/token_stream.rs:9:3 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum LexerError { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 9 | UnterminatedString, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LexerError` 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: methods `err_into` and `with_err` are never used [INFO] [stdout] --> src/utils.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait ResultExt { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] 2 | fn err_into(self) -> Result [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 6 | fn with_err(self, err: B) -> Result; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 14 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/type_checker.rs:35:18 [INFO] [stdout] | [INFO] [stdout] 35 | pub fn are_equal(ctx: &mut SemanticContext, a: TypeRef, b: TypeRef) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ctx` [INFO] [stdout] --> src/type_checker.rs:43:22 [INFO] [stdout] | [INFO] [stdout] 43 | pub fn is_assignable(ctx: &mut SemanticContext, a: TypeRef, b: TypeRef) -> bool { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_ctx` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/type_checker.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 100 | _ => unimplemented!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/type_checker.rs:100:5 [INFO] [stdout] | [INFO] [stdout] 65 | IntegerConstant(_) => Ok(Primitive(I32)), [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] 66 | &Local(local_id) => { [INFO] [stdout] | ---------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 72 | UnaryOp(op, x) => { [INFO] [stdout] | -------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 82 | BinaryOp(op, args) => { [INFO] [stdout] | ------------------ matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 100 | _ => unimplemented!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/type_checker.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 141 | _ => panic!(), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] note: multiple earlier patterns match some of the same values [INFO] [stdout] --> src/type_checker.rs:141:5 [INFO] [stdout] | [INFO] [stdout] 112 | / RastStatement::AssignLocal { [INFO] [stdout] 113 | | local_id, value, .. [INFO] [stdout] 114 | | } => { [INFO] [stdout] | |_____- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 134 | RastStatement::Block { scope_id, inner } => { [INFO] [stdout] | ---------------------------------------- matches some of the same values [INFO] [stdout] ... [INFO] [stdout] 141 | _ => panic!(), [INFO] [stdout] | ^ collectively making this unreachable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Equals` is never constructed [INFO] [stdout] --> src/ast_common.rs:6:3 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum BinaryOperator { [INFO] [stdout] | -------------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 6 | Equals, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `BinaryOperator` has derived impls for the traits `Debug` and `Clone`, but these are intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Unary` is never constructed [INFO] [stdout] --> src/ast_common.rs:27:3 [INFO] [stdout] | [INFO] [stdout] 25 | pub enum Operator { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 26 | Binary(BinaryOperator), [INFO] [stdout] 27 | Unary(UnaryOperator), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Operator` 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 `Bool` is never constructed [INFO] [stdout] --> src/interpreter.rs:10:3 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Value { [INFO] [stdout] | ----- variant in this enum [INFO] [stdout] 9 | I32(i32), [INFO] [stdout] 10 | Bool(bool), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Value` 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 `semantic_ctx` is never read [INFO] [stdout] --> src/interpreter.rs:14:3 [INFO] [stdout] | [INFO] [stdout] 13 | pub struct Interpreter { [INFO] [stdout] | ----------- field in this struct [INFO] [stdout] 14 | semantic_ctx: SemanticContext, [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `take_integer` is never used [INFO] [stdout] --> src/parser.rs:58:10 [INFO] [stdout] | [INFO] [stdout] 30 | impl<'a> TokenStream<'a> { [INFO] [stdout] | ------------------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 58 | pub fn take_integer(&mut self) -> ParseResult<(usize, i128)> { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `declare_type` and `resolve_scope_mut` are never used [INFO] [stdout] --> src/semantic.rs:62:10 [INFO] [stdout] | [INFO] [stdout] 26 | impl SemanticContext { [INFO] [stdout] | -------------------- methods in this implementation [INFO] [stdout] ... [INFO] [stdout] 62 | pub fn declare_type(&mut self, type_: UserType) -> TypeRef { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 95 | pub fn resolve_scope_mut(&mut self, scope_id: ScopeId) -> &mut Scope { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `UnterminatedString` is never constructed [INFO] [stdout] --> src/token_stream.rs:9:3 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum LexerError { [INFO] [stdout] | ---------- variant in this enum [INFO] [stdout] ... [INFO] [stdout] 9 | UnterminatedString, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `LexerError` 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: methods `err_into` and `with_err` are never used [INFO] [stdout] --> src/utils.rs:2:6 [INFO] [stdout] | [INFO] [stdout] 1 | pub trait ResultExt { [INFO] [stdout] | --------- methods in this trait [INFO] [stdout] 2 | fn err_into(self) -> Result [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 6 | fn with_err(self, err: B) -> Result; [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 13 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.56s [INFO] running `Command { std: "docker" "inspect" "f5f8102bdb31036d0fc4089ef0c68b35c74357473d5f2bf8ae2cef70d7bf9b92", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f5f8102bdb31036d0fc4089ef0c68b35c74357473d5f2bf8ae2cef70d7bf9b92", kill_on_drop: false }` [INFO] [stdout] f5f8102bdb31036d0fc4089ef0c68b35c74357473d5f2bf8ae2cef70d7bf9b92