[INFO] cloning repository https://github.com/bugaevc/jvm-bindgen [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bugaevc/jvm-bindgen" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbugaevc%2Fjvm-bindgen", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbugaevc%2Fjvm-bindgen'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 81e0f0f46c85de25e7e7217f05d747eddb54617e [INFO] building bugaevc/jvm-bindgen against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbugaevc%2Fjvm-bindgen" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bugaevc/jvm-bindgen on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/bugaevc/jvm-bindgen [INFO] finished tweaking git repo https://github.com/bugaevc/jvm-bindgen [INFO] tweaked toml for git repo https://github.com/bugaevc/jvm-bindgen written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/bugaevc/jvm-bindgen 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Updating crates.io index [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded quote v0.6.6 [INFO] [stderr] Downloaded nom v4.0.0 [INFO] [stderr] Downloaded classfile-parser v0.3.2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 78a501ff4d3192bd80ef7cc677af7c4bbcace439b1a868107da96c90fcf2282f [INFO] running `Command { std: "docker" "start" "-a" "78a501ff4d3192bd80ef7cc677af7c4bbcace439b1a868107da96c90fcf2282f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "78a501ff4d3192bd80ef7cc677af7c4bbcace439b1a868107da96c90fcf2282f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "78a501ff4d3192bd80ef7cc677af7c4bbcace439b1a868107da96c90fcf2282f", kill_on_drop: false }` [INFO] [stdout] 78a501ff4d3192bd80ef7cc677af7c4bbcace439b1a868107da96c90fcf2282f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 70a66834e416b28127ae929a507eaced61b65e876ad30f3aba37cb0f2186c79a [INFO] running `Command { std: "docker" "start" "-a" "70a66834e416b28127ae929a507eaced61b65e876ad30f3aba37cb0f2186c79a", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Compiling libc v0.2.43 [INFO] [stderr] Compiling proc-macro2 v0.4.13 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling either v1.5.0 [INFO] [stderr] Compiling bitflags v1.0.3 [INFO] [stderr] Compiling itertools v0.7.8 [INFO] [stderr] Compiling memchr v2.0.1 [INFO] [stderr] Compiling nom v4.0.0 [INFO] [stderr] Compiling quote v0.6.6 [INFO] [stderr] Compiling classfile-parser v0.3.2 [INFO] [stderr] Compiling jvm-bindgen v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/lib.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_upper` [INFO] [stdout] --> src/lib.rs:59:10 [INFO] [stdout] | [INFO] [stdout] 59 | for (is_upper, chars) in &java_name.chars().group_by(|c| c.is_uppercase()) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_upper` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ClassFileExt` is never used [INFO] [stdout] --> src/lib.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | trait ClassFileExt { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_class_name` is never used [INFO] [stdout] --> src/lib.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn get_class_name<'a>(class: &'a ClassConstant, class_file: &'a ClassFile) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RustFmt` is never constructed [INFO] [stdout] --> src/lib.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | struct RustFmt(Child); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `launch`, `stdin`, and `stdout` are never used [INFO] [stdout] --> src/lib.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 40 | impl RustFmt { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 41 | fn launch() -> io::Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn stdin(&mut self) -> &mut ChildStdin { self.0.stdin.as_mut().unwrap() } [INFO] [stdout] | ^^^^^ [INFO] [stdout] 50 | fn stdout(&mut self) -> &mut ChildStdout { self.0.stdout.as_mut().unwrap() } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `transform_name` is never used [INFO] [stdout] --> src/lib.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn transform_name(java_name: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gen_method` is never used [INFO] [stdout] --> src/lib.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn gen_method(class_file: &ClassFile, method: &method_info::MethodInfo) -> TokenStream { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bindgen` is never used [INFO] [stdout] --> src/lib.rs:95:4 [INFO] [stdout] | [INFO] [stdout] 95 | fn bindgen(class_name: &str) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | write!(rustfmt.stdin(), "{}", gen); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 1.95s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.0.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "70a66834e416b28127ae929a507eaced61b65e876ad30f3aba37cb0f2186c79a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "70a66834e416b28127ae929a507eaced61b65e876ad30f3aba37cb0f2186c79a", kill_on_drop: false }` [INFO] [stdout] 70a66834e416b28127ae929a507eaced61b65e876ad30f3aba37cb0f2186c79a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 584a65e6bd06746b6d5de5d9439cbde874c0bdce4b27b3a3c0d0e5b98b26bf9b [INFO] running `Command { std: "docker" "start" "-a" "584a65e6bd06746b6d5de5d9439cbde874c0bdce4b27b3a3c0d0e5b98b26bf9b", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/lib.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_upper` [INFO] [stdout] --> src/lib.rs:59:10 [INFO] [stdout] | [INFO] [stdout] 59 | for (is_upper, chars) in &java_name.chars().group_by(|c| c.is_uppercase()) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_upper` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: trait `ClassFileExt` is never used [INFO] [stdout] --> src/lib.rs:20:7 [INFO] [stdout] | [INFO] [stdout] 20 | trait ClassFileExt { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `get_class_name` is never used [INFO] [stdout] --> src/lib.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn get_class_name<'a>(class: &'a ClassConstant, class_file: &'a ClassFile) -> &'a str { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `RustFmt` is never constructed [INFO] [stdout] --> src/lib.rs:38:8 [INFO] [stdout] | [INFO] [stdout] 38 | struct RustFmt(Child); [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `launch`, `stdin`, and `stdout` are never used [INFO] [stdout] --> src/lib.rs:41:8 [INFO] [stdout] | [INFO] [stdout] 40 | impl RustFmt { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 41 | fn launch() -> io::Result { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 49 | fn stdin(&mut self) -> &mut ChildStdin { self.0.stdin.as_mut().unwrap() } [INFO] [stdout] | ^^^^^ [INFO] [stdout] 50 | fn stdout(&mut self) -> &mut ChildStdout { self.0.stdout.as_mut().unwrap() } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling jvm-bindgen v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `transform_name` is never used [INFO] [stdout] --> src/lib.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn transform_name(java_name: &str) -> String { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `gen_method` is never used [INFO] [stdout] --> src/lib.rs:85:4 [INFO] [stdout] | [INFO] [stdout] 85 | fn gen_method(class_file: &ClassFile, method: &method_info::MethodInfo) -> TokenStream { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bindgen` is never used [INFO] [stdout] --> src/lib.rs:95:4 [INFO] [stdout] | [INFO] [stdout] 95 | fn bindgen(class_name: &str) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | write!(rustfmt.stdin(), "{}", gen); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Read` [INFO] [stdout] --> src/lib.rs:9:15 [INFO] [stdout] | [INFO] [stdout] 9 | use std::io::{Read, Write}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::borrow::Cow` [INFO] [stdout] --> src/lib.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 18 | use std::borrow::Cow; [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `is_upper` [INFO] [stdout] --> src/lib.rs:59:10 [INFO] [stdout] | [INFO] [stdout] 59 | for (is_upper, chars) in &java_name.chars().group_by(|c| c.is_uppercase()) { [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_is_upper` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: method `stdout` is never used [INFO] [stdout] --> src/lib.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 40 | impl RustFmt { [INFO] [stdout] | ------------ method in this implementation [INFO] [stdout] ... [INFO] [stdout] 50 | fn stdout(&mut self) -> &mut ChildStdout { self.0.stdout.as_mut().unwrap() } [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `Result` that must be used [INFO] [stdout] --> src/lib.rs:121:5 [INFO] [stdout] | [INFO] [stdout] 121 | write!(rustfmt.stdin(), "{}", gen); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this warning originates in the macro `write` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.25s [INFO] [stderr] warning: the following packages contain code that will be rejected by a future version of Rust: nom v4.0.0 [INFO] [stderr] note: to see what the problems were, use the option `--future-incompat-report`, or run `cargo report future-incompatibilities --id 1` [INFO] running `Command { std: "docker" "inspect" "584a65e6bd06746b6d5de5d9439cbde874c0bdce4b27b3a3c0d0e5b98b26bf9b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "584a65e6bd06746b6d5de5d9439cbde874c0bdce4b27b3a3c0d0e5b98b26bf9b", kill_on_drop: false }` [INFO] [stdout] 584a65e6bd06746b6d5de5d9439cbde874c0bdce4b27b3a3c0d0e5b98b26bf9b