[INFO] cloning repository https://github.com/dpl0a/type-aliasing-bug
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/dpl0a/type-aliasing-bug" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdpl0a%2Ftype-aliasing-bug", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdpl0a%2Ftype-aliasing-bug'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] 6461aafd9dd84548736c956d2dd0f0a09c16975f
[INFO] checking dpl0a/type-aliasing-bug against master#32cd9114712a24010b0583624dc52ac302194128 for pr-143717
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fdpl0a%2Ftype-aliasing-bug" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/dpl0a/type-aliasing-bug
[INFO] finished tweaking git repo https://github.com/dpl0a/type-aliasing-bug
[INFO] tweaked toml for git repo https://github.com/dpl0a/type-aliasing-bug written to /workspace/builds/worker-6-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/dpl0a/type-aliasing-bug on toolchain 32cd9114712a24010b0583624dc52ac302194128
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+32cd9114712a24010b0583624dc52ac302194128" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/dpl0a/type-aliasing-bug 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" "+32cd9114712a24010b0583624dc52ac302194128" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+32cd9114712a24010b0583624dc52ac302194128" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] dd78664d915e1bb58e1aaa1815ea23da0497d6ce2bcf904ee69a614ba8d676e9
[INFO] running `Command { std: "docker" "start" "-a" "dd78664d915e1bb58e1aaa1815ea23da0497d6ce2bcf904ee69a614ba8d676e9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "dd78664d915e1bb58e1aaa1815ea23da0497d6ce2bcf904ee69a614ba8d676e9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "dd78664d915e1bb58e1aaa1815ea23da0497d6ce2bcf904ee69a614ba8d676e9", kill_on_drop: false }`
[INFO] [stdout] dd78664d915e1bb58e1aaa1815ea23da0497d6ce2bcf904ee69a614ba8d676e9
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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" "+32cd9114712a24010b0583624dc52ac302194128" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 0b234d2038cf1fd64a61fdadd54b1174b9e8b9ed45b4507fb23649dd20f9221f
[INFO] running `Command { std: "docker" "start" "-a" "0b234d2038cf1fd64a61fdadd54b1174b9e8b9ed45b4507fb23649dd20f9221f", kill_on_drop: false }`
[INFO] [stderr]     Checking type-aliasing-bug v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: field `t` is never read
[INFO] [stdout]  --> src/lib.rs:6:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | pub struct BarStruct<C: Cache> {
[INFO] [stdout]   |            --------- field in this struct
[INFO] [stdout] 6 |     t: C,
[INFO] [stdout]   |     ^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait `Whatever` is never used
[INFO] [stdout]   --> src/lib.rs:16:7
[INFO] [stdout]    |
[INFO] [stdout] 16 | trait Whatever {
[INFO] [stdout]    |       ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: enum `FooError` is never used
[INFO] [stdout]   --> src/lib.rs:36:6
[INFO] [stdout]    |
[INFO] [stdout] 36 | enum FooError {
[INFO] [stdout]    |      ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Checking foo v0.1.0 (/opt/rustwide/workdir/foo)
[INFO] [stdout] error[E0277]: the trait bound `type_aliasing_bug::BarStruct<type_aliasing_bug::FooStruct>: Whatever` is not satisfied
[INFO] [stdout]   --> src/lib.rs:58:27
[INFO] [stdout]    |
[INFO] [stdout] 58 |         assert_eq!(A::bar(foo), Err(FooError::One))
[INFO] [stdout]    |                    ------ ^^^ the trait `Whatever` is not implemented for `type_aliasing_bug::BarStruct<type_aliasing_bug::FooStruct>`
[INFO] [stdout]    |                    |
[INFO] [stdout]    |                    required by a bound introduced by this call
[INFO] [stdout]    |
[INFO] [stdout] note: there are multiple different versions of crate `type_aliasing_bug` in the dependency graph
[INFO] [stdout]   --> src/lib.rs:16:1
[INFO] [stdout]    |
[INFO] [stdout] 5  | pub struct BarStruct<C: Cache> {
[INFO] [stdout]    | ------------------------------ this type implements the required trait
[INFO] [stdout] ...
[INFO] [stdout] 16 | trait Whatever {
[INFO] [stdout]    | ^^^^^^^^^^^^^^ this is the required trait
[INFO] [stdout] ...
[INFO] [stdout] 44 |     use foo::TestBar;
[INFO] [stdout]    |         --- one version of crate `type_aliasing_bug` used here, as a dependency of crate `foo`
[INFO] [stdout]    |
[INFO] [stdout]   ::: /opt/rustwide/workdir/src/lib.rs:1:1
[INFO] [stdout]    |
[INFO] [stdout] 1  | pub trait Cache {
[INFO] [stdout]    | --------------- this is the found trait
[INFO] [stdout] ...
[INFO] [stdout] 5  | pub struct BarStruct<C: Cache> {
[INFO] [stdout]    | ------------------------------ this type doesn't implement the required trait
[INFO] [stdout]    = note: two types coming from two different versions of the same crate are different types even if they look the same
[INFO] [stdout]    = help: you can use `cargo tree` to explore your dependency tree
[INFO] [stdout] note: required by a bound in `A::bar`
[INFO] [stdout]   --> src/lib.rs:51:27
[INFO] [stdout]    |
[INFO] [stdout] 51 |             pub fn bar<T: Whatever>(t: T) -> Result<usize, FooError> {
[INFO] [stdout]    |                           ^^^^^^^^ required by this bound in `A::bar`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0277`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `type-aliasing-bug` (lib test) due to 1 previous error
[INFO] running `Command { std: "docker" "inspect" "0b234d2038cf1fd64a61fdadd54b1174b9e8b9ed45b4507fb23649dd20f9221f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0b234d2038cf1fd64a61fdadd54b1174b9e8b9ed45b4507fb23649dd20f9221f", kill_on_drop: false }`
[INFO] [stdout] 0b234d2038cf1fd64a61fdadd54b1174b9e8b9ed45b4507fb23649dd20f9221f
