[INFO] fetching crate perf-count 0.1.0... [INFO] testing perf-count-0.1.0 against try#2440211fe03bc45c89b6dc1a3df18382ce91e32b for pr-146098-1 [INFO] extracting crate perf-count 0.1.0 into /workspace/builds/worker-4-tc2/source [INFO] removed /workspace/builds/worker-4-tc2/source/.cargo/config [INFO] started tweaking crates.io crate perf-count 0.1.0 [INFO] finished tweaking crates.io crate perf-count 0.1.0 [INFO] tweaked toml for crates.io crate perf-count 0.1.0 written to /workspace/builds/worker-4-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate perf-count 0.1.0 on toolchain 2440211fe03bc45c89b6dc1a3df18382ce91e32b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate perf-count 0.1.0 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" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] bb7529bfcdffc5e0e58357ef5815a3022055b77ede0b960d705ba0d188b10766 [INFO] running `Command { std: "docker" "start" "-a" "bb7529bfcdffc5e0e58357ef5815a3022055b77ede0b960d705ba0d188b10766", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "bb7529bfcdffc5e0e58357ef5815a3022055b77ede0b960d705ba0d188b10766", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bb7529bfcdffc5e0e58357ef5815a3022055b77ede0b960d705ba0d188b10766", kill_on_drop: false }` [INFO] [stdout] bb7529bfcdffc5e0e58357ef5815a3022055b77ede0b960d705ba0d188b10766 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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" "+2440211fe03bc45c89b6dc1a3df18382ce91e32b" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 63cff65316413f3ebaa55f72db789d6a3540890f8f313c080e07ab5672665033 [INFO] running `Command { std: "docker" "start" "-a" "63cff65316413f3ebaa55f72db789d6a3540890f8f313c080e07ab5672665033", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.76 [INFO] [stderr] Compiling libc v0.2.151 [INFO] [stderr] Compiling version_check v0.1.5 [INFO] [stderr] Compiling remove_dir_all v0.5.3 [INFO] [stderr] Compiling thiserror v1.0.56 [INFO] [stderr] Compiling libc v0.1.12 [INFO] [stderr] Compiling memchr v2.7.1 [INFO] [stderr] Compiling nom v4.2.3 [INFO] [stderr] Compiling quote v1.0.35 [INFO] [stderr] Compiling syn v2.0.48 [INFO] [stderr] Compiling rand v0.4.6 [INFO] [stderr] Compiling tempdir v0.3.7 [INFO] [stderr] Compiling mmap v0.1.1 [INFO] [stderr] Compiling thiserror-impl v1.0.56 [INFO] [stderr] Compiling perf-count v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Formatter` [INFO] [stdout] --> src/error.rs:2:23 [INFO] [stdout] | [INFO] [stdout] 2 | use std::fmt::{Debug, Formatter}; [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `error` and `fmt` [INFO] [stdout] --> src/error.rs:3:11 [INFO] [stdout] | [INFO] [stdout] 3 | use std::{error, fmt, io}; [INFO] [stdout] | ^^^^^ ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::event::Event` [INFO] [stdout] --> src/lib.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::event::Event; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `libc` [INFO] [stdout] --> src/linux_perf/linux/hw_breakpoint.rs:2:5 [INFO] [stdout] | [INFO] [stdout] 2 | use libc; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/linux_perf/builder.rs:17:29 [INFO] [stdout] | [INFO] [stdout] 17 | pub fn set_target_event(mut self, event: Event) -> Result { [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0004]: non-exhaustive patterns: `event::Event::ContextSwitches` not covered [INFO] [stdout] --> src/linux_perf/linux/mod.rs:112:15 [INFO] [stdout] | [INFO] [stdout] 112 | match value { [INFO] [stdout] | ^^^^^ pattern `event::Event::ContextSwitches` not covered [INFO] [stdout] | [INFO] [stdout] note: `event::Event` defined here [INFO] [stdout] --> src/event.rs:2:10 [INFO] [stdout] | [INFO] [stdout] 2 | pub enum Event { [INFO] [stdout] | ^^^^^ [INFO] [stdout] ... [INFO] [stdout] 25 | ContextSwitches, [INFO] [stdout] | --------------- not covered [INFO] [stdout] = note: the matched value is of type `event::Event` [INFO] [stdout] help: ensure that all possible cases are being handled by adding a match arm with a wildcard pattern or an explicit pattern as shown [INFO] [stdout] | [INFO] [stdout] 118 ~ crate::event::Event::BranchMisses => Ok(HardwareEventType::BranchMisses), [INFO] [stdout] 119 ~ event::Event::ContextSwitches => todo!(), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0170]: pattern binding `ContextSwitches` is named the same as one of the variants of the type `event::Event` [INFO] [stdout] --> src/linux_perf/linux/mod.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | ContextSwitches => Ok(Self::ContextSwitches), [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: to match on the variant, qualify the path: `event::Event::ContextSwitches` [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(bindings_with_variant_name)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable pattern [INFO] [stdout] --> src/linux_perf/linux/mod.rs:170:13 [INFO] [stdout] | [INFO] [stdout] 169 | ContextSwitches => Ok(Self::ContextSwitches), [INFO] [stdout] | --------------- matches any value [INFO] [stdout] 170 | x => Err(PerfCounterBuilderError::UnsupportedCounterType(x)), [INFO] [stdout] | ^ no value can reach this [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_patterns)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `ContextSwitches` [INFO] [stdout] --> src/linux_perf/linux/mod.rs:169:13 [INFO] [stdout] | [INFO] [stdout] 169 | ContextSwitches => Ok(Self::ContextSwitches), [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: if this is intentional, prefix it with an underscore [INFO] [stdout] | [INFO] [stdout] 169 | _ContextSwitches => Ok(Self::ContextSwitches), [INFO] [stdout] | + [INFO] [stdout] help: you might have meant to pattern match on the similarly named variant `ContextSwitches` [INFO] [stdout] | [INFO] [stdout] 169 | event::Event::ContextSwitches => Ok(Self::ContextSwitches), [INFO] [stdout] | ++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0004, E0170. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0004`. [INFO] [stdout] [INFO] [stderr] error: could not compile `perf-count` (lib) due to 2 previous errors; 7 warnings emitted [INFO] running `Command { std: "docker" "inspect" "63cff65316413f3ebaa55f72db789d6a3540890f8f313c080e07ab5672665033", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "63cff65316413f3ebaa55f72db789d6a3540890f8f313c080e07ab5672665033", kill_on_drop: false }` [INFO] [stdout] 63cff65316413f3ebaa55f72db789d6a3540890f8f313c080e07ab5672665033