[INFO] fetching crate as-is 0.0.30... [INFO] checking as-is-0.0.30 against try#b6bca0d7327839b5e3f7a7779947cb9113d08917+rustflags=-Zstrict-projection-item-bounds for 150662-leaf [INFO] extracting crate as-is 0.0.30 into /workspace/builds/worker-1-tc2/source [INFO] started tweaking crates.io crate as-is 0.0.30 [INFO] finished tweaking crates.io crate as-is 0.0.30 [INFO] tweaked toml for crates.io crate as-is 0.0.30 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate as-is 0.0.30 on toolchain b6bca0d7327839b5e3f7a7779947cb9113d08917 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6bca0d7327839b5e3f7a7779947cb9113d08917" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6bca0d7327839b5e3f7a7779947cb9113d08917" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 3 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b6bca0d7327839b5e3f7a7779947cb9113d08917" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+b6bca0d7327839b5e3f7a7779947cb9113d08917" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4195ce7cc785f751b25aaeff7c9ed440606a558c4d4b827ba8dde50b4ec230d1 [INFO] running `Command { std: "docker" "start" "-a" "4195ce7cc785f751b25aaeff7c9ed440606a558c4d4b827ba8dde50b4ec230d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4195ce7cc785f751b25aaeff7c9ed440606a558c4d4b827ba8dde50b4ec230d1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4195ce7cc785f751b25aaeff7c9ed440606a558c4d4b827ba8dde50b4ec230d1", kill_on_drop: false }` [INFO] [stdout] 4195ce7cc785f751b25aaeff7c9ed440606a558c4d4b827ba8dde50b4ec230d1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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 -Zstrict-projection-item-bounds" "-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+b6bca0d7327839b5e3f7a7779947cb9113d08917" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 0cc20670d2c319deb2bab362073e59d07ce0d75a61c2720c58dd0af47ce429f8 [INFO] running `Command { std: "docker" "start" "-a" "0cc20670d2c319deb2bab362073e59d07ce0d75a61c2720c58dd0af47ce429f8", kill_on_drop: false }` [INFO] [stderr] Checking ref-ops v0.2.5 [INFO] [stderr] Checking siphasher v1.0.2 [INFO] [stderr] Checking char-buf v0.1.2 [INFO] [stderr] Checking as-is v0.0.30 (/opt/rustwide/workdir) [INFO] [stdout] error[E0277]: the trait bound `<::Is as ToOwned>::Owned: Borrow` is not satisfied [INFO] [stdout] --> src/borrow.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | B: ?Sized + ToOwned>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the trait `Borrow` is not implemented for `<::Is as ToOwned>::Owned` [INFO] [stdout] | [INFO] [stdout] help: consider further restricting the associated type [INFO] [stdout] | [INFO] [stdout] 39 | B: ?Sized + ToOwned>, <::Is as ToOwned>::Owned: Borrow [INFO] [stdout] | ++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `<::Is as ToOwned>::Owned: Borrow` is not satisfied [INFO] [stdout] --> src/borrow.rs:55:29 [INFO] [stdout] | [INFO] [stdout] 55 | B: ?Sized + ToOwned>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the trait `Borrow` is not implemented for `<::Is as ToOwned>::Owned` [INFO] [stdout] | [INFO] [stdout] help: consider further restricting the associated type [INFO] [stdout] | [INFO] [stdout] 55 | B: ?Sized + ToOwned>, <::Is as ToOwned>::Owned: Borrow [INFO] [stdout] | ++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `::Owned: Borrow` is not satisfied [INFO] [stdout] --> src/foreign/cow.rs:15:29 [INFO] [stdout] | [INFO] [stdout] 15 | B: ?Sized + ToOwned>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the trait `Borrow` is not implemented for `::Owned` [INFO] [stdout] | [INFO] [stdout] help: consider further restricting the associated type [INFO] [stdout] | [INFO] [stdout] 15 | B: ?Sized + ToOwned>, ::Owned: Borrow [INFO] [stdout] | ++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `<::Is as ToOwned>::Owned: Borrow` is not satisfied [INFO] [stdout] --> src/borrow.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 41 | (**self).borrow_or_clone() [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `Borrow` is not implemented for `<::Is as ToOwned>::Owned` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `BorrowAsIs::borrow_or_clone` [INFO] [stdout] --> src/borrow.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | / fn borrow_or_clone(&self) -> IsCow<'_, B> [INFO] [stdout] 21 | | where [INFO] [stdout] 22 | | Self::Is: Borrow, [INFO] [stdout] 23 | | B: ?Sized + ToOwned>, [INFO] [stdout] | |_________________________________________________^ [INFO] [stdout] help: consider further restricting the associated type [INFO] [stdout] | [INFO] [stdout] 39 | B: ?Sized + ToOwned>, <::Is as ToOwned>::Owned: Borrow [INFO] [stdout] | ++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `<::Is as ToOwned>::Owned: Borrow` is not satisfied [INFO] [stdout] --> src/borrow.rs:57:18 [INFO] [stdout] | [INFO] [stdout] 57 | (**self).borrow_or_clone() [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `Borrow` is not implemented for `<::Is as ToOwned>::Owned` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `BorrowAsIs::borrow_or_clone` [INFO] [stdout] --> src/borrow.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | / fn borrow_or_clone(&self) -> IsCow<'_, B> [INFO] [stdout] 21 | | where [INFO] [stdout] 22 | | Self::Is: Borrow, [INFO] [stdout] 23 | | B: ?Sized + ToOwned>, [INFO] [stdout] | |_________________________________________________^ [INFO] [stdout] help: consider further restricting the associated type [INFO] [stdout] | [INFO] [stdout] 55 | B: ?Sized + ToOwned>, <::Is as ToOwned>::Owned: Borrow [INFO] [stdout] | ++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `<::Is as alloc::borrow::ToOwned>::Owned: core::borrow::Borrow` is not satisfied [INFO] [stdout] --> src/borrow.rs:39:29 [INFO] [stdout] | [INFO] [stdout] 39 | B: ?Sized + ToOwned>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the trait `core::borrow::Borrow` is not implemented for `<::Is as alloc::borrow::ToOwned>::Owned` [INFO] [stdout] | [INFO] [stdout] help: consider further restricting the associated type [INFO] [stdout] | [INFO] [stdout] 39 | B: ?Sized + ToOwned>, <::Is as alloc::borrow::ToOwned>::Owned: core::borrow::Borrow [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `<::Is as alloc::borrow::ToOwned>::Owned: core::borrow::Borrow` is not satisfied [INFO] [stdout] --> src/borrow.rs:55:29 [INFO] [stdout] | [INFO] [stdout] 55 | B: ?Sized + ToOwned>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the trait `core::borrow::Borrow` is not implemented for `<::Is as alloc::borrow::ToOwned>::Owned` [INFO] [stdout] | [INFO] [stdout] help: consider further restricting the associated type [INFO] [stdout] | [INFO] [stdout] 55 | B: ?Sized + ToOwned>, <::Is as alloc::borrow::ToOwned>::Owned: core::borrow::Borrow [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `::Owned: core::borrow::Borrow` is not satisfied [INFO] [stdout] --> src/foreign/cow.rs:15:29 [INFO] [stdout] | [INFO] [stdout] 15 | B: ?Sized + ToOwned>, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ the trait `core::borrow::Borrow` is not implemented for `::Owned` [INFO] [stdout] | [INFO] [stdout] help: consider further restricting the associated type [INFO] [stdout] | [INFO] [stdout] 15 | B: ?Sized + ToOwned>, ::Owned: core::borrow::Borrow [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `<::Is as alloc::borrow::ToOwned>::Owned: core::borrow::Borrow` is not satisfied [INFO] [stdout] --> src/borrow.rs:41:18 [INFO] [stdout] | [INFO] [stdout] 41 | (**self).borrow_or_clone() [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `core::borrow::Borrow` is not implemented for `<::Is as alloc::borrow::ToOwned>::Owned` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `borrow::BorrowAsIs::borrow_or_clone` [INFO] [stdout] --> src/borrow.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | / fn borrow_or_clone(&self) -> IsCow<'_, B> [INFO] [stdout] 21 | | where [INFO] [stdout] 22 | | Self::Is: Borrow, [INFO] [stdout] 23 | | B: ?Sized + ToOwned>, [INFO] [stdout] | |_________________________________________________^ [INFO] [stdout] help: consider further restricting the associated type [INFO] [stdout] | [INFO] [stdout] 39 | B: ?Sized + ToOwned>, <::Is as alloc::borrow::ToOwned>::Owned: core::borrow::Borrow [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `<::Is as alloc::borrow::ToOwned>::Owned: core::borrow::Borrow` is not satisfied [INFO] [stdout] --> src/borrow.rs:57:18 [INFO] [stdout] | [INFO] [stdout] 57 | (**self).borrow_or_clone() [INFO] [stdout] | ^^^^^^^^^^^^^^^ the trait `core::borrow::Borrow` is not implemented for `<::Is as alloc::borrow::ToOwned>::Owned` [INFO] [stdout] | [INFO] [stdout] note: required by a bound in `borrow::BorrowAsIs::borrow_or_clone` [INFO] [stdout] --> src/borrow.rs:20:5 [INFO] [stdout] | [INFO] [stdout] 20 | / fn borrow_or_clone(&self) -> IsCow<'_, B> [INFO] [stdout] 21 | | where [INFO] [stdout] 22 | | Self::Is: Borrow, [INFO] [stdout] 23 | | B: ?Sized + ToOwned>, [INFO] [stdout] | |_________________________________________________^ [INFO] [stdout] help: consider further restricting the associated type [INFO] [stdout] | [INFO] [stdout] 55 | B: ?Sized + ToOwned>, <::Is as alloc::borrow::ToOwned>::Owned: core::borrow::Borrow [INFO] [stdout] | +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/foreign/cow.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 6 | impl BorrowAsIs for Cow<'_, T> [INFO] [stdout] | - found type parameter [INFO] [stdout] ... [INFO] [stdout] 12 | fn borrow_or_clone(&self) -> IsCow<'_, B> [INFO] [stdout] | - ------------ expected `IsCow<'_, B>` because of return type [INFO] [stdout] | | [INFO] [stdout] | expected type parameter [INFO] [stdout] ... [INFO] [stdout] 17 | (**self).borrow_or_clone() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `IsCow<'_, B>`, found `IsCow<'_, T>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `IsCow<'_, B>` [INFO] [stdout] found enum `IsCow<'_, T>` [INFO] [stdout] = note: a type parameter was expected, but a different one was found; you might be missing a type parameter or trait bound [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/foreign/cow.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 6 | impl BorrowAsIs for Cow<'_, T> [INFO] [stdout] | - found type parameter [INFO] [stdout] ... [INFO] [stdout] 12 | fn borrow_or_clone(&self) -> IsCow<'_, B> [INFO] [stdout] | - ------------ expected `is_cow::IsCow<'_, B>` because of return type [INFO] [stdout] | | [INFO] [stdout] | expected type parameter [INFO] [stdout] ... [INFO] [stdout] 17 | (**self).borrow_or_clone() [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `IsCow<'_, B>`, found `IsCow<'_, T>` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `is_cow::IsCow<'_, B>` [INFO] [stdout] found enum `is_cow::IsCow<'_, T>` [INFO] [stdout] = note: a type parameter was expected, but a different one was found; you might be missing a type parameter or trait bound [INFO] [stdout] = note: for more information, visit https://doc.rust-lang.org/book/ch10-02-traits.html#traits-as-parameters [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `as-is` (lib) due to 6 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0277, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `as-is` (lib test) due to 6 previous errors [INFO] running `Command { std: "docker" "inspect" "0cc20670d2c319deb2bab362073e59d07ce0d75a61c2720c58dd0af47ce429f8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "0cc20670d2c319deb2bab362073e59d07ce0d75a61c2720c58dd0af47ce429f8", kill_on_drop: false }` [INFO] [stdout] 0cc20670d2c319deb2bab362073e59d07ce0d75a61c2720c58dd0af47ce429f8