[INFO] fetching crate perf-count 0.1.0...
[INFO] checking perf-count-0.1.0 against try#31561a63598a0f21fc74c024747ef1310fdd2eb2 for pr-133536
[INFO] extracting crate perf-count 0.1.0 into /workspace/builds/worker-7-tc2/source
[INFO] validating manifest of crates.io crate perf-count 0.1.0 on toolchain 31561a63598a0f21fc74c024747ef1310fdd2eb2
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+31561a63598a0f21fc74c024747ef1310fdd2eb2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] removed /workspace/builds/worker-7-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-7-tc2/source/Cargo.toml
[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" "+31561a63598a0f21fc74c024747ef1310fdd2eb2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+31561a63598a0f21fc74c024747ef1310fdd2eb2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 58c471a36706bab69461e2033ca2088049202f9d96bc4c7f4ad6c86c68b1ba94
[INFO] running `Command { std: "docker" "start" "-a" "58c471a36706bab69461e2033ca2088049202f9d96bc4c7f4ad6c86c68b1ba94", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "58c471a36706bab69461e2033ca2088049202f9d96bc4c7f4ad6c86c68b1ba94", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "58c471a36706bab69461e2033ca2088049202f9d96bc4c7f4ad6c86c68b1ba94", kill_on_drop: false }`
[INFO] [stdout] 58c471a36706bab69461e2033ca2088049202f9d96bc4c7f4ad6c86c68b1ba94
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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" "+31561a63598a0f21fc74c024747ef1310fdd2eb2" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 756a554c1fd65d43ba4dbf595bebfb073bf62f7c30b5dadc2d103b6f27576f60
[INFO] running `Command { std: "docker" "start" "-a" "756a554c1fd65d43ba4dbf595bebfb073bf62f7c30b5dadc2d103b6f27576f60", kill_on_drop: false }`
[INFO] [stderr]    Compiling proc-macro2 v1.0.76
[INFO] [stderr]    Compiling unicode-ident v1.0.12
[INFO] [stderr]    Compiling libc v0.2.151
[INFO] [stderr]     Checking remove_dir_all v0.5.3
[INFO] [stderr]    Compiling thiserror v1.0.56
[INFO] [stderr]     Checking libc v0.1.12
[INFO] [stderr]     Checking memchr v2.7.1
[INFO] [stderr]     Checking nom v4.2.3
[INFO] [stderr]    Compiling quote v1.0.35
[INFO] [stderr]    Compiling syn v2.0.48
[INFO] [stderr]     Checking rand v0.4.6
[INFO] [stderr]     Checking tempdir v0.3.7
[INFO] [stderr]     Checking mmap v0.1.1
[INFO] [stderr]    Compiling thiserror-impl v1.0.56
[INFO] [stderr]     Checking 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)]` 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: `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: 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)]` 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<Self, PerfCounterBuilderError> {
[INFO] [stdout]    |                             ----^^^^
[INFO] [stdout]    |                             |
[INFO] [stdout]    |                             help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` on by default
[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<Self, PerfCounterBuilderError> {
[INFO] [stdout]    |                             ----^^^^
[INFO] [stdout]    |                             |
[INFO] [stdout]    |                             help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` 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)]` 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]     |             ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ContextSwitches`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` 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)]` 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]     |             ^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_ContextSwitches`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[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 test) due to 2 previous errors; 6 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[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" "756a554c1fd65d43ba4dbf595bebfb073bf62f7c30b5dadc2d103b6f27576f60", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "756a554c1fd65d43ba4dbf595bebfb073bf62f7c30b5dadc2d103b6f27576f60", kill_on_drop: false }`
[INFO] [stdout] 756a554c1fd65d43ba4dbf595bebfb073bf62f7c30b5dadc2d103b6f27576f60
