[INFO] cloning repository https://github.com/tukoke2018tutkielma/tutkielma2018
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/tukoke2018tutkielma/tutkielma2018" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftukoke2018tutkielma%2Ftutkielma2018", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftukoke2018tutkielma%2Ftutkielma2018'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c6b736e77462b3e1acf75cb8f75cf1d54405a418
[INFO] checking tukoke2018tutkielma/tutkielma2018 against try#ac4c3613be2acd5395b65d85e5657b81e3c982f0 for pr-154585
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Ftukoke2018tutkielma%2Ftutkielma2018" "/workspace/builds/worker-4-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-4-tc2/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/tukoke2018tutkielma/tutkielma2018
[INFO] finished tweaking git repo https://github.com/tukoke2018tutkielma/tutkielma2018
[INFO] tweaked toml for git repo https://github.com/tukoke2018tutkielma/tutkielma2018 written to /workspace/builds/worker-4-tc2/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/tukoke2018tutkielma/tutkielma2018 on toolchain ac4c3613be2acd5395b65d85e5657b81e3c982f0
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ac4c3613be2acd5395b65d85e5657b81e3c982f0" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/tukoke2018tutkielma/tutkielma2018 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" "+ac4c3613be2acd5395b65d85e5657b81e3c982f0" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024`
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]     Blocking waiting for file lock on package cache
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded winapi-util v0.1.2
[INFO] [stderr]   Downloaded same-file v1.0.4
[INFO] [stderr]   Downloaded walkdir v2.2.7
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+ac4c3613be2acd5395b65d85e5657b81e3c982f0" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 938e262c19c76bee3f54b4bad7a803359133410c4bb35f3df988e3e6b41e5044
[INFO] running `Command { std: "docker" "start" "-a" "938e262c19c76bee3f54b4bad7a803359133410c4bb35f3df988e3e6b41e5044", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "938e262c19c76bee3f54b4bad7a803359133410c4bb35f3df988e3e6b41e5044", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "938e262c19c76bee3f54b4bad7a803359133410c4bb35f3df988e3e6b41e5044", kill_on_drop: false }`
[INFO] [stdout] 938e262c19c76bee3f54b4bad7a803359133410c4bb35f3df988e3e6b41e5044
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4-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:d429b63d4308055ea97f60fb1d3dfca48854a00942f1bd2ad806beaf015945ec" "/opt/rustwide/cargo-home/bin/cargo" "+ac4c3613be2acd5395b65d85e5657b81e3c982f0" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 9cd9ff49c959ea546256fe463e7e86161ebee2a90b99fd26aaaf113e24b7a9af
[INFO] running `Command { std: "docker" "start" "-a" "9cd9ff49c959ea546256fe463e7e86161ebee2a90b99fd26aaaf113e24b7a9af", kill_on_drop: false }`
[INFO] [stderr] warning: `package.edition` is unspecified, defaulting to `2015` while the latest is `2024`
[INFO] [stderr]     Checking same-file v1.0.4
[INFO] [stderr]     Checking walkdir v2.2.7
[INFO] [stderr]     Checking java_to_rust v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `Seek`
[INFO] [stdout]  --> src/main.rs:3:63
[INFO] [stdout]   |
[INFO] [stdout] 3 |                     io::{self, Error, ErrorKind, Read, Write, Seek}};
[INFO] [stdout]   |                                                               ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::Op`
[INFO] [stdout]  --> src/tokenizer/token_to_code.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use super::Op;
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ErrorKind`
[INFO] [stdout]  --> src/tokenizer/mod.rs:5:22
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::io::{Error, ErrorKind};
[INFO] [stdout]   |                      ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/tokenizer/mod.rs:57:26
[INFO] [stdout]    |
[INFO] [stdout] 57 |                 chr @ '0'...'9'     => parse_number(chr, &mut char_iter),
[INFO] [stdout]    |                          ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(ellipsis_inclusive_range_patterns)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `Seek`
[INFO] [stdout]  --> src/main.rs:3:63
[INFO] [stdout]   |
[INFO] [stdout] 3 |                     io::{self, Error, ErrorKind, Read, Write, Seek}};
[INFO] [stdout]   |                                                               ^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::Op`
[INFO] [stdout]  --> src/tokenizer/token_to_code.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use super::Op;
[INFO] [stdout]   |     ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `ErrorKind`
[INFO] [stdout]  --> src/tokenizer/mod.rs:5:22
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::io::{Error, ErrorKind};
[INFO] [stdout]   |                      ^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: `...` range patterns are deprecated
[INFO] [stdout]   --> src/tokenizer/mod.rs:57:26
[INFO] [stdout]    |
[INFO] [stdout] 57 |                 chr @ '0'...'9'     => parse_number(chr, &mut char_iter),
[INFO] [stdout]    |                          ^^^ help: use `..=` for an inclusive range
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(ellipsis_inclusive_range_patterns)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/main.rs:22:32
[INFO] [stdout]    |
[INFO] [stdout] 22 | fn visit_dirs(dir: &Path, cb: &Fn(&DirEntry)) -> io::Result<()> {
[INFO] [stdout]    |                                ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 22 | fn visit_dirs(dir: &Path, cb: &dyn Fn(&DirEntry)) -> io::Result<()> {
[INFO] [stdout]    |                                +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]   --> src/tokenizer/token_to_code.rs:34:9
[INFO] [stdout]    |
[INFO] [stdout] 31 | /         match token_list.as_slice() {
[INFO] [stdout] 32 | |              _ => return Err(Error::new(ErrorKind::Other, "Failed to parse token"))
[INFO] [stdout] 33 | |         }
[INFO] [stdout]    | |_________- any code following this `match` expression is unreachable, as all arms diverge
[INFO] [stdout] 34 | /         for token in token_list {
[INFO] [stdout] 35 | |             println!("{:?}", token);
[INFO] [stdout] 36 | |         }
[INFO] [stdout]    | |_________^ unreachable statement
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `result` is never read
[INFO] [stdout]   --> src/tokenizer/token_to_code.rs:23:30
[INFO] [stdout]    |
[INFO] [stdout] 23 |     let mut result: String = String::new();
[INFO] [stdout]    |                              ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: trait objects without an explicit `dyn` are deprecated
[INFO] [stdout]   --> src/main.rs:22:32
[INFO] [stdout]    |
[INFO] [stdout] 22 | fn visit_dirs(dir: &Path, cb: &Fn(&DirEntry)) -> io::Result<()> {
[INFO] [stdout]    |                                ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = warning: this is accepted in the current edition (Rust 2015) but is a hard error in Rust 2021!
[INFO] [stdout]    = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/warnings-promoted-to-error.html>
[INFO] [stdout]    = note: `#[warn(bare_trait_objects)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] help: if this is a dyn-compatible trait, use `dyn`
[INFO] [stdout]    |
[INFO] [stdout] 22 | fn visit_dirs(dir: &Path, cb: &dyn Fn(&DirEntry)) -> io::Result<()> {
[INFO] [stdout]    |                                +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:90:21
[INFO] [stdout]    |
[INFO] [stdout] 90 |                 let mut output_path = PathBuf::from(output_path_as_str).with_extension("rs");
[INFO] [stdout]    |                     ----^^^^^^^^^^^
[INFO] [stdout]    |                     |
[INFO] [stdout]    |                     help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]    --> src/tokenizer/parsers.rs:220:12
[INFO] [stdout]     |
[INFO] [stdout] 220 |     panic!(description);
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]     = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] help: add a "{}" format string to `Display` the message
[INFO] [stdout]     |
[INFO] [stdout] 220 |     panic!("{}", description);
[INFO] [stdout]     |            +++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unreachable statement
[INFO] [stdout]   --> src/tokenizer/token_to_code.rs:34:9
[INFO] [stdout]    |
[INFO] [stdout] 31 | /         match token_list.as_slice() {
[INFO] [stdout] 32 | |              _ => return Err(Error::new(ErrorKind::Other, "Failed to parse token"))
[INFO] [stdout] 33 | |         }
[INFO] [stdout]    | |_________- any code following this `match` expression is unreachable, as all arms diverge
[INFO] [stdout] 34 | /         for token in token_list {
[INFO] [stdout] 35 | |             println!("{:?}", token);
[INFO] [stdout] 36 | |         }
[INFO] [stdout]    | |_________^ unreachable statement
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `result` is never read
[INFO] [stdout]   --> src/tokenizer/token_to_code.rs:23:30
[INFO] [stdout]    |
[INFO] [stdout] 23 |     let mut result: String = String::new();
[INFO] [stdout]    |                              ^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]   --> src/main.rs:90:21
[INFO] [stdout]    |
[INFO] [stdout] 90 |                 let mut output_path = PathBuf::from(output_path_as_str).with_extension("rs");
[INFO] [stdout]    |                     ----^^^^^^^^^^^
[INFO] [stdout]    |                     |
[INFO] [stdout]    |                     help: remove this `mut`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(unused_mut)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: panic message is not a string literal
[INFO] [stdout]    --> src/tokenizer/parsers.rs:220:12
[INFO] [stdout]     |
[INFO] [stdout] 220 |     panic!(description);
[INFO] [stdout]     |            ^^^^^^^^^^^
[INFO] [stdout]     |
[INFO] [stdout]     = note: this usage of `panic!()` is deprecated; it will be a hard error in Rust 2021
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]     = note: for more information, see <https://doc.rust-lang.org/edition-guide/rust-2021/panic-macro-consistency.html>
[INFO] [stdout]     = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default
[INFO] [stdout] help: add a "{}" format string to `Display` the message
[INFO] [stdout]     |
[INFO] [stdout] 220 |     panic!("{}", description);
[INFO] [stdout]     |            +++++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.56s
[INFO] running `Command { std: "docker" "inspect" "9cd9ff49c959ea546256fe463e7e86161ebee2a90b99fd26aaaf113e24b7a9af", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "9cd9ff49c959ea546256fe463e7e86161ebee2a90b99fd26aaaf113e24b7a9af", kill_on_drop: false }`
[INFO] [stdout] 9cd9ff49c959ea546256fe463e7e86161ebee2a90b99fd26aaaf113e24b7a9af
