[INFO] fetching crate as_http_status_code 0.1.0... [INFO] checking as_http_status_code-0.1.0 against master#cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c for pr-143170 [INFO] extracting crate as_http_status_code 0.1.0 into /workspace/builds/worker-7-tc1/source [INFO] started tweaking crates.io crate as_http_status_code 0.1.0 [INFO] finished tweaking crates.io crate as_http_status_code 0.1.0 [INFO] tweaked toml for crates.io crate as_http_status_code 0.1.0 written to /workspace/builds/worker-7-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate as_http_status_code 0.1.0 on toolchain cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate as_http_status_code 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" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded as_http_status_code_derive v0.1.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8632f2ad8c82dd0447595eb16a20f6013091b133837cecaf9c5601bb68eb2a32 [INFO] running `Command { std: "docker" "start" "-a" "8632f2ad8c82dd0447595eb16a20f6013091b133837cecaf9c5601bb68eb2a32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8632f2ad8c82dd0447595eb16a20f6013091b133837cecaf9c5601bb68eb2a32", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8632f2ad8c82dd0447595eb16a20f6013091b133837cecaf9c5601bb68eb2a32", kill_on_drop: false }` [INFO] [stdout] 8632f2ad8c82dd0447595eb16a20f6013091b133837cecaf9c5601bb68eb2a32 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+cf38b8e663f15db10ce49d7bbce02c99fc3dbc0c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d9abebeae9522b892d5121aa63caf26d6dd92d7ec2642a4cda5a6bf79ee3da0a [INFO] running `Command { std: "docker" "start" "-a" "d9abebeae9522b892d5121aa63caf26d6dd92d7ec2642a4cda5a6bf79ee3da0a", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling as_http_status_code_derive v0.1.0 [INFO] [stderr] Checking as_http_status_code v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0432]: unresolved import `as_http_status_code` [INFO] [stdout] --> src/lib.rs:11:9 [INFO] [stdout] | [INFO] [stdout] 11 | use as_http_status_code::AsStatusCode; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ use of unresolved module or unlinked crate `as_http_status_code` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `as_http_status_code`, use `cargo add as_http_status_code` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `as_status_code` in this scope [INFO] [stdout] --> src/lib.rs:16:11 [INFO] [stdout] | [INFO] [stdout] 16 | #[as_status_code(StatusCode::OK)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `as_status_code` in this scope [INFO] [stdout] --> src/lib.rs:18:11 [INFO] [stdout] | [INFO] [stdout] 18 | #[as_status_code(StatusCode::NOT_FOUND)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `as_status_code` in this scope [INFO] [stdout] --> src/lib.rs:20:11 [INFO] [stdout] | [INFO] [stdout] 20 | #[as_status_code(StatusCode::INTERNAL_SERVER_ERROR)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot find attribute `as_status_code` in this scope [INFO] [stdout] --> src/lib.rs:25:7 [INFO] [stdout] | [INFO] [stdout] 25 | #[as_status_code(StatusCode::OK)] [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_status_code` found for enum `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:32:28 [INFO] [stdout] | [INFO] [stdout] 15 | enum Foo { [INFO] [stdout] | -------- method `as_status_code` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 32 | assert_eq!(Foo::Ok.as_status_code(), StatusCode::OK); [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `Foo` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsStatusCode` defines an item `as_status_code`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait AsStatusCode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_status_code` found for enum `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:34:39 [INFO] [stdout] | [INFO] [stdout] 15 | enum Foo { [INFO] [stdout] | -------- method `as_status_code` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 34 | assert_eq!(Foo::NotFound(789).as_status_code(), StatusCode::NOT_FOUND); [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `Foo` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsStatusCode` defines an item `as_status_code`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait AsStatusCode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_status_code` found for enum `Foo` in the current scope [INFO] [stdout] --> src/lib.rs:40:14 [INFO] [stdout] | [INFO] [stdout] 15 | enum Foo { [INFO] [stdout] | -------- method `as_status_code` not found for this enum [INFO] [stdout] ... [INFO] [stdout] 37 | / Foo::InternalServerError { [INFO] [stdout] 38 | | message: "msg".to_owned() [INFO] [stdout] 39 | | } [INFO] [stdout] 40 | | .as_status_code(), [INFO] [stdout] | | -^^^^^^^^^^^^^^ method not found in `Foo` [INFO] [stdout] | |_____________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsStatusCode` defines an item `as_status_code`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait AsStatusCode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `as_status_code` found for struct `Bar` in the current scope [INFO] [stdout] --> src/lib.rs:44:39 [INFO] [stdout] | [INFO] [stdout] 26 | struct Bar { [INFO] [stdout] | ---------- method `as_status_code` not found for this struct [INFO] [stdout] ... [INFO] [stdout] 44 | assert_eq!(Bar { _field: () }.as_status_code(), StatusCode::OK); [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `Bar` [INFO] [stdout] | [INFO] [stdout] = help: items from traits can only be used if the trait is implemented and in scope [INFO] [stdout] note: `AsStatusCode` defines an item `as_status_code`, perhaps you need to implement it [INFO] [stdout] --> src/lib.rs:4:1 [INFO] [stdout] | [INFO] [stdout] 4 | pub trait AsStatusCode { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0432, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0432`. [INFO] [stdout] [INFO] [stderr] error: could not compile `as_http_status_code` (lib test) due to 9 previous errors [INFO] running `Command { std: "docker" "inspect" "d9abebeae9522b892d5121aa63caf26d6dd92d7ec2642a4cda5a6bf79ee3da0a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d9abebeae9522b892d5121aa63caf26d6dd92d7ec2642a4cda5a6bf79ee3da0a", kill_on_drop: false }` [INFO] [stdout] d9abebeae9522b892d5121aa63caf26d6dd92d7ec2642a4cda5a6bf79ee3da0a