[INFO] cloning repository https://github.com/juebanlin/java_rust_ffi [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/juebanlin/java_rust_ffi" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjuebanlin%2Fjava_rust_ffi", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjuebanlin%2Fjava_rust_ffi'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 76a75bb98a077647a37ce89467c723562d1bc1bd [INFO] checking juebanlin/java_rust_ffi against master#1f12b9b0fdbe735968ac002792a720f0ba4faca6 for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjuebanlin%2Fjava_rust_ffi" "/workspace/builds/worker-6-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/juebanlin/java_rust_ffi on toolchain 1f12b9b0fdbe735968ac002792a720f0ba4faca6 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/juebanlin/java_rust_ffi [INFO] finished tweaking git repo https://github.com/juebanlin/java_rust_ffi [INFO] tweaked toml for git repo https://github.com/juebanlin/java_rust_ffi written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/juebanlin/java_rust_ffi already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-6-tc1/source/rustffi/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-6-tc1/source/rustjni/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 11664fc4676b959558c4829549afaa1376a41a566e8b95e560bc627d763eeb6e [INFO] running `Command { std: "docker" "start" "-a" "11664fc4676b959558c4829549afaa1376a41a566e8b95e560bc627d763eeb6e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "11664fc4676b959558c4829549afaa1376a41a566e8b95e560bc627d763eeb6e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11664fc4676b959558c4829549afaa1376a41a566e8b95e560bc627d763eeb6e", kill_on_drop: false }` [INFO] [stdout] 11664fc4676b959558c4829549afaa1376a41a566e8b95e560bc627d763eeb6e [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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+1f12b9b0fdbe735968ac002792a720f0ba4faca6" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4a07b2e45315c251b51cd26b39d52f373c9769ee1d488590547df7e2d55f18fa [INFO] running `Command { std: "docker" "start" "-a" "4a07b2e45315c251b51cd26b39d52f373c9769ee1d488590547df7e2d55f18fa", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/rustffi/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/rustjni/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking jni-sys v0.3.0 [INFO] [stderr] Compiling rustffi v0.1.0 (/opt/rustwide/workdir/rustffi) [INFO] [stderr] Checking cesu8 v1.1.0 [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> rustffi/src/ffi.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> rustffi/src/ffi.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> rustffi/src/ffi.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap` and `HashSet` [INFO] [stdout] --> rustffi/src/ffi.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `City` [INFO] [stdout] --> rustffi/src/ffi.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::{Entity, City}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Write` [INFO] [stdout] --> rustffi/src/ffi.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::fmt::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> rustffi/src/ffi.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(slice_ptr_len)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> rustffi/src/ffi.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(slice_ptr_get)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> rustffi/src/ffi.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> rustffi/src/ffi.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> rustffi/src/ffi.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap` and `HashSet` [INFO] [stdout] --> rustffi/src/ffi.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `City` [INFO] [stdout] --> rustffi/src/ffi.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::{Entity, City}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Write` [INFO] [stdout] --> rustffi/src/ffi.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::fmt::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> rustffi/src/ffi.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(slice_ptr_len)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> rustffi/src/ffi.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(slice_ptr_get)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> rustffi/src/ffi.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let mut list = slice_from_raw_parts_mut::(array, clen as usize); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> rustffi/src/ffi.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let mut list = slice_from_raw_parts_mut::(array, clen as usize); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `getX`, `getY`, and `getZ` are never used [INFO] [stdout] --> rustffi/src/lib.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl City { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 14 | fn getX(&self) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn getY(&self) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn getZ(&self) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `getAoiX`, `getAoiY`, and `getAoiRange` are never used [INFO] [stdout] --> rustffi/src/lib.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl Entity { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 32 | fn getAoiX(&self) -> f32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn getAoiY(&self) -> f32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn getAoiRange(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getX` should have a snake case name [INFO] [stdout] --> rustffi/src/lib.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | fn getX(&self) -> f32 { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `get_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getY` should have a snake case name [INFO] [stdout] --> rustffi/src/lib.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | fn getY(&self) -> f32 { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `get_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getZ` should have a snake case name [INFO] [stdout] --> rustffi/src/lib.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | fn getZ(&self) -> f32 { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `get_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getAoiX` should have a snake case name [INFO] [stdout] --> rustffi/src/lib.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | fn getAoiX(&self) -> f32 { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_aoi_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getAoiY` should have a snake case name [INFO] [stdout] --> rustffi/src/lib.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | fn getAoiY(&self) -> f32 { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_aoi_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getAoiRange` should have a snake case name [INFO] [stdout] --> rustffi/src/lib.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | fn getAoiRange(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `get_aoi_range` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `getX`, `getY`, and `getZ` are never used [INFO] [stdout] --> rustffi/src/lib.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl City { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 14 | fn getX(&self) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn getY(&self) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn getZ(&self) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `getAoiX`, `getAoiY`, and `getAoiRange` are never used [INFO] [stdout] --> rustffi/src/lib.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl Entity { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 32 | fn getAoiX(&self) -> f32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn getAoiY(&self) -> f32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn getAoiRange(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getX` should have a snake case name [INFO] [stdout] --> rustffi/src/lib.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | fn getX(&self) -> f32 { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `get_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getY` should have a snake case name [INFO] [stdout] --> rustffi/src/lib.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | fn getY(&self) -> f32 { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `get_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getZ` should have a snake case name [INFO] [stdout] --> rustffi/src/lib.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | fn getZ(&self) -> f32 { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `get_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getAoiX` should have a snake case name [INFO] [stdout] --> rustffi/src/lib.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | fn getAoiX(&self) -> f32 { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_aoi_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::forget` with a value that implements `Copy` does nothing [INFO] [stdout] --> rustffi/src/ffi.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | mem::forget(slice); [INFO] [stdout] | ^^^^^^^^^^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `*const [f32]` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(forgetting_copy_types)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 49 - mem::forget(slice); [INFO] [stdout] 49 + let _ = slice; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::forget` with a value that implements `Copy` does nothing [INFO] [stdout] --> rustffi/src/ffi.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | mem::forget(list); [INFO] [stdout] | ^^^^^^^^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `*mut [f32]` [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 64 - mem::forget(list); [INFO] [stdout] 64 + let _ = list; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getAoiY` should have a snake case name [INFO] [stdout] --> rustffi/src/lib.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | fn getAoiY(&self) -> f32 { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_aoi_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getAoiRange` should have a snake case name [INFO] [stdout] --> rustffi/src/lib.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | fn getAoiRange(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `get_aoi_range` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::forget` with a value that implements `Copy` does nothing [INFO] [stdout] --> rustffi/src/ffi.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | mem::forget(slice); [INFO] [stdout] | ^^^^^^^^^^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `*const [f32]` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(forgetting_copy_types)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 49 - mem::forget(slice); [INFO] [stdout] 49 + let _ = slice; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::forget` with a value that implements `Copy` does nothing [INFO] [stdout] --> rustffi/src/ffi.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | mem::forget(list); [INFO] [stdout] | ^^^^^^^^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `*mut [f32]` [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 64 - mem::forget(list); [INFO] [stdout] 64 + let _ = list; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling jni v0.19.0 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking combine v4.6.1 [INFO] [stderr] Compiling thiserror-impl v1.0.29 [INFO] [stderr] Checking thiserror v1.0.29 [INFO] [stderr] Checking rustjni v0.1.0 (/opt/rustwide/workdir/rustjni) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 9.83s [INFO] running `Command { std: "docker" "inspect" "4a07b2e45315c251b51cd26b39d52f373c9769ee1d488590547df7e2d55f18fa", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4a07b2e45315c251b51cd26b39d52f373c9769ee1d488590547df7e2d55f18fa", kill_on_drop: false }` [INFO] [stdout] 4a07b2e45315c251b51cd26b39d52f373c9769ee1d488590547df7e2d55f18fa [INFO] checking juebanlin/java_rust_ffi against try#f9935d29d867449445ee008640ccca1bf1ae0889+rustflags=-Dtail_expr_drop_order for crater-rollup-uwu [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjuebanlin%2Fjava_rust_ffi" "/workspace/builds/worker-6-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-6-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/juebanlin/java_rust_ffi on toolchain f9935d29d867449445ee008640ccca1bf1ae0889 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/juebanlin/java_rust_ffi [INFO] finished tweaking git repo https://github.com/juebanlin/java_rust_ffi [INFO] tweaked toml for git repo https://github.com/juebanlin/java_rust_ffi written to /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/juebanlin/java_rust_ffi already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-6-tc2/source/rustffi/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /workspace/builds/worker-6-tc2/source/rustjni/Cargo.toml [INFO] [stderr] workspace: /workspace/builds/worker-6-tc2/source/Cargo.toml [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] fc2c9242162539f444486467ab8e1965c669240cd5b960a5573253c072b965bd [INFO] running `Command { std: "docker" "start" "-a" "fc2c9242162539f444486467ab8e1965c669240cd5b960a5573253c072b965bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fc2c9242162539f444486467ab8e1965c669240cd5b960a5573253c072b965bd", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fc2c9242162539f444486467ab8e1965c669240cd5b960a5573253c072b965bd", kill_on_drop: false }` [INFO] [stdout] fc2c9242162539f444486467ab8e1965c669240cd5b960a5573253c072b965bd [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-6-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 -Dtail_expr_drop_order" "-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:923055f121b5182466d55868a8b05e67af8ba4a3a3f6bad814e953ca3cd3ac2a" "/opt/rustwide/cargo-home/bin/cargo" "+f9935d29d867449445ee008640ccca1bf1ae0889" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7b475bdc9aa47a886535d1480e59d8a654772d952a839d382492502f046518e1 [INFO] running `Command { std: "docker" "start" "-a" "7b475bdc9aa47a886535d1480e59d8a654772d952a839d382492502f046518e1", kill_on_drop: false }` [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/rustffi/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: profiles for the non root package will be ignored, specify profiles at the workspace root: [INFO] [stderr] package: /opt/rustwide/workdir/rustjni/Cargo.toml [INFO] [stderr] workspace: /opt/rustwide/workdir/Cargo.toml [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling proc-macro2 v1.0.29 [INFO] [stderr] Compiling syn v1.0.76 [INFO] [stderr] Compiling memchr v2.4.1 [INFO] [stderr] Compiling same-file v1.0.6 [INFO] [stderr] Compiling log v0.4.14 [INFO] [stderr] Checking cesu8 v1.1.0 [INFO] [stderr] Checking jni-sys v0.3.0 [INFO] [stderr] Compiling rustffi v0.1.0 (/opt/rustwide/workdir/rustffi) [INFO] [stderr] Compiling walkdir v2.3.2 [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> rustffi/src/ffi.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> rustffi/src/ffi.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> rustffi/src/ffi.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap` and `HashSet` [INFO] [stdout] --> rustffi/src/ffi.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::BorrowMut` [INFO] [stdout] --> rustffi/src/ffi.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::borrow::BorrowMut; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cell::RefCell` [INFO] [stdout] --> rustffi/src/ffi.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use std::cell::RefCell; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::collections::hash_map::RandomState` [INFO] [stdout] --> rustffi/src/ffi.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use std::collections::hash_map::RandomState; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap` and `HashSet` [INFO] [stdout] --> rustffi/src/ffi.rs:7:24 [INFO] [stdout] | [INFO] [stdout] 7 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `City` [INFO] [stdout] --> rustffi/src/ffi.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::{Entity, City}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `City` [INFO] [stdout] --> rustffi/src/ffi.rs:13:21 [INFO] [stdout] | [INFO] [stdout] 13 | use crate::{Entity, City}; [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Write` [INFO] [stdout] --> rustffi/src/ffi.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::fmt::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fmt::Write` [INFO] [stdout] --> rustffi/src/ffi.rs:14:5 [INFO] [stdout] | [INFO] [stdout] 14 | use std::fmt::Write; [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> rustffi/src/ffi.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(slice_ptr_len)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> rustffi/src/ffi.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(slice_ptr_get)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> rustffi/src/ffi.rs:2:1 [INFO] [stdout] | [INFO] [stdout] 2 | #![feature(slice_ptr_len)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_attributes)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: crate-level attribute should be in the root module [INFO] [stdout] --> rustffi/src/ffi.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | #![feature(slice_ptr_get)] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> rustffi/src/ffi.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let mut list = slice_from_raw_parts_mut::(array, clen as usize); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `getX`, `getY`, and `getZ` are never used [INFO] [stdout] --> rustffi/src/lib.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl City { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 14 | fn getX(&self) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn getY(&self) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn getZ(&self) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `getAoiX`, `getAoiY`, and `getAoiRange` are never used [INFO] [stdout] --> rustffi/src/lib.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl Entity { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 32 | fn getAoiX(&self) -> f32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn getAoiY(&self) -> f32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn getAoiRange(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getX` should have a snake case name [INFO] [stdout] --> rustffi/src/lib.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | fn getX(&self) -> f32 { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `get_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getY` should have a snake case name [INFO] [stdout] --> rustffi/src/lib.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | fn getY(&self) -> f32 { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `get_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getZ` should have a snake case name [INFO] [stdout] --> rustffi/src/lib.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | fn getZ(&self) -> f32 { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `get_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getAoiX` should have a snake case name [INFO] [stdout] --> rustffi/src/lib.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | fn getAoiX(&self) -> f32 { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_aoi_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getAoiY` should have a snake case name [INFO] [stdout] --> rustffi/src/lib.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | fn getAoiY(&self) -> f32 { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_aoi_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getAoiRange` should have a snake case name [INFO] [stdout] --> rustffi/src/lib.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | fn getAoiRange(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `get_aoi_range` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> rustffi/src/ffi.rs:55:9 [INFO] [stdout] | [INFO] [stdout] 55 | let mut list = slice_from_raw_parts_mut::(array, clen as usize); [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::forget` with a value that implements `Copy` does nothing [INFO] [stdout] --> rustffi/src/ffi.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | mem::forget(slice); [INFO] [stdout] | ^^^^^^^^^^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `*const [f32]` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(forgetting_copy_types)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 49 - mem::forget(slice); [INFO] [stdout] 49 + let _ = slice; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::forget` with a value that implements `Copy` does nothing [INFO] [stdout] --> rustffi/src/ffi.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | mem::forget(list); [INFO] [stdout] | ^^^^^^^^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `*mut [f32]` [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 64 - mem::forget(list); [INFO] [stdout] 64 + let _ = list; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `getX`, `getY`, and `getZ` are never used [INFO] [stdout] --> rustffi/src/lib.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 13 | impl City { [INFO] [stdout] | --------- methods in this implementation [INFO] [stdout] 14 | fn getX(&self) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 17 | fn getY(&self) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 20 | fn getZ(&self) -> f32 { [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: methods `getAoiX`, `getAoiY`, and `getAoiRange` are never used [INFO] [stdout] --> rustffi/src/lib.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 31 | impl Entity { [INFO] [stdout] | ----------- methods in this implementation [INFO] [stdout] 32 | fn getAoiX(&self) -> f32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 35 | fn getAoiY(&self) -> f32 { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 38 | fn getAoiRange(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getX` should have a snake case name [INFO] [stdout] --> rustffi/src/lib.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | fn getX(&self) -> f32 { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `get_x` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getY` should have a snake case name [INFO] [stdout] --> rustffi/src/lib.rs:17:8 [INFO] [stdout] | [INFO] [stdout] 17 | fn getY(&self) -> f32 { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `get_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getZ` should have a snake case name [INFO] [stdout] --> rustffi/src/lib.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | fn getZ(&self) -> f32 { [INFO] [stdout] | ^^^^ help: convert the identifier to snake case: `get_z` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getAoiX` should have a snake case name [INFO] [stdout] --> rustffi/src/lib.rs:32:8 [INFO] [stdout] | [INFO] [stdout] 32 | fn getAoiX(&self) -> f32 { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_aoi_x` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getAoiY` should have a snake case name [INFO] [stdout] --> rustffi/src/lib.rs:35:8 [INFO] [stdout] | [INFO] [stdout] 35 | fn getAoiY(&self) -> f32 { [INFO] [stdout] | ^^^^^^^ help: convert the identifier to snake case: `get_aoi_y` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `getAoiRange` should have a snake case name [INFO] [stdout] --> rustffi/src/lib.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | fn getAoiRange(&self) -> f32 { [INFO] [stdout] | ^^^^^^^^^^^ help: convert the identifier to snake case: `get_aoi_range` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::forget` with a value that implements `Copy` does nothing [INFO] [stdout] --> rustffi/src/ffi.rs:49:5 [INFO] [stdout] | [INFO] [stdout] 49 | mem::forget(slice); [INFO] [stdout] | ^^^^^^^^^^^^-----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `*const [f32]` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(forgetting_copy_types)]` on by default [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 49 - mem::forget(slice); [INFO] [stdout] 49 + let _ = slice; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::mem::forget` with a value that implements `Copy` does nothing [INFO] [stdout] --> rustffi/src/ffi.rs:64:5 [INFO] [stdout] | [INFO] [stdout] 64 | mem::forget(list); [INFO] [stdout] | ^^^^^^^^^^^^----^ [INFO] [stdout] | | [INFO] [stdout] | argument has type `*mut [f32]` [INFO] [stdout] | [INFO] [stdout] help: use `let _ = ...` to ignore the expression or result [INFO] [stdout] | [INFO] [stdout] 64 - mem::forget(list); [INFO] [stdout] 64 + let _ = list; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 19 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling jni v0.19.0 [INFO] [stderr] Compiling quote v1.0.9 [INFO] [stderr] Checking combine v4.6.1 [INFO] [stderr] Compiling thiserror-impl v1.0.29 [INFO] [stderr] Checking thiserror v1.0.29 [INFO] [stderr] Checking rustjni v0.1.0 (/opt/rustwide/workdir/rustjni) [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> rustjni/src/lib.rs:108:19 [INFO] [stdout] | [INFO] [stdout] 105 | let global_ref = env.new_global_ref(callback).unwrap(); [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 106 | let counter = Counter::new(global_ref); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 107 | [INFO] [stdout] 108 | Box::into_raw(Box::new(counter)) as jlong [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: these values and local bindings have significant drop implementation that will have a different drop order from that of Edition 2021 [INFO] [stdout] --> rustjni/src/lib.rs:108:19 [INFO] [stdout] | [INFO] [stdout] 105 | let global_ref = env.new_global_ref(callback).unwrap(); [INFO] [stdout] | ---------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 106 | let counter = Counter::new(global_ref); [INFO] [stdout] | ------- these values have significant drop implementation and will observe changes in drop order under Edition 2024 [INFO] [stdout] 107 | [INFO] [stdout] 108 | Box::into_raw(Box::new(counter)) as jlong [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = warning: this changes meaning in Rust 2024 [INFO] [stdout] = note: for more information, see issue #123739 [INFO] [stdout] = note: requested on the command line with `-D tail-expr-drop-order` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rustjni` (lib test) due to 2 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `rustjni` (lib) due to 2 previous errors [INFO] running `Command { std: "docker" "inspect" "7b475bdc9aa47a886535d1480e59d8a654772d952a839d382492502f046518e1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7b475bdc9aa47a886535d1480e59d8a654772d952a839d382492502f046518e1", kill_on_drop: false }` [INFO] [stdout] 7b475bdc9aa47a886535d1480e59d8a654772d952a839d382492502f046518e1