[INFO] cloning repository https://github.com/seansiddens/Nano [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/seansiddens/Nano" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseansiddens%2FNano", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseansiddens%2FNano'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 7d9faef287f0b003cd6e955d311e30b37328d0e6 [INFO] checking seansiddens/Nano against master#c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3 for pr-141352 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fseansiddens%2FNano" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/seansiddens/Nano on toolchain c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/seansiddens/Nano [INFO] finished tweaking git repo https://github.com/seansiddens/Nano [INFO] tweaked toml for git repo https://github.com/seansiddens/Nano written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/seansiddens/Nano 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" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 160212c2defb94c1d7d60f247127db2cff3309b51f62df782a88bffff99fdd1a [INFO] running `Command { std: "docker" "start" "-a" "160212c2defb94c1d7d60f247127db2cff3309b51f62df782a88bffff99fdd1a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "160212c2defb94c1d7d60f247127db2cff3309b51f62df782a88bffff99fdd1a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "160212c2defb94c1d7d60f247127db2cff3309b51f62df782a88bffff99fdd1a", kill_on_drop: false }` [INFO] [stdout] 160212c2defb94c1d7d60f247127db2cff3309b51f62df782a88bffff99fdd1a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:eea15d5475069c3ef791f10c2c6b5af2ee421ef2da1e680ecce1cba46243983b" "/opt/rustwide/cargo-home/bin/cargo" "+c43786c9b7b8d8dcc3f9c604e0e3074c16ed69d3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 05d3f5c745b37176d3dfd00c7707c27d11ad9695efb4c1e66d8180bf815ab1dd [INFO] running `Command { std: "docker" "start" "-a" "05d3f5c745b37176d3dfd00c7707c27d11ad9695efb4c1e66d8180bf815ab1dd", kill_on_drop: false }` [INFO] [stderr] Checking nano v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/types.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::hash::Hash` [INFO] [stdout] --> src/types.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | use std::hash::Hash; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/types.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Binop { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 7 | Plus, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | Minus, [INFO] [stdout] | ^^^^^ [INFO] [stdout] 9 | Mul, [INFO] [stdout] | ^^^ [INFO] [stdout] 10 | Div, [INFO] [stdout] | ^^^ [INFO] [stdout] 11 | Eq, [INFO] [stdout] | ^^ [INFO] [stdout] 12 | Ne, [INFO] [stdout] | ^^ [INFO] [stdout] 13 | Lt, [INFO] [stdout] | ^^ [INFO] [stdout] 14 | Le, [INFO] [stdout] | ^^ [INFO] [stdout] 15 | And, [INFO] [stdout] | ^^^ [INFO] [stdout] 16 | Or, [INFO] [stdout] | ^^ [INFO] [stdout] 17 | Cons, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Binop` has derived impls for the traits `Clone` and `Debug`, 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: multiple variants are never constructed [INFO] [stdout] --> src/types.rs:45:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub enum Expr { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 45 | EInt(i64), [INFO] [stdout] | ^^^^ [INFO] [stdout] 46 | EBool(bool), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 47 | ENil, [INFO] [stdout] | ^^^^ [INFO] [stdout] 48 | EVar(Id), [INFO] [stdout] | ^^^^ [INFO] [stdout] 49 | EBin(Binop, Box, Box), [INFO] [stdout] | ^^^^ [INFO] [stdout] 50 | EIf(Box, Box, Box), [INFO] [stdout] | ^^^ [INFO] [stdout] 51 | ELet(Id, Box, Box), [INFO] [stdout] | ^^^^ [INFO] [stdout] 52 | EApp(Box, Box), [INFO] [stdout] | ^^^^ [INFO] [stdout] 53 | ELam(Id, Box), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: multiple variants are never constructed [INFO] [stdout] --> src/types.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 90 | pub enum Value { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] 91 | VInt(i64), [INFO] [stdout] | ^^^^ [INFO] [stdout] 92 | VBool(bool), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 93 | VClos(Env, Id, Expr), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 94 | VNil, [INFO] [stdout] | ^^^^ [INFO] [stdout] 95 | VPair(Box, Box), [INFO] [stdout] | ^^^^^ [INFO] [stdout] 96 | VErr(String), [INFO] [stdout] | ^^^^ [INFO] [stdout] 97 | VPrim(fn(Value) -> Value), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Value` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TypeEnv` is never used [INFO] [stdout] --> src/types.rs:145:10 [INFO] [stdout] | [INFO] [stdout] 145 | pub type TypeEnv = HashMap; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Subst` is never used [INFO] [stdout] --> src/types.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | pub type Subst = HashMap; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `TInt`, `TBool`, `TFunction`, `TVar`, and `TList` are never constructed [INFO] [stdout] --> src/types.rs:152:5 [INFO] [stdout] | [INFO] [stdout] 151 | pub enum Type { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 152 | TInt, // Int [INFO] [stdout] | ^^^^ [INFO] [stdout] 153 | TBool, // Bool [INFO] [stdout] | ^^^^^ [INFO] [stdout] 154 | TFunction(Box, Box), // function type: T1 -> T2 [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] 155 | TVar(TVar), // type variable: a, b, c [INFO] [stdout] | ^^^^ [INFO] [stdout] 156 | TList(Box), // list type: [T] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Type` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Mono` and `Forall` are never constructed [INFO] [stdout] --> src/types.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 160 | pub enum Poly { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 161 | Mono(Type), // mono-type [INFO] [stdout] | ^^^^ [INFO] [stdout] 162 | Forall(TVar, Box), // Polymorphic type [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Poly` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `lookup_id` is never used [INFO] [stdout] --> src/eval.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn lookup_id(env: &Env, id: &Id) -> Value { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `extend_env` is never used [INFO] [stdout] --> src/eval.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn extend_env(env: &mut Env, id: &Id, val: &Value) { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval` is never used [INFO] [stdout] --> src/eval.rs:19:8 [INFO] [stdout] | [INFO] [stdout] 19 | pub fn eval(env: Env, e: Expr) -> Value { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `eval_op` is never used [INFO] [stdout] --> src/eval.rs:62:4 [INFO] [stdout] | [INFO] [stdout] 62 | fn eval_op(binop: Binop, val1: Value, val2: Value) -> Value { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `HasTVars` is never used [INFO] [stdout] --> src/typecheck.rs:3:7 [INFO] [stdout] | [INFO] [stdout] 3 | trait HasTVars { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `expr` [INFO] [stdout] --> src/eval.rs:207:13 [INFO] [stdout] | [INFO] [stdout] 207 | let expr = Expr::ELet( [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_expr` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Eq`, `Ne`, `Le`, `And`, `Or`, and `Cons` are never constructed [INFO] [stdout] --> src/types.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub enum Binop { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 11 | Eq, [INFO] [stdout] | ^^ [INFO] [stdout] 12 | Ne, [INFO] [stdout] | ^^ [INFO] [stdout] 13 | Lt, [INFO] [stdout] 14 | Le, [INFO] [stdout] | ^^ [INFO] [stdout] 15 | And, [INFO] [stdout] | ^^^ [INFO] [stdout] 16 | Or, [INFO] [stdout] | ^^ [INFO] [stdout] 17 | Cons, [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Binop` has derived impls for the traits `Clone` and `Debug`, 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: variants `EIf`, `EApp`, and `ELam` are never constructed [INFO] [stdout] --> src/types.rs:50:5 [INFO] [stdout] | [INFO] [stdout] 44 | pub enum Expr { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 50 | EIf(Box, Box, Box), [INFO] [stdout] | ^^^ [INFO] [stdout] 51 | ELet(Id, Box, Box), [INFO] [stdout] 52 | EApp(Box, Box), [INFO] [stdout] | ^^^^ [INFO] [stdout] 53 | ELam(Id, Box), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Expr` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `VErr` and `VPrim` are never constructed [INFO] [stdout] --> src/types.rs:96:5 [INFO] [stdout] | [INFO] [stdout] 90 | pub enum Value { [INFO] [stdout] | ----- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 96 | VErr(String), [INFO] [stdout] | ^^^^ [INFO] [stdout] 97 | VPrim(fn(Value) -> Value), [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Value` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `TypeEnv` is never used [INFO] [stdout] --> src/types.rs:145:10 [INFO] [stdout] | [INFO] [stdout] 145 | pub type TypeEnv = HashMap; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `Subst` is never used [INFO] [stdout] --> src/types.rs:148:10 [INFO] [stdout] | [INFO] [stdout] 148 | pub type Subst = HashMap; [INFO] [stdout] | ^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `TBool` and `TList` are never constructed [INFO] [stdout] --> src/types.rs:153:5 [INFO] [stdout] | [INFO] [stdout] 151 | pub enum Type { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 152 | TInt, // Int [INFO] [stdout] 153 | TBool, // Bool [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 156 | TList(Box), // list type: [T] [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Type` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Mono` and `Forall` are never constructed [INFO] [stdout] --> src/types.rs:161:5 [INFO] [stdout] | [INFO] [stdout] 160 | pub enum Poly { [INFO] [stdout] | ---- variants in this enum [INFO] [stdout] 161 | Mono(Type), // mono-type [INFO] [stdout] | ^^^^ [INFO] [stdout] 162 | Forall(TVar, Box), // Polymorphic type [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Poly` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.38s [INFO] running `Command { std: "docker" "inspect" "05d3f5c745b37176d3dfd00c7707c27d11ad9695efb4c1e66d8180bf815ab1dd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "05d3f5c745b37176d3dfd00c7707c27d11ad9695efb4c1e66d8180bf815ab1dd", kill_on_drop: false }` [INFO] [stdout] 05d3f5c745b37176d3dfd00c7707c27d11ad9695efb4c1e66d8180bf815ab1dd