[INFO] fetching crate annoy-rs 0.1.0... [INFO] checking annoy-rs-0.1.0 against try#a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d for pr-145342-1 [INFO] extracting crate annoy-rs 0.1.0 into /workspace/builds/worker-3-tc2/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-3-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate annoy-rs 0.1.0 on toolchain a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 8f6967e2bced9010914be2dd8b5f355ec3e49c491e31d97f775a135fdd85ecba [INFO] running `Command { std: "docker" "start" "-a" "8f6967e2bced9010914be2dd8b5f355ec3e49c491e31d97f775a135fdd85ecba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "8f6967e2bced9010914be2dd8b5f355ec3e49c491e31d97f775a135fdd85ecba", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8f6967e2bced9010914be2dd8b5f355ec3e49c491e31d97f775a135fdd85ecba", kill_on_drop: false }` [INFO] [stdout] 8f6967e2bced9010914be2dd8b5f355ec3e49c491e31d97f775a135fdd85ecba [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc2/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" "+a4980311fb7bb9e7893708e6bd3fbbfb2819fd3d" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b800b8842124064e77282ea9b70189053d646ab98a24ff938fc5955929698fe3 [INFO] running `Command { std: "docker" "start" "-a" "b800b8842124064e77282ea9b70189053d646ab98a24ff938fc5955929698fe3", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.175 [INFO] [stderr] Checking cfg-if v1.0.3 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Checking equivalent v1.0.2 [INFO] [stderr] Checking foldhash v0.1.5 [INFO] [stderr] Checking allocator-api2 v0.2.21 [INFO] [stderr] Checking lazy_static v1.5.0 [INFO] [stderr] Checking hashbrown v0.15.5 [INFO] [stderr] Checking memmap2 v0.9.8 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Checking annoy-rs v0.1.0 (/opt/rustwide/workdir) [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] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand v0.9.2 [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: function `gen_range_array` is never used [INFO] [stdout] --> src/types/utils.rs:241:8 [INFO] [stdout] | [INFO] [stdout] 241 | fn gen_range_array(range: Range) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [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 `dev` profile [unoptimized + debuginfo] target(s) in 5.92s [INFO] running `Command { std: "docker" "inspect" "b800b8842124064e77282ea9b70189053d646ab98a24ff938fc5955929698fe3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b800b8842124064e77282ea9b70189053d646ab98a24ff938fc5955929698fe3", kill_on_drop: false }` [INFO] [stdout] b800b8842124064e77282ea9b70189053d646ab98a24ff938fc5955929698fe3