[INFO] fetching crate as_http_status_code 0.1.0... [INFO] checking as_http_status_code-0.1.0 against master#350d0ef0ec0493e6d21cfb265cb8211a0e74d766 for pr-145342-1 [INFO] extracting crate as_http_status_code 0.1.0 into /workspace/builds/worker-1-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-1-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate as_http_status_code 0.1.0 on toolchain 350d0ef0ec0493e6d21cfb265cb8211a0e74d766 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "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" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 726780f7531a2d246db4fd52f985291a36b68c9941f9c616ce23c62133a3b6ce [INFO] running `Command { std: "docker" "start" "-a" "726780f7531a2d246db4fd52f985291a36b68c9941f9c616ce23c62133a3b6ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "726780f7531a2d246db4fd52f985291a36b68c9941f9c616ce23c62133a3b6ce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "726780f7531a2d246db4fd52f985291a36b68c9941f9c616ce23c62133a3b6ce", kill_on_drop: false }` [INFO] [stdout] 726780f7531a2d246db4fd52f985291a36b68c9941f9c616ce23c62133a3b6ce [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+350d0ef0ec0493e6d21cfb265cb8211a0e74d766" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ed1c65676e8f67ea073f3d2025f51a5713f8ed7ce4eac609bf6e4f2313212cef [INFO] running `Command { std: "docker" "start" "-a" "ed1c65676e8f67ea073f3d2025f51a5713f8ed7ce4eac609bf6e4f2313212cef", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking itoa v1.0.15 [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" "ed1c65676e8f67ea073f3d2025f51a5713f8ed7ce4eac609bf6e4f2313212cef", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed1c65676e8f67ea073f3d2025f51a5713f8ed7ce4eac609bf6e4f2313212cef", kill_on_drop: false }` [INFO] [stdout] ed1c65676e8f67ea073f3d2025f51a5713f8ed7ce4eac609bf6e4f2313212cef