[INFO] fetching crate annoy-rs 0.1.0... [INFO] testing annoy-rs-0.1.0 against try#8de4c7234dd9b97c9d76b58671343fdbbc9a433e+target=x86_64-unknown-linux-musl for musl_upgrade_1_2_5_with_libc_patch_0 [INFO] extracting crate annoy-rs 0.1.0 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate annoy-rs 0.1.0 [INFO] finished tweaking crates.io crate annoy-rs 0.1.0 [INFO] tweaked toml for crates.io crate annoy-rs 0.1.0 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate annoy-rs 0.1.0 on toolchain 8de4c7234dd9b97c9d76b58671343fdbbc9a433e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating crates.io index [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Locking 23 packages to latest compatible versions [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 397ce30749e8a3b73382e81882b044bffaefc3297200bba4634a625c789fbcea [INFO] running `Command { std: "docker" "start" "-a" "397ce30749e8a3b73382e81882b044bffaefc3297200bba4634a625c789fbcea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "397ce30749e8a3b73382e81882b044bffaefc3297200bba4634a625c789fbcea", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "397ce30749e8a3b73382e81882b044bffaefc3297200bba4634a625c789fbcea", kill_on_drop: false }` [INFO] [stdout] 397ce30749e8a3b73382e81882b044bffaefc3297200bba4634a625c789fbcea [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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "build" "--frozen" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 7b5b4a63b0845796b734ceff9d57c9641cd35f175ebd92c683bfd1a91552c1bb [INFO] running `Command { std: "docker" "start" "-a" "7b5b4a63b0845796b734ceff9d57c9641cd35f175ebd92c683bfd1a91552c1bb", kill_on_drop: false }` [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling memmap2 v0.9.5 [INFO] [stderr] Compiling annoy-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: dropping unsupported crate type `cdylib` for target `x86_64-unknown-linux-musl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hashbrown::HashSet` [INFO] [stdout] --> src/types/serving/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use hashbrown::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / ffi_fn! { [INFO] [stdout] 14 | | fn load_annoy_index(path: *const c_char, dimension: i32, index_type: u8) -> *const AnnoyIndex { [INFO] [stdout] 15 | | let result = load_annoy_index_inner(path, dimension, index_type); [INFO] [stdout] 16 | | return match result { [INFO] [stdout] ... | [INFO] [stdout] 21 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(missing_abi)]` on by default [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | / ffi_fn! { [INFO] [stdout] 36 | | fn free_annoy_index(index: *const AnnoyIndex) { [INFO] [stdout] 37 | | unsafe { Box::from_raw(index as *mut AnnoyIndex); } [INFO] [stdout] 38 | | } [INFO] [stdout] 39 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | / ffi_fn! { [INFO] [stdout] 42 | | fn get_dimension(index_ptr: *const AnnoyIndex) -> i32 { [INFO] [stdout] 43 | | let index = unsafe { &*index_ptr }; [INFO] [stdout] 44 | | return index.dimension as i32; [INFO] [stdout] 45 | | } [INFO] [stdout] 46 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | / ffi_fn! { [INFO] [stdout] 49 | | fn get_size(index_ptr: *const AnnoyIndex) -> u64 { [INFO] [stdout] 50 | | let index = unsafe { &*index_ptr }; [INFO] [stdout] 51 | | return index.size as u64; [INFO] [stdout] 52 | | } [INFO] [stdout] 53 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:55:1 [INFO] [stdout] | [INFO] [stdout] 55 | / ffi_fn! { [INFO] [stdout] 56 | | fn get_item_vector(index_ptr: *const AnnoyIndex, item_index: u64, item_vector: *mut f32){ [INFO] [stdout] 57 | | let index = unsafe{&*index_ptr}; [INFO] [stdout] 58 | | let item_vec = index.get_item_vector(item_index); [INFO] [stdout] ... | [INFO] [stdout] 62 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | / ffi_fn! { [INFO] [stdout] 65 | | fn get_nearest( [INFO] [stdout] 66 | | index_ptr: *const AnnoyIndex, [INFO] [stdout] 67 | | query_vector_ptr: *const f32, [INFO] [stdout] ... | [INFO] [stdout] 77 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:79:1 [INFO] [stdout] | [INFO] [stdout] 79 | / ffi_fn! { [INFO] [stdout] 80 | | fn get_nearest_to_item( [INFO] [stdout] 81 | | index_ptr: *const AnnoyIndex, [INFO] [stdout] 82 | | item_index: u64, [INFO] [stdout] ... | [INFO] [stdout] 92 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:94:1 [INFO] [stdout] | [INFO] [stdout] 94 | / ffi_fn! { [INFO] [stdout] 95 | | fn free_search_result(search_result_ptr: *const AnnoyIndexSearchResult){ [INFO] [stdout] 96 | | unsafe { Box::from_raw(search_result_ptr as *mut AnnoyIndexSearchResult); } [INFO] [stdout] 97 | | } [INFO] [stdout] 98 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:100:1 [INFO] [stdout] | [INFO] [stdout] 100 | / ffi_fn! { [INFO] [stdout] 101 | | fn get_result_count(search_result_ptr: *const AnnoyIndexSearchResult) -> u64{ [INFO] [stdout] 102 | | let search_result = unsafe{&*search_result_ptr}; [INFO] [stdout] 103 | | return search_result.count as u64; [INFO] [stdout] 104 | | } [INFO] [stdout] 105 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:107:1 [INFO] [stdout] | [INFO] [stdout] 107 | / ffi_fn! { [INFO] [stdout] 108 | | fn get_id_list(search_result_ptr: *const AnnoyIndexSearchResult)->*const u64{ [INFO] [stdout] 109 | | let search_result = unsafe{&*search_result_ptr}; [INFO] [stdout] 110 | | return search_result.id_list.as_ptr(); [INFO] [stdout] 111 | | } [INFO] [stdout] 112 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:114:1 [INFO] [stdout] | [INFO] [stdout] 114 | / ffi_fn! { [INFO] [stdout] 115 | | fn get_distance_list(search_result_ptr: *const AnnoyIndexSearchResult)->*const f32{ [INFO] [stdout] 116 | | let search_result = unsafe{&*search_result_ptr}; [INFO] [stdout] 117 | | return search_result.distance_list.as_ptr(); [INFO] [stdout] 118 | | } [INFO] [stdout] 119 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `mmap` and `id` are never read [INFO] [stdout] --> src/types/node.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 7 | pub mmap: Rc, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | pub id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/c_ffi/mod.rs:37:18 [INFO] [stdout] | [INFO] [stdout] 37 | unsafe { Box::from_raw(index as *mut AnnoyIndex); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 37 | unsafe { let _ = Box::from_raw(index as *mut AnnoyIndex); } [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/c_ffi/mod.rs:96:18 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { Box::from_raw(search_result_ptr as *mut AnnoyIndexSearchResult); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { let _ = Box::from_raw(search_result_ptr as *mut AnnoyIndexSearchResult); } [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.65s [INFO] running `Command { std: "docker" "inspect" "7b5b4a63b0845796b734ceff9d57c9641cd35f175ebd92c683bfd1a91552c1bb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b5b4a63b0845796b734ceff9d57c9641cd35f175ebd92c683bfd1a91552c1bb", kill_on_drop: false }` [INFO] [stdout] 7b5b4a63b0845796b734ceff9d57c9641cd35f175ebd92c683bfd1a91552c1bb [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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--no-run" "--message-format=json" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] ed1ed8e684cbadb8c6f23a6c82d3c545204c8dcd8e54cc0712e21233b00fb34f [INFO] running `Command { std: "docker" "start" "-a" "ed1ed8e684cbadb8c6f23a6c82d3c545204c8dcd8e54cc0712e21233b00fb34f", kill_on_drop: false }` [INFO] [stdout] warning: dropping unsupported crate type `cdylib` for target `x86_64-unknown-linux-musl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hashbrown::HashSet` [INFO] [stdout] --> src/types/serving/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use hashbrown::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / ffi_fn! { [INFO] [stdout] 14 | | fn load_annoy_index(path: *const c_char, dimension: i32, index_type: u8) -> *const AnnoyIndex { [INFO] [stdout] 15 | | let result = load_annoy_index_inner(path, dimension, index_type); [INFO] [stdout] 16 | | return match result { [INFO] [stdout] ... | [INFO] [stdout] 21 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(missing_abi)]` on by default [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | / ffi_fn! { [INFO] [stdout] 36 | | fn free_annoy_index(index: *const AnnoyIndex) { [INFO] [stdout] 37 | | unsafe { Box::from_raw(index as *mut AnnoyIndex); } [INFO] [stdout] 38 | | } [INFO] [stdout] 39 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | / ffi_fn! { [INFO] [stdout] 42 | | fn get_dimension(index_ptr: *const AnnoyIndex) -> i32 { [INFO] [stdout] 43 | | let index = unsafe { &*index_ptr }; [INFO] [stdout] 44 | | return index.dimension as i32; [INFO] [stdout] 45 | | } [INFO] [stdout] 46 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | / ffi_fn! { [INFO] [stdout] 49 | | fn get_size(index_ptr: *const AnnoyIndex) -> u64 { [INFO] [stdout] 50 | | let index = unsafe { &*index_ptr }; [INFO] [stdout] 51 | | return index.size as u64; [INFO] [stdout] 52 | | } [INFO] [stdout] 53 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:55:1 [INFO] [stdout] | [INFO] [stdout] 55 | / ffi_fn! { [INFO] [stdout] 56 | | fn get_item_vector(index_ptr: *const AnnoyIndex, item_index: u64, item_vector: *mut f32){ [INFO] [stdout] 57 | | let index = unsafe{&*index_ptr}; [INFO] [stdout] 58 | | let item_vec = index.get_item_vector(item_index); [INFO] [stdout] ... | [INFO] [stdout] 62 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | / ffi_fn! { [INFO] [stdout] 65 | | fn get_nearest( [INFO] [stdout] 66 | | index_ptr: *const AnnoyIndex, [INFO] [stdout] 67 | | query_vector_ptr: *const f32, [INFO] [stdout] ... | [INFO] [stdout] 77 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:79:1 [INFO] [stdout] | [INFO] [stdout] 79 | / ffi_fn! { [INFO] [stdout] 80 | | fn get_nearest_to_item( [INFO] [stdout] 81 | | index_ptr: *const AnnoyIndex, [INFO] [stdout] 82 | | item_index: u64, [INFO] [stdout] ... | [INFO] [stdout] 92 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:94:1 [INFO] [stdout] | [INFO] [stdout] 94 | / ffi_fn! { [INFO] [stdout] 95 | | fn free_search_result(search_result_ptr: *const AnnoyIndexSearchResult){ [INFO] [stdout] 96 | | unsafe { Box::from_raw(search_result_ptr as *mut AnnoyIndexSearchResult); } [INFO] [stdout] 97 | | } [INFO] [stdout] 98 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:100:1 [INFO] [stdout] | [INFO] [stdout] 100 | / ffi_fn! { [INFO] [stdout] 101 | | fn get_result_count(search_result_ptr: *const AnnoyIndexSearchResult) -> u64{ [INFO] [stdout] 102 | | let search_result = unsafe{&*search_result_ptr}; [INFO] [stdout] 103 | | return search_result.count as u64; [INFO] [stdout] 104 | | } [INFO] [stdout] 105 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:107:1 [INFO] [stdout] | [INFO] [stdout] 107 | / ffi_fn! { [INFO] [stdout] 108 | | fn get_id_list(search_result_ptr: *const AnnoyIndexSearchResult)->*const u64{ [INFO] [stdout] 109 | | let search_result = unsafe{&*search_result_ptr}; [INFO] [stdout] 110 | | return search_result.id_list.as_ptr(); [INFO] [stdout] 111 | | } [INFO] [stdout] 112 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:114:1 [INFO] [stdout] | [INFO] [stdout] 114 | / ffi_fn! { [INFO] [stdout] 115 | | fn get_distance_list(search_result_ptr: *const AnnoyIndexSearchResult)->*const f32{ [INFO] [stdout] 116 | | let search_result = unsafe{&*search_result_ptr}; [INFO] [stdout] 117 | | return search_result.distance_list.as_ptr(); [INFO] [stdout] 118 | | } [INFO] [stdout] 119 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `mmap` and `id` are never read [INFO] [stdout] --> src/types/node.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 7 | pub mmap: Rc, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | pub id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/c_ffi/mod.rs:37:18 [INFO] [stdout] | [INFO] [stdout] 37 | unsafe { Box::from_raw(index as *mut AnnoyIndex); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 37 | unsafe { let _ = Box::from_raw(index as *mut AnnoyIndex); } [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/c_ffi/mod.rs:96:18 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { Box::from_raw(search_result_ptr as *mut AnnoyIndexSearchResult); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { let _ = Box::from_raw(search_result_ptr as *mut AnnoyIndexSearchResult); } [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling annoy-rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `crate::tests::*` [INFO] [stdout] --> src/types/utils.rs:228:9 [INFO] [stdout] | [INFO] [stdout] 228 | use crate::tests::*; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `hashbrown::HashSet` [INFO] [stdout] --> src/types/serving/mod.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use hashbrown::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 | / ffi_fn! { [INFO] [stdout] 14 | | fn load_annoy_index(path: *const c_char, dimension: i32, index_type: u8) -> *const AnnoyIndex { [INFO] [stdout] 15 | | let result = load_annoy_index_inner(path, dimension, index_type); [INFO] [stdout] 16 | | return match result { [INFO] [stdout] ... | [INFO] [stdout] 21 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(missing_abi)]` on by default [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:35:1 [INFO] [stdout] | [INFO] [stdout] 35 | / ffi_fn! { [INFO] [stdout] 36 | | fn free_annoy_index(index: *const AnnoyIndex) { [INFO] [stdout] 37 | | unsafe { Box::from_raw(index as *mut AnnoyIndex); } [INFO] [stdout] 38 | | } [INFO] [stdout] 39 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:41:1 [INFO] [stdout] | [INFO] [stdout] 41 | / ffi_fn! { [INFO] [stdout] 42 | | fn get_dimension(index_ptr: *const AnnoyIndex) -> i32 { [INFO] [stdout] 43 | | let index = unsafe { &*index_ptr }; [INFO] [stdout] 44 | | return index.dimension as i32; [INFO] [stdout] 45 | | } [INFO] [stdout] 46 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:48:1 [INFO] [stdout] | [INFO] [stdout] 48 | / ffi_fn! { [INFO] [stdout] 49 | | fn get_size(index_ptr: *const AnnoyIndex) -> u64 { [INFO] [stdout] 50 | | let index = unsafe { &*index_ptr }; [INFO] [stdout] 51 | | return index.size as u64; [INFO] [stdout] 52 | | } [INFO] [stdout] 53 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:55:1 [INFO] [stdout] | [INFO] [stdout] 55 | / ffi_fn! { [INFO] [stdout] 56 | | fn get_item_vector(index_ptr: *const AnnoyIndex, item_index: u64, item_vector: *mut f32){ [INFO] [stdout] 57 | | let index = unsafe{&*index_ptr}; [INFO] [stdout] 58 | | let item_vec = index.get_item_vector(item_index); [INFO] [stdout] ... | [INFO] [stdout] 62 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:64:1 [INFO] [stdout] | [INFO] [stdout] 64 | / ffi_fn! { [INFO] [stdout] 65 | | fn get_nearest( [INFO] [stdout] 66 | | index_ptr: *const AnnoyIndex, [INFO] [stdout] 67 | | query_vector_ptr: *const f32, [INFO] [stdout] ... | [INFO] [stdout] 77 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:79:1 [INFO] [stdout] | [INFO] [stdout] 79 | / ffi_fn! { [INFO] [stdout] 80 | | fn get_nearest_to_item( [INFO] [stdout] 81 | | index_ptr: *const AnnoyIndex, [INFO] [stdout] 82 | | item_index: u64, [INFO] [stdout] ... | [INFO] [stdout] 92 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:94:1 [INFO] [stdout] | [INFO] [stdout] 94 | / ffi_fn! { [INFO] [stdout] 95 | | fn free_search_result(search_result_ptr: *const AnnoyIndexSearchResult){ [INFO] [stdout] 96 | | unsafe { Box::from_raw(search_result_ptr as *mut AnnoyIndexSearchResult); } [INFO] [stdout] 97 | | } [INFO] [stdout] 98 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:100:1 [INFO] [stdout] | [INFO] [stdout] 100 | / ffi_fn! { [INFO] [stdout] 101 | | fn get_result_count(search_result_ptr: *const AnnoyIndexSearchResult) -> u64{ [INFO] [stdout] 102 | | let search_result = unsafe{&*search_result_ptr}; [INFO] [stdout] 103 | | return search_result.count as u64; [INFO] [stdout] 104 | | } [INFO] [stdout] 105 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:107:1 [INFO] [stdout] | [INFO] [stdout] 107 | / ffi_fn! { [INFO] [stdout] 108 | | fn get_id_list(search_result_ptr: *const AnnoyIndexSearchResult)->*const u64{ [INFO] [stdout] 109 | | let search_result = unsafe{&*search_result_ptr}; [INFO] [stdout] 110 | | return search_result.id_list.as_ptr(); [INFO] [stdout] 111 | | } [INFO] [stdout] 112 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stdout] --> src/c_ffi/macros.rs:7:13 [INFO] [stdout] | [INFO] [stdout] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stdout] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stdout] | [INFO] [stdout] ::: src/c_ffi/mod.rs:114:1 [INFO] [stdout] | [INFO] [stdout] 114 | / ffi_fn! { [INFO] [stdout] 115 | | fn get_distance_list(search_result_ptr: *const AnnoyIndexSearchResult)->*const f32{ [INFO] [stdout] 116 | | let search_result = unsafe{&*search_result_ptr}; [INFO] [stdout] 117 | | return search_result.distance_list.as_ptr(); [INFO] [stdout] 118 | | } [INFO] [stdout] 119 | | } [INFO] [stdout] | |_- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated function `rand::thread_rng`: Renamed to `rng` [INFO] [stdout] --> src/types/utils.rs:243:29 [INFO] [stdout] | [INFO] [stdout] 243 | let mut rng = rand::thread_rng(); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated method `rand::Rng::gen`: Renamed to `random` to avoid conflict with the new `gen` keyword in Rust 2024. [INFO] [stdout] --> src/types/utils.rs:245:24 [INFO] [stdout] | [INFO] [stdout] 245 | v.push(rng.gen()); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `mmap` and `id` are never read [INFO] [stdout] --> src/types/node.rs:7:9 [INFO] [stdout] | [INFO] [stdout] 6 | pub struct Node { [INFO] [stdout] | ---- fields in this struct [INFO] [stdout] 7 | pub mmap: Rc, [INFO] [stdout] | ^^^^ [INFO] [stdout] 8 | pub id: usize, [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `RoundTo` is never used [INFO] [stdout] --> src/lib.rs:21:15 [INFO] [stdout] | [INFO] [stdout] 21 | pub trait RoundTo { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/c_ffi/mod.rs:37:18 [INFO] [stdout] | [INFO] [stdout] 37 | unsafe { Box::from_raw(index as *mut AnnoyIndex); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 37 | unsafe { let _ = Box::from_raw(index as *mut AnnoyIndex); } [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stdout] --> src/c_ffi/mod.rs:96:18 [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { Box::from_raw(search_result_ptr as *mut AnnoyIndexSearchResult); } [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stdout] help: use `let _ = ...` to ignore the resulting value [INFO] [stdout] | [INFO] [stdout] 96 | unsafe { let _ = Box::from_raw(search_result_ptr as *mut AnnoyIndexSearchResult); } [INFO] [stdout] | +++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.19s [INFO] running `Command { std: "docker" "inspect" "ed1ed8e684cbadb8c6f23a6c82d3c545204c8dcd8e54cc0712e21233b00fb34f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ed1ed8e684cbadb8c6f23a6c82d3c545204c8dcd8e54cc0712e21233b00fb34f", kill_on_drop: false }` [INFO] [stdout] ed1ed8e684cbadb8c6f23a6c82d3c545204c8dcd8e54cc0712e21233b00fb34f [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" "+8de4c7234dd9b97c9d76b58671343fdbbc9a433e" "test" "--frozen" "--target" "x86_64-unknown-linux-musl", kill_on_drop: false }` [INFO] [stdout] 92e3f3192518325921776a26ae60f31e87479ef33136a8798e6eb316bc4e3662 [INFO] running `Command { std: "docker" "start" "-a" "92e3f3192518325921776a26ae60f31e87479ef33136a8798e6eb316bc4e3662", kill_on_drop: false }` [INFO] [stderr] warning: dropping unsupported crate type `cdylib` for target `x86_64-unknown-linux-musl` [INFO] [stderr] [INFO] [stderr] warning: unused import: `hashbrown::HashSet` [INFO] [stderr] --> src/types/serving/mod.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use hashbrown::HashSet; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stderr] --> src/c_ffi/macros.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stderr] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stderr] | [INFO] [stderr] ::: src/c_ffi/mod.rs:13:1 [INFO] [stderr] | [INFO] [stderr] 13 | / ffi_fn! { [INFO] [stderr] 14 | | fn load_annoy_index(path: *const c_char, dimension: i32, index_type: u8) -> *const AnnoyIndex { [INFO] [stderr] 15 | | let result = load_annoy_index_inner(path, dimension, index_type); [INFO] [stderr] 16 | | return match result { [INFO] [stderr] ... | [INFO] [stderr] 21 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(missing_abi)]` on by default [INFO] [stderr] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stderr] --> src/c_ffi/macros.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stderr] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stderr] | [INFO] [stderr] ::: src/c_ffi/mod.rs:35:1 [INFO] [stderr] | [INFO] [stderr] 35 | / ffi_fn! { [INFO] [stderr] 36 | | fn free_annoy_index(index: *const AnnoyIndex) { [INFO] [stderr] 37 | | unsafe { Box::from_raw(index as *mut AnnoyIndex); } [INFO] [stderr] 38 | | } [INFO] [stderr] 39 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stderr] --> src/c_ffi/macros.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stderr] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stderr] | [INFO] [stderr] ::: src/c_ffi/mod.rs:41:1 [INFO] [stderr] | [INFO] [stderr] 41 | / ffi_fn! { [INFO] [stderr] 42 | | fn get_dimension(index_ptr: *const AnnoyIndex) -> i32 { [INFO] [stderr] 43 | | let index = unsafe { &*index_ptr }; [INFO] [stderr] 44 | | return index.dimension as i32; [INFO] [stderr] 45 | | } [INFO] [stderr] 46 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stderr] --> src/c_ffi/macros.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stderr] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stderr] | [INFO] [stderr] ::: src/c_ffi/mod.rs:48:1 [INFO] [stderr] | [INFO] [stderr] 48 | / ffi_fn! { [INFO] [stderr] 49 | | fn get_size(index_ptr: *const AnnoyIndex) -> u64 { [INFO] [stderr] 50 | | let index = unsafe { &*index_ptr }; [INFO] [stderr] 51 | | return index.size as u64; [INFO] [stderr] 52 | | } [INFO] [stderr] 53 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stderr] --> src/c_ffi/macros.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stderr] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stderr] | [INFO] [stderr] ::: src/c_ffi/mod.rs:55:1 [INFO] [stderr] | [INFO] [stderr] 55 | / ffi_fn! { [INFO] [stderr] 56 | | fn get_item_vector(index_ptr: *const AnnoyIndex, item_index: u64, item_vector: *mut f32){ [INFO] [stderr] 57 | | let index = unsafe{&*index_ptr}; [INFO] [stderr] 58 | | let item_vec = index.get_item_vector(item_index); [INFO] [stderr] ... | [INFO] [stderr] 62 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stderr] --> src/c_ffi/macros.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stderr] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stderr] | [INFO] [stderr] ::: src/c_ffi/mod.rs:64:1 [INFO] [stderr] | [INFO] [stderr] 64 | / ffi_fn! { [INFO] [stderr] 65 | | fn get_nearest( [INFO] [stderr] 66 | | index_ptr: *const AnnoyIndex, [INFO] [stderr] 67 | | query_vector_ptr: *const f32, [INFO] [stderr] ... | [INFO] [stderr] 77 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stderr] --> src/c_ffi/macros.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stderr] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stderr] | [INFO] [stderr] ::: src/c_ffi/mod.rs:79:1 [INFO] [stderr] | [INFO] [stderr] 79 | / ffi_fn! { [INFO] [stderr] 80 | | fn get_nearest_to_item( [INFO] [stderr] 81 | | index_ptr: *const AnnoyIndex, [INFO] [stderr] 82 | | item_index: u64, [INFO] [stderr] ... | [INFO] [stderr] 92 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stderr] --> src/c_ffi/macros.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stderr] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stderr] | [INFO] [stderr] ::: src/c_ffi/mod.rs:94:1 [INFO] [stderr] | [INFO] [stderr] 94 | / ffi_fn! { [INFO] [stderr] 95 | | fn free_search_result(search_result_ptr: *const AnnoyIndexSearchResult){ [INFO] [stderr] 96 | | unsafe { Box::from_raw(search_result_ptr as *mut AnnoyIndexSearchResult); } [INFO] [stderr] 97 | | } [INFO] [stderr] 98 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stderr] --> src/c_ffi/macros.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stderr] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stderr] | [INFO] [stderr] ::: src/c_ffi/mod.rs:100:1 [INFO] [stderr] | [INFO] [stderr] 100 | / ffi_fn! { [INFO] [stderr] 101 | | fn get_result_count(search_result_ptr: *const AnnoyIndexSearchResult) -> u64{ [INFO] [stderr] 102 | | let search_result = unsafe{&*search_result_ptr}; [INFO] [stderr] 103 | | return search_result.count as u64; [INFO] [stderr] 104 | | } [INFO] [stderr] 105 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stderr] --> src/c_ffi/macros.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stderr] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stderr] | [INFO] [stderr] ::: src/c_ffi/mod.rs:107:1 [INFO] [stderr] | [INFO] [stderr] 107 | / ffi_fn! { [INFO] [stderr] 108 | | fn get_id_list(search_result_ptr: *const AnnoyIndexSearchResult)->*const u64{ [INFO] [stderr] 109 | | let search_result = unsafe{&*search_result_ptr}; [INFO] [stderr] 110 | | return search_result.id_list.as_ptr(); [INFO] [stderr] 111 | | } [INFO] [stderr] 112 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `extern` declarations without an explicit ABI are deprecated [INFO] [stderr] --> src/c_ffi/macros.rs:7:13 [INFO] [stderr] | [INFO] [stderr] 7 | pub extern fn $name($($arg: $arg_ty),*) -> $ret { [INFO] [stderr] | ^^^^^^ help: explicitly specify the "C" ABI: `extern "C"` [INFO] [stderr] | [INFO] [stderr] ::: src/c_ffi/mod.rs:114:1 [INFO] [stderr] | [INFO] [stderr] 114 | / ffi_fn! { [INFO] [stderr] 115 | | fn get_distance_list(search_result_ptr: *const AnnoyIndexSearchResult)->*const f32{ [INFO] [stderr] 116 | | let search_result = unsafe{&*search_result_ptr}; [INFO] [stderr] 117 | | return search_result.distance_list.as_ptr(); [INFO] [stderr] 118 | | } [INFO] [stderr] 119 | | } [INFO] [stderr] | |_- in this macro invocation [INFO] [stderr] | [INFO] [stderr] = note: this warning originates in the macro `ffi_fn` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: fields `mmap` and `id` are never read [INFO] [stderr] --> src/types/node.rs:7:9 [INFO] [stderr] | [INFO] [stderr] 6 | pub struct Node { [INFO] [stderr] | ---- fields in this struct [INFO] [stderr] 7 | pub mmap: Rc, [INFO] [stderr] | ^^^^ [INFO] [stderr] 8 | pub id: usize, [INFO] [stderr] | ^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(dead_code)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stderr] --> src/c_ffi/mod.rs:37:18 [INFO] [stderr] | [INFO] [stderr] 37 | unsafe { Box::from_raw(index as *mut AnnoyIndex); } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stderr] = note: `#[warn(unused_must_use)]` on by default [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 37 | unsafe { let _ = Box::from_raw(index as *mut AnnoyIndex); } [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: unused return value of `Box::::from_raw` that must be used [INFO] [stderr] --> src/c_ffi/mod.rs:96:18 [INFO] [stderr] | [INFO] [stderr] 96 | unsafe { Box::from_raw(search_result_ptr as *mut AnnoyIndexSearchResult); } [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: call `drop(Box::from_raw(ptr))` if you intend to drop the `Box` [INFO] [stderr] help: use `let _ = ...` to ignore the resulting value [INFO] [stderr] | [INFO] [stderr] 96 | unsafe { let _ = Box::from_raw(search_result_ptr as *mut AnnoyIndexSearchResult); } [INFO] [stderr] | +++++++ [INFO] [stderr] [INFO] [stderr] warning: `annoy-rs` (lib) generated 16 warnings (run `cargo fix --lib -p annoy-rs` to apply 12 suggestions) [INFO] [stderr] warning: unused import: `crate::tests::*` [INFO] [stderr] --> src/types/utils.rs:228:9 [INFO] [stderr] | [INFO] [stderr] 228 | use crate::tests::*; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `hashbrown::HashSet` [INFO] [stderr] --> src/types/serving/mod.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | use hashbrown::HashSet; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: use of deprecated function `rand::thread_rng`: Renamed to `rng` [INFO] [stderr] --> src/types/utils.rs:243:29 [INFO] [stderr] | [INFO] [stderr] 243 | let mut rng = rand::thread_rng(); [INFO] [stderr] | ^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] warning: use of deprecated method `rand::Rng::gen`: Renamed to `random` to avoid conflict with the new `gen` keyword in Rust 2024. [INFO] [stderr] --> src/types/utils.rs:245:24 [INFO] [stderr] | [INFO] [stderr] 245 | v.push(rng.gen()); [INFO] [stderr] | ^^^ [INFO] [stderr] [INFO] [stderr] warning: trait `RoundTo` is never used [INFO] [stderr] --> src/lib.rs:21:15 [INFO] [stderr] | [INFO] [stderr] 21 | pub trait RoundTo { [INFO] [stderr] | ^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: `annoy-rs` (lib test) generated 19 warnings (14 duplicates) (run `cargo fix --lib -p annoy-rs --tests` to apply 2 suggestions) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/annoy_rs-c0e62514d8793312) [INFO] [stdout] [INFO] [stdout] running 7 tests [INFO] [stdout] test types::utils::tests::test_manhattan_distance ... ok [INFO] [stdout] test types::utils::tests::test_dot_product_no_simd ... ok [INFO] [stdout] test types::utils::tests::test_euclidean_distance_no_simd ... ok [INFO] [stdout] test internals::priority_queue::tests::test_pq_3 ... ok [INFO] [stdout] test internals::priority_queue::tests::test_pq_2 ... ok [INFO] [stdout] test internals::priority_queue::tests::test_pq_1 ... ok [INFO] [stdout] test types::utils::tests::test_cosine_distance_no_simd ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 7 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Running tests/test.rs (/opt/rustwide/target/x86_64-unknown-linux-musl/debug/deps/test-2af7c3f02a266822) [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test tests::sanity_tests_angular ... ok [INFO] [stdout] test tests::hole_tests ... ok [INFO] [stdout] test tests::invalid_index_cffi ... ok [INFO] [stdout] test tests::sanity_tests_euclidean ... ok [INFO] [stdout] test tests::sanity_tests_dot ... ok [INFO] [stdout] test tests::sanity_tests_manhattan ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "92e3f3192518325921776a26ae60f31e87479ef33136a8798e6eb316bc4e3662", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "92e3f3192518325921776a26ae60f31e87479ef33136a8798e6eb316bc4e3662", kill_on_drop: false }` [INFO] [stdout] 92e3f3192518325921776a26ae60f31e87479ef33136a8798e6eb316bc4e3662