func 0.1.0

A crate that helps creating colsures from function pointers
Documentation
Build #2006392 2025-04-17 06:35:02
# rustc version
rustc 1.88.0-nightly (78f2104e3 2025-04-16)# docs.rs version
docsrs 0.6.0 (ee9a3fe6 2025-03-28)# build log
[INFO] running `Command { std: "docker" "create" "-v" "/home/cratesfyi/workspace-builder/builds/func-0.1.0/target:/opt/rustwide/target:rw,Z" "-v" "/home/cratesfyi/workspace-builder/builds/func-0.1.0/source:/opt/rustwide/workdir:ro,Z" "-v" "/home/cratesfyi/workspace-builder/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/home/cratesfyi/workspace-builder/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\", \"-20250416-1.88.0-nightly-78f2104e3\", \"--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] 055b9409d0a46b1a7daa5683b74d56a73bb359d02049039701dd4f14f5fffc7a
[INFO] running `Command { std: "docker" "start" "-a" "055b9409d0a46b1a7daa5683b74d56a73bb359d02049039701dd4f14f5fffc7a", kill_on_drop: false }`
[INFO] [stderr] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
[INFO] [stderr]   --> src/lib.rs:95:44
[INFO] [stderr]    |
[INFO] [stderr] 95 |         self.captured == other.captured && self.function == other.function
[INFO] [stderr]    |                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: the address of the same function can vary between different codegen units
[INFO] [stderr]    = note: furthermore, different functions could have the same address after being merged together
[INFO] [stderr]    = note: for more information visit <https://doc.rust-lang.org/nightly/core/ptr/fn.fn_addr_eq.html>
[INFO] [stderr]    = note: `#[warn(unpredictable_function_pointer_comparisons)]` on by default
[INFO] [stderr] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint
[INFO] [stderr]    |
[INFO] [stderr] 95 -         self.captured == other.captured && self.function == other.function
[INFO] [stderr] 95 +         self.captured == other.captured && std::ptr::fn_addr_eq(self.function, other.function)
[INFO] [stderr]    |
[INFO] [stderr] 
[INFO] [stderr] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
[INFO] [stderr]    --> src/lib.rs:101:44
[INFO] [stderr]     |
[INFO] [stderr] 101 |         self.captured == other.captured && self.function == other.function
[INFO] [stderr]     |                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: the address of the same function can vary between different codegen units
[INFO] [stderr]     = note: furthermore, different functions could have the same address after being merged together
[INFO] [stderr]     = note: for more information visit <https://doc.rust-lang.org/nightly/core/ptr/fn.fn_addr_eq.html>
[INFO] [stderr] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint
[INFO] [stderr]     |
[INFO] [stderr] 101 -         self.captured == other.captured && self.function == other.function
[INFO] [stderr] 101 +         self.captured == other.captured && std::ptr::fn_addr_eq(self.function, other.function)
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: function pointer comparisons do not produce meaningful results since their addresses are not guaranteed to be unique
[INFO] [stderr]    --> src/lib.rs:107:44
[INFO] [stderr]     |
[INFO] [stderr] 107 |         self.captured == other.captured && self.function == other.function
[INFO] [stderr]     |                                            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |
[INFO] [stderr]     = note: the address of the same function can vary between different codegen units
[INFO] [stderr]     = note: furthermore, different functions could have the same address after being merged together
[INFO] [stderr]     = note: for more information visit <https://doc.rust-lang.org/nightly/core/ptr/fn.fn_addr_eq.html>
[INFO] [stderr] help: refactor your code, or use `std::ptr::fn_addr_eq` to suppress the lint
[INFO] [stderr]     |
[INFO] [stderr] 107 -         self.captured == other.captured && self.function == other.function
[INFO] [stderr] 107 +         self.captured == other.captured && std::ptr::fn_addr_eq(self.function, other.function)
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: `func` (lib) generated 3 warnings
[INFO] [stderr]     Scraping func v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]  Documenting func v0.1.0 (/opt/rustwide/workdir)
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.67s
[INFO] [stderr]    Generated /opt/rustwide/target/x86_64-unknown-linux-gnu/doc/func/index.html
[INFO] running `Command { std: "docker" "inspect" "055b9409d0a46b1a7daa5683b74d56a73bb359d02049039701dd4f14f5fffc7a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "055b9409d0a46b1a7daa5683b74d56a73bb359d02049039701dd4f14f5fffc7a", kill_on_drop: false }`
[INFO] [stdout] 055b9409d0a46b1a7daa5683b74d56a73bb359d02049039701dd4f14f5fffc7a