[INFO] fetching crate zksync_consensus_utils 0.5.0...
[INFO] testing zksync_consensus_utils-0.5.0 against nightly-2024-10-28 for randomize-layout
[INFO] extracting crate zksync_consensus_utils 0.5.0 into /workspace/builds/worker-2-tc1/source
[INFO] validating manifest of crates.io crate zksync_consensus_utils 0.5.0 on toolchain nightly-2024-10-28
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-10-28" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking crates.io crate zksync_consensus_utils 0.5.0
[INFO] finished tweaking crates.io crate zksync_consensus_utils 0.5.0
[INFO] tweaked toml for crates.io crate zksync_consensus_utils 0.5.0 written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-10-28" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]      Locking 104 packages to latest compatible versions
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+nightly-2024-10-28" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded prometheus-client-derive-encode v0.4.2
[INFO] [stderr]   Downloaded smallvec v1.13.2
[INFO] [stderr]   Downloaded prometheus-client v0.22.3
[INFO] [stderr]   Downloaded matchers v0.1.0
[INFO] [stderr]   Downloaded compile-fmt v0.1.0
[INFO] [stderr]   Downloaded stable_deref_trait v1.2.0
[INFO] [stderr]   Downloaded signal-hook-registry v1.4.2
[INFO] [stderr]   Downloaded overload v0.1.1
[INFO] [stderr]   Downloaded tracing-attributes v0.1.27
[INFO] [stderr]   Downloaded redox_syscall v0.5.7
[INFO] [stderr]   Downloaded sharded-slab v0.1.7
[INFO] [stderr]   Downloaded lock_api v0.4.12
[INFO] [stderr]   Downloaded parking_lot v0.12.3
[INFO] [stderr]   Downloaded regex-automata v0.1.10
[INFO] [stderr]   Downloaded vise v0.2.0
[INFO] [stderr]   Downloaded nu-ansi-term v0.46.0
[INFO] [stderr]   Downloaded thread_local v1.1.8
[INFO] [stderr]   Downloaded tracing-subscriber v0.3.18
[INFO] [stderr]   Downloaded valuable v0.1.0
[INFO] [stderr]   Downloaded tracing-log v0.2.0
[INFO] [stderr]   Downloaded ctor v0.2.8
[INFO] [stderr]   Downloaded regex-syntax v0.6.29
[INFO] [stderr]   Downloaded elsa v1.10.0
[INFO] [stderr]   Downloaded dtoa v1.0.9
[INFO] [stderr]   Downloaded scopeguard v1.2.0
[INFO] [stderr]   Downloaded vise-macros v0.2.0
[INFO] [stderr]   Downloaded parking_lot_core v0.9.10
[INFO] [stderr]   Downloaded zksync_concurrency v0.5.0
[INFO] [stderr]   Downloaded sha3 v0.10.8
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-10-28" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 10434e12b1118cd23c01faa3cc393fe37eb79c2c48642a6a5ea95d49fef36782
[INFO] running `Command { std: "docker" "start" "-a" "10434e12b1118cd23c01faa3cc393fe37eb79c2c48642a6a5ea95d49fef36782", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "10434e12b1118cd23c01faa3cc393fe37eb79c2c48642a6a5ea95d49fef36782", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "10434e12b1118cd23c01faa3cc393fe37eb79c2c48642a6a5ea95d49fef36782", kill_on_drop: false }`
[INFO] [stdout] 10434e12b1118cd23c01faa3cc393fe37eb79c2c48642a6a5ea95d49fef36782
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-10-28" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 7d2a1c4689a5a7ce41509380b55b7cfb9d933a223d447e3dc2a64105687cc510
[INFO] running `Command { std: "docker" "start" "-a" "7d2a1c4689a5a7ce41509380b55b7cfb9d933a223d447e3dc2a64105687cc510", 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 cfg-if v1.0.0
[INFO] [stderr]    Compiling autocfg v1.4.0
[INFO] [stderr]    Compiling version_check v0.9.5
[INFO] [stderr]    Compiling typenum v1.17.0
[INFO] [stderr]    Compiling once_cell v1.20.2
[INFO] [stderr]    Compiling smallvec v1.13.2
[INFO] [stderr]    Compiling parking_lot_core v0.9.10
[INFO] [stderr]    Compiling scopeguard v1.2.0
[INFO] [stderr]    Compiling byteorder v1.5.0
[INFO] [stderr]    Compiling prometheus-client v0.22.3
[INFO] [stderr]    Compiling regex-syntax v0.6.29
[INFO] [stderr]    Compiling regex-syntax v0.8.5
[INFO] [stderr]    Compiling pin-project-lite v0.2.15
[INFO] [stderr]    Compiling stable_deref_trait v1.2.0
[INFO] [stderr]    Compiling powerfmt v0.2.0
[INFO] [stderr]    Compiling thiserror v1.0.66
[INFO] [stderr]    Compiling log v0.4.22
[INFO] [stderr]    Compiling itoa v1.0.11
[INFO] [stderr]    Compiling tracing-core v0.1.32
[INFO] [stderr]    Compiling lazy_static v1.5.0
[INFO] [stderr]    Compiling dtoa v1.0.9
[INFO] [stderr]    Compiling anyhow v1.0.92
[INFO] [stderr]    Compiling overload v0.1.1
[INFO] [stderr]    Compiling sharded-slab v0.1.7
[INFO] [stderr]    Compiling deranged v0.3.11
[INFO] [stderr]    Compiling nu-ansi-term v0.46.0
[INFO] [stderr]    Compiling thread_local v1.1.8
[INFO] [stderr]    Compiling generic-array v0.14.7
[INFO] [stderr]    Compiling elsa v1.10.0
[INFO] [stderr]    Compiling num-conv v0.1.0
[INFO] [stderr]    Compiling bytes v1.8.0
[INFO] [stderr]    Compiling time-core v0.1.2
[INFO] [stderr]    Compiling compile-fmt v0.1.0
[INFO] [stderr]    Compiling lock_api v0.4.12
[INFO] [stderr]    Compiling keccak v0.1.5
[INFO] [stderr]    Compiling tracing-log v0.2.0
[INFO] [stderr]    Compiling quote v1.0.37
[INFO] [stderr]    Compiling syn v2.0.86
[INFO] [stderr]    Compiling time v0.3.36
[INFO] [stderr]    Compiling getrandom v0.2.15
[INFO] [stderr]    Compiling mio v1.0.2
[INFO] [stderr]    Compiling signal-hook-registry v1.4.2
[INFO] [stderr]    Compiling socket2 v0.5.7
[INFO] [stderr]    Compiling rand_core v0.6.4
[INFO] [stderr]    Compiling parking_lot v0.12.3
[INFO] [stderr]    Compiling regex-automata v0.4.8
[INFO] [stderr]    Compiling crypto-common v0.1.6
[INFO] [stderr]    Compiling block-buffer v0.10.4
[INFO] [stderr]    Compiling digest v0.10.7
[INFO] [stderr]    Compiling sha3 v0.10.8
[INFO] [stderr]    Compiling regex-automata v0.1.10
[INFO] [stderr]    Compiling matchers v0.1.0
[INFO] [stderr]    Compiling regex v1.11.1
[INFO] [stderr]    Compiling zerocopy-derive v0.7.35
[INFO] [stderr]    Compiling prometheus-client-derive-encode v0.4.2
[INFO] [stderr]    Compiling tracing-attributes v0.1.27
[INFO] [stderr]    Compiling thiserror-impl v1.0.66
[INFO] [stderr]    Compiling tokio-macros v2.4.0
[INFO] [stderr]    Compiling vise-macros v0.2.0
[INFO] [stderr]    Compiling pin-project-internal v1.1.7
[INFO] [stderr]    Compiling ctor v0.2.8
[INFO] [stderr]    Compiling tokio v1.41.0
[INFO] [stderr]    Compiling zerocopy v0.7.35
[INFO] [stderr]    Compiling vise v0.2.0
[INFO] [stderr]    Compiling tracing v0.1.40
[INFO] [stderr]    Compiling pin-project v1.1.7
[INFO] [stderr]    Compiling tracing-subscriber v0.3.18
[INFO] [stderr]    Compiling ppv-lite86 v0.2.20
[INFO] [stderr]    Compiling rand_chacha v0.3.1
[INFO] [stderr]    Compiling rand v0.8.5
[INFO] [stderr]    Compiling zksync_concurrency v0.5.0
[INFO] [stderr]    Compiling zksync_consensus_utils v0.5.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 11.40s
[INFO] running `Command { std: "docker" "inspect" "7d2a1c4689a5a7ce41509380b55b7cfb9d933a223d447e3dc2a64105687cc510", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "7d2a1c4689a5a7ce41509380b55b7cfb9d933a223d447e3dc2a64105687cc510", kill_on_drop: false }`
[INFO] [stdout] 7d2a1c4689a5a7ce41509380b55b7cfb9d933a223d447e3dc2a64105687cc510
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-10-28" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] a90b5f65e50b2d27ee66c7a050e6f53a574028845e0660a50a68926f71fc00cb
[INFO] running `Command { std: "docker" "start" "-a" "a90b5f65e50b2d27ee66c7a050e6f53a574028845e0660a50a68926f71fc00cb", kill_on_drop: false }`
[INFO] [stderr]    Compiling zksync_consensus_utils v0.5.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 1.10s
[INFO] running `Command { std: "docker" "inspect" "a90b5f65e50b2d27ee66c7a050e6f53a574028845e0660a50a68926f71fc00cb", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "a90b5f65e50b2d27ee66c7a050e6f53a574028845e0660a50a68926f71fc00cb", kill_on_drop: false }`
[INFO] [stdout] a90b5f65e50b2d27ee66c7a050e6f53a574028845e0660a50a68926f71fc00cb
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+nightly-2024-10-28" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 3a9f459a69e76c7baeaa5038fc48b6e277474c56f40b2f89e73ea51fb0c140d4
[INFO] running `Command { std: "docker" "start" "-a" "3a9f459a69e76c7baeaa5038fc48b6e277474c56f40b2f89e73ea51fb0c140d4", kill_on_drop: false }`
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.11s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/zksync_consensus_utils-945f7dd79c18421d)
[INFO] [stderr]    Doc-tests zksync_consensus_utils
[INFO] [stdout] 
[INFO] [stdout] running 0 tests
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] running 3 tests
[INFO] [stdout] test src/enum_util.rs - enum_util::Variant (line 11) ... FAILED
[INFO] [stdout] test src/enum_util.rs - enum_util::Variant (line 19) ... FAILED
[INFO] [stdout] test src/enum_util.rs - enum_util::Variant (line 35) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/enum_util.rs - enum_util::Variant (line 11) stdout ----
[INFO] [stdout] error: expected one of `,`, `=`, or `}`, found `B`
[INFO] [stdout]  --> src/enum_util.rs:14:3
[INFO] [stdout]   |
[INFO] [stdout] 4 |   A(A)
[INFO] [stdout]   |       -
[INFO] [stdout]   |       |
[INFO] [stdout]   |       expected one of `,`, `=`, or `}`
[INFO] [stdout]   |       help: missing `,`
[INFO] [stdout] 5 |   B(B)
[INFO] [stdout]   |   ^ unexpected token
[INFO] [stdout] 
[INFO] [stdout] error: expected one of `,`, `=`, or `}`, found `C`
[INFO] [stdout]  --> src/enum_util.rs:15:3
[INFO] [stdout]   |
[INFO] [stdout] 5 |   B(B)
[INFO] [stdout]   |       -
[INFO] [stdout]   |       |
[INFO] [stdout]   |       expected one of `,`, `=`, or `}`
[INFO] [stdout]   |       help: missing `,`
[INFO] [stdout] 6 |   C(C)
[INFO] [stdout]   |   ^ unexpected token
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `A` in this scope
[INFO] [stdout]  --> src/enum_util.rs:13:5
[INFO] [stdout]   |
[INFO] [stdout] 4 |   A(A)
[INFO] [stdout]   |     ^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]   |
[INFO] [stdout] 3 | enum E<A> {
[INFO] [stdout]   |       +++
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `B` in this scope
[INFO] [stdout]  --> src/enum_util.rs:14:5
[INFO] [stdout]   |
[INFO] [stdout] 5 |   B(B)
[INFO] [stdout]   |     ^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]   |
[INFO] [stdout] 3 | enum E<B> {
[INFO] [stdout]   |       +++
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `C` in this scope
[INFO] [stdout]  --> src/enum_util.rs:15:5
[INFO] [stdout]   |
[INFO] [stdout] 6 |   C(C)
[INFO] [stdout]   |     ^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]   |
[INFO] [stdout] 3 | enum E<C> {
[INFO] [stdout]   |       +++
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 5 previous errors
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0412`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/enum_util.rs - enum_util::Variant (line 19) stdout ----
[INFO] [stdout] error[E0405]: cannot find trait `Variant` in this scope
[INFO] [stdout]  --> src/enum_util.rs:20:6
[INFO] [stdout]   |
[INFO] [stdout] 3 | impl Variant<E> for A {
[INFO] [stdout]   |      ^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this trait
[INFO] [stdout]   |
[INFO] [stdout] 2 + use zksync_consensus_utils::enum_util::Variant;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `E` in this scope
[INFO] [stdout]  --> src/enum_util.rs:20:14
[INFO] [stdout]   |
[INFO] [stdout] 3 | impl Variant<E> for A {
[INFO] [stdout]   |              ^
[INFO] [stdout]  --> /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/cmp.rs:334:1
[INFO] [stdout]   |
[INFO] [stdout]   = note: similarly named trait `Eq` defined here
[INFO] [stdout]   |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]   |
[INFO] [stdout] 3 | impl Variant<Eq> for A {
[INFO] [stdout]   |              ~~
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]   |
[INFO] [stdout] 3 | impl<E> Variant<E> for A {
[INFO] [stdout]   |     +++
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `A` in this scope
[INFO] [stdout]  --> src/enum_util.rs:20:21
[INFO] [stdout]   |
[INFO] [stdout] 3 | impl Variant<E> for A {
[INFO] [stdout]   |                     ^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `E` in this scope
[INFO] [stdout]  --> src/enum_util.rs:21:22
[INFO] [stdout]   |
[INFO] [stdout] 4 |   fn insert(self) -> E { E::A(self) }
[INFO] [stdout]   |                      ^ help: a trait with a similar name exists: `Eq`
[INFO] [stdout]  --> /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/cmp.rs:334:1
[INFO] [stdout]   |
[INFO] [stdout]   = note: similarly named trait `Eq` defined here
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `E` in this scope
[INFO] [stdout]  --> src/enum_util.rs:22:16
[INFO] [stdout]   |
[INFO] [stdout] 5 |   fn extract(e:E) -> Result<Self,ErrBadVariant> {
[INFO] [stdout]   |                ^ help: a trait with a similar name exists: `Eq`
[INFO] [stdout]  --> /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/cmp.rs:334:1
[INFO] [stdout]   |
[INFO] [stdout]   = note: similarly named trait `Eq` defined here
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ErrBadVariant` in this scope
[INFO] [stdout]  --> src/enum_util.rs:22:34
[INFO] [stdout]   |
[INFO] [stdout] 5 |   fn extract(e:E) -> Result<Self,ErrBadVariant> {
[INFO] [stdout]   |                                  ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]   |
[INFO] [stdout] 3 | impl<ErrBadVariant> Variant<E> for A {
[INFO] [stdout]   |     +++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `ErrBadVariant` in this scope
[INFO] [stdout]  --> src/enum_util.rs:23:42
[INFO] [stdout]   |
[INFO] [stdout] 6 |     let E::A(this) = e else { return Err(ErrBadVariant) };
[INFO] [stdout]   |                                          ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `E`
[INFO] [stdout]  --> src/enum_util.rs:21:26
[INFO] [stdout]   |
[INFO] [stdout] 4 |   fn insert(self) -> E { E::A(self) }
[INFO] [stdout]   |                          ^
[INFO] [stdout]   |                          |
[INFO] [stdout]   |                          use of undeclared type `E`
[INFO] [stdout]   |                          help: a trait with a similar name exists: `Eq`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `E`
[INFO] [stdout]  --> src/enum_util.rs:23:9
[INFO] [stdout]   |
[INFO] [stdout] 6 |     let E::A(this) = e else { return Err(ErrBadVariant) };
[INFO] [stdout]   |         ^
[INFO] [stdout]   |         |
[INFO] [stdout]   |         use of undeclared type `E`
[INFO] [stdout]   |         help: a trait with a similar name exists: `Eq`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 9 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0405`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] ---- src/enum_util.rs - enum_util::Variant (line 35) stdout ----
[INFO] [stdout] error: expected one of `,`, `=`, or `}`, found `B`
[INFO] [stdout]  --> src/enum_util.rs:38:3
[INFO] [stdout]   |
[INFO] [stdout] 4 |   A(A)
[INFO] [stdout]   |       -
[INFO] [stdout]   |       |
[INFO] [stdout]   |       expected one of `,`, `=`, or `}`
[INFO] [stdout]   |       help: missing `,`
[INFO] [stdout] 5 |   B(B)
[INFO] [stdout]   |   ^ unexpected token
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `A` in this scope
[INFO] [stdout]  --> src/enum_util.rs:37:5
[INFO] [stdout]   |
[INFO] [stdout] 4 |   A(A)
[INFO] [stdout]   |     ^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]   |
[INFO] [stdout] 3 | enum AorB<A> {
[INFO] [stdout]   |          +++
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `B` in this scope
[INFO] [stdout]  --> src/enum_util.rs:38:5
[INFO] [stdout]   |
[INFO] [stdout] 5 |   B(B)
[INFO] [stdout]   |     ^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]   |
[INFO] [stdout] 3 | enum AorB<B> {
[INFO] [stdout]   |          +++
[INFO] [stdout] 
[INFO] [stdout] error[E0405]: cannot find trait `Variant` in this scope
[INFO] [stdout]  --> src/enum_util.rs:41:6
[INFO] [stdout]   |
[INFO] [stdout] 8 | impl Variant<E> for AorB {
[INFO] [stdout]   |      ^^^^^^^ not found in this scope
[INFO] [stdout]   |
[INFO] [stdout] help: consider importing this trait
[INFO] [stdout]   |
[INFO] [stdout] 2 + use zksync_consensus_utils::enum_util::Variant;
[INFO] [stdout]   |
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `E` in this scope
[INFO] [stdout]  --> src/enum_util.rs:41:14
[INFO] [stdout]   |
[INFO] [stdout] 8 | impl Variant<E> for AorB {
[INFO] [stdout]   |              ^
[INFO] [stdout]  --> /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/cmp.rs:334:1
[INFO] [stdout]   |
[INFO] [stdout]   = note: similarly named trait `Eq` defined here
[INFO] [stdout]   |
[INFO] [stdout] help: a trait with a similar name exists
[INFO] [stdout]   |
[INFO] [stdout] 8 | impl Variant<Eq> for AorB {
[INFO] [stdout]   |              ~~
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]   |
[INFO] [stdout] 8 | impl<E> Variant<E> for AorB {
[INFO] [stdout]   |     +++
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `E` in this scope
[INFO] [stdout]  --> src/enum_util.rs:42:22
[INFO] [stdout]   |
[INFO] [stdout] 9 |   fn insert(self) -> E {
[INFO] [stdout]   |                      ^ help: a trait with a similar name exists: `Eq`
[INFO] [stdout]  --> /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/cmp.rs:334:1
[INFO] [stdout]   |
[INFO] [stdout]   = note: similarly named trait `Eq` defined here
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `E` in this scope
[INFO] [stdout]   --> src/enum_util.rs:48:16
[INFO] [stdout]    |
[INFO] [stdout] 15 |   fn extract(e:E) -> Result<Self,ErrBadVariant> {
[INFO] [stdout]    |                ^ help: a trait with a similar name exists: `Eq`
[INFO] [stdout]   --> /rustc/df4ca44d3fbc9301ee17f30f4d474e6ae4b05252/library/core/src/cmp.rs:334:1
[INFO] [stdout]    |
[INFO] [stdout]    = note: similarly named trait `Eq` defined here
[INFO] [stdout] 
[INFO] [stdout] error[E0412]: cannot find type `ErrBadVariant` in this scope
[INFO] [stdout]   --> src/enum_util.rs:48:34
[INFO] [stdout]    |
[INFO] [stdout] 15 |   fn extract(e:E) -> Result<Self,ErrBadVariant> {
[INFO] [stdout]    |                                  ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout]    |
[INFO] [stdout] help: you might be missing a type parameter
[INFO] [stdout]    |
[INFO] [stdout] 8  | impl<ErrBadVariant> Variant<E> for AorB {
[INFO] [stdout]    |     +++++++++++++++
[INFO] [stdout] 
[INFO] [stdout] error[E0425]: cannot find value `ErrBadVariant` in this scope
[INFO] [stdout]   --> src/enum_util.rs:52:23
[INFO] [stdout]    |
[INFO] [stdout] 19 |       _ => return Err(ErrBadVariant),
[INFO] [stdout]    |                       ^^^^^^^^^^^^^ not found in this scope
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `E`
[INFO] [stdout]   --> src/enum_util.rs:44:21
[INFO] [stdout]    |
[INFO] [stdout] 11 |       Self::A(a) => E::A(a),
[INFO] [stdout]    |                     ^
[INFO] [stdout]    |                     |
[INFO] [stdout]    |                     use of undeclared type `E`
[INFO] [stdout]    |                     help: a trait with a similar name exists: `Eq`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `E`
[INFO] [stdout]   --> src/enum_util.rs:45:21
[INFO] [stdout]    |
[INFO] [stdout] 12 |       Self::B(b) => E::B(b),
[INFO] [stdout]    |                     ^
[INFO] [stdout]    |                     |
[INFO] [stdout]    |                     use of undeclared type `E`
[INFO] [stdout]    |                     help: a trait with a similar name exists: `Eq`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `E`
[INFO] [stdout]   --> src/enum_util.rs:50:7
[INFO] [stdout]    |
[INFO] [stdout] 17 |       E::A(a) => Self::A(a),
[INFO] [stdout]    |       ^
[INFO] [stdout]    |       |
[INFO] [stdout]    |       use of undeclared type `E`
[INFO] [stdout]    |       help: a trait with a similar name exists: `Eq`
[INFO] [stdout] 
[INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `E`
[INFO] [stdout]   --> src/enum_util.rs:51:7
[INFO] [stdout]    |
[INFO] [stdout] 18 |       E::B(b) => Self::B(b),
[INFO] [stdout]    |       ^
[INFO] [stdout]    |       |
[INFO] [stdout]    |       use of undeclared type `E`
[INFO] [stdout]    |       help: a trait with a similar name exists: `Eq`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 13 previous errors
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0405, E0412, E0425, E0433.
[INFO] [stdout] For more information about an error, try `rustc --explain E0405`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/enum_util.rs - enum_util::Variant (line 11)
[INFO] [stdout]     src/enum_util.rs - enum_util::Variant (line 19)
[INFO] [stdout]     src/enum_util.rs - enum_util::Variant (line 35)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.17s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "3a9f459a69e76c7baeaa5038fc48b6e277474c56f40b2f89e73ea51fb0c140d4", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "3a9f459a69e76c7baeaa5038fc48b6e277474c56f40b2f89e73ea51fb0c140d4", kill_on_drop: false }`
[INFO] [stdout] 3a9f459a69e76c7baeaa5038fc48b6e277474c56f40b2f89e73ea51fb0c140d4
