rt_vec 0.1.1

Runtime managed mutable borrowing from a vec.
Documentation
Build #2519818 2025-09-20 19:20:58

# rustc version rustc 1.92.0-nightly (0be8e1608 2025-09-19)

# docs.rs version docsrs 0.6.0 (f42173de 2025-09-12)

# build log [INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace/builds/rt_vec-0.1.1/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace/builds/rt_vec-0.1.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:e90291280db7d1fac5b66fc6dad9f9662629e7365a55743daf9bdf73ebc4ea79" "/opt/rustwide/cargo-home/bin/cargo" "+nightly" "rustdoc" "--lib" "-Zrustdoc-map" "--config" "build.rustdocflags=[\"--cfg\", \"docsrs\", \"-Z\", \"unstable-options\", \"--emit=invocation-specific\", \"--resource-suffix\", \"-20250919-1.92.0-nightly-0be8e1608\", \"--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] b35bae81b1ba42494d8d4f97e470009570d1f6697c536c8ff8caadcc15af52fc [INFO] running `Command { std: "docker" "start" "-a" "b35bae81b1ba42494d8d4f97e470009570d1f6697c536c8ff8caadcc15af52fc", kill_on_drop: false }` [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/rt_vec.rs:217:19 [INFO] [stderr] | [INFO] [stderr] 217 | pub fn borrow(&self, index: usize) -> Ref<V> { [INFO] [stderr] | ^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 217 | pub fn borrow(&self, index: usize) -> Ref<'_, V> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/rt_vec.rs:230:23 [INFO] [stderr] | [INFO] [stderr] 230 | pub fn try_borrow(&self, index: usize) -> Result<Ref<V>, BorrowFail> { [INFO] [stderr] | ^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 230 | pub fn try_borrow(&self, index: usize) -> Result<Ref<'_, V>, BorrowFail> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/rt_vec.rs:246:23 [INFO] [stderr] | [INFO] [stderr] 246 | pub fn borrow_mut(&self, index: usize) -> RefMut<V> { [INFO] [stderr] | ^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 246 | pub fn borrow_mut(&self, index: usize) -> RefMut<'_, V> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/rt_vec.rs:259:27 [INFO] [stderr] | [INFO] [stderr] 259 | pub fn try_borrow_mut(&self, index: usize) -> Result<RefMut<V>, BorrowFail> { [INFO] [stderr] | ^^^^^ ^^^^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 259 | pub fn try_borrow_mut(&self, index: usize) -> Result<RefMut<'_, V>, BorrowFail> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stderr] --> src/rt_vec.rs:283:16 [INFO] [stderr] | [INFO] [stderr] 283 | pub fn get(&self, index: usize) -> Option<Ref<V>> { [INFO] [stderr] | ^^^^^ ^^^^^^ the same lifetime is hidden here [INFO] [stderr] | | [INFO] [stderr] | the lifetime is elided here [INFO] [stderr] | [INFO] [stderr] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stderr] help: use `'_` for type paths [INFO] [stderr] | [INFO] [stderr] 283 | pub fn get(&self, index: usize) -> Option<Ref<'_, V>> { [INFO] [stderr] | +++ [INFO] [stderr] [INFO] [stderr] warning: `rt_vec` (lib) generated 5 warnings (run `cargo fix --lib -p rt_vec` to apply 5 suggestions) [INFO] [stderr] Scraping rt_vec v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Documenting rt_vec v0.1.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.65s [INFO] [stderr] Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/rt_vec/index.html [INFO] running `Command { std: "docker" "inspect" "b35bae81b1ba42494d8d4f97e470009570d1f6697c536c8ff8caadcc15af52fc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b35bae81b1ba42494d8d4f97e470009570d1f6697c536c8ff8caadcc15af52fc", kill_on_drop: false }` [INFO] [stdout] b35bae81b1ba42494d8d4f97e470009570d1f6697c536c8ff8caadcc15af52fc