[INFO] fetching crate openapi_utils 0.2.2... [INFO] testing openapi_utils-0.2.2 against master#a77da2d454e6caa227a85b16410b95f93495e7e0 for pr-91031 [INFO] extracting crate openapi_utils 0.2.2 into /workspace/builds/worker-9/source [INFO] validating manifest of crates.io crate openapi_utils 0.2.2 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 openapi_utils 0.2.2 [INFO] finished tweaking crates.io crate openapi_utils 0.2.2 [INFO] tweaked toml for crates.io crate openapi_utils 0.2.2 written to /workspace/builds/worker-9/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a77da2d454e6caa227a85b16410b95f93495e7e0" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [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-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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] aff3fc9b5c2a4a9099671026596e0210c3c9b40336814b07528648ac2aafc6a1 [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" "aff3fc9b5c2a4a9099671026596e0210c3c9b40336814b07528648ac2aafc6a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "aff3fc9b5c2a4a9099671026596e0210c3c9b40336814b07528648ac2aafc6a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "aff3fc9b5c2a4a9099671026596e0210c3c9b40336814b07528648ac2aafc6a1", kill_on_drop: false }` [INFO] [stdout] aff3fc9b5c2a4a9099671026596e0210c3c9b40336814b07528648ac2aafc6a1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] f7004fd9c7ecb4321fd18eaf4b1dfdae489b4dfc580a42aaf603872199ae4d1c [INFO] running `Command { std: "docker" "start" "-a" "f7004fd9c7ecb4321fd18eaf4b1dfdae489b4dfc580a42aaf603872199ae4d1c", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.81 [INFO] [stderr] Compiling serde_json v1.0.71 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Compiling bytes v1.1.0 [INFO] [stderr] Compiling indexmap v1.7.0 [INFO] [stderr] Compiling http v0.2.5 [INFO] [stderr] Compiling serde_derive v1.0.130 [INFO] [stderr] Compiling serde v1.0.130 [INFO] [stderr] Compiling serde_yaml v0.8.21 [INFO] [stderr] Compiling openapiv3 v0.5.0 [INFO] [stderr] Compiling openapi_utils v0.2.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 48.76s [INFO] running `Command { std: "docker" "inspect" "f7004fd9c7ecb4321fd18eaf4b1dfdae489b4dfc580a42aaf603872199ae4d1c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f7004fd9c7ecb4321fd18eaf4b1dfdae489b4dfc580a42aaf603872199ae4d1c", kill_on_drop: false }` [INFO] [stdout] f7004fd9c7ecb4321fd18eaf4b1dfdae489b4dfc580a42aaf603872199ae4d1c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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] 93f835e61bdcee5ea3f1b3dd40d2c401fa1d0dbe3887d4e65664fd4a0945a326 [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" "93f835e61bdcee5ea3f1b3dd40d2c401fa1d0dbe3887d4e65664fd4a0945a326", kill_on_drop: false }` [INFO] [stderr] Compiling openapi_utils v0.2.2 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.27s [INFO] running `Command { std: "docker" "inspect" "93f835e61bdcee5ea3f1b3dd40d2c401fa1d0dbe3887d4e65664fd4a0945a326", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93f835e61bdcee5ea3f1b3dd40d2c401fa1d0dbe3887d4e65664fd4a0945a326", kill_on_drop: false }` [INFO] [stdout] 93f835e61bdcee5ea3f1b3dd40d2c401fa1d0dbe3887d4e65664fd4a0945a326 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-9/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", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 49b1c10b49fc45898664d5a7de92b0be311a4d3d8e9c573ca057119567e5d740 [INFO] running `Command { std: "docker" "start" "-a" "49b1c10b49fc45898664d5a7de92b0be311a4d3d8e9c573ca057119567e5d740", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/openapi_utils-ff3b1979156172ef) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests openapi_utils [INFO] [stdout] [INFO] [stdout] running 4 tests [INFO] [stdout] test src/reference.rs - reference::ReferenceOr::to_item (line 47) ... FAILED [INFO] [stdout] test src/reference.rs - reference::ReferenceOr::to_item_mut (line 77) ... FAILED [INFO] [stdout] test src/reference.rs - reference::ReferenceOr::to_item_ref (line 62) ... FAILED [INFO] [stdout] test src/dereferer.rs - dereferer::SpecExt::deref_all (line 25) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/reference.rs - reference::ReferenceOr::to_item (line 47) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ReferenceOr` [INFO] [stdout] --> src/reference.rs:48:12 [INFO] [stdout] | [INFO] [stdout] 3 | let item = ReferenceOr::Item(3); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use openapiv3::ReferenceOr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `to_item` in this scope [INFO] [stdout] --> src/reference.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 4 | assert_eq!(to_item(item), 3); [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/reference.rs - reference::ReferenceOr::to_item_mut (line 77) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ReferenceOr` [INFO] [stdout] --> src/reference.rs:78:16 [INFO] [stdout] | [INFO] [stdout] 3 | let mut item = ReferenceOr::Item(3); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use openapiv3::ReferenceOr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `to_item_mut` in this scope [INFO] [stdout] --> src/reference.rs:79:12 [INFO] [stdout] | [INFO] [stdout] 4 | assert_eq!(to_item_mut(&mut item), &3); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/reference.rs - reference::ReferenceOr::to_item_ref (line 62) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `ReferenceOr` [INFO] [stdout] --> src/reference.rs:63:12 [INFO] [stdout] | [INFO] [stdout] 3 | let item = ReferenceOr::Item(3); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this enum [INFO] [stdout] | [INFO] [stdout] 2 | use openapiv3::ReferenceOr; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `to_item_ref` in this scope [INFO] [stdout] --> src/reference.rs:64:12 [INFO] [stdout] | [INFO] [stdout] 4 | assert_eq!(to_item_ref(&item), &3); [INFO] [stdout] | ^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/dereferer.rs - dereferer::SpecExt::deref_all (line 25) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `serde_yaml` [INFO] [stdout] --> src/dereferer.rs:27:15 [INFO] [stdout] | [INFO] [stdout] 4 | let deser = serde_yaml::from_str(&data).expect("Could not deserialize file as OpenAPI v3.0"); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared crate or module `serde_yaml` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `spec` [INFO] [stdout] --> src/dereferer.rs:28:14 [INFO] [stdout] | [INFO] [stdout] 5 | let spec = spec::read(&deser).deref_all(); [INFO] [stdout] | ^^^^ use of undeclared crate or module `spec` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `filename` in this scope [INFO] [stdout] --> src/dereferer.rs:26:36 [INFO] [stdout] | [INFO] [stdout] 3 | let data = std::fs::read_to_string(filename).expect("OpenAPI file could not be read."); [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/dereferer.rs - dereferer::SpecExt::deref_all (line 25) [INFO] [stdout] src/reference.rs - reference::ReferenceOr::to_item (line 47) [INFO] [stdout] src/reference.rs - reference::ReferenceOr::to_item_mut (line 77) [INFO] [stdout] src/reference.rs - reference::ReferenceOr::to_item_ref (line 62) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 4 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.19s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "49b1c10b49fc45898664d5a7de92b0be311a4d3d8e9c573ca057119567e5d740", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "49b1c10b49fc45898664d5a7de92b0be311a4d3d8e9c573ca057119567e5d740", kill_on_drop: false }` [INFO] [stdout] 49b1c10b49fc45898664d5a7de92b0be311a4d3d8e9c573ca057119567e5d740