[INFO] cloning repository https://github.com/doug-q/hugr-llvm [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/doug-q/hugr-llvm" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdoug-q%2Fhugr-llvm", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdoug-q%2Fhugr-llvm'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8045498a37b070e668b73a303f1a0316b9c2a7ba [INFO] checking doug-q/hugr-llvm/8045498a37b070e668b73a303f1a0316b9c2a7ba against try#52ae2445414b2a196b318d85c2819995c6e5f1aa for pr-133397 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdoug-q%2Fhugr-llvm" "/workspace/builds/worker-5-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/doug-q/hugr-llvm 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/doug-q/hugr-llvm [INFO] finished tweaking git repo https://github.com/doug-q/hugr-llvm [INFO] tweaked toml for git repo https://github.com/doug-q/hugr-llvm written to /workspace/builds/worker-5-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/doug-q/hugr-llvm 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] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 72b302ae51a6f39cec4a53454970d10f9eba0fef4307726ad6e264405b18cd30 [INFO] running `Command { std: "docker" "start" "-a" "72b302ae51a6f39cec4a53454970d10f9eba0fef4307726ad6e264405b18cd30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "72b302ae51a6f39cec4a53454970d10f9eba0fef4307726ad6e264405b18cd30", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72b302ae51a6f39cec4a53454970d10f9eba0fef4307726ad6e264405b18cd30", kill_on_drop: false }` [INFO] [stdout] 72b302ae51a6f39cec4a53454970d10f9eba0fef4307726ad6e264405b18cd30 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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] 3bbeb335d33011d370235fb5fe2cdd40a0661c1cd0e4c1dc4e30223b72c69c57 [INFO] running `Command { std: "docker" "start" "-a" "3bbeb335d33011d370235fb5fe2cdd40a0661c1cd0e4c1dc4e30223b72c69c57", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.89 [INFO] [stderr] Compiling unicode-ident v1.0.13 [INFO] [stderr] Compiling libc v0.2.161 [INFO] [stderr] Compiling autocfg v1.4.0 [INFO] [stderr] Compiling serde v1.0.213 [INFO] [stderr] Checking memchr v2.7.4 [INFO] [stderr] Compiling thiserror v1.0.65 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Compiling semver v1.0.23 [INFO] [stderr] Compiling heck v0.5.0 [INFO] [stderr] Checking once_cell v1.20.2 [INFO] [stderr] Compiling rustversion v1.0.18 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking either v1.13.0 [INFO] [stderr] Compiling aho-corasick v1.1.3 [INFO] [stderr] Checking equivalent v1.0.1 [INFO] [stderr] Compiling quote v1.0.37 [INFO] [stderr] Compiling regex-syntax v0.8.5 [INFO] [stderr] Compiling typeid v1.0.2 [INFO] [stderr] Compiling syn v2.0.82 [INFO] [stderr] Compiling radium v0.7.0 [INFO] [stderr] Compiling jobserver v0.1.32 [INFO] [stderr] Checking hashbrown v0.15.0 [INFO] [stderr] Checking utf8parse v0.2.2 [INFO] [stderr] Checking itoa v1.0.11 [INFO] [stderr] Compiling cc v1.1.31 [INFO] [stderr] Compiling serde_json v1.0.132 [INFO] [stderr] Compiling crossbeam-utils v0.8.20 [INFO] [stderr] Checking tap v1.0.1 [INFO] [stderr] Checking ryu v1.0.18 [INFO] [stderr] Checking wyz v0.5.1 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking indexmap v2.6.0 [INFO] [stderr] Checking anstyle-parse v0.2.5 [INFO] [stderr] Compiling cgmath v0.18.0 [INFO] [stderr] Checking anstyle v1.0.8 [INFO] [stderr] Compiling pkg-config v0.3.31 [INFO] [stderr] Checking anstyle-query v1.1.1 [INFO] [stderr] Checking is_terminal_polyfill v1.70.1 [INFO] [stderr] Compiling paste v1.0.15 [INFO] [stderr] Checking funty v2.0.0 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking colorchoice v1.0.2 [INFO] [stderr] Compiling unicode-xid v0.2.6 [INFO] [stderr] Checking fixedbitset v0.4.2 [INFO] [stderr] Checking anstream v0.6.15 [INFO] [stderr] Compiling regex-automata v0.4.8 [INFO] [stderr] Checking petgraph v0.6.5 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Compiling zstd-sys v2.0.13+zstd.1.5.6 [INFO] [stderr] Checking approx v0.4.0 [INFO] [stderr] Checking itertools v0.13.0 [INFO] [stderr] Checking byteorder v1.5.0 [INFO] [stderr] Checking context-iterators v0.2.0 [INFO] [stderr] Checking pin-project-lite v0.2.14 [INFO] [stderr] Checking inventory v0.3.15 [INFO] [stderr] Checking strsim v0.11.1 [INFO] [stderr] Checking clap_lex v0.7.2 [INFO] [stderr] Checking utf8-width v0.1.7 [INFO] [stderr] Compiling rustix v0.38.37 [INFO] [stderr] Checking html-escape v0.2.13 [INFO] [stderr] Checking clap_builder v4.5.20 [INFO] [stderr] Checking fxhash v0.2.1 [INFO] [stderr] Compiling slab v0.4.9 [INFO] [stderr] Checking linux-raw-sys v0.4.14 [INFO] [stderr] Checking bumpalo v3.16.0 [INFO] [stderr] Checking downcast-rs v1.2.1 [INFO] [stderr] Checking bitflags v2.6.0 [INFO] [stderr] Compiling regex v1.11.0 [INFO] [stderr] Compiling ucd-trie v0.1.7 [INFO] [stderr] Checking crossbeam-epoch v0.9.18 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Checking fastrand v2.1.1 [INFO] [stderr] Compiling rayon-core v1.12.1 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking cfg-if v1.0.0 [INFO] [stderr] Compiling zstd-safe v7.2.1 [INFO] [stderr] Checking same-file v1.0.6 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Checking walkdir v2.5.0 [INFO] [stderr] Checking crossbeam-deque v0.8.5 [INFO] [stderr] Checking is-terminal v0.4.13 [INFO] [stderr] Compiling rustc_version v0.4.1 [INFO] [stderr] Checking log v0.4.22 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Compiling anyhow v1.0.91 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking csv-core v0.1.11 [INFO] [stderr] Compiling rstest_macros v0.19.0 [INFO] [stderr] Checking tracing-core v0.1.32 [INFO] [stderr] Compiling inkwell v0.4.0 [INFO] [stderr] Checking iana-time-zone v0.1.61 [INFO] [stderr] Checking chrono v0.4.38 [INFO] [stderr] Checking rayon v1.10.0 [INFO] [stderr] Checking crossbeam-channel v0.5.13 [INFO] [stderr] Checking priority-queue v2.1.1 [INFO] [stderr] Compiling llvm-sys v140.1.3 [INFO] [stderr] Checking tempfile v3.13.0 [INFO] [stderr] Compiling relative-path v1.9.3 [INFO] [stderr] Compiling glob v0.3.1 [INFO] [stderr] Compiling serde_derive v1.0.213 [INFO] [stderr] Compiling thiserror-impl v1.0.65 [INFO] [stderr] Compiling strum_macros v0.26.4 [INFO] [stderr] Compiling delegate v0.12.0 [INFO] [stderr] Compiling typetag-impl v0.2.18 [INFO] [stderr] Compiling derive_more-impl v1.0.0 [INFO] [stderr] Compiling enum_dispatch v0.3.13 [INFO] [stderr] Compiling delegate v0.13.1 [INFO] [stderr] Compiling clap_derive v4.5.18 [INFO] [stderr] Compiling pest v2.7.14 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling tracing-attributes v0.1.27 [INFO] [stderr] Checking strum v0.26.3 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Compiling pest_meta v2.7.14 [INFO] [stderr] Checking tracing v0.1.40 [INFO] [stderr] Checking clap v4.5.20 [INFO] [stderr] Compiling inkwell_internals v0.9.0 [INFO] [stderr] Checking clio v0.3.5 [INFO] [stderr] Checking clap-verbosity-flag v2.2.2 [INFO] [stderr] Checking bytemuck v1.19.0 [INFO] [stderr] Checking derive_more v1.0.0 [INFO] [stderr] Compiling pest_generator v2.7.14 [INFO] [stderr] Checking console v0.15.8 [INFO] [stderr] Checking itertools v0.12.1 [INFO] [stderr] Checking similar v2.6.0 [INFO] [stderr] Compiling pest_derive v2.7.14 [INFO] [stderr] Checking futures-timer v3.0.3 [INFO] [stderr] Checking linked-hash-map v0.5.6 [INFO] [stderr] Checking pathsearch v0.2.0 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking insta v1.40.0 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking rstest v0.19.0 [INFO] [stderr] Checking erased-serde v0.4.5 [INFO] [stderr] Checking bitvec v1.0.1 [INFO] [stderr] Checking num-rational v0.4.2 [INFO] [stderr] Checking smol_str v0.3.1 [INFO] [stderr] Checking typetag v0.2.18 [INFO] [stderr] Checking uuid v1.11.0 [INFO] [stderr] Checking csv v1.3.0 [INFO] [stderr] Checking tket-json-rs v0.5.1 [INFO] [stderr] Checking zstd v0.13.2 [INFO] [stderr] Checking portgraph v0.12.2 [INFO] [stderr] Checking hugr-core v0.13.2 [INFO] [stderr] Checking hugr-passes v0.13.2 [INFO] [stderr] Checking hugr v0.13.2 [INFO] [stderr] Checking hugr-cli v0.13.2 [INFO] [stderr] Checking tket2 v0.6.0 [INFO] [stderr] Checking hugr-llvm v0.6.1 (/opt/rustwide/workdir) [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/custom/load_constant.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 44 | impl<'a, H: HugrView> LoadConstantsMap<'a, H> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 51 | / Box::new(move |context, konst: &dyn CustomConst| { [INFO] [stdout] 52 | | let cc = konst.downcast_ref::().ok_or(anyhow!( [INFO] [stdout] 53 | | "impossible! Failed to downcast in LoadConstantsMap::custom_const" [INFO] [stdout] 54 | | ))?; [INFO] [stdout] 55 | | handler(context, cc) [INFO] [stdout] 56 | | }), [INFO] [stdout] | |______________^ coercion requires that `'a` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `FnOnce` is not general enough [INFO] [stdout] --> src/custom/load_constant.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | / Box::new(move |context, konst: &dyn CustomConst| { [INFO] [stdout] 52 | | let cc = konst.downcast_ref::().ok_or(anyhow!( [INFO] [stdout] 53 | | "impossible! Failed to downcast in LoadConstantsMap::custom_const" [INFO] [stdout] 54 | | ))?; [INFO] [stdout] 55 | | handler(context, cc) [INFO] [stdout] 56 | | }), [INFO] [stdout] | |______________^ implementation of `FnOnce` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: closure with signature `for<'a> fn(&'2 mut EmitFuncContext<'_, '_, H>, &'a dyn CustomConst) -> Result, anyhow::Error>` must implement `FnOnce<(&'1 mut EmitFuncContext<'c, '_, H>, &dyn CustomConst)>`, for any lifetime `'1`... [INFO] [stdout] = note: ...but it actually implements `FnOnce<(&'2 mut EmitFuncContext<'_, '_, H>, &dyn CustomConst)>`, for some specific lifetime `'2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `FnOnce` is not general enough [INFO] [stdout] --> src/custom/load_constant.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | / Box::new(move |context, konst: &dyn CustomConst| { [INFO] [stdout] 52 | | let cc = konst.downcast_ref::().ok_or(anyhow!( [INFO] [stdout] 53 | | "impossible! Failed to downcast in LoadConstantsMap::custom_const" [INFO] [stdout] 54 | | ))?; [INFO] [stdout] 55 | | handler(context, cc) [INFO] [stdout] 56 | | }), [INFO] [stdout] | |______________^ implementation of `FnOnce` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: closure with signature `for<'a> fn(&mut EmitFuncContext<'2, '_, H>, &'a dyn CustomConst) -> Result, anyhow::Error>` must implement `FnOnce<(&mut EmitFuncContext<'1, '_, H>, &dyn CustomConst)>`, for any lifetime `'1`... [INFO] [stdout] = note: ...but it actually implements `FnOnce<(&mut EmitFuncContext<'2, '_, H>, &dyn CustomConst)>`, for some specific lifetime `'2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `Fn` is not general enough [INFO] [stdout] --> src/custom/load_constant.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | / Box::new(move |context, konst: &dyn CustomConst| { [INFO] [stdout] 52 | | let cc = konst.downcast_ref::().ok_or(anyhow!( [INFO] [stdout] 53 | | "impossible! Failed to downcast in LoadConstantsMap::custom_const" [INFO] [stdout] 54 | | ))?; [INFO] [stdout] 55 | | handler(context, cc) [INFO] [stdout] 56 | | }), [INFO] [stdout] | |______________^ implementation of `Fn` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: closure with signature `for<'a> fn(&'2 mut EmitFuncContext<'_, '_, H>, &'a dyn CustomConst) -> Result, anyhow::Error>` must implement `Fn<(&'1 mut EmitFuncContext<'c, '_, H>, &dyn CustomConst)>`, for any lifetime `'1`... [INFO] [stdout] = note: ...but it actually implements `Fn<(&'2 mut EmitFuncContext<'_, '_, H>, &dyn CustomConst)>`, for some specific lifetime `'2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `Fn` is not general enough [INFO] [stdout] --> src/custom/load_constant.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | / Box::new(move |context, konst: &dyn CustomConst| { [INFO] [stdout] 52 | | let cc = konst.downcast_ref::().ok_or(anyhow!( [INFO] [stdout] 53 | | "impossible! Failed to downcast in LoadConstantsMap::custom_const" [INFO] [stdout] 54 | | ))?; [INFO] [stdout] 55 | | handler(context, cc) [INFO] [stdout] 56 | | }), [INFO] [stdout] | |______________^ implementation of `Fn` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: closure with signature `for<'a> fn(&mut EmitFuncContext<'2, '_, H>, &'a dyn CustomConst) -> Result, anyhow::Error>` must implement `Fn<(&mut EmitFuncContext<'1, '_, H>, &dyn CustomConst)>`, for any lifetime `'1`... [INFO] [stdout] = note: ...but it actually implements `Fn<(&mut EmitFuncContext<'2, '_, H>, &dyn CustomConst)>`, for some specific lifetime `'2` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `hugr-llvm` (lib) due to 5 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: lifetime may not live long enough [INFO] [stdout] --> src/custom/load_constant.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 44 | impl<'a, H: HugrView> LoadConstantsMap<'a, H> { [INFO] [stdout] | -- lifetime `'a` defined here [INFO] [stdout] ... [INFO] [stdout] 51 | / Box::new(move |context, konst: &dyn CustomConst| { [INFO] [stdout] 52 | | let cc = konst.downcast_ref::().ok_or(anyhow!( [INFO] [stdout] 53 | | "impossible! Failed to downcast in LoadConstantsMap::custom_const" [INFO] [stdout] 54 | | ))?; [INFO] [stdout] 55 | | handler(context, cc) [INFO] [stdout] 56 | | }), [INFO] [stdout] | |______________^ coercion requires that `'a` must outlive `'static` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `FnOnce` is not general enough [INFO] [stdout] --> src/custom/load_constant.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | / Box::new(move |context, konst: &dyn CustomConst| { [INFO] [stdout] 52 | | let cc = konst.downcast_ref::().ok_or(anyhow!( [INFO] [stdout] 53 | | "impossible! Failed to downcast in LoadConstantsMap::custom_const" [INFO] [stdout] 54 | | ))?; [INFO] [stdout] 55 | | handler(context, cc) [INFO] [stdout] 56 | | }), [INFO] [stdout] | |______________^ implementation of `FnOnce` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: closure with signature `for<'a> fn(&'2 mut func::EmitFuncContext<'_, '_, H>, &'a dyn hugr::ops::constant::CustomConst) -> std::result::Result, anyhow::Error>` must implement `FnOnce<(&'1 mut func::EmitFuncContext<'c, '_, H>, &dyn hugr::ops::constant::CustomConst)>`, for any lifetime `'1`... [INFO] [stdout] = note: ...but it actually implements `FnOnce<(&'2 mut func::EmitFuncContext<'_, '_, H>, &dyn hugr::ops::constant::CustomConst)>`, for some specific lifetime `'2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `FnOnce` is not general enough [INFO] [stdout] --> src/custom/load_constant.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | / Box::new(move |context, konst: &dyn CustomConst| { [INFO] [stdout] 52 | | let cc = konst.downcast_ref::().ok_or(anyhow!( [INFO] [stdout] 53 | | "impossible! Failed to downcast in LoadConstantsMap::custom_const" [INFO] [stdout] 54 | | ))?; [INFO] [stdout] 55 | | handler(context, cc) [INFO] [stdout] 56 | | }), [INFO] [stdout] | |______________^ implementation of `FnOnce` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: closure with signature `for<'a> fn(&mut func::EmitFuncContext<'2, '_, H>, &'a dyn hugr::ops::constant::CustomConst) -> std::result::Result, anyhow::Error>` must implement `FnOnce<(&mut func::EmitFuncContext<'1, '_, H>, &dyn hugr::ops::constant::CustomConst)>`, for any lifetime `'1`... [INFO] [stdout] = note: ...but it actually implements `FnOnce<(&mut func::EmitFuncContext<'2, '_, H>, &dyn hugr::ops::constant::CustomConst)>`, for some specific lifetime `'2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `Fn` is not general enough [INFO] [stdout] --> src/custom/load_constant.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | / Box::new(move |context, konst: &dyn CustomConst| { [INFO] [stdout] 52 | | let cc = konst.downcast_ref::().ok_or(anyhow!( [INFO] [stdout] 53 | | "impossible! Failed to downcast in LoadConstantsMap::custom_const" [INFO] [stdout] 54 | | ))?; [INFO] [stdout] 55 | | handler(context, cc) [INFO] [stdout] 56 | | }), [INFO] [stdout] | |______________^ implementation of `Fn` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: closure with signature `for<'a> fn(&'2 mut func::EmitFuncContext<'_, '_, H>, &'a dyn hugr::ops::constant::CustomConst) -> std::result::Result, anyhow::Error>` must implement `Fn<(&'1 mut func::EmitFuncContext<'c, '_, H>, &dyn hugr::ops::constant::CustomConst)>`, for any lifetime `'1`... [INFO] [stdout] = note: ...but it actually implements `Fn<(&'2 mut func::EmitFuncContext<'_, '_, H>, &dyn hugr::ops::constant::CustomConst)>`, for some specific lifetime `'2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: implementation of `Fn` is not general enough [INFO] [stdout] --> src/custom/load_constant.rs:51:13 [INFO] [stdout] | [INFO] [stdout] 51 | / Box::new(move |context, konst: &dyn CustomConst| { [INFO] [stdout] 52 | | let cc = konst.downcast_ref::().ok_or(anyhow!( [INFO] [stdout] 53 | | "impossible! Failed to downcast in LoadConstantsMap::custom_const" [INFO] [stdout] 54 | | ))?; [INFO] [stdout] 55 | | handler(context, cc) [INFO] [stdout] 56 | | }), [INFO] [stdout] | |______________^ implementation of `Fn` is not general enough [INFO] [stdout] | [INFO] [stdout] = note: closure with signature `for<'a> fn(&mut func::EmitFuncContext<'2, '_, H>, &'a dyn hugr::ops::constant::CustomConst) -> std::result::Result, anyhow::Error>` must implement `Fn<(&mut func::EmitFuncContext<'1, '_, H>, &dyn hugr::ops::constant::CustomConst)>`, for any lifetime `'1`... [INFO] [stdout] = note: ...but it actually implements `Fn<(&mut func::EmitFuncContext<'2, '_, H>, &dyn hugr::ops::constant::CustomConst)>`, for some specific lifetime `'2` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `hugr-llvm` (lib test) due to 5 previous errors [INFO] running `Command { std: "docker" "inspect" "3bbeb335d33011d370235fb5fe2cdd40a0661c1cd0e4c1dc4e30223b72c69c57", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3bbeb335d33011d370235fb5fe2cdd40a0661c1cd0e4c1dc4e30223b72c69c57", kill_on_drop: false }` [INFO] [stdout] 3bbeb335d33011d370235fb5fe2cdd40a0661c1cd0e4c1dc4e30223b72c69c57