[INFO] fetching crate libp2p-metrics 0.2.0... [INFO] testing libp2p-metrics-0.2.0 against master#a77da2d454e6caa227a85b16410b95f93495e7e0 for pr-91031 [INFO] extracting crate libp2p-metrics 0.2.0 into /workspace/builds/worker-1/source [INFO] validating manifest of crates.io crate libp2p-metrics 0.2.0 on toolchain a77da2d454e6caa227a85b16410b95f93495e7e0 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate libp2p-metrics 0.2.0 [INFO] finished tweaking crates.io crate libp2p-metrics 0.2.0 [INFO] tweaked toml for crates.io crate libp2p-metrics 0.2.0 written to /workspace/builds/worker-1/source/Cargo.toml [INFO] crate crates.io crate libp2p-metrics 0.2.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 64726aeaf934475a5ad93c480236c8688835ee2b7964c005daa769daf10c653e [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "64726aeaf934475a5ad93c480236c8688835ee2b7964c005daa769daf10c653e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "64726aeaf934475a5ad93c480236c8688835ee2b7964c005daa769daf10c653e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "64726aeaf934475a5ad93c480236c8688835ee2b7964c005daa769daf10c653e", kill_on_drop: false }` [INFO] [stdout] 64726aeaf934475a5ad93c480236c8688835ee2b7964c005daa769daf10c653e [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 51927cf74d1f10618f1b9cbbde7bd997c06559f96a5f6ed61e23d224494009eb [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "51927cf74d1f10618f1b9cbbde7bd997c06559f96a5f6ed61e23d224494009eb", kill_on_drop: false }` [INFO] [stderr] Compiling crunchy v0.2.2 [INFO] [stderr] Compiling futures-sink v0.3.17 [INFO] [stderr] Compiling unsigned-varint v0.7.1 [INFO] [stderr] Compiling base64 v0.13.0 [INFO] [stderr] Compiling dtoa v0.4.8 [INFO] [stderr] Compiling owning_ref v0.4.1 [INFO] [stderr] Compiling digest v0.9.0 [INFO] [stderr] Compiling crypto-mac v0.8.0 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling open-metrics-client-derive-text-encode v0.1.1 [INFO] [stderr] Compiling libp2p-core v0.30.0 [INFO] [stderr] Compiling futures-channel v0.3.17 [INFO] [stderr] Compiling hmac v0.8.1 [INFO] [stderr] Compiling multihash v0.14.0 [INFO] [stderr] Compiling hmac-drbg v0.3.0 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling libsecp256k1-core v0.3.0 [INFO] [stderr] Compiling open-metrics-client v0.12.0 [INFO] [stderr] Compiling libsecp256k1-gen-ecmult v0.3.0 [INFO] [stderr] Compiling libsecp256k1-gen-genmult v0.3.0 [INFO] [stderr] Compiling libsecp256k1 v0.7.0 [INFO] [stderr] Compiling futures-executor v0.3.17 [INFO] [stderr] Compiling futures v0.3.17 [INFO] [stderr] Compiling multistream-select v0.10.4 [INFO] [stderr] Compiling rw-stream-sink v0.2.1 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling ed25519-dalek v1.0.1 [INFO] [stderr] Compiling multiaddr v0.13.0 [INFO] [stderr] Compiling libp2p-swarm v0.32.0 [INFO] [stderr] Compiling libp2p-metrics v0.2.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1m 02s [INFO] running `Command { std: "docker" "inspect" "51927cf74d1f10618f1b9cbbde7bd997c06559f96a5f6ed61e23d224494009eb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "51927cf74d1f10618f1b9cbbde7bd997c06559f96a5f6ed61e23d224494009eb", kill_on_drop: false }` [INFO] [stdout] 51927cf74d1f10618f1b9cbbde7bd997c06559f96a5f6ed61e23d224494009eb [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1/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" "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:5736fa189c1c60b01babf4b8b698fe57b6ecc41933a7ff2e0b8d7a221459412b" "/opt/rustwide/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 71c308497db71040685f32f4e796ed1de35bf4fe384b0c7e3f46a05eaeeb25b6 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "71c308497db71040685f32f4e796ed1de35bf4fe384b0c7e3f46a05eaeeb25b6", kill_on_drop: false }` [INFO] [stderr] Compiling sval v1.0.0-alpha.5 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling event-listener v2.5.1 [INFO] [stderr] Compiling cache-padded v1.1.1 [INFO] [stderr] Compiling parking v2.0.0 [INFO] [stderr] Compiling fastrand v1.5.0 [INFO] [stderr] Compiling waker-fn v1.1.0 [INFO] [stderr] Compiling crossbeam-utils v0.8.5 [INFO] [stderr] Compiling signal-hook v0.3.10 [INFO] [stderr] Compiling async-task v4.0.3 [INFO] [stderr] Compiling cpuid-bool v0.2.0 [INFO] [stderr] Compiling atomic-waker v1.0.0 [INFO] [stderr] Compiling http-types v2.12.0 [INFO] [stderr] Compiling crossbeam-queue v0.3.2 [INFO] [stderr] Compiling infer v0.2.3 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling route-recognizer v0.2.0 [INFO] [stderr] Compiling value-bag v1.0.0-alpha.8 [INFO] [stderr] Compiling standback v0.2.17 [INFO] [stderr] Compiling time v0.2.27 [INFO] [stderr] Compiling cookie v0.14.4 [INFO] [stderr] Compiling blake3 v0.3.8 [INFO] [stderr] Compiling concurrent-queue v1.2.2 [INFO] [stderr] Compiling async-mutex v1.4.0 [INFO] [stderr] Compiling async-lock v2.4.0 [INFO] [stderr] Compiling simple-mutex v1.1.5 [INFO] [stderr] Compiling socket2 v0.4.2 [INFO] [stderr] Compiling futures-lite v1.12.0 [INFO] [stderr] Compiling futures-channel v0.3.17 [INFO] [stderr] Compiling dashmap v4.0.2 [INFO] [stderr] Compiling cipher v0.2.5 [INFO] [stderr] Compiling universal-hash v0.4.1 [INFO] [stderr] Compiling crypto-mac v0.10.1 [INFO] [stderr] Compiling aead v0.3.2 [INFO] [stderr] Compiling ctor v0.1.21 [INFO] [stderr] Compiling async-channel v1.6.1 [INFO] [stderr] Compiling async-dup v1.2.2 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling polyval v0.4.5 [INFO] [stderr] Compiling hmac v0.10.1 [INFO] [stderr] Compiling aes-soft v0.6.4 [INFO] [stderr] Compiling ctr v0.6.0 [INFO] [stderr] Compiling futures-util v0.3.17 [INFO] [stderr] Compiling hkdf v0.10.0 [INFO] [stderr] Compiling ghash v0.3.1 [INFO] [stderr] Compiling time-macros-impl v0.1.2 [INFO] [stderr] Compiling aes v0.6.0 [INFO] [stderr] Compiling aes-gcm v0.8.0 [INFO] [stderr] Compiling byte-pool v0.2.3 [INFO] [stderr] Compiling blocking v1.1.0 [INFO] [stderr] Compiling async-executor v1.4.1 [INFO] [stderr] Compiling time-macros v0.1.1 [INFO] [stderr] Compiling polling v2.2.0 [INFO] [stderr] Compiling kv-log-macro v1.0.7 [INFO] [stderr] Compiling env_logger v0.8.4 [INFO] [stderr] Compiling async-io v1.6.0 [INFO] [stderr] Compiling async-process v1.3.0 [INFO] [stderr] Compiling async-global-executor v2.0.2 [INFO] [stderr] Compiling async-std v1.10.0 [INFO] [stderr] Compiling futures-executor v0.3.17 [INFO] [stderr] Compiling url v2.2.2 [INFO] [stderr] Compiling serde_json v1.0.70 [INFO] [stderr] Compiling serde_urlencoded v0.7.0 [INFO] [stderr] Compiling serde_qs v0.8.5 [INFO] [stderr] Compiling libsecp256k1 v0.7.0 [INFO] [stderr] Compiling ed25519-dalek v1.0.1 [INFO] [stderr] Compiling chrono v0.4.19 [INFO] [stderr] Compiling bincode v1.3.3 [INFO] [stderr] Compiling futures v0.3.17 [INFO] [stderr] Compiling rw-stream-sink v0.2.1 [INFO] [stderr] Compiling multistream-select v0.10.4 [INFO] [stderr] Compiling multiaddr v0.13.0 [INFO] [stderr] Compiling femme v2.1.1 [INFO] [stderr] Compiling async-session v2.0.1 [INFO] [stderr] Compiling async-h1 v2.3.2 [INFO] [stderr] Compiling async-sse v4.1.0 [INFO] [stderr] Compiling http-client v6.5.1 [INFO] [stderr] Compiling tide v0.16.0 [INFO] [stderr] Compiling libp2p-core v0.30.0 [INFO] [stderr] Compiling libp2p-swarm v0.32.0 [INFO] [stderr] Compiling libp2p-metrics v0.2.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `libp2p` [INFO] [stdout] --> examples/metrics.rs:53:5 [INFO] [stdout] | [INFO] [stdout] 53 | use libp2p::core::Multiaddr; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `libp2p` [INFO] [stdout] --> examples/metrics.rs:54:5 [INFO] [stdout] | [INFO] [stdout] 54 | use libp2p::metrics::{Metrics, Recorder}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `libp2p` [INFO] [stdout] --> examples/metrics.rs:55:5 [INFO] [stdout] | [INFO] [stdout] 55 | use libp2p::ping::{Ping, PingConfig}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `libp2p` [INFO] [stdout] --> examples/metrics.rs:56:5 [INFO] [stdout] | [INFO] [stdout] 56 | use libp2p::swarm::SwarmEvent; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0432]: unresolved import `libp2p` [INFO] [stdout] --> examples/metrics.rs:57:5 [INFO] [stdout] | [INFO] [stdout] 57 | use libp2p::{identity, PeerId, Swarm}; [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `libp2p` [INFO] [stdout] --> examples/metrics.rs:72:18 [INFO] [stdout] | [INFO] [stdout] 72 | block_on(libp2p::development_transport(local_key))?, [INFO] [stdout] | ^^^^^^ use of undeclared crate or module `libp2p` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Ping` [INFO] [stdout] --> examples/metrics.rs:73:9 [INFO] [stdout] | [INFO] [stdout] 73 | Ping::new(PingConfig::new().with_keep_alive(true)), [INFO] [stdout] | ^^^^ use of undeclared type `Ping` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `PingConfig` [INFO] [stdout] --> examples/metrics.rs:73:19 [INFO] [stdout] | [INFO] [stdout] 73 | Ping::new(PingConfig::new().with_keep_alive(true)), [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `PingConfig` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `SwarmEvent` [INFO] [stdout] --> examples/metrics.rs:90:17 [INFO] [stdout] | [INFO] [stdout] 90 | SwarmEvent::Behaviour(ping_event) => { [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type `SwarmEvent` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Multiaddr` in this scope [INFO] [stdout] --> examples/metrics.rs:78:21 [INFO] [stdout] | [INFO] [stdout] 78 | let remote: Multiaddr = addr.parse()?; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 51 | use libp2p_core::Multiaddr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Metrics` [INFO] [stdout] --> examples/metrics.rs:84:19 [INFO] [stdout] | [INFO] [stdout] 84 | let metrics = Metrics::new(&mut metric_registry); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 51 | use libp2p_metrics::Metrics; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `futures::stream::StreamExt` [INFO] [stdout] --> examples/metrics.rs:52:5 [INFO] [stdout] | [INFO] [stdout] 52 | use futures::stream::StreamExt; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 11 previous errors; 1 warning emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0412, E0432, E0433. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0412`. [INFO] [stdout] [INFO] [stderr] error: could not compile `libp2p-metrics` due to 12 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "71c308497db71040685f32f4e796ed1de35bf4fe384b0c7e3f46a05eaeeb25b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "71c308497db71040685f32f4e796ed1de35bf4fe384b0c7e3f46a05eaeeb25b6", kill_on_drop: false }` [INFO] [stdout] 71c308497db71040685f32f4e796ed1de35bf4fe384b0c7e3f46a05eaeeb25b6