git-discover 0.13.1

Please use `gix-<thiscrate>` instead ('git' -> 'gix')
Documentation
Build #2045015 2025-04-27 01:50:41

Build failed. If you want to re-trigger a documentation build, you can do it here. You can find more information on docs.rs builds documentation on the builds page.

# rustc version
rustc 1.88.0-nightly (10fa3c449 2025-04-26)# docs.rs version
docsrs 0.6.0 (ee9a3fe6 2025-03-28)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/git-discover-0.13.1/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/git-discover-0.13.1/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "DOCS_RS=1" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "6442450944" "--cpus" "6" "--user" "1001:1001" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20250426-1.88.0-nightly-10fa3c449\", \"--static-root-path\", \"/-/rustdoc.static/\", \"--cap-lints\", \"warn\", \"--extern-html-root-takes-precedence\"]" "--offline" "-Zunstable-options" "--config=doc.extern-map.registries.crates-io=\"https://docs.rs/{pkg_name}/{version}/x86_64-unknown-linux-gnu\"" "-Zrustdoc-scrape-examples" "-j6" "--target" "x86_64-unknown-linux-gnu", 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] d5d1087c14524ba9b84640a15921e344d732e27336dae807ed4bc815e717456b
[INFO] running `Command { std: "docker" "start" "-a" "d5d1087c14524ba9b84640a15921e344d732e27336dae807ed4bc815e717456b", kill_on_drop: false }`
[INFO] [stderr] warning: target filter specified, but no targets matched; this is a no-op
[INFO] [stderr]     Checking git-ref v0.24.1
[INFO] [stderr] error[E0277]: the trait bound `BStr: AsRef<[_; 0]>` is not satisfied
[INFO] [stderr]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/git-ref-0.24.1/src/store/packed/find.rs:95:52
[INFO] [stderr]    |
[INFO] [stderr] 95 |                 .map(|(_rest, r)| r.name.as_bstr().as_ref())
[INFO] [stderr]    |                                                    ^^^^^^ the trait `AsRef<[_; 0]>` is not implemented for `BStr`
[INFO] [stderr]    |
[INFO] [stderr]    = help: the following other types implement trait `AsRef<T>`:
[INFO] [stderr]              `BStr` implements `AsRef<BStr>`
[INFO] [stderr]              `BStr` implements `AsRef<[u8]>`
[INFO] [stderr] 
[INFO] [stderr] error[E0277]: the trait bound `BStr: AsRef<[_; 0]>` is not satisfied
[INFO] [stderr]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/git-ref-0.24.1/src/store/packed/find.rs:91:43
[INFO] [stderr]    |
[INFO] [stderr] 91 |         a.binary_search_by_key(&full_name.as_ref(), |b: &u8| {
[INFO] [stderr]    |                                           ^^^^^^ the trait `AsRef<[_; 0]>` is not implemented for `BStr`
[INFO] [stderr]    |
[INFO] [stderr]    = help: the following other types implement trait `AsRef<T>`:
[INFO] [stderr]              `BStr` implements `AsRef<BStr>`
[INFO] [stderr]              `BStr` implements `AsRef<[u8]>`
[INFO] [stderr] 
[INFO] [stderr] error[E0283]: type annotations needed
[INFO] [stderr]     --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/git-ref-0.24.1/src/fullname.rs:109:43
[INFO] [stderr]      |
[INFO] [stderr] 109  |             if let Some(shortened) = name.strip_prefix(category.prefix().as_ref()) {
[INFO] [stderr]      |                                           ^^^^^^^^^^^^ -------------------------- type must be known at this point
[INFO] [stderr]      |                                           |
[INFO] [stderr]      |                                           cannot infer type of the type parameter `P` declared on the method `strip_prefix`
[INFO] [stderr]      |
[INFO] [stderr]      = note: cannot satisfy `_: SlicePattern`
[INFO] [stderr]      = help: the following types implement trait `SlicePattern`:
[INFO] [stderr]                [T; N]
[INFO] [stderr]                [T]
[INFO] [stderr] note: required by a bound in `core::slice::<impl [T]>::strip_prefix`
[INFO] [stderr]     --> /opt/rustwide/rustup-home/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/slice/mod.rs:2626:28
[INFO] [stderr]      |
[INFO] [stderr] 2626 |     pub fn strip_prefix<P: SlicePattern<Item = T> + ?Sized>(&self, prefix: &P) -> Option<&[T]>
[INFO] [stderr]      |                            ^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `core::slice::<impl [T]>::strip_prefix`
[INFO] [stderr] help: consider specifying the generic argument
[INFO] [stderr]      |
[INFO] [stderr] 109  |             if let Some(shortened) = name.strip_prefix::<P>(category.prefix().as_ref()) {
[INFO] [stderr]      |                                                       +++++
[INFO] [stderr] 
[INFO] [stderr] error[E0283]: type annotations needed
[INFO] [stderr]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/git-ref-0.24.1/src/fullname.rs:109:43
[INFO] [stderr]     |
[INFO] [stderr] 109 |             if let Some(shortened) = name.strip_prefix(category.prefix().as_ref()) {
[INFO] [stderr]     |                                           ^^^^^^^^^^^^                   ------ type must be known at this point
[INFO] [stderr]     |                                           |
[INFO] [stderr]     |                                           cannot infer type of the type parameter `P` declared on the method `strip_prefix`
[INFO] [stderr]     |
[INFO] [stderr]     = note: multiple `impl`s satisfying `BStr: AsRef<_>` found in the `bstr` crate:
[INFO] [stderr]             - impl AsRef<BStr> for BStr;
[INFO] [stderr]             - impl AsRef<[u8]> for BStr;
[INFO] [stderr] help: consider specifying the generic argument
[INFO] [stderr]     |
[INFO] [stderr] 109 |             if let Some(shortened) = name.strip_prefix::<P>(category.prefix().as_ref()) {
[INFO] [stderr]     |                                                       +++++
[INFO] [stderr] 
[INFO] [stderr] error[E0283]: type annotations needed
[INFO] [stderr]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/git-ref-0.24.1/src/fullname.rs:132:46
[INFO] [stderr]     |
[INFO] [stderr] 132 |         } else if let Some(shortened) = name.strip_prefix(Category::MainPseudoRef.prefix().as_ref()) {
[INFO] [stderr]     |                                              ^^^^^^^^^^^^                                  ------ type must be known at this point
[INFO] [stderr]     |                                              |
[INFO] [stderr]     |                                              cannot infer type of the type parameter `P` declared on the method `strip_prefix`
[INFO] [stderr]     |
[INFO] [stderr]     = note: multiple `impl`s satisfying `BStr: AsRef<_>` found in the `bstr` crate:
[INFO] [stderr]             - impl AsRef<BStr> for BStr;
[INFO] [stderr]             - impl AsRef<[u8]> for BStr;
[INFO] [stderr] help: consider specifying the generic argument
[INFO] [stderr]     |
[INFO] [stderr] 132 |         } else if let Some(shortened) = name.strip_prefix::<P>(Category::MainPseudoRef.prefix().as_ref()) {
[INFO] [stderr]     |                                                          +++++
[INFO] [stderr] 
[INFO] [stderr] error[E0283]: type annotations needed
[INFO] [stderr]    --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/git-ref-0.24.1/src/fullname.rs:139:18
[INFO] [stderr]     |
[INFO] [stderr] 139 |             name.strip_prefix(Category::LinkedPseudoRef { name: "".into() }.prefix().as_ref())
[INFO] [stderr]     |                  ^^^^^^^^^^^^                                                        ------ type must be known at this point
[INFO] [stderr]     |                  |
[INFO] [stderr]     |                  cannot infer type of the type parameter `P` declared on the method `strip_prefix`
[INFO] [stderr]     |
[INFO] [stderr]     = note: multiple `impl`s satisfying `BStr: AsRef<_>` found in the `bstr` crate:
[INFO] [stderr]             - impl AsRef<BStr> for BStr;
[INFO] [stderr]             - impl AsRef<[u8]> for BStr;
[INFO] [stderr] help: consider specifying the generic argument
[INFO] [stderr]     |
[INFO] [stderr] 139 |             name.strip_prefix::<P>(Category::LinkedPseudoRef { name: "".into() }.prefix().as_ref())
[INFO] [stderr]     |                              +++++
[INFO] [stderr] 
[INFO] [stderr] error[E0283]: type annotations needed
[INFO] [stderr]     --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/git-ref-0.24.1/src/raw.rs:76:18
[INFO] [stderr]      |
[INFO] [stderr] 76   |                 .strip_prefix(namespace.0.as_bstr().as_ref())
[INFO] [stderr]      |                  ^^^^^^^^^^^^ ------------------------------ type must be known at this point
[INFO] [stderr]      |                  |
[INFO] [stderr]      |                  cannot infer type of the type parameter `P` declared on the method `strip_prefix`
[INFO] [stderr]      |
[INFO] [stderr]      = note: cannot satisfy `_: SlicePattern`
[INFO] [stderr]      = help: the following types implement trait `SlicePattern`:
[INFO] [stderr]                [T; N]
[INFO] [stderr]                [T]
[INFO] [stderr] note: required by a bound in `core::slice::<impl [T]>::strip_prefix`
[INFO] [stderr]     --> /opt/rustwide/rustup-home/toolchains/nightly-x86_64-unknown-linux-gnu/lib/rustlib/src/rust/library/core/src/slice/mod.rs:2626:28
[INFO] [stderr]      |
[INFO] [stderr] 2626 |     pub fn strip_prefix<P: SlicePattern<Item = T> + ?Sized>(&self, prefix: &P) -> Option<&[T]>
[INFO] [stderr]      |                            ^^^^^^^^^^^^^^^^^^^^^^ required by this bound in `core::slice::<impl [T]>::strip_prefix`
[INFO] [stderr] help: consider specifying the generic argument
[INFO] [stderr]      |
[INFO] [stderr] 76   |                 .strip_prefix::<P>(namespace.0.as_bstr().as_ref())
[INFO] [stderr]      |                              +++++
[INFO] [stderr] 
[INFO] [stderr] error[E0283]: type annotations needed
[INFO] [stderr]   --> /opt/rustwide/cargo-home/registry/src/index.crates.io-1949cf8c6b5b557f/git-ref-0.24.1/src/raw.rs:76:18
[INFO] [stderr]    |
[INFO] [stderr] 76 |                 .strip_prefix(namespace.0.as_bstr().as_ref())
[INFO] [stderr]    |                  ^^^^^^^^^^^^                       ------ type must be known at this point
[INFO] [stderr]    |                  |
[INFO] [stderr]    |                  cannot infer type of the type parameter `P` declared on the method `strip_prefix`
[INFO] [stderr]    |
[INFO] [stderr]    = note: multiple `impl`s satisfying `BStr: AsRef<_>` found in the `bstr` crate:
[INFO] [stderr]            - impl AsRef<BStr> for BStr;
[INFO] [stderr]            - impl AsRef<[u8]> for BStr;
[INFO] [stderr] help: consider specifying the generic argument
[INFO] [stderr]    |
[INFO] [stderr] 76 |                 .strip_prefix::<P>(namespace.0.as_bstr().as_ref())
[INFO] [stderr]    |                              +++++
[INFO] [stderr] 
[INFO] [stderr] Some errors have detailed explanations: E0277, E0283.
[INFO] [stderr] For more information about an error, try `rustc --explain E0277`.
[INFO] [stderr] error: could not compile `git-ref` (lib) due to 8 previous errors
[INFO] running `Command { std: "docker" "inspect" "d5d1087c14524ba9b84640a15921e344d732e27336dae807ed4bc815e717456b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d5d1087c14524ba9b84640a15921e344d732e27336dae807ed4bc815e717456b", kill_on_drop: false }`
[INFO] [stdout] d5d1087c14524ba9b84640a15921e344d732e27336dae807ed4bc815e717456b