[INFO] cloning repository https://github.com/REALERvolker1/zsh-module-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/REALERvolker1/zsh-module-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FREALERvolker1%2Fzsh-module-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FREALERvolker1%2Fzsh-module-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c32b6a513f6d43a2d88325479950d4b12bc07ab6 [INFO] checking REALERvolker1/zsh-module-rs/c32b6a513f6d43a2d88325479950d4b12bc07ab6 against try#52ae2445414b2a196b318d85c2819995c6e5f1aa for pr-133397 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FREALERvolker1%2Fzsh-module-rs" "/workspace/builds/worker-3-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/REALERvolker1/zsh-module-rs on toolchain 52ae2445414b2a196b318d85c2819995c6e5f1aa [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+52ae2445414b2a196b318d85c2819995c6e5f1aa" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/REALERvolker1/zsh-module-rs [INFO] finished tweaking git repo https://github.com/REALERvolker1/zsh-module-rs [INFO] tweaked toml for git repo https://github.com/REALERvolker1/zsh-module-rs written to /workspace/builds/worker-3-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/REALERvolker1/zsh-module-rs 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" "+52ae2445414b2a196b318d85c2819995c6e5f1aa" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+52ae2445414b2a196b318d85c2819995c6e5f1aa" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 0bf2145e8ff2784c084aab7f9f61a54c01fc8a52b6ac6de67c48cf902bda834b [INFO] running `Command { std: "docker" "start" "-a" "0bf2145e8ff2784c084aab7f9f61a54c01fc8a52b6ac6de67c48cf902bda834b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "0bf2145e8ff2784c084aab7f9f61a54c01fc8a52b6ac6de67c48cf902bda834b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0bf2145e8ff2784c084aab7f9f61a54c01fc8a52b6ac6de67c48cf902bda834b", kill_on_drop: false }` [INFO] [stdout] 0bf2145e8ff2784c084aab7f9f61a54c01fc8a52b6ac6de67c48cf902bda834b [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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+52ae2445414b2a196b318d85c2819995c6e5f1aa" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 50f8ddc1d24906aa63b444f8e21b1332983bdaeeefeec8e9b550f4b2eb89be70 [INFO] running `Command { std: "docker" "start" "-a" "50f8ddc1d24906aa63b444f8e21b1332983bdaeeefeec8e9b550f4b2eb89be70", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling libc v0.2.139 [INFO] [stderr] Compiling proc-macro2 v1.0.78 [INFO] [stderr] Compiling unicode-ident v1.0.6 [INFO] [stderr] Compiling memchr v2.5.0 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling prettyplease v0.2.16 [INFO] [stderr] Compiling cfg-if v1.0.0 [INFO] [stderr] Compiling minimal-lexical v0.2.1 [INFO] [stderr] Compiling log v0.4.17 [INFO] [stderr] Compiling libloading v0.7.4 [INFO] [stderr] Compiling either v1.8.0 [INFO] [stderr] Compiling regex-syntax v0.6.28 [INFO] [stderr] Compiling bindgen v0.69.2 [INFO] [stderr] Compiling peeking_take_while v0.1.2 [INFO] [stderr] Compiling lazy_static v1.4.0 [INFO] [stderr] Compiling rustc-hash v1.1.0 [INFO] [stderr] Compiling clang-sys v1.4.0 [INFO] [stderr] Compiling bitflags v2.4.2 [INFO] [stderr] Compiling lazycell v1.3.0 [INFO] [stderr] Compiling shlex v1.1.0 [INFO] [stderr] Compiling autocfg v1.1.0 [INFO] [stderr] Compiling parking_lot_core v0.9.6 [INFO] [stderr] Compiling nom v7.1.2 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling paste v1.0.14 [INFO] [stderr] Compiling which v4.3.0 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling lock_api v0.4.9 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Checking smallvec v1.10.0 [INFO] [stderr] Checking parking_lot v0.12.1 [INFO] [stderr] Compiling regex v1.7.1 [INFO] [stderr] Compiling cexpr v0.6.0 [INFO] [stderr] Compiling zsh-sys v0.1.0 (/opt/rustwide/workdir/zsh-sys) [INFO] [stderr] Checking zsh-module v0.3.0 (/opt/rustwide/workdir/zsh-module) [INFO] [stdout] warning: unused imports: `OsStr`, `borrow::Cow`, `c_char`, `fmt`, `io`, `os::unix::ffi::OsStrExt`, and `path::*` [INFO] [stdout] --> zsh-module/src/lib.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | borrow::Cow, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 92 | collections::HashMap, [INFO] [stdout] 93 | ffi::{c_char, CStr, CString, OsStr}, [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] 94 | fmt, io, [INFO] [stdout] | ^^^ ^^ [INFO] [stdout] 95 | os::unix::ffi::OsStrExt, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] 96 | path::*, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `OsStr`, `borrow::Cow`, `c_char`, `fmt`, `io`, and `path::*` [INFO] [stdout] --> zsh-module/src/lib.rs:91:5 [INFO] [stdout] | [INFO] [stdout] 91 | borrow::Cow, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 92 | collections::HashMap, [INFO] [stdout] 93 | ffi::{c_char, CStr, CString, OsStr}, [INFO] [stdout] | ^^^^^^ ^^^^^ [INFO] [stdout] 94 | fmt, io, [INFO] [stdout] | ^^^ ^^ [INFO] [stdout] 95 | os::unix::ffi::OsStrExt, [INFO] [stdout] 96 | path::*, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CStr`, `CString`, `borrow::Cow`, and `c_char` [INFO] [stdout] --> zsh-module/src/log.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | borrow::Cow, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 5 | ffi::{c_char, CStr, CString}, [INFO] [stdout] | ^^^^^^ ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `env`, `ffi`, and `io` [INFO] [stdout] --> zsh-module/src/types/error.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{env, ffi, fmt, io, path::*}; [INFO] [stdout] | ^^^ ^^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `CStr`, `CString`, `borrow::Cow`, and `c_char` [INFO] [stdout] --> zsh-module/src/log.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | borrow::Cow, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] 5 | ffi::{c_char, CStr, CString}, [INFO] [stdout] | ^^^^^^ ^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `env`, `ffi`, and `io` [INFO] [stdout] --> zsh-module/src/types/error.rs:2:11 [INFO] [stdout] | [INFO] [stdout] 2 | use std::{env, ffi, fmt, io, path::*}; [INFO] [stdout] | ^^^ ^^^ ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PathBuf` and `io::Read` [INFO] [stdout] --> zsh-module/src/zsh.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | io::Read, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 4 | path::{Path, PathBuf}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `PathBuf` and `io::Read` [INFO] [stdout] --> zsh-module/src/zsh.rs:3:5 [INFO] [stdout] | [INFO] [stdout] 3 | io::Read, [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] 4 | path::{Path, PathBuf}, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> zsh-module/src/export_module.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 61 | match bin( [INFO] [stdout] | _______________- [INFO] [stdout] 62 | | &mut **user_data, [INFO] [stdout] 63 | | name.to_str().expect("Failed to parse binary name"), [INFO] [stdout] 64 | | &args, [INFO] [stdout] 65 | | opts, [INFO] [stdout] 66 | | ) { [INFO] [stdout] | |_________- this expression has type `<(dyn for<'a, 'b, 'c, 'd> FnMut<(&'a mut (dyn Any + 'static), &'b str, &'c [&'d str], Opts)> + 'static) as FnOnce<(&mut (dyn Any + 'static), &str, &[&str], Opts)>>::Output` [INFO] [stdout] 67 | Ok(()) => 0, [INFO] [stdout] | ^^^^^^ expected associated type, found `Result<_, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected associated type `<(dyn for<'a, 'b, 'c, 'd> FnMut<(&'a mut (dyn Any + 'static), &'b str, &'c [&'d str], Opts)> + 'static) as FnOnce<(&mut (dyn Any + 'static), &str, &[&str], Opts)>>::Output` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] = help: consider constraining the associated type `<(dyn for<'a, 'b, 'c, 'd> FnMut<(&'a mut (dyn Any + 'static), &'b str, &'c [&'d str], Opts)> + 'static) as FnOnce<(&mut (dyn Any + 'static), &str, &[&str], Opts)>>::Output` to `Result<_, _>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> zsh-module/src/export_module.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 61 | match bin( [INFO] [stdout] | _______________- [INFO] [stdout] 62 | | &mut **user_data, [INFO] [stdout] 63 | | name.to_str().expect("Failed to parse binary name"), [INFO] [stdout] 64 | | &args, [INFO] [stdout] 65 | | opts, [INFO] [stdout] 66 | | ) { [INFO] [stdout] | |_________- this expression has type `<(dyn for<'a, 'b, 'c, 'd> FnMut<(&'a mut (dyn Any + 'static), &'b str, &'c [&'d str], Opts)> + 'static) as FnOnce<(&mut (dyn Any + 'static), &str, &[&str], Opts)>>::Output` [INFO] [stdout] 67 | Ok(()) => 0, [INFO] [stdout] | ^^^^^^ expected associated type, found `Result<_, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected associated type `<(dyn for<'a, 'b, 'c, 'd> FnMut<(&'a mut (dyn Any + 'static), &'b str, &'c [&'d str], Opts)> + 'static) as FnOnce<(&mut (dyn Any + 'static), &str, &[&str], Opts)>>::Output` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] = help: consider constraining the associated type `<(dyn for<'a, 'b, 'c, 'd> FnMut<(&'a mut (dyn Any + 'static), &'b str, &'c [&'d str], Opts)> + 'static) as FnOnce<(&mut (dyn Any + 'static), &str, &[&str], Opts)>>::Output` to `Result<_, _>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> zsh-module/src/export_module.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 61 | match bin( [INFO] [stdout] | _______________- [INFO] [stdout] 62 | | &mut **user_data, [INFO] [stdout] 63 | | name.to_str().expect("Failed to parse binary name"), [INFO] [stdout] 64 | | &args, [INFO] [stdout] 65 | | opts, [INFO] [stdout] 66 | | ) { [INFO] [stdout] | |_________- this expression has type `<(dyn for<'a, 'b, 'c, 'd> FnMut<(&'a mut (dyn Any + 'static), &'b str, &'c [&'d str], Opts)> + 'static) as FnOnce<(&mut (dyn Any + 'static), &str, &[&str], Opts)>>::Output` [INFO] [stdout] 67 | Ok(()) => 0, [INFO] [stdout] 68 | Err(e) => { [INFO] [stdout] | ^^^^^^ expected associated type, found `Result<_, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected associated type `<(dyn for<'a, 'b, 'c, 'd> FnMut<(&'a mut (dyn Any + 'static), &'b str, &'c [&'d str], Opts)> + 'static) as FnOnce<(&mut (dyn Any + 'static), &str, &[&str], Opts)>>::Output` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] = help: consider constraining the associated type `<(dyn for<'a, 'b, 'c, 'd> FnMut<(&'a mut (dyn Any + 'static), &'b str, &'c [&'d str], Opts)> + 'static) as FnOnce<(&mut (dyn Any + 'static), &str, &[&str], Opts)>>::Output` to `Result<_, _>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> zsh-module/src/export_module.rs:68:13 [INFO] [stdout] | [INFO] [stdout] 61 | match bin( [INFO] [stdout] | _______________- [INFO] [stdout] 62 | | &mut **user_data, [INFO] [stdout] 63 | | name.to_str().expect("Failed to parse binary name"), [INFO] [stdout] 64 | | &args, [INFO] [stdout] 65 | | opts, [INFO] [stdout] 66 | | ) { [INFO] [stdout] | |_________- this expression has type `<(dyn for<'a, 'b, 'c, 'd> FnMut<(&'a mut (dyn Any + 'static), &'b str, &'c [&'d str], Opts)> + 'static) as FnOnce<(&mut (dyn Any + 'static), &str, &[&str], Opts)>>::Output` [INFO] [stdout] 67 | Ok(()) => 0, [INFO] [stdout] 68 | Err(e) => { [INFO] [stdout] | ^^^^^^ expected associated type, found `Result<_, _>` [INFO] [stdout] | [INFO] [stdout] = note: expected associated type `<(dyn for<'a, 'b, 'c, 'd> FnMut<(&'a mut (dyn Any + 'static), &'b str, &'c [&'d str], Opts)> + 'static) as FnOnce<(&mut (dyn Any + 'static), &str, &[&str], Opts)>>::Output` [INFO] [stdout] found enum `Result<_, _>` [INFO] [stdout] = help: consider constraining the associated type `<(dyn for<'a, 'b, 'c, 'd> FnMut<(&'a mut (dyn Any + 'static), &'b str, &'c [&'d str], Opts)> + 'static) as FnOnce<(&mut (dyn Any + 'static), &str, &[&str], Opts)>>::Output` to `Result<_, _>` [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch19-03-advanced-traits.html [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `os::unix::ffi::OsStrExt` [INFO] [stdout] --> zsh-module/src/lib.rs:95:5 [INFO] [stdout] | [INFO] [stdout] 95 | os::unix::ffi::OsStrExt, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `og_cmd` [INFO] [stdout] --> zsh-module/src/zsh.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let og_cmd = cmd.as_ref(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_og_cmd` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `og_cmd` [INFO] [stdout] --> zsh-module/src/zsh.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | let og_cmd = cmd.as_ref(); [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_og_cmd` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `FnMut` is not general enough [INFO] [stdout] --> zsh-module/src/lib.rs:223:40 [INFO] [stdout] | [INFO] [stdout] 223 | let closure: Box = Box::new( [INFO] [stdout] | ________________________________________^ [INFO] [stdout] 224 | | move |data: &mut (dyn Any + 'static), name, args, opts| -> Result<(), ZError> { [INFO] [stdout] 225 | | cb(data.downcast_mut::().unwrap(), name, args, opts).map_err(E::into) [INFO] [stdout] 226 | | }, [INFO] [stdout] 227 | | ); [INFO] [stdout] | |_________^ implementation of `FnMut` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: closure with signature `for<'a> fn(&'a mut dyn Any, &'2 str, &[&str], Opts) -> Result<(), types::error::ZError>` must implement `FnMut<(&mut dyn Any, &'1 str, &[&str], Opts)>`, for any lifetime `'1`... [INFO] [stdout] = note: ...but it actually implements `FnMut<(&mut dyn Any, &'2 str, &[&str], Opts)>`, for some specific lifetime `'2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `FnMut` is not general enough [INFO] [stdout] --> zsh-module/src/lib.rs:223:40 [INFO] [stdout] | [INFO] [stdout] 223 | let closure: Box = Box::new( [INFO] [stdout] | ________________________________________^ [INFO] [stdout] 224 | | move |data: &mut (dyn Any + 'static), name, args, opts| -> Result<(), ZError> { [INFO] [stdout] 225 | | cb(data.downcast_mut::().unwrap(), name, args, opts).map_err(E::into) [INFO] [stdout] 226 | | }, [INFO] [stdout] 227 | | ); [INFO] [stdout] | |_________^ implementation of `FnMut` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: closure with signature `for<'a> fn(&'a mut dyn Any, &str, &'2 [&str], Opts) -> Result<(), types::error::ZError>` must implement `FnMut<(&mut dyn Any, &str, &'1 [&str], Opts)>`, for any lifetime `'1`... [INFO] [stdout] = note: ...but it actually implements `FnMut<(&mut dyn Any, &str, &'2 [&str], Opts)>`, for some specific lifetime `'2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `FnMut` is not general enough [INFO] [stdout] --> zsh-module/src/lib.rs:223:40 [INFO] [stdout] | [INFO] [stdout] 223 | let closure: Box = Box::new( [INFO] [stdout] | ________________________________________^ [INFO] [stdout] 224 | | move |data: &mut (dyn Any + 'static), name, args, opts| -> Result<(), ZError> { [INFO] [stdout] 225 | | cb(data.downcast_mut::().unwrap(), name, args, opts).map_err(E::into) [INFO] [stdout] 226 | | }, [INFO] [stdout] 227 | | ); [INFO] [stdout] | |_________^ implementation of `FnMut` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: closure with signature `for<'a> fn(&'a mut dyn Any, &'2 str, &[&str], Opts) -> Result<(), types::error::ZError>` must implement `FnMut<(&mut dyn Any, &'1 str, &[&str], Opts)>`, for any lifetime `'1`... [INFO] [stdout] = note: ...but it actually implements `FnMut<(&mut dyn Any, &'2 str, &[&str], Opts)>`, for some specific lifetime `'2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `FnMut` is not general enough [INFO] [stdout] --> zsh-module/src/lib.rs:223:40 [INFO] [stdout] | [INFO] [stdout] 223 | let closure: Box = Box::new( [INFO] [stdout] | ________________________________________^ [INFO] [stdout] 224 | | move |data: &mut (dyn Any + 'static), name, args, opts| -> Result<(), ZError> { [INFO] [stdout] 225 | | cb(data.downcast_mut::().unwrap(), name, args, opts).map_err(E::into) [INFO] [stdout] 226 | | }, [INFO] [stdout] 227 | | ); [INFO] [stdout] | |_________^ implementation of `FnMut` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: closure with signature `for<'a> fn(&'a mut dyn Any, &str, &[&'2 str], Opts) -> Result<(), types::error::ZError>` must implement `FnMut<(&mut dyn Any, &str, &[&'1 str], Opts)>`, for any lifetime `'1`... [INFO] [stdout] = note: ...but it actually implements `FnMut<(&mut dyn Any, &str, &[&'2 str], Opts)>`, for some specific lifetime `'2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `FnMut` is not general enough [INFO] [stdout] --> zsh-module/src/lib.rs:223:40 [INFO] [stdout] | [INFO] [stdout] 223 | let closure: Box = Box::new( [INFO] [stdout] | ________________________________________^ [INFO] [stdout] 224 | | move |data: &mut (dyn Any + 'static), name, args, opts| -> Result<(), ZError> { [INFO] [stdout] 225 | | cb(data.downcast_mut::().unwrap(), name, args, opts).map_err(E::into) [INFO] [stdout] 226 | | }, [INFO] [stdout] 227 | | ); [INFO] [stdout] | |_________^ implementation of `FnMut` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: closure with signature `for<'a> fn(&'a mut dyn Any, &str, &'2 [&str], Opts) -> Result<(), types::error::ZError>` must implement `FnMut<(&mut dyn Any, &str, &'1 [&str], Opts)>`, for any lifetime `'1`... [INFO] [stdout] = note: ...but it actually implements `FnMut<(&mut dyn Any, &str, &'2 [&str], Opts)>`, for some specific lifetime `'2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `FnMut` is not general enough [INFO] [stdout] --> zsh-module/src/lib.rs:223:40 [INFO] [stdout] | [INFO] [stdout] 223 | let closure: Box = Box::new( [INFO] [stdout] | ________________________________________^ [INFO] [stdout] 224 | | move |data: &mut (dyn Any + 'static), name, args, opts| -> Result<(), ZError> { [INFO] [stdout] 225 | | cb(data.downcast_mut::().unwrap(), name, args, opts).map_err(E::into) [INFO] [stdout] 226 | | }, [INFO] [stdout] 227 | | ); [INFO] [stdout] | |_________^ implementation of `FnMut` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: closure with signature `for<'a> fn(&'a mut dyn Any, &str, &[&'2 str], Opts) -> Result<(), types::error::ZError>` must implement `FnMut<(&mut dyn Any, &str, &[&'1 str], Opts)>`, for any lifetime `'1`... [INFO] [stdout] = note: ...but it actually implements `FnMut<(&mut dyn Any, &str, &[&'2 str], Opts)>`, for some specific lifetime `'2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `zsh-module` (lib test) due to 5 previous errors; 5 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `zsh-module` (lib) due to 5 previous errors; 6 warnings emitted [INFO] running `Command { std: "docker" "inspect" "50f8ddc1d24906aa63b444f8e21b1332983bdaeeefeec8e9b550f4b2eb89be70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "50f8ddc1d24906aa63b444f8e21b1332983bdaeeefeec8e9b550f4b2eb89be70", kill_on_drop: false }` [INFO] [stdout] 50f8ddc1d24906aa63b444f8e21b1332983bdaeeefeec8e9b550f4b2eb89be70