[INFO] fetching crate lincoln_ir 0.1.0... [INFO] testing lincoln_ir-0.1.0 against try#b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b for pr-145330-1 [INFO] extracting crate lincoln_ir 0.1.0 into /workspace/builds/worker-3-tc2/source [INFO] started tweaking crates.io crate lincoln_ir 0.1.0 [INFO] finished tweaking crates.io crate lincoln_ir 0.1.0 [INFO] tweaked toml for crates.io crate lincoln_ir 0.1.0 written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate lincoln_ir 0.1.0 on toolchain b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 32 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c72a09b099be2a52919029edb31b365ee2fbd39317732b2b6c60a8f39a893e5d [INFO] running `Command { std: "docker" "start" "-a" "c72a09b099be2a52919029edb31b365ee2fbd39317732b2b6c60a8f39a893e5d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c72a09b099be2a52919029edb31b365ee2fbd39317732b2b6c60a8f39a893e5d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c72a09b099be2a52919029edb31b365ee2fbd39317732b2b6c60a8f39a893e5d", kill_on_drop: false }` [INFO] [stdout] c72a09b099be2a52919029edb31b365ee2fbd39317732b2b6c60a8f39a893e5d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 910f312df51bf5b217e9d876ca192fa8437354abe44ac8838af4e1fbfa28427f [INFO] running `Command { std: "docker" "start" "-a" "910f312df51bf5b217e9d876ca192fa8437354abe44ac8838af4e1fbfa28427f", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.101 [INFO] [stderr] Compiling quote v1.0.41 [INFO] [stderr] Compiling unicode-ident v1.0.19 [INFO] [stderr] Compiling memchr v2.7.6 [INFO] [stderr] Compiling syn v1.0.109 [INFO] [stderr] Compiling object v0.37.3 [INFO] [stderr] Compiling serde_core v1.0.228 [INFO] [stderr] Compiling libc v0.2.176 [INFO] [stderr] Compiling adler2 v2.0.1 [INFO] [stderr] Compiling gimli v0.32.3 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Compiling failure_derive v0.1.8 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling serde v1.0.228 [INFO] [stderr] Compiling miniz_oxide v0.8.9 [INFO] [stderr] Compiling cfg-if v1.0.3 [INFO] [stderr] Compiling rustc-demangle v0.1.26 [INFO] [stderr] Compiling regex-syntax v0.8.6 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Compiling syn v2.0.106 [INFO] [stderr] Compiling lincoln_common v0.1.0 [INFO] [stderr] Compiling log v0.4.28 [INFO] [stderr] Compiling regex-automata v0.4.11 [INFO] [stderr] Compiling addr2line v0.25.1 [INFO] [stderr] Compiling synstructure v0.12.6 [INFO] [stderr] Compiling serde_derive v1.0.228 [INFO] [stderr] Compiling smallvec v0.6.14 [INFO] [stderr] Compiling regex v1.11.3 [INFO] [stderr] Compiling backtrace v0.3.76 [INFO] [stderr] Compiling failure v0.1.8 [INFO] [stderr] Compiling lincoln_compiled v0.1.0 [INFO] [stderr] Compiling lincoln_ir v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/codemap.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Fail, Debug)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Fail` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_CodeMapError` [INFO] [stdout] 7 | pub enum CodeMapError { [INFO] [stdout] | ------------ `CodeMapError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/codemap.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Fail, Debug)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_CodeMapError` [INFO] [stdout] 7 | pub enum CodeMapError { [INFO] [stdout] | ------------ `CodeMapError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 44.39s [INFO] running `Command { std: "docker" "inspect" "910f312df51bf5b217e9d876ca192fa8437354abe44ac8838af4e1fbfa28427f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "910f312df51bf5b217e9d876ca192fa8437354abe44ac8838af4e1fbfa28427f", kill_on_drop: false }` [INFO] [stdout] 910f312df51bf5b217e9d876ca192fa8437354abe44ac8838af4e1fbfa28427f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+b6ae10aa7319b7ebb6c7b3331dd71a9d6c9c5b4b" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 655a27279189a3bd62218bc035b97b3b0b9522665078f7e72c864a539b2d5898 [INFO] running `Command { std: "docker" "start" "-a" "655a27279189a3bd62218bc035b97b3b0b9522665078f7e72c864a539b2d5898", kill_on_drop: false }` [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/codemap.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Fail, Debug)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Fail` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_Fail_FOR_CodeMapError` [INFO] [stdout] 7 | pub enum CodeMapError { [INFO] [stdout] | ------------ `CodeMapError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/codemap.rs:6:10 [INFO] [stdout] | [INFO] [stdout] 6 | #[derive(Fail, Debug)] [INFO] [stdout] | ^--- [INFO] [stdout] | | [INFO] [stdout] | `Display` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_DERIVE_failure_core_fmt_Display_FOR_CodeMapError` [INFO] [stdout] 7 | pub enum CodeMapError { [INFO] [stdout] | ------------ `CodeMapError` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Fail` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Fail` may come from an old version of the `failure_derive` crate, try updating your dependency with `cargo update -p failure_derive` [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Fail` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling lincoln_ir v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0593]: closure is expected to take 1 argument, but it takes 2 arguments [INFO] [stdout] --> src/tests.rs:20:41 [INFO] [stdout] | [INFO] [stdout] 20 | eval: EvalFn::stateless(|p, mut c| { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected closure that takes 1 argument [INFO] [stdout] | takes 2 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/tests.rs:21:32 [INFO] [stdout] | [INFO] [stdout] 21 | assert_eq!(unwrap::(c.pop().unwrap(), p).unwrap(), 3); [INFO] [stdout] | ^^^^^^^^^^^^^ - unexpected argument #2 [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/lincoln_compiled-0.1.0/src/value.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 205 | pub fn unwrap(v: Box) -> Result [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 21 - assert_eq!(unwrap::(c.pop().unwrap(), p).unwrap(), 3); [INFO] [stdout] 21 + assert_eq!(unwrap::(c.pop().unwrap()).unwrap(), 3); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/tests.rs:22:32 [INFO] [stdout] | [INFO] [stdout] 22 | assert_eq!(unwrap::(c.pop().unwrap(), p).unwrap(), 2); [INFO] [stdout] | ^^^^^^^^^^^^^ - unexpected argument #2 [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/lincoln_compiled-0.1.0/src/value.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 205 | pub fn unwrap(v: Box) -> Result [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 22 - assert_eq!(unwrap::(c.pop().unwrap(), p).unwrap(), 2); [INFO] [stdout] 22 + assert_eq!(unwrap::(c.pop().unwrap()).unwrap(), 2); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/tests.rs:23:32 [INFO] [stdout] | [INFO] [stdout] 23 | assert_eq!(unwrap::(c.pop().unwrap(), p).unwrap(), 1); [INFO] [stdout] | ^^^^^^^^^^^^^ - unexpected argument #2 [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/lincoln_compiled-0.1.0/src/value.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 205 | pub fn unwrap(v: Box) -> Result [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 23 - assert_eq!(unwrap::(c.pop().unwrap(), p).unwrap(), 1); [INFO] [stdout] 23 + assert_eq!(unwrap::(c.pop().unwrap()).unwrap(), 1); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `[fn() -> ExternEntry; 1]` is not an iterator [INFO] [stdout] --> src/tests.rs:18:22 [INFO] [stdout] | [INFO] [stdout] 18 | .compile([(|| ExternEntry::Eval { [INFO] [stdout] | ______________-------_^ [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound introduced by this call [INFO] [stdout] 19 | | name: "rec2".into(), [INFO] [stdout] 20 | | eval: EvalFn::stateless(|p, mut c| { [INFO] [stdout] 21 | | assert_eq!(unwrap::(c.pop().unwrap(), p).unwrap(), 3); [INFO] [stdout] ... | [INFO] [stdout] 25 | | }), [INFO] [stdout] 26 | | }) as fn() -> ExternEntry]) [INFO] [stdout] | |______________________________________^ `[fn() -> ExternEntry; 1]` is not an iterator [INFO] [stdout] | [INFO] [stdout] = help: the trait `Iterator` is not implemented for `[fn() -> ExternEntry; 1]` [INFO] [stdout] note: required by a bound in `PreCompileProgram::compile` [INFO] [stdout] --> src/program.rs:238:41 [INFO] [stdout] | [INFO] [stdout] 238 | pub fn compile(&self, externs: impl Iterator) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `PreCompileProgram::compile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests.rs:33:38 [INFO] [stdout] | [INFO] [stdout] 33 | let (next, ctx) = cprog.eval(ctx, &next).unwrap(); [INFO] [stdout] | ---- ^^^ expected `&mut Context`, found `Context` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/lincoln_compiled-0.1.0/src/program.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn eval(&self, ctx: &mut Context, ent: &CodeRef) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] help: consider mutably borrowing here [INFO] [stdout] | [INFO] [stdout] 33 | let (next, ctx) = cprog.eval(&mut ctx, &next).unwrap(); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests.rs:33:13 [INFO] [stdout] | [INFO] [stdout] 33 | let (next, ctx) = cprog.eval(ctx, &next).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ ------------------------------- this expression has type `lincoln_compiled::CodeRef` [INFO] [stdout] | | [INFO] [stdout] | expected `CodeRef`, found `(_, _)` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `lincoln_compiled::CodeRef` [INFO] [stdout] found tuple `(_, _)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests.rs:35:13 [INFO] [stdout] | [INFO] [stdout] 35 | let (next, ctx) = cprog.eval(ctx, &next).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ ------------------------------- this expression has type `lincoln_compiled::CodeRef` [INFO] [stdout] | | [INFO] [stdout] | expected `CodeRef`, found `(_, _)` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `lincoln_compiled::CodeRef` [INFO] [stdout] found tuple `(_, _)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests.rs:37:13 [INFO] [stdout] | [INFO] [stdout] 37 | let (next, ctx) = cprog.eval(ctx, &next).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ ------------------------------- this expression has type `lincoln_compiled::CodeRef` [INFO] [stdout] | | [INFO] [stdout] | expected `CodeRef`, found `(_, _)` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `lincoln_compiled::CodeRef` [INFO] [stdout] found tuple `(_, _)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0593]: closure is expected to take 1 argument, but it takes 2 arguments [INFO] [stdout] --> src/tests.rs:50:45 [INFO] [stdout] | [INFO] [stdout] 50 | eval: EvalFn::stateless(|p, mut c| { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected closure that takes 1 argument [INFO] [stdout] | takes 2 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/tests.rs:52:36 [INFO] [stdout] | [INFO] [stdout] 52 | assert_eq!(unwrap::(c.pop().unwrap(), p).unwrap(), 2); [INFO] [stdout] | ^^^^^^^^^^^^^ - unexpected argument #2 [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/lincoln_compiled-0.1.0/src/value.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 205 | pub fn unwrap(v: Box) -> Result [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 52 - assert_eq!(unwrap::(c.pop().unwrap(), p).unwrap(), 2); [INFO] [stdout] 52 + assert_eq!(unwrap::(c.pop().unwrap()).unwrap(), 2); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/tests.rs:53:36 [INFO] [stdout] | [INFO] [stdout] 53 | assert_eq!(unwrap::(c.pop().unwrap(), p).unwrap(), 1); [INFO] [stdout] | ^^^^^^^^^^^^^ - unexpected argument #2 [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/lincoln_compiled-0.1.0/src/value.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 205 | pub fn unwrap(v: Box) -> Result [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 53 - assert_eq!(unwrap::(c.pop().unwrap(), p).unwrap(), 1); [INFO] [stdout] 53 + assert_eq!(unwrap::(c.pop().unwrap()).unwrap(), 1); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0593]: closure is expected to take 1 argument, but it takes 2 arguments [INFO] [stdout] --> src/tests.rs:59:45 [INFO] [stdout] | [INFO] [stdout] 59 | eval: EvalFn::stateless(|p, mut c| { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected closure that takes 1 argument [INFO] [stdout] | takes 2 arguments [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 1 argument but 2 arguments were supplied [INFO] [stdout] --> src/tests.rs:60:36 [INFO] [stdout] | [INFO] [stdout] 60 | assert_eq!(unwrap::(c.pop().unwrap(), p).unwrap(), 3); [INFO] [stdout] | ^^^^^^^^^^^^^ - unexpected argument #2 [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/lincoln_compiled-0.1.0/src/value.rs:205:8 [INFO] [stdout] | [INFO] [stdout] 205 | pub fn unwrap(v: Box) -> Result [INFO] [stdout] | ^^^^^^ [INFO] [stdout] help: remove the extra argument [INFO] [stdout] | [INFO] [stdout] 60 - assert_eq!(unwrap::(c.pop().unwrap(), p).unwrap(), 3); [INFO] [stdout] 60 + assert_eq!(unwrap::(c.pop().unwrap()).unwrap(), 3); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `[fn() -> ExternEntry; 2]` is not an iterator [INFO] [stdout] --> src/tests.rs:47:22 [INFO] [stdout] | [INFO] [stdout] 47 | .compile([ [INFO] [stdout] | ______________-------_^ [INFO] [stdout] | | | [INFO] [stdout] | | required by a bound introduced by this call [INFO] [stdout] 48 | | || ExternEntry::Eval { [INFO] [stdout] 49 | | name: "rec1".into(), [INFO] [stdout] 50 | | eval: EvalFn::stateless(|p, mut c| { [INFO] [stdout] ... | [INFO] [stdout] 63 | | }) as fn() -> ExternEntry, [INFO] [stdout] 64 | | ]) [INFO] [stdout] | |_____________^ `[fn() -> ExternEntry; 2]` is not an iterator [INFO] [stdout] | [INFO] [stdout] = help: the trait `Iterator` is not implemented for `[fn() -> ExternEntry; 2]` [INFO] [stdout] note: required by a bound in `PreCompileProgram::compile` [INFO] [stdout] --> src/program.rs:238:41 [INFO] [stdout] | [INFO] [stdout] 238 | pub fn compile(&self, externs: impl Iterator) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `PreCompileProgram::compile` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests.rs:72:38 [INFO] [stdout] | [INFO] [stdout] 72 | let (next, ctx) = cprog.eval(ctx, &next).unwrap(); [INFO] [stdout] | ---- ^^^ expected `&mut Context`, found `Context` [INFO] [stdout] | | [INFO] [stdout] | arguments to this method are incorrect [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/lincoln_compiled-0.1.0/src/program.rs:156:12 [INFO] [stdout] | [INFO] [stdout] 156 | pub fn eval(&self, ctx: &mut Context, ent: &CodeRef) -> Result { [INFO] [stdout] | ^^^^ [INFO] [stdout] help: consider mutably borrowing here [INFO] [stdout] | [INFO] [stdout] 72 | let (next, ctx) = cprog.eval(&mut ctx, &next).unwrap(); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests.rs:72:13 [INFO] [stdout] | [INFO] [stdout] 72 | let (next, ctx) = cprog.eval(ctx, &next).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ ------------------------------- this expression has type `lincoln_compiled::CodeRef` [INFO] [stdout] | | [INFO] [stdout] | expected `CodeRef`, found `(_, _)` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `lincoln_compiled::CodeRef` [INFO] [stdout] found tuple `(_, _)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests.rs:74:13 [INFO] [stdout] | [INFO] [stdout] 74 | let (next, ctx) = cprog.eval(ctx, &next).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ ------------------------------- this expression has type `lincoln_compiled::CodeRef` [INFO] [stdout] | | [INFO] [stdout] | expected `CodeRef`, found `(_, _)` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `lincoln_compiled::CodeRef` [INFO] [stdout] found tuple `(_, _)` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/tests.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let (next, ctx) = cprog.eval(ctx, &next).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^ ------------------------------- this expression has type `lincoln_compiled::CodeRef` [INFO] [stdout] | | [INFO] [stdout] | expected `CodeRef`, found `(_, _)` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `lincoln_compiled::CodeRef` [INFO] [stdout] found tuple `(_, _)` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `lincoln_ir` (lib test) due to 19 previous errors [INFO] [stdout] Some errors have detailed explanations: E0061, E0277, E0308, E0593. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "655a27279189a3bd62218bc035b97b3b0b9522665078f7e72c864a539b2d5898", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "655a27279189a3bd62218bc035b97b3b0b9522665078f7e72c864a539b2d5898", kill_on_drop: false }` [INFO] [stdout] 655a27279189a3bd62218bc035b97b3b0b9522665078f7e72c864a539b2d5898