[INFO] fetching crate git-discover 0.13.1... [INFO] testing git-discover-0.13.1 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate git-discover 0.13.1 into /workspace/builds/worker-2-tc1/source [INFO] started tweaking crates.io crate git-discover 0.13.1 [INFO] finished tweaking crates.io crate git-discover 0.13.1 [INFO] tweaked toml for crates.io crate git-discover 0.13.1 written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate git-discover 0.13.1 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 124 packages to latest compatible versions [INFO] [stderr] Adding defer v0.1.0 (available: v0.2.1) [INFO] [stderr] Adding serial_test v1.0.0 (available: v3.2.0) [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.16) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded git-path v0.7.2 [INFO] [stderr] Downloaded serial_test_derive v1.0.0 [INFO] [stderr] Downloaded serial_test v1.0.0 [INFO] [stderr] Downloaded git-validate v0.7.3 [INFO] [stderr] Downloaded git-tempfile v3.0.3 [INFO] [stderr] Downloaded defer v0.1.0 [INFO] [stderr] Downloaded git-actor v0.17.2 [INFO] [stderr] Downloaded git-sec v0.6.3 [INFO] [stderr] Downloaded git-lock v3.0.3 [INFO] [stderr] Downloaded btoi v0.4.3 [INFO] [stderr] Downloaded git-features v0.26.5 [INFO] [stderr] Downloaded git-date v0.4.3 [INFO] [stderr] Downloaded git-object v0.26.2 [INFO] [stderr] Downloaded git-ref v0.24.1 [INFO] [stderr] Downloaded git-hash v0.10.3 [INFO] [stderr] Downloaded windows v0.43.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] e49cf875aa0ebf4184cf1500c5524af42910b5895dd04c9c6daba206e4721684 [INFO] running `Command { std: "docker" "start" "-a" "e49cf875aa0ebf4184cf1500c5524af42910b5895dd04c9c6daba206e4721684", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "e49cf875aa0ebf4184cf1500c5524af42910b5895dd04c9c6daba206e4721684", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "e49cf875aa0ebf4184cf1500c5524af42910b5895dd04c9c6daba206e4721684", kill_on_drop: false }` [INFO] [stdout] e49cf875aa0ebf4184cf1500c5524af42910b5895dd04c9c6daba206e4721684 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 50b3b510611c77d9cab49ac1b1aef0d1e128afa2e8a6a5c581e61b8419938951 [INFO] running `Command { std: "docker" "start" "-a" "50b3b510611c77d9cab49ac1b1aef0d1e128afa2e8a6a5c581e61b8419938951", kill_on_drop: false }` [INFO] [stderr] Compiling regex-automata v0.4.10 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Compiling smallvec v1.15.1 [INFO] [stderr] Compiling time-macros v0.2.23 [INFO] [stderr] Compiling signal-hook v0.3.18 [INFO] [stderr] Compiling num_threads v0.1.7 [INFO] [stderr] Compiling hashbrown v0.14.5 [INFO] [stderr] Compiling nom v7.1.3 [INFO] [stderr] Compiling git-hash v0.10.3 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Compiling sha1_smol v1.0.1 [INFO] [stderr] Compiling dashmap v5.5.3 [INFO] [stderr] Compiling fastrand v1.9.0 [INFO] [stderr] Compiling memmap2 v0.5.10 [INFO] [stderr] Compiling git-features v0.26.5 [INFO] [stderr] Compiling git-sec v0.6.3 [INFO] [stderr] Compiling git-tempfile v3.0.3 [INFO] [stderr] Compiling btoi v0.4.3 [INFO] [stderr] Compiling time v0.3.42 [INFO] [stderr] Compiling git-lock v3.0.3 [INFO] [stderr] Compiling bstr v1.12.0 [INFO] [stderr] Compiling git-validate v0.7.3 [INFO] [stderr] Compiling git-path v0.7.2 [INFO] [stderr] Compiling git-date v0.4.3 [INFO] [stderr] Compiling git-actor v0.17.2 [INFO] [stderr] Compiling git-object v0.26.2 [INFO] [stderr] Compiling git-ref v0.24.1 [INFO] [stdout] error[E0277]: the trait bound `BStr: AsRef<[_; 0]>` is not satisfied [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/git-ref-0.24.1/src/store/packed/find.rs:95:52 [INFO] [stdout] | [INFO] [stdout] 95 | .map(|(_rest, r)| r.name.as_bstr().as_ref()) [INFO] [stdout] | ^^^^^^ the trait `AsRef<[_; 0]>` is not implemented for `BStr` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `AsRef`: [INFO] [stdout] `BStr` implements `AsRef` [INFO] [stdout] `BStr` implements `AsRef<[u8]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `BStr: AsRef<[_; 0]>` is not satisfied [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/git-ref-0.24.1/src/store/packed/find.rs:91:43 [INFO] [stdout] | [INFO] [stdout] 91 | a.binary_search_by_key(&full_name.as_ref(), |b: &u8| { [INFO] [stdout] | ^^^^^^ the trait `AsRef<[_; 0]>` is not implemented for `BStr` [INFO] [stdout] | [INFO] [stdout] = help: the following other types implement trait `AsRef`: [INFO] [stdout] `BStr` implements `AsRef` [INFO] [stdout] `BStr` implements `AsRef<[u8]>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/git-ref-0.24.1/src/fullname.rs:109:43 [INFO] [stdout] | [INFO] [stdout] 109 | if let Some(shortened) = name.strip_prefix(category.prefix().as_ref()) { [INFO] [stdout] | ^^^^^^^^^^^^ -------------------------- type must be known at this point [INFO] [stdout] | | [INFO] [stdout] | cannot infer type of the type parameter `P` declared on the method `strip_prefix` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: SlicePattern` [INFO] [stdout] = help: the following types implement trait `SlicePattern`: [INFO] [stdout] [T; N] [INFO] [stdout] [T] [INFO] [stdout] note: required by a bound in `core::slice::::strip_prefix` [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/slice/mod.rs:2676:5 [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 109 | if let Some(shortened) = name.strip_prefix::

(category.prefix().as_ref()) { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/git-ref-0.24.1/src/fullname.rs:109:43 [INFO] [stdout] | [INFO] [stdout] 109 | if let Some(shortened) = name.strip_prefix(category.prefix().as_ref()) { [INFO] [stdout] | ^^^^^^^^^^^^ ------ type must be known at this point [INFO] [stdout] | | [INFO] [stdout] | cannot infer type of the type parameter `P` declared on the method `strip_prefix` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `BStr: AsRef<_>` found in the `bstr` crate: [INFO] [stdout] - impl AsRef for BStr; [INFO] [stdout] - impl AsRef<[u8]> for BStr; [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 109 | if let Some(shortened) = name.strip_prefix::

(category.prefix().as_ref()) { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/git-ref-0.24.1/src/fullname.rs:132:46 [INFO] [stdout] | [INFO] [stdout] 132 | } else if let Some(shortened) = name.strip_prefix(Category::MainPseudoRef.prefix().as_ref()) { [INFO] [stdout] | ^^^^^^^^^^^^ ------ type must be known at this point [INFO] [stdout] | | [INFO] [stdout] | cannot infer type of the type parameter `P` declared on the method `strip_prefix` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `BStr: AsRef<_>` found in the `bstr` crate: [INFO] [stdout] - impl AsRef for BStr; [INFO] [stdout] - impl AsRef<[u8]> for BStr; [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 132 | } else if let Some(shortened) = name.strip_prefix::

(Category::MainPseudoRef.prefix().as_ref()) { [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/git-ref-0.24.1/src/fullname.rs:139:18 [INFO] [stdout] | [INFO] [stdout] 139 | name.strip_prefix(Category::LinkedPseudoRef { name: "".into() }.prefix().as_ref()) [INFO] [stdout] | ^^^^^^^^^^^^ ------ type must be known at this point [INFO] [stdout] | | [INFO] [stdout] | cannot infer type of the type parameter `P` declared on the method `strip_prefix` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `BStr: AsRef<_>` found in the `bstr` crate: [INFO] [stdout] - impl AsRef for BStr; [INFO] [stdout] - impl AsRef<[u8]> for BStr; [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 139 | name.strip_prefix::

(Category::LinkedPseudoRef { name: "".into() }.prefix().as_ref()) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/git-ref-0.24.1/src/raw.rs:76:18 [INFO] [stdout] | [INFO] [stdout] 76 | .strip_prefix(namespace.0.as_bstr().as_ref()) [INFO] [stdout] | ^^^^^^^^^^^^ ------------------------------ type must be known at this point [INFO] [stdout] | | [INFO] [stdout] | cannot infer type of the type parameter `P` declared on the method `strip_prefix` [INFO] [stdout] | [INFO] [stdout] = note: cannot satisfy `_: SlicePattern` [INFO] [stdout] = help: the following types implement trait `SlicePattern`: [INFO] [stdout] [T; N] [INFO] [stdout] [T] [INFO] [stdout] note: required by a bound in `core::slice::::strip_prefix` [INFO] [stdout] --> /rustc/cdb45c87e2cd43495379f7e867e3cc15dcee9f93/library/core/src/slice/mod.rs:2676:5 [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 76 | .strip_prefix::

(namespace.0.as_bstr().as_ref()) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0283]: type annotations needed [INFO] [stdout] --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/git-ref-0.24.1/src/raw.rs:76:18 [INFO] [stdout] | [INFO] [stdout] 76 | .strip_prefix(namespace.0.as_bstr().as_ref()) [INFO] [stdout] | ^^^^^^^^^^^^ ------ type must be known at this point [INFO] [stdout] | | [INFO] [stdout] | cannot infer type of the type parameter `P` declared on the method `strip_prefix` [INFO] [stdout] | [INFO] [stdout] = note: multiple `impl`s satisfying `BStr: AsRef<_>` found in the `bstr` crate: [INFO] [stdout] - impl AsRef for BStr; [INFO] [stdout] - impl AsRef<[u8]> for BStr; [INFO] [stdout] help: consider specifying the generic argument [INFO] [stdout] | [INFO] [stdout] 76 | .strip_prefix::

(namespace.0.as_bstr().as_ref()) [INFO] [stdout] | +++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0283. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `git-ref` (lib) due to 8 previous errors [INFO] running `Command { std: "docker" "inspect" "50b3b510611c77d9cab49ac1b1aef0d1e128afa2e8a6a5c581e61b8419938951", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "50b3b510611c77d9cab49ac1b1aef0d1e128afa2e8a6a5c581e61b8419938951", kill_on_drop: false }` [INFO] [stdout] 50b3b510611c77d9cab49ac1b1aef0d1e128afa2e8a6a5c581e61b8419938951