[INFO] cloning repository https://github.com/Thesecondbestname/typechecker
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Thesecondbestname/typechecker" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThesecondbestname%2Ftypechecker", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThesecondbestname%2Ftypechecker'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 238533c57fd55ff7b03b2f3b09eb05f6b433ecb3
[INFO] testing Thesecondbestname/typechecker against 1.90.0 for beta-1.91-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FThesecondbestname%2Ftypechecker" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Thesecondbestname/typechecker
[INFO] finished tweaking git repo https://github.com/Thesecondbestname/typechecker
[INFO] tweaked toml for git repo https://github.com/Thesecondbestname/typechecker written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Thesecondbestname/typechecker on toolchain 1.90.0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1.90.0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Thesecondbestname/typechecker 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" "+1.90.0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] cb669a02ac24c2586f717de4e80e3e7e2c4f3f232b25d76c6444759c6fb90aee
[INFO] running `Command { std: "docker" "start" "-a" "cb669a02ac24c2586f717de4e80e3e7e2c4f3f232b25d76c6444759c6fb90aee", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "cb669a02ac24c2586f717de4e80e3e7e2c4f3f232b25d76c6444759c6fb90aee", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cb669a02ac24c2586f717de4e80e3e7e2c4f3f232b25d76c6444759c6fb90aee", kill_on_drop: false }`
[INFO] [stdout] cb669a02ac24c2586f717de4e80e3e7e2c4f3f232b25d76c6444759c6fb90aee
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 4152952af04523d67dd37da23ebf57df0eb769a16c280840713bb8b4a8a6d4e6
[INFO] running `Command { std: "docker" "start" "-a" "4152952af04523d67dd37da23ebf57df0eb769a16c280840713bb8b4a8a6d4e6", kill_on_drop: false }`
[INFO] [stderr]    Compiling type_checker v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unnecessary parentheses around match arm expression
[INFO] [stdout]    --> src/resolve_names.rs:165:42
[INFO] [stdout]     |
[INFO] [stdout] 165 |                 Expr::Functor(n, ast) => (Expr::Functor(n, self.resolve_ident_names(*ast).into())),
[INFO] [stdout]     |                                          ^                                                       ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 165 -                 Expr::Functor(n, ast) => (Expr::Functor(n, self.resolve_ident_names(*ast).into())),
[INFO] [stdout] 165 +                 Expr::Functor(n, ast) => Expr::Functor(n, self.resolve_ident_names(*ast).into()),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around match arm expression
[INFO] [stdout]    --> src/resolve_names.rs:180:36
[INFO] [stdout]     |
[INFO] [stdout] 180 |                 Expr::LitInt(i) => (Expr::LitInt(i)),
[INFO] [stdout]     |                                    ^               ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 180 -                 Expr::LitInt(i) => (Expr::LitInt(i)),
[INFO] [stdout] 180 +                 Expr::LitInt(i) => Expr::LitInt(i),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `resolve_names::debrujin::resolve_names`
[INFO] [stdout]  --> src/lib.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use resolve_names::debrujin::resolve_names;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `alpha`
[INFO] [stdout]   --> src/types.rs:83:38
[INFO] [stdout]    |
[INFO] [stdout] 83 |             ContextElement::Variable(alpha) => false,
[INFO] [stdout]    |                                      ^^^^^ help: if this is intentional, prefix it with an underscore: `_alpha`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `var`
[INFO] [stdout]   --> src/types.rs:84:43
[INFO] [stdout]    |
[INFO] [stdout] 84 |             ContextElement::TypedVariable(var, ty) => self.is_well_formed(ty),
[INFO] [stdout]    |                                           ^^^ help: if this is intentional, prefix it with an underscore: `_var`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `alpha_hat`
[INFO] [stdout]   --> src/types.rs:85:41
[INFO] [stdout]    |
[INFO] [stdout] 85 |             ContextElement::Existential(alpha_hat) => false,
[INFO] [stdout]    |                                         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_alpha_hat`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `var`
[INFO] [stdout]   --> src/types.rs:86:36
[INFO] [stdout]    |
[INFO] [stdout] 86 |             ContextElement::Solved(var, ty) => self.is_well_formed(ty),
[INFO] [stdout]    |                                    ^^^ help: if this is intentional, prefix it with an underscore: `_var`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `name1`
[INFO] [stdout]    --> src/lib.rs:575:29
[INFO] [stdout]     |
[INFO] [stdout] 575 |         (Type::HigherKinded(name1, v1, open), Type::HigherKinded(name2, v2, open2)) => {
[INFO] [stdout]     |                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_name1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `open`
[INFO] [stdout]    --> src/lib.rs:575:40
[INFO] [stdout]     |
[INFO] [stdout] 575 |         (Type::HigherKinded(name1, v1, open), Type::HigherKinded(name2, v2, open2)) => {
[INFO] [stdout]     |                                        ^^^^ help: if this is intentional, prefix it with an underscore: `_open`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `name2`
[INFO] [stdout]    --> src/lib.rs:575:66
[INFO] [stdout]     |
[INFO] [stdout] 575 |         (Type::HigherKinded(name1, v1, open), Type::HigherKinded(name2, v2, open2)) => {
[INFO] [stdout]     |                                                                  ^^^^^ help: if this is intentional, prefix it with an underscore: `_name2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `open2`
[INFO] [stdout]    --> src/lib.rs:575:77
[INFO] [stdout]     |
[INFO] [stdout] 575 |         (Type::HigherKinded(name1, v1, open), Type::HigherKinded(name2, v2, open2)) => {
[INFO] [stdout]     |                                                                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_open2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `TCContext` is more private than the item `check`
[INFO] [stdout]    --> src/lib.rs:262:1
[INFO] [stdout]     |
[INFO] [stdout] 262 | / pub fn check(
[INFO] [stdout] 263 | |     e: Expr<VarId>,
[INFO] [stdout] 264 | |     ty: Type<VarId>,
[INFO] [stdout] 265 | |     ctx: TCContext,
[INFO] [stdout] 266 | | ) -> Result<(Expr<TypedVar>, TCContext), (CheckingError, TCContext)> {
[INFO] [stdout]     | |____________________________________________________________________^ function `check` is reachable at visibility `pub`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `TCContext` is only usable at visibility `pub(crate)`
[INFO] [stdout]    --> src/types.rs:51:1
[INFO] [stdout]     |
[INFO] [stdout]  51 | pub(crate) struct TCContext {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: `#[warn(private_interfaces)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `CheckingError` is more private than the item `check`
[INFO] [stdout]    --> src/lib.rs:262:1
[INFO] [stdout]     |
[INFO] [stdout] 262 | / pub fn check(
[INFO] [stdout] 263 | |     e: Expr<VarId>,
[INFO] [stdout] 264 | |     ty: Type<VarId>,
[INFO] [stdout] 265 | |     ctx: TCContext,
[INFO] [stdout] 266 | | ) -> Result<(Expr<TypedVar>, TCContext), (CheckingError, TCContext)> {
[INFO] [stdout]     | |____________________________________________________________________^ function `check` is reachable at visibility `pub`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `CheckingError` is only usable at visibility `pub(crate)`
[INFO] [stdout]    --> src/types.rs:59:1
[INFO] [stdout]     |
[INFO] [stdout]  59 | pub(crate) enum CheckingError {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `TCContext` is more private than the item `synth`
[INFO] [stdout]    --> src/lib.rs:323:1
[INFO] [stdout]     |
[INFO] [stdout] 323 | / pub fn synth(
[INFO] [stdout] 324 | |     e: Expr<VarId>,
[INFO] [stdout] 325 | |     mut ctx: TCContext,
[INFO] [stdout] 326 | | ) -> Result<(Expr<TypedVar>, Type<VarId>, TCContext), (CheckingError, TCContext)> {
[INFO] [stdout]     | |_________________________________________________________________________________^ function `synth` is reachable at visibility `pub`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `TCContext` is only usable at visibility `pub(crate)`
[INFO] [stdout]    --> src/types.rs:51:1
[INFO] [stdout]     |
[INFO] [stdout]  51 | pub(crate) struct TCContext {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `CheckingError` is more private than the item `synth`
[INFO] [stdout]    --> src/lib.rs:323:1
[INFO] [stdout]     |
[INFO] [stdout] 323 | / pub fn synth(
[INFO] [stdout] 324 | |     e: Expr<VarId>,
[INFO] [stdout] 325 | |     mut ctx: TCContext,
[INFO] [stdout] 326 | | ) -> Result<(Expr<TypedVar>, Type<VarId>, TCContext), (CheckingError, TCContext)> {
[INFO] [stdout]     | |_________________________________________________________________________________^ function `synth` is reachable at visibility `pub`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `CheckingError` is only usable at visibility `pub(crate)`
[INFO] [stdout]    --> src/types.rs:59:1
[INFO] [stdout]     |
[INFO] [stdout]  59 | pub(crate) enum CheckingError {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `begin_scope_with` are never used
[INFO] [stdout]   --> src/lib.rs:21:14
[INFO] [stdout]    |
[INFO] [stdout] 20 | impl TCContext {
[INFO] [stdout]    | -------------- associated items in this implementation
[INFO] [stdout] 21 |     const fn new() -> Self {
[INFO] [stdout]    |              ^^^
[INFO] [stdout] ...
[INFO] [stdout] 71 |     fn begin_scope_with(mut self, elem: ContextElement) -> Self {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `id_fn` is never used
[INFO] [stdout]    --> src/lib.rs:811:4
[INFO] [stdout]     |
[INFO] [stdout] 811 | fn id_fn() -> Expr<String> {
[INFO] [stdout]     |    ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Var` is never constructed
[INFO] [stdout]  --> src/lower.rs:2:8
[INFO] [stdout]   |
[INFO] [stdout] 2 | struct Var(VarId, Type);
[INFO] [stdout]   |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `VarId` is never constructed
[INFO] [stdout]  --> src/lower.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 | struct VarId(usize);
[INFO] [stdout]   |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated constant `INCOMPARABLE` is never used
[INFO] [stdout]  --> src/lower.rs:6:11
[INFO] [stdout]   |
[INFO] [stdout] 5 | impl VarId {
[INFO] [stdout]   | ---------- associated constant in this implementation
[INFO] [stdout] 6 |     const INCOMPARABLE: Self = Self(usize::MAX);
[INFO] [stdout]   |           ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Kind` is never used
[INFO] [stdout]  --> src/lower.rs:9:6
[INFO] [stdout]   |
[INFO] [stdout] 9 | enum Kind {
[INFO] [stdout]   |      ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Type` is never used
[INFO] [stdout]   --> src/lower.rs:14:6
[INFO] [stdout]    |
[INFO] [stdout] 14 | enum Type {
[INFO] [stdout]    |      ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `SystemF` is never used
[INFO] [stdout]   --> src/lower.rs:32:6
[INFO] [stdout]    |
[INFO] [stdout] 32 | enum SystemF {
[INFO] [stdout]    |      ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `LowerTypes` is never constructed
[INFO] [stdout]   --> src/lower.rs:41:8
[INFO] [stdout]    |
[INFO] [stdout] 41 | struct LowerTypes {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `incr_index`, `store_var`, and `lookup_var` are never used
[INFO] [stdout]   --> src/lower.rs:46:14
[INFO] [stdout]    |
[INFO] [stdout] 45 | impl LowerTypes {
[INFO] [stdout]    | --------------- methods in this implementation
[INFO] [stdout] 46 |     const fn incr_index(&mut self) -> VarId {
[INFO] [stdout]    |              ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 51 |     fn store_var(&mut self, id: crate::VarId, item: VarId) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 54 |     fn lookup_var(&self, id: crate::VarId) -> VarId {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `resolve_names` is never used
[INFO] [stdout]  --> src/resolve_names.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 8 |     pub fn resolve_names(ast: Expr<String>) -> (Expr<VarId>, Vec<String>) {
[INFO] [stdout]   |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `VarContext` is never constructed
[INFO] [stdout]   --> src/resolve_names.rs:18:23
[INFO] [stdout]    |
[INFO] [stdout] 18 |     pub(crate) struct VarContext {
[INFO] [stdout]    |                       ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `lookup_var`, `lookup_ty`, `fresh_id`, `resolve_names_shadowing`, `resolve_type`, and `resolve_ident_names` are never used
[INFO] [stdout]   --> src/resolve_names.rs:25:23
[INFO] [stdout]    |
[INFO] [stdout] 24 |     impl VarContext {
[INFO] [stdout]    |     --------------- methods in this implementation
[INFO] [stdout] 25 |         pub(crate) fn lookup_var(&self, var: &str) -> VarId {
[INFO] [stdout]    |                       ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 30 |         pub(crate) fn lookup_ty(&self, var: &str) -> VarId {
[INFO] [stdout]    |                       ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 36 |         pub(crate) fn fresh_id(&mut self, name: String) -> VarId {
[INFO] [stdout]    |                       ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 40 |         pub(crate) fn resolve_names_shadowing(
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 53 |         pub(crate) fn resolve_type(&mut self, ty: Type<String>) -> Type<VarId> {
[INFO] [stdout]    |                       ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 88 |         pub(crate) fn resolve_ident_names(&mut self, ast: Expr<String>) -> Expr<VarId> {
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `VarContext` is never constructed
[INFO] [stdout]    --> src/resolve_names.rs:124:12
[INFO] [stdout]     |
[INFO] [stdout] 124 |     struct VarContext {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `resolve_names` is never used
[INFO] [stdout]    --> src/resolve_names.rs:130:12
[INFO] [stdout]     |
[INFO] [stdout] 130 |     pub fn resolve_names(ast: Expr<String>) -> (Expr<VarId>, Vec<String>) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple methods are never used
[INFO] [stdout]    --> src/resolve_names.rs:141:18
[INFO] [stdout]     |
[INFO] [stdout] 140 |     impl VarContext {
[INFO] [stdout]     |     --------------- methods in this implementation
[INFO] [stdout] 141 |         const fn get_index(&self) -> VarId {
[INFO] [stdout]     |                  ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 144 |         fn resolve_ident_names(&mut self, ast: Expr<String>) -> Expr<VarId> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 183 |         const fn new_scope(&mut self) {
[INFO] [stdout]     |                  ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 186 |         fn lookup_var(&self, var: &str) -> VarId {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 191 |         fn resolve_names_shadowing(&mut self, ast: Expr<String>, name: String) -> Expr<VarId> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 200 |         const fn incr_index(&mut self) {
[INFO] [stdout]     |                  ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 203 |         fn resolve_type(&mut self, ty: Type<String>) -> Type<VarId> {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/types.rs:60:25
[INFO] [stdout]    |
[INFO] [stdout] 60 |     UnannotatedVariable(VarId),
[INFO] [stdout]    |     ------------------- ^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CheckingError` 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] 60 -     UnannotatedVariable(VarId),
[INFO] [stdout] 60 +     UnannotatedVariable(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/types.rs:61:32
[INFO] [stdout]    |
[INFO] [stdout] 61 |     DoubelyInitializedVariable(VarId),
[INFO] [stdout]    |     -------------------------- ^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CheckingError` 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] 61 -     DoubelyInitializedVariable(VarId),
[INFO] [stdout] 61 +     DoubelyInitializedVariable(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]   --> src/types.rs:63:19
[INFO] [stdout]    |
[INFO] [stdout] 63 |     TypeMissmatch(Type<VarId>, Type<VarId>),
[INFO] [stdout]    |     ------------- ^^^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     fields in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CheckingError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
[INFO] [stdout]    |
[INFO] [stdout] 63 -     TypeMissmatch(Type<VarId>, Type<VarId>),
[INFO] [stdout] 63 +     TypeMissmatch((), ()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/types.rs:64:22
[INFO] [stdout]    |
[INFO] [stdout] 64 |     AllOptionsFailed(Vec<Self>),
[INFO] [stdout]    |     ---------------- ^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CheckingError` 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] 64 -     AllOptionsFailed(Vec<Self>),
[INFO] [stdout] 64 +     AllOptionsFailed(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]   --> src/types.rs:65:26
[INFO] [stdout]    |
[INFO] [stdout] 65 |     InvalidInstantiation(Type<VarId>, String),
[INFO] [stdout]    |     -------------------- ^^^^^^^^^^^  ^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     fields in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CheckingError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
[INFO] [stdout]    |
[INFO] [stdout] 65 -     InvalidInstantiation(Type<VarId>, String),
[INFO] [stdout] 65 +     InvalidInstantiation((), ()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/types.rs:66:19
[INFO] [stdout]    |
[INFO] [stdout] 66 |     NotWellFormed(Type<VarId>),
[INFO] [stdout]    |     ------------- ^^^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CheckingError` 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] 66 -     NotWellFormed(Type<VarId>),
[INFO] [stdout] 66 +     NotWellFormed(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]   --> src/types.rs:67:22
[INFO] [stdout]    |
[INFO] [stdout] 67 |     MissmatchedArity(Type<VarId>, Type<VarId>),
[INFO] [stdout]    |     ---------------- ^^^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     fields in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CheckingError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
[INFO] [stdout]    |
[INFO] [stdout] 67 -     MissmatchedArity(Type<VarId>, Type<VarId>),
[INFO] [stdout] 67 +     MissmatchedArity((), ()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]   --> src/types.rs:68:19
[INFO] [stdout]    |
[INFO] [stdout] 68 |     KindMissmatch(Type<VarId>, Type<VarId>),
[INFO] [stdout]    |     ------------- ^^^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     fields in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CheckingError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
[INFO] [stdout]    |
[INFO] [stdout] 68 -     KindMissmatch(Type<VarId>, Type<VarId>),
[INFO] [stdout] 68 +     KindMissmatch((), ()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `to_type` is never used
[INFO] [stdout]   --> src/types.rs:71:12
[INFO] [stdout]    |
[INFO] [stdout] 70 | impl ContextElement {
[INFO] [stdout]    | ------------------- method in this implementation
[INFO] [stdout] 71 |     pub fn to_type(self) -> TypedVar {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `is_complete` is never used
[INFO] [stdout]   --> src/types.rs:80:12
[INFO] [stdout]    |
[INFO] [stdout] 79 | impl TCContext {
[INFO] [stdout]    | -------------- method in this implementation
[INFO] [stdout] 80 |     pub fn is_complete(&self) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.74s
[INFO] running `Command { std: "docker" "inspect" "4152952af04523d67dd37da23ebf57df0eb769a16c280840713bb8b4a8a6d4e6", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "4152952af04523d67dd37da23ebf57df0eb769a16c280840713bb8b4a8a6d4e6", kill_on_drop: false }`
[INFO] [stdout] 4152952af04523d67dd37da23ebf57df0eb769a16c280840713bb8b4a8a6d4e6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 9f3c9f9a604df6f1d96b0797851d5591af88438e2f9c7aa0af118699e2d5ef05
[INFO] running `Command { std: "docker" "start" "-a" "9f3c9f9a604df6f1d96b0797851d5591af88438e2f9c7aa0af118699e2d5ef05", kill_on_drop: false }`
[INFO] [stdout] warning: unnecessary parentheses around match arm expression
[INFO] [stdout]    --> src/resolve_names.rs:165:42
[INFO] [stdout]     |
[INFO] [stdout] 165 |                 Expr::Functor(n, ast) => (Expr::Functor(n, self.resolve_ident_names(*ast).into())),
[INFO] [stdout]     |                                          ^                                                       ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 165 -                 Expr::Functor(n, ast) => (Expr::Functor(n, self.resolve_ident_names(*ast).into())),
[INFO] [stdout] 165 +                 Expr::Functor(n, ast) => Expr::Functor(n, self.resolve_ident_names(*ast).into()),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around match arm expression
[INFO] [stdout]    --> src/resolve_names.rs:180:36
[INFO] [stdout]     |
[INFO] [stdout] 180 |                 Expr::LitInt(i) => (Expr::LitInt(i)),
[INFO] [stdout]     |                                    ^               ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 180 -                 Expr::LitInt(i) => (Expr::LitInt(i)),
[INFO] [stdout] 180 +                 Expr::LitInt(i) => Expr::LitInt(i),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `resolve_names::debrujin::resolve_names`
[INFO] [stdout]  --> src/lib.rs:8:5
[INFO] [stdout]   |
[INFO] [stdout] 8 | use resolve_names::debrujin::resolve_names;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `alpha`
[INFO] [stdout]   --> src/types.rs:83:38
[INFO] [stdout]    |
[INFO] [stdout] 83 |             ContextElement::Variable(alpha) => false,
[INFO] [stdout]    |                                      ^^^^^ help: if this is intentional, prefix it with an underscore: `_alpha`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `var`
[INFO] [stdout]   --> src/types.rs:84:43
[INFO] [stdout]    |
[INFO] [stdout] 84 |             ContextElement::TypedVariable(var, ty) => self.is_well_formed(ty),
[INFO] [stdout]    |                                           ^^^ help: if this is intentional, prefix it with an underscore: `_var`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `alpha_hat`
[INFO] [stdout]   --> src/types.rs:85:41
[INFO] [stdout]    |
[INFO] [stdout] 85 |             ContextElement::Existential(alpha_hat) => false,
[INFO] [stdout]    |                                         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_alpha_hat`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `var`
[INFO] [stdout]   --> src/types.rs:86:36
[INFO] [stdout]    |
[INFO] [stdout] 86 |             ContextElement::Solved(var, ty) => self.is_well_formed(ty),
[INFO] [stdout]    |                                    ^^^ help: if this is intentional, prefix it with an underscore: `_var`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `name1`
[INFO] [stdout]    --> src/lib.rs:575:29
[INFO] [stdout]     |
[INFO] [stdout] 575 |         (Type::HigherKinded(name1, v1, open), Type::HigherKinded(name2, v2, open2)) => {
[INFO] [stdout]     |                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_name1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `open`
[INFO] [stdout]    --> src/lib.rs:575:40
[INFO] [stdout]     |
[INFO] [stdout] 575 |         (Type::HigherKinded(name1, v1, open), Type::HigherKinded(name2, v2, open2)) => {
[INFO] [stdout]     |                                        ^^^^ help: if this is intentional, prefix it with an underscore: `_open`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `name2`
[INFO] [stdout]    --> src/lib.rs:575:66
[INFO] [stdout]     |
[INFO] [stdout] 575 |         (Type::HigherKinded(name1, v1, open), Type::HigherKinded(name2, v2, open2)) => {
[INFO] [stdout]     |                                                                  ^^^^^ help: if this is intentional, prefix it with an underscore: `_name2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `open2`
[INFO] [stdout]    --> src/lib.rs:575:77
[INFO] [stdout]     |
[INFO] [stdout] 575 |         (Type::HigherKinded(name1, v1, open), Type::HigherKinded(name2, v2, open2)) => {
[INFO] [stdout]     |                                                                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_open2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `TCContext` is more private than the item `check`
[INFO] [stdout]    --> src/lib.rs:262:1
[INFO] [stdout]     |
[INFO] [stdout] 262 | / pub fn check(
[INFO] [stdout] 263 | |     e: Expr<VarId>,
[INFO] [stdout] 264 | |     ty: Type<VarId>,
[INFO] [stdout] 265 | |     ctx: TCContext,
[INFO] [stdout] 266 | | ) -> Result<(Expr<TypedVar>, TCContext), (CheckingError, TCContext)> {
[INFO] [stdout]     | |____________________________________________________________________^ function `check` is reachable at visibility `pub`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `TCContext` is only usable at visibility `pub(crate)`
[INFO] [stdout]    --> src/types.rs:51:1
[INFO] [stdout]     |
[INFO] [stdout]  51 | pub(crate) struct TCContext {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: `#[warn(private_interfaces)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `CheckingError` is more private than the item `check`
[INFO] [stdout]    --> src/lib.rs:262:1
[INFO] [stdout]     |
[INFO] [stdout] 262 | / pub fn check(
[INFO] [stdout] 263 | |     e: Expr<VarId>,
[INFO] [stdout] 264 | |     ty: Type<VarId>,
[INFO] [stdout] 265 | |     ctx: TCContext,
[INFO] [stdout] 266 | | ) -> Result<(Expr<TypedVar>, TCContext), (CheckingError, TCContext)> {
[INFO] [stdout]     | |____________________________________________________________________^ function `check` is reachable at visibility `pub`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `CheckingError` is only usable at visibility `pub(crate)`
[INFO] [stdout]    --> src/types.rs:59:1
[INFO] [stdout]     |
[INFO] [stdout]  59 | pub(crate) enum CheckingError {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `TCContext` is more private than the item `synth`
[INFO] [stdout]    --> src/lib.rs:323:1
[INFO] [stdout]     |
[INFO] [stdout] 323 | / pub fn synth(
[INFO] [stdout] 324 | |     e: Expr<VarId>,
[INFO] [stdout] 325 | |     mut ctx: TCContext,
[INFO] [stdout] 326 | | ) -> Result<(Expr<TypedVar>, Type<VarId>, TCContext), (CheckingError, TCContext)> {
[INFO] [stdout]     | |_________________________________________________________________________________^ function `synth` is reachable at visibility `pub`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `TCContext` is only usable at visibility `pub(crate)`
[INFO] [stdout]    --> src/types.rs:51:1
[INFO] [stdout]     |
[INFO] [stdout]  51 | pub(crate) struct TCContext {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling type_checker v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: type `CheckingError` is more private than the item `synth`
[INFO] [stdout]    --> src/lib.rs:323:1
[INFO] [stdout]     |
[INFO] [stdout] 323 | / pub fn synth(
[INFO] [stdout] 324 | |     e: Expr<VarId>,
[INFO] [stdout] 325 | |     mut ctx: TCContext,
[INFO] [stdout] 326 | | ) -> Result<(Expr<TypedVar>, Type<VarId>, TCContext), (CheckingError, TCContext)> {
[INFO] [stdout]     | |_________________________________________________________________________________^ function `synth` is reachable at visibility `pub`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `CheckingError` is only usable at visibility `pub(crate)`
[INFO] [stdout]    --> src/types.rs:59:1
[INFO] [stdout]     |
[INFO] [stdout]  59 | pub(crate) enum CheckingError {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated items `new` and `begin_scope_with` are never used
[INFO] [stdout]   --> src/lib.rs:21:14
[INFO] [stdout]    |
[INFO] [stdout] 20 | impl TCContext {
[INFO] [stdout]    | -------------- associated items in this implementation
[INFO] [stdout] 21 |     const fn new() -> Self {
[INFO] [stdout]    |              ^^^
[INFO] [stdout] ...
[INFO] [stdout] 71 |     fn begin_scope_with(mut self, elem: ContextElement) -> Self {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `id_fn` is never used
[INFO] [stdout]    --> src/lib.rs:811:4
[INFO] [stdout]     |
[INFO] [stdout] 811 | fn id_fn() -> Expr<String> {
[INFO] [stdout]     |    ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Var` is never constructed
[INFO] [stdout]  --> src/lower.rs:2:8
[INFO] [stdout]   |
[INFO] [stdout] 2 | struct Var(VarId, Type);
[INFO] [stdout]   |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `VarId` is never constructed
[INFO] [stdout]  --> src/lower.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 | struct VarId(usize);
[INFO] [stdout]   |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated constant `INCOMPARABLE` is never used
[INFO] [stdout]  --> src/lower.rs:6:11
[INFO] [stdout]   |
[INFO] [stdout] 5 | impl VarId {
[INFO] [stdout]   | ---------- associated constant in this implementation
[INFO] [stdout] 6 |     const INCOMPARABLE: Self = Self(usize::MAX);
[INFO] [stdout]   |           ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Kind` is never used
[INFO] [stdout]  --> src/lower.rs:9:6
[INFO] [stdout]   |
[INFO] [stdout] 9 | enum Kind {
[INFO] [stdout]   |      ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Type` is never used
[INFO] [stdout]   --> src/lower.rs:14:6
[INFO] [stdout]    |
[INFO] [stdout] 14 | enum Type {
[INFO] [stdout]    |      ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `SystemF` is never used
[INFO] [stdout]   --> src/lower.rs:32:6
[INFO] [stdout]    |
[INFO] [stdout] 32 | enum SystemF {
[INFO] [stdout]    |      ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `LowerTypes` is never constructed
[INFO] [stdout]   --> src/lower.rs:41:8
[INFO] [stdout]    |
[INFO] [stdout] 41 | struct LowerTypes {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `incr_index`, `store_var`, and `lookup_var` are never used
[INFO] [stdout]   --> src/lower.rs:46:14
[INFO] [stdout]    |
[INFO] [stdout] 45 | impl LowerTypes {
[INFO] [stdout]    | --------------- methods in this implementation
[INFO] [stdout] 46 |     const fn incr_index(&mut self) -> VarId {
[INFO] [stdout]    |              ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 51 |     fn store_var(&mut self, id: crate::VarId, item: VarId) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 54 |     fn lookup_var(&self, id: crate::VarId) -> VarId {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `resolve_names` is never used
[INFO] [stdout]  --> src/resolve_names.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 8 |     pub fn resolve_names(ast: Expr<String>) -> (Expr<VarId>, Vec<String>) {
[INFO] [stdout]   |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `VarContext` is never constructed
[INFO] [stdout]   --> src/resolve_names.rs:18:23
[INFO] [stdout]    |
[INFO] [stdout] 18 |     pub(crate) struct VarContext {
[INFO] [stdout]    |                       ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `lookup_var`, `lookup_ty`, `fresh_id`, `resolve_names_shadowing`, `resolve_type`, and `resolve_ident_names` are never used
[INFO] [stdout]   --> src/resolve_names.rs:25:23
[INFO] [stdout]    |
[INFO] [stdout] 24 |     impl VarContext {
[INFO] [stdout]    |     --------------- methods in this implementation
[INFO] [stdout] 25 |         pub(crate) fn lookup_var(&self, var: &str) -> VarId {
[INFO] [stdout]    |                       ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 30 |         pub(crate) fn lookup_ty(&self, var: &str) -> VarId {
[INFO] [stdout]    |                       ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 36 |         pub(crate) fn fresh_id(&mut self, name: String) -> VarId {
[INFO] [stdout]    |                       ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 40 |         pub(crate) fn resolve_names_shadowing(
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 53 |         pub(crate) fn resolve_type(&mut self, ty: Type<String>) -> Type<VarId> {
[INFO] [stdout]    |                       ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 88 |         pub(crate) fn resolve_ident_names(&mut self, ast: Expr<String>) -> Expr<VarId> {
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `VarContext` is never constructed
[INFO] [stdout]    --> src/resolve_names.rs:124:12
[INFO] [stdout]     |
[INFO] [stdout] 124 |     struct VarContext {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `resolve_names` is never used
[INFO] [stdout]    --> src/resolve_names.rs:130:12
[INFO] [stdout]     |
[INFO] [stdout] 130 |     pub fn resolve_names(ast: Expr<String>) -> (Expr<VarId>, Vec<String>) {
[INFO] [stdout]     |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: multiple methods are never used
[INFO] [stdout]    --> src/resolve_names.rs:141:18
[INFO] [stdout]     |
[INFO] [stdout] 140 |     impl VarContext {
[INFO] [stdout]     |     --------------- methods in this implementation
[INFO] [stdout] 141 |         const fn get_index(&self) -> VarId {
[INFO] [stdout]     |                  ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 144 |         fn resolve_ident_names(&mut self, ast: Expr<String>) -> Expr<VarId> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 183 |         const fn new_scope(&mut self) {
[INFO] [stdout]     |                  ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 186 |         fn lookup_var(&self, var: &str) -> VarId {
[INFO] [stdout]     |            ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 191 |         fn resolve_names_shadowing(&mut self, ast: Expr<String>, name: String) -> Expr<VarId> {
[INFO] [stdout]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 200 |         const fn incr_index(&mut self) {
[INFO] [stdout]     |                  ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 203 |         fn resolve_type(&mut self, ty: Type<String>) -> Type<VarId> {
[INFO] [stdout]     |            ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/types.rs:60:25
[INFO] [stdout]    |
[INFO] [stdout] 60 |     UnannotatedVariable(VarId),
[INFO] [stdout]    |     ------------------- ^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CheckingError` 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] 60 -     UnannotatedVariable(VarId),
[INFO] [stdout] 60 +     UnannotatedVariable(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/types.rs:61:32
[INFO] [stdout]    |
[INFO] [stdout] 61 |     DoubelyInitializedVariable(VarId),
[INFO] [stdout]    |     -------------------------- ^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CheckingError` 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] 61 -     DoubelyInitializedVariable(VarId),
[INFO] [stdout] 61 +     DoubelyInitializedVariable(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]   --> src/types.rs:63:19
[INFO] [stdout]    |
[INFO] [stdout] 63 |     TypeMissmatch(Type<VarId>, Type<VarId>),
[INFO] [stdout]    |     ------------- ^^^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     fields in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CheckingError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
[INFO] [stdout]    |
[INFO] [stdout] 63 -     TypeMissmatch(Type<VarId>, Type<VarId>),
[INFO] [stdout] 63 +     TypeMissmatch((), ()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/types.rs:64:22
[INFO] [stdout]    |
[INFO] [stdout] 64 |     AllOptionsFailed(Vec<Self>),
[INFO] [stdout]    |     ---------------- ^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CheckingError` 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] 64 -     AllOptionsFailed(Vec<Self>),
[INFO] [stdout] 64 +     AllOptionsFailed(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]   --> src/types.rs:65:26
[INFO] [stdout]    |
[INFO] [stdout] 65 |     InvalidInstantiation(Type<VarId>, String),
[INFO] [stdout]    |     -------------------- ^^^^^^^^^^^  ^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     fields in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CheckingError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
[INFO] [stdout]    |
[INFO] [stdout] 65 -     InvalidInstantiation(Type<VarId>, String),
[INFO] [stdout] 65 +     InvalidInstantiation((), ()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/types.rs:66:19
[INFO] [stdout]    |
[INFO] [stdout] 66 |     NotWellFormed(Type<VarId>),
[INFO] [stdout]    |     ------------- ^^^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CheckingError` 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] 66 -     NotWellFormed(Type<VarId>),
[INFO] [stdout] 66 +     NotWellFormed(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]   --> src/types.rs:67:22
[INFO] [stdout]    |
[INFO] [stdout] 67 |     MissmatchedArity(Type<VarId>, Type<VarId>),
[INFO] [stdout]    |     ---------------- ^^^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     fields in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CheckingError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
[INFO] [stdout]    |
[INFO] [stdout] 67 -     MissmatchedArity(Type<VarId>, Type<VarId>),
[INFO] [stdout] 67 +     MissmatchedArity((), ()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]   --> src/types.rs:68:19
[INFO] [stdout]    |
[INFO] [stdout] 68 |     KindMissmatch(Type<VarId>, Type<VarId>),
[INFO] [stdout]    |     ------------- ^^^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     fields in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CheckingError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
[INFO] [stdout]    |
[INFO] [stdout] 68 -     KindMissmatch(Type<VarId>, Type<VarId>),
[INFO] [stdout] 68 +     KindMissmatch((), ()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `to_type` is never used
[INFO] [stdout]   --> src/types.rs:71:12
[INFO] [stdout]    |
[INFO] [stdout] 70 | impl ContextElement {
[INFO] [stdout]    | ------------------- method in this implementation
[INFO] [stdout] 71 |     pub fn to_type(self) -> TypedVar {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `is_complete` is never used
[INFO] [stdout]   --> src/types.rs:80:12
[INFO] [stdout]    |
[INFO] [stdout] 79 | impl TCContext {
[INFO] [stdout]    | -------------- method in this implementation
[INFO] [stdout] 80 |     pub fn is_complete(&self) -> bool {
[INFO] [stdout]    |            ^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around match arm expression
[INFO] [stdout]    --> src/resolve_names.rs:165:42
[INFO] [stdout]     |
[INFO] [stdout] 165 |                 Expr::Functor(n, ast) => (Expr::Functor(n, self.resolve_ident_names(*ast).into())),
[INFO] [stdout]     |                                          ^                                                       ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 165 -                 Expr::Functor(n, ast) => (Expr::Functor(n, self.resolve_ident_names(*ast).into())),
[INFO] [stdout] 165 +                 Expr::Functor(n, ast) => Expr::Functor(n, self.resolve_ident_names(*ast).into()),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around match arm expression
[INFO] [stdout]    --> src/resolve_names.rs:180:36
[INFO] [stdout]     |
[INFO] [stdout] 180 |                 Expr::LitInt(i) => (Expr::LitInt(i)),
[INFO] [stdout]     |                                    ^               ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 180 -                 Expr::LitInt(i) => (Expr::LitInt(i)),
[INFO] [stdout] 180 +                 Expr::LitInt(i) => Expr::LitInt(i),
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable expression
[INFO] [stdout]    --> src/lib.rs:918:5
[INFO] [stdout]     |
[INFO] [stdout] 917 |     panic!();
[INFO] [stdout]     |     -------- any code following this expression is unreachable
[INFO] [stdout] 918 |     Ok(())
[INFO] [stdout]     |     ^^^^^^ unreachable expression
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unreachable_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `alpha`
[INFO] [stdout]   --> src/types.rs:83:38
[INFO] [stdout]    |
[INFO] [stdout] 83 |             ContextElement::Variable(alpha) => false,
[INFO] [stdout]    |                                      ^^^^^ help: if this is intentional, prefix it with an underscore: `_alpha`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `var`
[INFO] [stdout]   --> src/types.rs:84:43
[INFO] [stdout]    |
[INFO] [stdout] 84 |             ContextElement::TypedVariable(var, ty) => self.is_well_formed(ty),
[INFO] [stdout]    |                                           ^^^ help: if this is intentional, prefix it with an underscore: `_var`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `alpha_hat`
[INFO] [stdout]   --> src/types.rs:85:41
[INFO] [stdout]    |
[INFO] [stdout] 85 |             ContextElement::Existential(alpha_hat) => false,
[INFO] [stdout]    |                                         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_alpha_hat`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `var`
[INFO] [stdout]   --> src/types.rs:86:36
[INFO] [stdout]    |
[INFO] [stdout] 86 |             ContextElement::Solved(var, ty) => self.is_well_formed(ty),
[INFO] [stdout]    |                                    ^^^ help: if this is intentional, prefix it with an underscore: `_var`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `name1`
[INFO] [stdout]    --> src/lib.rs:575:29
[INFO] [stdout]     |
[INFO] [stdout] 575 |         (Type::HigherKinded(name1, v1, open), Type::HigherKinded(name2, v2, open2)) => {
[INFO] [stdout]     |                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_name1`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `open`
[INFO] [stdout]    --> src/lib.rs:575:40
[INFO] [stdout]     |
[INFO] [stdout] 575 |         (Type::HigherKinded(name1, v1, open), Type::HigherKinded(name2, v2, open2)) => {
[INFO] [stdout]     |                                        ^^^^ help: if this is intentional, prefix it with an underscore: `_open`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `name2`
[INFO] [stdout]    --> src/lib.rs:575:66
[INFO] [stdout]     |
[INFO] [stdout] 575 |         (Type::HigherKinded(name1, v1, open), Type::HigherKinded(name2, v2, open2)) => {
[INFO] [stdout]     |                                                                  ^^^^^ help: if this is intentional, prefix it with an underscore: `_name2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `open2`
[INFO] [stdout]    --> src/lib.rs:575:77
[INFO] [stdout]     |
[INFO] [stdout] 575 |         (Type::HigherKinded(name1, v1, open), Type::HigherKinded(name2, v2, open2)) => {
[INFO] [stdout]     |                                                                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_open2`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `TCContext` is more private than the item `check`
[INFO] [stdout]    --> src/lib.rs:262:1
[INFO] [stdout]     |
[INFO] [stdout] 262 | / pub fn check(
[INFO] [stdout] 263 | |     e: Expr<VarId>,
[INFO] [stdout] 264 | |     ty: Type<VarId>,
[INFO] [stdout] 265 | |     ctx: TCContext,
[INFO] [stdout] 266 | | ) -> Result<(Expr<TypedVar>, TCContext), (CheckingError, TCContext)> {
[INFO] [stdout]     | |____________________________________________________________________^ function `check` is reachable at visibility `pub`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `TCContext` is only usable at visibility `pub(crate)`
[INFO] [stdout]    --> src/types.rs:51:1
[INFO] [stdout]     |
[INFO] [stdout]  51 | pub(crate) struct TCContext {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     = note: `#[warn(private_interfaces)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `CheckingError` is more private than the item `check`
[INFO] [stdout]    --> src/lib.rs:262:1
[INFO] [stdout]     |
[INFO] [stdout] 262 | / pub fn check(
[INFO] [stdout] 263 | |     e: Expr<VarId>,
[INFO] [stdout] 264 | |     ty: Type<VarId>,
[INFO] [stdout] 265 | |     ctx: TCContext,
[INFO] [stdout] 266 | | ) -> Result<(Expr<TypedVar>, TCContext), (CheckingError, TCContext)> {
[INFO] [stdout]     | |____________________________________________________________________^ function `check` is reachable at visibility `pub`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `CheckingError` is only usable at visibility `pub(crate)`
[INFO] [stdout]    --> src/types.rs:59:1
[INFO] [stdout]     |
[INFO] [stdout]  59 | pub(crate) enum CheckingError {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `TCContext` is more private than the item `synth`
[INFO] [stdout]    --> src/lib.rs:323:1
[INFO] [stdout]     |
[INFO] [stdout] 323 | / pub fn synth(
[INFO] [stdout] 324 | |     e: Expr<VarId>,
[INFO] [stdout] 325 | |     mut ctx: TCContext,
[INFO] [stdout] 326 | | ) -> Result<(Expr<TypedVar>, Type<VarId>, TCContext), (CheckingError, TCContext)> {
[INFO] [stdout]     | |_________________________________________________________________________________^ function `synth` is reachable at visibility `pub`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `TCContext` is only usable at visibility `pub(crate)`
[INFO] [stdout]    --> src/types.rs:51:1
[INFO] [stdout]     |
[INFO] [stdout]  51 | pub(crate) struct TCContext {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type `CheckingError` is more private than the item `synth`
[INFO] [stdout]    --> src/lib.rs:323:1
[INFO] [stdout]     |
[INFO] [stdout] 323 | / pub fn synth(
[INFO] [stdout] 324 | |     e: Expr<VarId>,
[INFO] [stdout] 325 | |     mut ctx: TCContext,
[INFO] [stdout] 326 | | ) -> Result<(Expr<TypedVar>, Type<VarId>, TCContext), (CheckingError, TCContext)> {
[INFO] [stdout]     | |_________________________________________________________________________________^ function `synth` is reachable at visibility `pub`
[INFO] [stdout]     |
[INFO] [stdout] note: but type `CheckingError` is only usable at visibility `pub(crate)`
[INFO] [stdout]    --> src/types.rs:59:1
[INFO] [stdout]     |
[INFO] [stdout]  59 | pub(crate) enum CheckingError {
[INFO] [stdout]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `begin_scope_with` is never used
[INFO] [stdout]   --> src/lib.rs:71:8
[INFO] [stdout]    |
[INFO] [stdout] 20 | impl TCContext {
[INFO] [stdout]    | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 71 |     fn begin_scope_with(mut self, elem: ContextElement) -> Self {
[INFO] [stdout]    |        ^^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `Var` is never constructed
[INFO] [stdout]  --> src/lower.rs:2:8
[INFO] [stdout]   |
[INFO] [stdout] 2 | struct Var(VarId, Type);
[INFO] [stdout]   |        ^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `VarId` is never constructed
[INFO] [stdout]  --> src/lower.rs:4:8
[INFO] [stdout]   |
[INFO] [stdout] 4 | struct VarId(usize);
[INFO] [stdout]   |        ^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: associated constant `INCOMPARABLE` is never used
[INFO] [stdout]  --> src/lower.rs:6:11
[INFO] [stdout]   |
[INFO] [stdout] 5 | impl VarId {
[INFO] [stdout]   | ---------- associated constant in this implementation
[INFO] [stdout] 6 |     const INCOMPARABLE: Self = Self(usize::MAX);
[INFO] [stdout]   |           ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Kind` is never used
[INFO] [stdout]  --> src/lower.rs:9:6
[INFO] [stdout]   |
[INFO] [stdout] 9 | enum Kind {
[INFO] [stdout]   |      ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `Type` is never used
[INFO] [stdout]   --> src/lower.rs:14:6
[INFO] [stdout]    |
[INFO] [stdout] 14 | enum Type {
[INFO] [stdout]    |      ^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `SystemF` is never used
[INFO] [stdout]   --> src/lower.rs:32:6
[INFO] [stdout]    |
[INFO] [stdout] 32 | enum SystemF {
[INFO] [stdout]    |      ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `LowerTypes` is never constructed
[INFO] [stdout]   --> src/lower.rs:41:8
[INFO] [stdout]    |
[INFO] [stdout] 41 | struct LowerTypes {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `incr_index`, `store_var`, and `lookup_var` are never used
[INFO] [stdout]   --> src/lower.rs:46:14
[INFO] [stdout]    |
[INFO] [stdout] 45 | impl LowerTypes {
[INFO] [stdout]    | --------------- methods in this implementation
[INFO] [stdout] 46 |     const fn incr_index(&mut self) -> VarId {
[INFO] [stdout]    |              ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 51 |     fn store_var(&mut self, id: crate::VarId, item: VarId) {
[INFO] [stdout]    |        ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 54 |     fn lookup_var(&self, id: crate::VarId) -> VarId {
[INFO] [stdout]    |        ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: function `resolve_names` is never used
[INFO] [stdout]  --> src/resolve_names.rs:8:12
[INFO] [stdout]   |
[INFO] [stdout] 8 |     pub fn resolve_names(ast: Expr<String>) -> (Expr<VarId>, Vec<String>) {
[INFO] [stdout]   |            ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: struct `VarContext` is never constructed
[INFO] [stdout]   --> src/resolve_names.rs:18:23
[INFO] [stdout]    |
[INFO] [stdout] 18 |     pub(crate) struct VarContext {
[INFO] [stdout]    |                       ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: methods `lookup_var`, `lookup_ty`, `fresh_id`, `resolve_names_shadowing`, `resolve_type`, and `resolve_ident_names` are never used
[INFO] [stdout]   --> src/resolve_names.rs:25:23
[INFO] [stdout]    |
[INFO] [stdout] 24 |     impl VarContext {
[INFO] [stdout]    |     --------------- methods in this implementation
[INFO] [stdout] 25 |         pub(crate) fn lookup_var(&self, var: &str) -> VarId {
[INFO] [stdout]    |                       ^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 30 |         pub(crate) fn lookup_ty(&self, var: &str) -> VarId {
[INFO] [stdout]    |                       ^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 36 |         pub(crate) fn fresh_id(&mut self, name: String) -> VarId {
[INFO] [stdout]    |                       ^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 40 |         pub(crate) fn resolve_names_shadowing(
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 53 |         pub(crate) fn resolve_type(&mut self, ty: Type<String>) -> Type<VarId> {
[INFO] [stdout]    |                       ^^^^^^^^^^^^
[INFO] [stdout] ...
[INFO] [stdout] 88 |         pub(crate) fn resolve_ident_names(&mut self, ast: Expr<String>) -> Expr<VarId> {
[INFO] [stdout]    |                       ^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `ty_scope` is never read
[INFO] [stdout]    --> src/resolve_names.rs:128:9
[INFO] [stdout]     |
[INFO] [stdout] 124 |     struct VarContext {
[INFO] [stdout]     |            ---------- field in this struct
[INFO] [stdout] ...
[INFO] [stdout] 128 |         ty_scope: usize,
[INFO] [stdout]     |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/types.rs:60:25
[INFO] [stdout]    |
[INFO] [stdout] 60 |     UnannotatedVariable(VarId),
[INFO] [stdout]    |     ------------------- ^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CheckingError` 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] 60 -     UnannotatedVariable(VarId),
[INFO] [stdout] 60 +     UnannotatedVariable(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/types.rs:61:32
[INFO] [stdout]    |
[INFO] [stdout] 61 |     DoubelyInitializedVariable(VarId),
[INFO] [stdout]    |     -------------------------- ^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CheckingError` 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] 61 -     DoubelyInitializedVariable(VarId),
[INFO] [stdout] 61 +     DoubelyInitializedVariable(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]   --> src/types.rs:63:19
[INFO] [stdout]    |
[INFO] [stdout] 63 |     TypeMissmatch(Type<VarId>, Type<VarId>),
[INFO] [stdout]    |     ------------- ^^^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     fields in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CheckingError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
[INFO] [stdout]    |
[INFO] [stdout] 63 -     TypeMissmatch(Type<VarId>, Type<VarId>),
[INFO] [stdout] 63 +     TypeMissmatch((), ()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/types.rs:64:22
[INFO] [stdout]    |
[INFO] [stdout] 64 |     AllOptionsFailed(Vec<Self>),
[INFO] [stdout]    |     ---------------- ^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CheckingError` 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] 64 -     AllOptionsFailed(Vec<Self>),
[INFO] [stdout] 64 +     AllOptionsFailed(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]   --> src/types.rs:65:26
[INFO] [stdout]    |
[INFO] [stdout] 65 |     InvalidInstantiation(Type<VarId>, String),
[INFO] [stdout]    |     -------------------- ^^^^^^^^^^^  ^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     fields in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CheckingError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
[INFO] [stdout]    |
[INFO] [stdout] 65 -     InvalidInstantiation(Type<VarId>, String),
[INFO] [stdout] 65 +     InvalidInstantiation((), ()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: field `0` is never read
[INFO] [stdout]   --> src/types.rs:66:19
[INFO] [stdout]    |
[INFO] [stdout] 66 |     NotWellFormed(Type<VarId>),
[INFO] [stdout]    |     ------------- ^^^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     field in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CheckingError` 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] 66 -     NotWellFormed(Type<VarId>),
[INFO] [stdout] 66 +     NotWellFormed(()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]   --> src/types.rs:67:22
[INFO] [stdout]    |
[INFO] [stdout] 67 |     MissmatchedArity(Type<VarId>, Type<VarId>),
[INFO] [stdout]    |     ---------------- ^^^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     fields in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CheckingError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
[INFO] [stdout]    |
[INFO] [stdout] 67 -     MissmatchedArity(Type<VarId>, Type<VarId>),
[INFO] [stdout] 67 +     MissmatchedArity((), ()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: fields `0` and `1` are never read
[INFO] [stdout]   --> src/types.rs:68:19
[INFO] [stdout]    |
[INFO] [stdout] 68 |     KindMissmatch(Type<VarId>, Type<VarId>),
[INFO] [stdout]    |     ------------- ^^^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stdout]    |     |
[INFO] [stdout]    |     fields in this variant
[INFO] [stdout]    |
[INFO] [stdout]    = note: `CheckingError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stdout] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
[INFO] [stdout]    |
[INFO] [stdout] 68 -     KindMissmatch(Type<VarId>, Type<VarId>),
[INFO] [stdout] 68 +     KindMissmatch((), ()),
[INFO] [stdout]    |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `to_type` is never used
[INFO] [stdout]   --> src/types.rs:71:12
[INFO] [stdout]    |
[INFO] [stdout] 70 | impl ContextElement {
[INFO] [stdout]    | ------------------- method in this implementation
[INFO] [stdout] 71 |     pub fn to_type(self) -> TypedVar {
[INFO] [stdout]    |            ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.45s
[INFO] running `Command { std: "docker" "inspect" "9f3c9f9a604df6f1d96b0797851d5591af88438e2f9c7aa0af118699e2d5ef05", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9f3c9f9a604df6f1d96b0797851d5591af88438e2f9c7aa0af118699e2d5ef05", kill_on_drop: false }`
[INFO] [stdout] 9f3c9f9a604df6f1d96b0797851d5591af88438e2f9c7aa0af118699e2d5ef05
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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=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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+1.90.0" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 71e30c61b28b055f362b3e5bcc9a1d45d2d1b7a8e8878e90ac75c13d4cd19212
[INFO] running `Command { std: "docker" "start" "-a" "71e30c61b28b055f362b3e5bcc9a1d45d2d1b7a8e8878e90ac75c13d4cd19212", kill_on_drop: false }`
[INFO] [stderr] warning: unnecessary parentheses around match arm expression
[INFO] [stderr]    --> src/resolve_names.rs:165:42
[INFO] [stderr]     |
[INFO] [stderr] 165 |                 Expr::Functor(n, ast) => (Expr::Functor(n, self.resolve_ident_names(*ast).into())),
[INFO] [stderr]     |                                          ^                                                       ^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]     |
[INFO] [stderr] 165 -                 Expr::Functor(n, ast) => (Expr::Functor(n, self.resolve_ident_names(*ast).into())),
[INFO] [stderr] 165 +                 Expr::Functor(n, ast) => Expr::Functor(n, self.resolve_ident_names(*ast).into()),
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around match arm expression
[INFO] [stderr]    --> src/resolve_names.rs:180:36
[INFO] [stderr]     |
[INFO] [stderr] 180 |                 Expr::LitInt(i) => (Expr::LitInt(i)),
[INFO] [stderr]     |                                    ^               ^
[INFO] [stderr]     |
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]     |
[INFO] [stderr] 180 -                 Expr::LitInt(i) => (Expr::LitInt(i)),
[INFO] [stderr] 180 +                 Expr::LitInt(i) => Expr::LitInt(i),
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `resolve_names::debrujin::resolve_names`
[INFO] [stderr]  --> src/lib.rs:8:5
[INFO] [stderr]   |
[INFO] [stderr] 8 | use resolve_names::debrujin::resolve_names;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `alpha`
[INFO] [stderr]   --> src/types.rs:83:38
[INFO] [stderr]    |
[INFO] [stderr] 83 |             ContextElement::Variable(alpha) => false,
[INFO] [stderr]    |                                      ^^^^^ help: if this is intentional, prefix it with an underscore: `_alpha`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(unused_variables)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `var`
[INFO] [stderr]   --> src/types.rs:84:43
[INFO] [stderr]    |
[INFO] [stderr] 84 |             ContextElement::TypedVariable(var, ty) => self.is_well_formed(ty),
[INFO] [stderr]    |                                           ^^^ help: if this is intentional, prefix it with an underscore: `_var`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `alpha_hat`
[INFO] [stderr]   --> src/types.rs:85:41
[INFO] [stderr]    |
[INFO] [stderr] 85 |             ContextElement::Existential(alpha_hat) => false,
[INFO] [stderr]    |                                         ^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_alpha_hat`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `var`
[INFO] [stderr]   --> src/types.rs:86:36
[INFO] [stderr]    |
[INFO] [stderr] 86 |             ContextElement::Solved(var, ty) => self.is_well_formed(ty),
[INFO] [stderr]    |                                    ^^^ help: if this is intentional, prefix it with an underscore: `_var`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `name1`
[INFO] [stderr]    --> src/lib.rs:575:29
[INFO] [stderr]     |
[INFO] [stderr] 575 |         (Type::HigherKinded(name1, v1, open), Type::HigherKinded(name2, v2, open2)) => {
[INFO] [stderr]     |                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_name1`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `open`
[INFO] [stderr]    --> src/lib.rs:575:40
[INFO] [stderr]     |
[INFO] [stderr] 575 |         (Type::HigherKinded(name1, v1, open), Type::HigherKinded(name2, v2, open2)) => {
[INFO] [stderr]     |                                        ^^^^ help: if this is intentional, prefix it with an underscore: `_open`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `name2`
[INFO] [stderr]    --> src/lib.rs:575:66
[INFO] [stderr]     |
[INFO] [stderr] 575 |         (Type::HigherKinded(name1, v1, open), Type::HigherKinded(name2, v2, open2)) => {
[INFO] [stderr]     |                                                                  ^^^^^ help: if this is intentional, prefix it with an underscore: `_name2`
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `open2`
[INFO] [stderr]    --> src/lib.rs:575:77
[INFO] [stderr]     |
[INFO] [stderr] 575 |         (Type::HigherKinded(name1, v1, open), Type::HigherKinded(name2, v2, open2)) => {
[INFO] [stderr]     |                                                                             ^^^^^ help: if this is intentional, prefix it with an underscore: `_open2`
[INFO] [stderr] 
[INFO] [stderr] warning: type `TCContext` is more private than the item `check`
[INFO] [stderr]    --> src/lib.rs:262:1
[INFO] [stderr]     |
[INFO] [stderr] 262 | / pub fn check(
[INFO] [stderr] 263 | |     e: Expr<VarId>,
[INFO] [stderr] 264 | |     ty: Type<VarId>,
[INFO] [stderr] 265 | |     ctx: TCContext,
[INFO] [stderr] 266 | | ) -> Result<(Expr<TypedVar>, TCContext), (CheckingError, TCContext)> {
[INFO] [stderr]     | |____________________________________________________________________^ function `check` is reachable at visibility `pub`
[INFO] [stderr]     |
[INFO] [stderr] note: but type `TCContext` is only usable at visibility `pub(crate)`
[INFO] [stderr]    --> src/types.rs:51:1
[INFO] [stderr]     |
[INFO] [stderr]  51 | pub(crate) struct TCContext {
[INFO] [stderr]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     = note: `#[warn(private_interfaces)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: type `CheckingError` is more private than the item `check`
[INFO] [stderr]    --> src/lib.rs:262:1
[INFO] [stderr]     |
[INFO] [stderr] 262 | / pub fn check(
[INFO] [stderr] 263 | |     e: Expr<VarId>,
[INFO] [stderr] 264 | |     ty: Type<VarId>,
[INFO] [stderr] 265 | |     ctx: TCContext,
[INFO] [stderr] 266 | | ) -> Result<(Expr<TypedVar>, TCContext), (CheckingError, TCContext)> {
[INFO] [stderr]     | |____________________________________________________________________^ function `check` is reachable at visibility `pub`
[INFO] [stderr]     |
[INFO] [stderr] note: but type `CheckingError` is only usable at visibility `pub(crate)`
[INFO] [stderr]    --> src/types.rs:59:1
[INFO] [stderr]     |
[INFO] [stderr]  59 | pub(crate) enum CheckingError {
[INFO] [stderr]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: type `TCContext` is more private than the item `synth`
[INFO] [stderr]    --> src/lib.rs:323:1
[INFO] [stderr]     |
[INFO] [stderr] 323 | / pub fn synth(
[INFO] [stderr] 324 | |     e: Expr<VarId>,
[INFO] [stderr] 325 | |     mut ctx: TCContext,
[INFO] [stderr] 326 | | ) -> Result<(Expr<TypedVar>, Type<VarId>, TCContext), (CheckingError, TCContext)> {
[INFO] [stderr]     | |_________________________________________________________________________________^ function `synth` is reachable at visibility `pub`
[INFO] [stderr]     |
[INFO] [stderr] note: but type `TCContext` is only usable at visibility `pub(crate)`
[INFO] [stderr]    --> src/types.rs:51:1
[INFO] [stderr]     |
[INFO] [stderr]  51 | pub(crate) struct TCContext {
[INFO] [stderr]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: type `CheckingError` is more private than the item `synth`
[INFO] [stderr]    --> src/lib.rs:323:1
[INFO] [stderr]     |
[INFO] [stderr] 323 | / pub fn synth(
[INFO] [stderr] 324 | |     e: Expr<VarId>,
[INFO] [stderr] 325 | |     mut ctx: TCContext,
[INFO] [stderr] 326 | | ) -> Result<(Expr<TypedVar>, Type<VarId>, TCContext), (CheckingError, TCContext)> {
[INFO] [stderr]     | |_________________________________________________________________________________^ function `synth` is reachable at visibility `pub`
[INFO] [stderr]     |
[INFO] [stderr] note: but type `CheckingError` is only usable at visibility `pub(crate)`
[INFO] [stderr]    --> src/types.rs:59:1
[INFO] [stderr]     |
[INFO] [stderr]  59 | pub(crate) enum CheckingError {
[INFO] [stderr]     | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated items `new` and `begin_scope_with` are never used
[INFO] [stderr]   --> src/lib.rs:21:14
[INFO] [stderr]    |
[INFO] [stderr] 20 | impl TCContext {
[INFO] [stderr]    | -------------- associated items in this implementation
[INFO] [stderr] 21 |     const fn new() -> Self {
[INFO] [stderr]    |              ^^^
[INFO] [stderr] ...
[INFO] [stderr] 71 |     fn begin_scope_with(mut self, elem: ContextElement) -> Self {
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: function `id_fn` is never used
[INFO] [stderr]    --> src/lib.rs:811:4
[INFO] [stderr]     |
[INFO] [stderr] 811 | fn id_fn() -> Expr<String> {
[INFO] [stderr]     |    ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `Var` is never constructed
[INFO] [stderr]  --> src/lower.rs:2:8
[INFO] [stderr]   |
[INFO] [stderr] 2 | struct Var(VarId, Type);
[INFO] [stderr]   |        ^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `VarId` is never constructed
[INFO] [stderr]  --> src/lower.rs:4:8
[INFO] [stderr]   |
[INFO] [stderr] 4 | struct VarId(usize);
[INFO] [stderr]   |        ^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: associated constant `INCOMPARABLE` is never used
[INFO] [stderr]  --> src/lower.rs:6:11
[INFO] [stderr]   |
[INFO] [stderr] 5 | impl VarId {
[INFO] [stderr]   | ---------- associated constant in this implementation
[INFO] [stderr] 6 |     const INCOMPARABLE: Self = Self(usize::MAX);
[INFO] [stderr]   |           ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: enum `Kind` is never used
[INFO] [stderr]  --> src/lower.rs:9:6
[INFO] [stderr]   |
[INFO] [stderr] 9 | enum Kind {
[INFO] [stderr]   |      ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: enum `Type` is never used
[INFO] [stderr]   --> src/lower.rs:14:6
[INFO] [stderr]    |
[INFO] [stderr] 14 | enum Type {
[INFO] [stderr]    |      ^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: enum `SystemF` is never used
[INFO] [stderr]   --> src/lower.rs:32:6
[INFO] [stderr]    |
[INFO] [stderr] 32 | enum SystemF {
[INFO] [stderr]    |      ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `LowerTypes` is never constructed
[INFO] [stderr]   --> src/lower.rs:41:8
[INFO] [stderr]    |
[INFO] [stderr] 41 | struct LowerTypes {
[INFO] [stderr]    |        ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: methods `incr_index`, `store_var`, and `lookup_var` are never used
[INFO] [stderr]   --> src/lower.rs:46:14
[INFO] [stderr]    |
[INFO] [stderr] 45 | impl LowerTypes {
[INFO] [stderr]    | --------------- methods in this implementation
[INFO] [stderr] 46 |     const fn incr_index(&mut self) -> VarId {
[INFO] [stderr]    |              ^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 51 |     fn store_var(&mut self, id: crate::VarId, item: VarId) {
[INFO] [stderr]    |        ^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 54 |     fn lookup_var(&self, id: crate::VarId) -> VarId {
[INFO] [stderr]    |        ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `resolve_names` is never used
[INFO] [stderr]  --> src/resolve_names.rs:8:12
[INFO] [stderr]   |
[INFO] [stderr] 8 |     pub fn resolve_names(ast: Expr<String>) -> (Expr<VarId>, Vec<String>) {
[INFO] [stderr]   |            ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `VarContext` is never constructed
[INFO] [stderr]   --> src/resolve_names.rs:18:23
[INFO] [stderr]    |
[INFO] [stderr] 18 |     pub(crate) struct VarContext {
[INFO] [stderr]    |                       ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: methods `lookup_var`, `lookup_ty`, `fresh_id`, `resolve_names_shadowing`, `resolve_type`, and `resolve_ident_names` are never used
[INFO] [stderr]   --> src/resolve_names.rs:25:23
[INFO] [stderr]    |
[INFO] [stderr] 24 |     impl VarContext {
[INFO] [stderr]    |     --------------- methods in this implementation
[INFO] [stderr] 25 |         pub(crate) fn lookup_var(&self, var: &str) -> VarId {
[INFO] [stderr]    |                       ^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 30 |         pub(crate) fn lookup_ty(&self, var: &str) -> VarId {
[INFO] [stderr]    |                       ^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 36 |         pub(crate) fn fresh_id(&mut self, name: String) -> VarId {
[INFO] [stderr]    |                       ^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 40 |         pub(crate) fn resolve_names_shadowing(
[INFO] [stderr]    |                       ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 53 |         pub(crate) fn resolve_type(&mut self, ty: Type<String>) -> Type<VarId> {
[INFO] [stderr]    |                       ^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 88 |         pub(crate) fn resolve_ident_names(&mut self, ast: Expr<String>) -> Expr<VarId> {
[INFO] [stderr]    |                       ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: struct `VarContext` is never constructed
[INFO] [stderr]    --> src/resolve_names.rs:124:12
[INFO] [stderr]     |
[INFO] [stderr] 124 |     struct VarContext {
[INFO] [stderr]     |            ^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: function `resolve_names` is never used
[INFO] [stderr]    --> src/resolve_names.rs:130:12
[INFO] [stderr]     |
[INFO] [stderr] 130 |     pub fn resolve_names(ast: Expr<String>) -> (Expr<VarId>, Vec<String>) {
[INFO] [stderr]     |            ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: multiple methods are never used
[INFO] [stderr]    --> src/resolve_names.rs:141:18
[INFO] [stderr]     |
[INFO] [stderr] 140 |     impl VarContext {
[INFO] [stderr]     |     --------------- methods in this implementation
[INFO] [stderr] 141 |         const fn get_index(&self) -> VarId {
[INFO] [stderr]     |                  ^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 144 |         fn resolve_ident_names(&mut self, ast: Expr<String>) -> Expr<VarId> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 183 |         const fn new_scope(&mut self) {
[INFO] [stderr]     |                  ^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 186 |         fn lookup_var(&self, var: &str) -> VarId {
[INFO] [stderr]     |            ^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 191 |         fn resolve_names_shadowing(&mut self, ast: Expr<String>, name: String) -> Expr<VarId> {
[INFO] [stderr]     |            ^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 200 |         const fn incr_index(&mut self) {
[INFO] [stderr]     |                  ^^^^^^^^^^
[INFO] [stderr] ...
[INFO] [stderr] 203 |         fn resolve_type(&mut self, ty: Type<String>) -> Type<VarId> {
[INFO] [stderr]     |            ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: field `0` is never read
[INFO] [stderr]   --> src/types.rs:60:25
[INFO] [stderr]    |
[INFO] [stderr] 60 |     UnannotatedVariable(VarId),
[INFO] [stderr]    |     ------------------- ^^^^^
[INFO] [stderr]    |     |
[INFO] [stderr]    |     field in this variant
[INFO] [stderr]    |
[INFO] [stderr]    = note: `CheckingError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stderr]    |
[INFO] [stderr] 60 -     UnannotatedVariable(VarId),
[INFO] [stderr] 60 +     UnannotatedVariable(()),
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: field `0` is never read
[INFO] [stderr]   --> src/types.rs:61:32
[INFO] [stderr]    |
[INFO] [stderr] 61 |     DoubelyInitializedVariable(VarId),
[INFO] [stderr]    |     -------------------------- ^^^^^
[INFO] [stderr]    |     |
[INFO] [stderr]    |     field in this variant
[INFO] [stderr]    |
[INFO] [stderr]    = note: `CheckingError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stderr]    |
[INFO] [stderr] 61 -     DoubelyInitializedVariable(VarId),
[INFO] [stderr] 61 +     DoubelyInitializedVariable(()),
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: fields `0` and `1` are never read
[INFO] [stderr]   --> src/types.rs:63:19
[INFO] [stderr]    |
[INFO] [stderr] 63 |     TypeMissmatch(Type<VarId>, Type<VarId>),
[INFO] [stderr]    |     ------------- ^^^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stderr]    |     |
[INFO] [stderr]    |     fields in this variant
[INFO] [stderr]    |
[INFO] [stderr]    = note: `CheckingError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
[INFO] [stderr]    |
[INFO] [stderr] 63 -     TypeMissmatch(Type<VarId>, Type<VarId>),
[INFO] [stderr] 63 +     TypeMissmatch((), ()),
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: field `0` is never read
[INFO] [stderr]   --> src/types.rs:64:22
[INFO] [stderr]    |
[INFO] [stderr] 64 |     AllOptionsFailed(Vec<Self>),
[INFO] [stderr]    |     ---------------- ^^^^^^^^^
[INFO] [stderr]    |     |
[INFO] [stderr]    |     field in this variant
[INFO] [stderr]    |
[INFO] [stderr]    = note: `CheckingError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stderr]    |
[INFO] [stderr] 64 -     AllOptionsFailed(Vec<Self>),
[INFO] [stderr] 64 +     AllOptionsFailed(()),
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: fields `0` and `1` are never read
[INFO] [stderr]   --> src/types.rs:65:26
[INFO] [stderr]    |
[INFO] [stderr] 65 |     InvalidInstantiation(Type<VarId>, String),
[INFO] [stderr]    |     -------------------- ^^^^^^^^^^^  ^^^^^^
[INFO] [stderr]    |     |
[INFO] [stderr]    |     fields in this variant
[INFO] [stderr]    |
[INFO] [stderr]    = note: `CheckingError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
[INFO] [stderr]    |
[INFO] [stderr] 65 -     InvalidInstantiation(Type<VarId>, String),
[INFO] [stderr] 65 +     InvalidInstantiation((), ()),
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: field `0` is never read
[INFO] [stderr]   --> src/types.rs:66:19
[INFO] [stderr]    |
[INFO] [stderr] 66 |     NotWellFormed(Type<VarId>),
[INFO] [stderr]    |     ------------- ^^^^^^^^^^^
[INFO] [stderr]    |     |
[INFO] [stderr]    |     field in this variant
[INFO] [stderr]    |
[INFO] [stderr]    = note: `CheckingError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] help: consider changing the field to be of unit type to suppress this warning while preserving the field numbering, or remove the field
[INFO] [stderr]    |
[INFO] [stderr] 66 -     NotWellFormed(Type<VarId>),
[INFO] [stderr] 66 +     NotWellFormed(()),
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: fields `0` and `1` are never read
[INFO] [stdout] 
[INFO] [stderr]   --> src/types.rs:67:22
[INFO] [stdout] running 7 tests
[INFO] [stderr]    |
[INFO] [stdout] test idunit ... ok
[INFO] [stderr] 67 |     MissmatchedArity(Type<VarId>, Type<VarId>),
[INFO] [stdout] test nested_to_string ... ok
[INFO] [stderr]    |     ---------------- ^^^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stderr]    |     |
[INFO] [stderr]    |     fields in this variant
[INFO] [stderr]    |
[INFO] [stderr]    = note: `CheckingError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
[INFO] [stderr]    |
[INFO] [stderr] 67 -     MissmatchedArity(Type<VarId>, Type<VarId>),
[INFO] [stderr] 67 +     MissmatchedArity((), ()),
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: fields `0` and `1` are never read
[INFO] [stderr]   --> src/types.rs:68:19
[INFO] [stderr]    |
[INFO] [stderr] 68 |     KindMissmatch(Type<VarId>, Type<VarId>),
[INFO] [stderr]    |     ------------- ^^^^^^^^^^^  ^^^^^^^^^^^
[INFO] [stderr]    |     |
[INFO] [stderr]    |     fields in this variant
[INFO] [stderr]    |
[INFO] [stderr]    = note: `CheckingError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis
[INFO] [stderr] help: consider changing the fields to be of unit type to suppress this warning while preserving the field numbering, or remove the fields
[INFO] [stderr]    |
[INFO] [stderr] 68 -     KindMissmatch(Type<VarId>, Type<VarId>),
[INFO] [stderr] 68 +     KindMissmatch((), ()),
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: method `to_type` is never used
[INFO] [stderr]   --> src/types.rs:71:12
[INFO] [stderr]    |
[INFO] [stderr] 70 | impl ContextElement {
[INFO] [stderr]    | ------------------- method in this implementation
[INFO] [stderr] 71 |     pub fn to_type(self) -> TypedVar {
[INFO] [stderr]    |            ^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: method `is_complete` is never used
[INFO] [stderr]   --> src/types.rs:80:12
[INFO] [stderr]    |
[INFO] [stderr] 79 | impl TCContext {
[INFO] [stderr]    | -------------- method in this implementation
[INFO] [stderr] 80 |     pub fn is_complete(&self) -> bool {
[INFO] [stderr]    |            ^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `type_checker` (lib) generated 41 warnings (run `cargo fix --lib -p type_checker` to apply 3 suggestions)
[INFO] [stderr] warning: unreachable expression
[INFO] [stderr]    --> src/lib.rs:918:5
[INFO] [stderr]     |
[INFO] [stderr] 917 |     panic!();
[INFO] [stderr]     |     -------- any code following this expression is unreachable
[INFO] [stderr] 918 |     Ok(())
[INFO] [stderr]     |     ^^^^^^ unreachable expression
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unreachable_code)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: method `begin_scope_with` is never used
[INFO] [stderr]   --> src/lib.rs:71:8
[INFO] [stderr]    |
[INFO] [stderr] 20 | impl TCContext {
[INFO] [stderr]    | -------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 71 |     fn begin_scope_with(mut self, elem: ContextElement) -> Self {
[INFO] [stderr]    |        ^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: field `ty_scope` is never read
[INFO] [stderr]    --> src/resolve_names.rs:128:9
[INFO] [stderr]     |
[INFO] [stderr] 124 |     struct VarContext {
[INFO] [stderr]     |            ---------- field in this struct
[INFO] [stderr] ...
[INFO] [stderr] 128 |         ty_scope: usize,
[INFO] [stderr]     |         ^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: `type_checker` (lib test) generated 37 warnings (34 duplicates)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/type_checker-c4cd3a54d504e96d)
[INFO] [stdout] test basic ... ok
[INFO] [stdout] test let_with_fun ... ok
[INFO] [stdout] test application ... ok
[INFO] [stdout] test lambda ... ok
[INFO] [stdout] test tuples ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- tuples stdout ----
[INFO] [stdout] - synthesizing Type for (((\0 -> Option::new(48)): (F[Int, ..] -> Option[Int, ])) Option::new(23),let 2 = ((\1 -> 1): (∀1. ('1 -> '1))) in 2 ()) under context []
[INFO] [stdout] -- synthesizing Type for ((\0 -> Option::new(48)): (F[Int, ..] -> Option[Int, ])) Option::new(23) under context []
[INFO] [stdout]                  ->E
[INFO] [stdout] --- synthesizing Type for ((\0 -> Option::new(48)): (F[Int, ..] -> Option[Int, ])) under context []
[INFO] [stdout]                 Anno
[INFO] [stdout] ---- checking that (\0 -> Option::new(48)) has type (F[Int, ..] -> Option[Int, ]) under context []
[INFO] [stdout]                  ->I
[INFO] [stdout] ----- checking that Option::new(48) has type Option[Int, ] under context [0: F[Int, ..]]
[INFO] [stdout]                  Sub
[INFO] [stdout] ------ synthesizing Type for Option::new(48) under context [0: F[Int, ..]]
[INFO] [stdout]                 Cons
[INFO] [stdout] ------- synthesizing Type for 48 under context [0: F[Int, ..]]
[INFO] [stdout] ------ synthesized type 48
[INFO] [stdout] ----- synthesized type Option::new(48)
[INFO] [stdout] ------ have Option[Int, ] be a subtype of Option[Int, ] under Context [0: F[Int, ..]]
[INFO] [stdout]                 <:HK
[INFO] [stdout] ------- have Int be a subtype of Int under Context [0: F[Int, ..]]
[INFO] [stdout] ------- checked context [0: F[Int, ..]]
[INFO] [stdout] ------ checked context [0: F[Int, ..]]
[INFO] [stdout] ----- checked context [0: F[Int, ..]]
[INFO] [stdout] --- synthesized type (\(0: F[Int, ..]) -> Option::new(48))
[INFO] [stdout] synthesizing type if (F[Int, ..] -> Option[Int, ]) is applied to Option::new(23) under Context []
[INFO] [stdout]                ->App
[INFO] [stdout] ---- checking that Option::new(23) has type F[Int, ..] under context []
[INFO] [stdout]                  Sub
[INFO] [stdout] ----- synthesizing Type for Option::new(23) under context []
[INFO] [stdout]                 Cons
[INFO] [stdout] ------ synthesizing Type for 23 under context []
[INFO] [stdout] ----- synthesized type 23
[INFO] [stdout] ---- synthesized type Option::new(23)
[INFO] [stdout] ----- have Option[Int, ] be a subtype of F[Int, ..] under Context []
[INFO] [stdout]                 <:HK
[INFO] [stdout] ------ have Int be a subtype of Int under Context []
[INFO] [stdout] ------ checked context []
[INFO] [stdout] ----- checked context []
[INFO] [stdout] ---- checked context []
[INFO] [stdout] synthesized type as Option::new(23)
[INFO] [stdout] -- synthesized type (\(0: F[Int, ..]) -> Option::new(48)) Option::new(23)
[INFO] [stdout] --- synthesizing Type for let 2 = ((\1 -> 1): (∀1. ('1 -> '1))) in 2 () under context []
[INFO] [stdout]                =>Let
[INFO] [stdout] ---- synthesizing Type for ((\1 -> 1): (∀1. ('1 -> '1))) under context []
[INFO] [stdout]                 Anno
[INFO] [stdout] ----- checking that (\1 -> 1) has type (∀1. ('1 -> '1)) under context []
[INFO] [stdout]                   ∀I
[INFO] [stdout] ------ checking that (\1 -> 1) has type ('1 -> '1) under context [1]
[INFO] [stdout]                  ->I
[INFO] [stdout] ------- checking that 1 has type '1 under context [1, 1: '1]
[INFO] [stdout]                  Sub
[INFO] [stdout] -------- synthesizing Type for 1 under context [1, 1: '1]
[INFO] [stdout]                  Var
[INFO] [stdout] ------- synthesized type (1: '1)
[INFO] [stdout] -------- have '1 be a subtype of '1 under Context [1, 1: '1]
[INFO] [stdout]                <:Var
[INFO] [stdout] -------- checked context [1, 1: '1]
[INFO] [stdout] ------- checked context [1, 1: '1]
[INFO] [stdout] ----- synthesized type (\(1: '1) -> (1: '1))
[INFO] [stdout] ------ synthesizing Type for 2 () under context [2: (∀1. ('1 -> '1))]
[INFO] [stdout]                  ->E
[INFO] [stdout] ------- synthesizing Type for 2 under context [2: (∀1. ('1 -> '1))]
[INFO] [stdout]                  Var
[INFO] [stdout] ------ synthesized type (2: (∀1. ('1 -> '1)))
[INFO] [stdout] synthesizing type if (∀1. ('1 -> '1)) is applied to () under Context [2: (∀1. ('1 -> '1))]
[INFO] [stdout]                 ∀App
[INFO] [stdout] synthesizing type if ('1 -> '1) is applied to () under Context [2: (∀1. ('1 -> '1)), '1]
[INFO] [stdout]                ->App
[INFO] [stdout] ------- checking that () has type '1 under context [2: (∀1. ('1 -> '1)), '1]
[INFO] [stdout]                  Sub
[INFO] [stdout] -------- synthesizing Type for () under context [2: (∀1. ('1 -> '1)), '1]
[INFO] [stdout]                 1I=>
[INFO] [stdout] ------- synthesized type ()
[INFO] [stdout] ------- looking for 1 in [2: (∀1. ('1 -> '1)), '1]
[INFO] [stdout] -------- have () be a subtype of '1 under Context [2: (∀1. ('1 -> '1)), '1]
[INFO] [stdout] --------- instantiate 1 to a subtype of () under Context [2: (∀1. ('1 -> '1)), '1]
[INFO] [stdout]           InstLSolve
[INFO] [stdout] --------- checked context [2: (∀1. ('1 -> '1)), '1: ()]
[INFO] [stdout] -------- checked context [2: (∀1. ('1 -> '1)), '1: ()]
[INFO] [stdout] synthesized type as ()
[INFO] [stdout] synthesized type as ()
[INFO] [stdout] ------ synthesized type (2: (∀1. ('1 -> '1))) ()
[INFO] [stdout] ----- synthesized type let (2: (∀1. ('1 -> '1))) = (\(1: '1) -> (1: '1)) in (2: (∀1. ('1 -> '1))) ()
[INFO] [stdout] ---- synthesized type ((\(0: F[Int, ..]) -> Option::new(48)) Option::new(23),let (2: (∀1. ('1 -> '1))) = (\(1: '1) -> (1: '1)) in (2: (∀1. ('1 -> '1))) ())
[INFO] [stdout] ---- looking for 1 in [2: (∀1. ('1 -> '1)), '1: ()]
[INFO] [stdout] 
[INFO] [stdout] thread 'tuples' panicked at src/lib.rs:917:5:
[INFO] [stdout] explicit panic
[INFO] [stdout] stack backtrace:
[INFO] [stdout]    0:     0x61e9811cc942 - std::backtrace_rs::backtrace::libunwind::trace::h2d45396358f41939
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/../../backtrace/src/backtrace/libunwind.rs:117:9
[INFO] [stdout]    1:     0x61e9811cc942 - std::backtrace_rs::backtrace::trace_unsynchronized::hffcefc0b67f1d6e2
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/../../backtrace/src/backtrace/mod.rs:66:14
[INFO] [stdout]    2:     0x61e9811cc942 - std::sys::backtrace::_print_fmt::hd72f71d23b436b92
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/backtrace.rs:66:9
[INFO] [stdout]    3:     0x61e9811cc942 - <std::sys::backtrace::BacktraceLock::print::DisplayBacktrace as core::fmt::Display>::fmt::hdcfcb6d4c8489523
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/backtrace.rs:39:26
[INFO] [stdout]    4:     0x61e9811f1d83 - core::fmt::rt::Argument::fmt::h2c56b3114963061a
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/fmt/rt.rs:173:76
[INFO] [stdout]    5:     0x61e9811f1d83 - core::fmt::write::h8a494366950f23bb
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/fmt/mod.rs:1468:25
[INFO] [stdout]    6:     0x61e9811c98c3 - std::io::default_write_fmt::h7b8824096454f323
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/io/mod.rs:639:11
[INFO] [stdout]    7:     0x61e9811c98c3 - std::io::Write::write_fmt::h4e71294925c334d0
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/io/mod.rs:1954:13
[INFO] [stdout]    8:     0x61e9811cc792 - std::sys::backtrace::BacktraceLock::print::hb2a626a81e06b2dc
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/backtrace.rs:42:9
[INFO] [stdout]    9:     0x61e9811cdeb9 - std::panicking::default_hook::{{closure}}::h4f78485264f12d10
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:300:27
[INFO] [stdout]   10:     0x61e9811cdcee - std::panicking::default_hook::h2c66fc99e962531d
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:324:9
[INFO] [stdout]   11:     0x61e9811961e4 - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::hb6bd65493727d71a
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/alloc/src/boxed.rs:1985:9
[INFO] [stdout]   12:     0x61e9811961e4 - test::test_main_with_exit_callback::{{closure}}::h60217ec76a0ece4a
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:145:21
[INFO] [stdout]   13:     0x61e9811ce88e - <alloc::boxed::Box<F,A> as core::ops::function::Fn<Args>>::call::h318e4efb8c1a5689
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/alloc/src/boxed.rs:1985:9
[INFO] [stdout]   14:     0x61e9811ce88e - std::panicking::rust_panic_with_hook::h33ac55f64bbd807d
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:841:13
[INFO] [stdout]   15:     0x61e9811ce65a - std::panicking::begin_panic_handler::{{closure}}::h30e7cb89678a57fe
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:706:13
[INFO] [stdout]   16:     0x61e9811cce39 - std::sys::backtrace::__rust_end_short_backtrace::hed60f27456c16ced
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/backtrace.rs:174:18
[INFO] [stdout]   17:     0x61e9811ce2ed - __rustc[de2ca18b4c54d5b8]::rust_begin_unwind
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:697:5
[INFO] [stdout]   18:     0x61e9811f07a0 - core::panicking::panic_fmt::h62f63d096dd276af
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/panicking.rs:75:14
[INFO] [stdout]   19:     0x61e9811f0926 - core::panicking::panic_display::h784ac6e2afc29348
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/panicking.rs:268:5
[INFO] [stdout]   20:     0x61e9811f0926 - core::panicking::panic_explicit::hd9d99d274044a3a9
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/panicking.rs:241:5
[INFO] [stdout]   21:     0x61e981127577 - type_checker::tuples::panic_cold_explicit::h042cc19fd3809735
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/panic.rs:88:13
[INFO] [stdout]   22:     0x61e981127462 - type_checker::tuples::h9dba2c841d2e9b79
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:917:5
[INFO] [stdout]   23:     0x61e981125fd3 - type_checker::tuples::{{closure}}::h047b571303668479
[INFO] [stdout]                                at /opt/rustwide/workdir/src/lib.rs:875:16
[INFO] [stdout]   24:     0x61e981142c96 - core::ops::function::FnOnce::call_once::h665ec6917ab8f92b
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/ops/function.rs:253:5
[INFO] [stdout]   25:     0x61e98119ba4b - core::ops::function::FnOnce::call_once::h1f9474f1347fff52
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/ops/function.rs:253:5
[INFO] [stdout]   26:     0x61e98119ba4b - test::__rust_begin_short_backtrace::ha52ab26e77157f03
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:648:18
[INFO] [stdout]   27:     0x61e98119ab85 - test::run_test_in_process::{{closure}}::h229c1a11a50b261f
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:671:74
[INFO] [stdout]   28:     0x61e98119ab85 - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::h78821afbf97b39a9
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   29:     0x61e98119ab85 - std::panicking::catch_unwind::do_call::h53abf3ed5bd32ba3
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:589:40
[INFO] [stdout]   30:     0x61e98119ab85 - std::panicking::catch_unwind::h6deb5fe1e91873c9
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:552:19
[INFO] [stdout]   31:     0x61e98119ab85 - std::panic::catch_unwind::hea0829b6b565654b
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panic.rs:359:14
[INFO] [stdout]   32:     0x61e98119ab85 - test::run_test_in_process::hdc44dfecea3db21b
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:671:27
[INFO] [stdout]   33:     0x61e98119ab85 - test::run_test::{{closure}}::h0364ba59bf23f652
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:592:43
[INFO] [stdout]   34:     0x61e98115e784 - test::run_test::{{closure}}::h32730b304eec05da
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/test/src/lib.rs:622:41
[INFO] [stdout]   35:     0x61e98115e784 - std::sys::backtrace::__rust_begin_short_backtrace::h177cb952fc54ad2c
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/backtrace.rs:158:18
[INFO] [stdout]   36:     0x61e98116215a - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h119d903520007597
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/thread/mod.rs:559:17
[INFO] [stdout]   37:     0x61e98116215a - <core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once::hab88401d606702a6
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/panic/unwind_safe.rs:272:9
[INFO] [stdout]   38:     0x61e98116215a - std::panicking::catch_unwind::do_call::h163fe12cca9901c2
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:589:40
[INFO] [stdout]   39:     0x61e98116215a - std::panicking::catch_unwind::he81557d0e17cc1bc
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panicking.rs:552:19
[INFO] [stdout]   40:     0x61e98116215a - std::panic::catch_unwind::hc2b8e79c20593955
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/panic.rs:359:14
[INFO] [stdout]   41:     0x61e98116215a - std::thread::Builder::spawn_unchecked_::{{closure}}::hfa6b4978e07815cc
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/thread/mod.rs:557:30
[INFO] [stdout]   42:     0x61e98116215a - core::ops::function::FnOnce::call_once{{vtable.shim}}::hddcd7484a13fd793
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/core/src/ops/function.rs:253:5
[INFO] [stdout]   43:     0x61e9811d180f - <alloc::boxed::Box<F,A> as core::ops::function::FnOnce<Args>>::call_once::h5924238c754de3b8
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/alloc/src/boxed.rs:1971:9
[INFO] [stdout]   44:     0x61e9811d180f - std::sys::pal::unix::thread::Thread::new::thread_start::hb6e99e73da4d28f8
[INFO] [stdout]                                at /rustc/1159e78c4747b02ef996e55082b704c09b970588/library/std/src/sys/pal/unix/thread.rs:107:17
[INFO] [stdout]   45:     0x7fa48198eaa4 - <unknown>
[INFO] [stdout]   46:     0x7fa481a1ba34 - clone
[INFO] [stdout]   47:                0x0 - <unknown>
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     tuples
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 6 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.02s
[INFO] [stdout] 
[INFO] [stderr] error: test failed, to rerun pass `--lib`
[INFO] running `Command { std: "docker" "inspect" "71e30c61b28b055f362b3e5bcc9a1d45d2d1b7a8e8878e90ac75c13d4cd19212", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "71e30c61b28b055f362b3e5bcc9a1d45d2d1b7a8e8878e90ac75c13d4cd19212", kill_on_drop: false }`
[INFO] [stdout] 71e30c61b28b055f362b3e5bcc9a1d45d2d1b7a8e8878e90ac75c13d4cd19212
