[INFO] fetching crate sudachiclone 0.2.1... [INFO] checking sudachiclone-0.2.1 against try#4f260f0f20b3133d20cfb50353c0221943af5796+rustflags=-Dunmustuse_in_always_ok for pr-148577 [INFO] extracting crate sudachiclone 0.2.1 into /workspace/builds/worker-7-tc2/source [INFO] started tweaking crates.io crate sudachiclone 0.2.1 [INFO] finished tweaking crates.io crate sudachiclone 0.2.1 [INFO] tweaked toml for crates.io crate sudachiclone 0.2.1 written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] validating manifest of crates.io crate sudachiclone 0.2.1 on toolchain 4f260f0f20b3133d20cfb50353c0221943af5796 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate sudachiclone 0.2.1 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" "+4f260f0f20b3133d20cfb50353c0221943af5796" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] c15257d9aa9085be649a7f72682fba088e6514d1c3d139bb8a711b1c4f70b1a1 [INFO] running `Command { std: "docker" "start" "-a" "c15257d9aa9085be649a7f72682fba088e6514d1c3d139bb8a711b1c4f70b1a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "c15257d9aa9085be649a7f72682fba088e6514d1c3d139bb8a711b1c4f70b1a1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c15257d9aa9085be649a7f72682fba088e6514d1c3d139bb8a711b1c4f70b1a1", kill_on_drop: false }` [INFO] [stdout] c15257d9aa9085be649a7f72682fba088e6514d1c3d139bb8a711b1c4f70b1a1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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 -Dunmustuse_in_always_ok" "-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:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+4f260f0f20b3133d20cfb50353c0221943af5796" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 109ff71245c1d7c7d1a6faeadf9627aee238233f01523035a4dea4e2c00942de [INFO] running `Command { std: "docker" "start" "-a" "109ff71245c1d7c7d1a6faeadf9627aee238233f01523035a4dea4e2c00942de", kill_on_drop: false }` [INFO] [stderr] Compiling memchr v2.3.0 [INFO] [stderr] Compiling proc-macro2 v1.0.8 [INFO] [stderr] Compiling serde v1.0.104 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Compiling unicode-xid v0.2.0 [INFO] [stderr] Compiling ryu v1.0.2 [INFO] [stderr] Compiling syn v1.0.14 [INFO] [stderr] Checking ppv-lite86 v0.2.6 [INFO] [stderr] Checking itoa v0.4.4 [INFO] [stderr] Compiling encoding_rs v0.8.22 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Checking atty v0.2.14 [INFO] [stderr] Checking thread_local v1.0.1 [INFO] [stderr] Checking regex-syntax v0.6.13 [INFO] [stderr] Checking regex-automata v0.1.8 [INFO] [stderr] Checking smallvec v1.1.0 [INFO] [stderr] Checking clap v2.33.0 [INFO] [stderr] Checking c2-chacha v0.2.3 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking unicode-normalization v0.1.11 [INFO] [stderr] Checking csv-core v0.1.6 [INFO] [stderr] Checking aho-corasick v0.7.6 [INFO] [stderr] Checking rand_chacha v0.2.1 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling quote v1.0.2 [INFO] [stderr] Checking regex v1.3.3 [INFO] [stderr] Checking bstr v0.2.9 [INFO] [stderr] Checking serde_json v1.0.44 [INFO] [stderr] Compiling thiserror-impl v1.0.9 [INFO] [stderr] Checking csv v1.1.2 [INFO] [stderr] Checking thiserror v1.0.9 [INFO] [stderr] Checking sudachiclone v0.2.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/dictionary_lib/word_id_table.rs:22:20 [INFO] [stdout] | [INFO] [stdout] 22 | self.bytes[(offset + i * 4)], [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 22 - self.bytes[(offset + i * 4)], [INFO] [stdout] 22 + self.bytes[offset + i * 4 ], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/dictionary_lib/word_id_table.rs:23:20 [INFO] [stdout] | [INFO] [stdout] 23 | self.bytes[(offset + i * 4 + 1)], [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - self.bytes[(offset + i * 4 + 1)], [INFO] [stdout] 23 + self.bytes[offset + i * 4 + 1 ], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/dictionary_lib/word_id_table.rs:24:20 [INFO] [stdout] | [INFO] [stdout] 24 | self.bytes[(offset + i * 4 + 2)], [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 24 - self.bytes[(offset + i * 4 + 2)], [INFO] [stdout] 24 + self.bytes[offset + i * 4 + 2 ], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/dictionary_lib/word_id_table.rs:25:20 [INFO] [stdout] | [INFO] [stdout] 25 | self.bytes[(offset + i * 4 + 3)], [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 25 - self.bytes[(offset + i * 4 + 3)], [INFO] [stdout] 25 + self.bytes[offset + i * 4 + 3 ], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/dictionary_lib/word_id_table.rs:22:20 [INFO] [stdout] | [INFO] [stdout] 22 | self.bytes[(offset + i * 4)], [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 22 - self.bytes[(offset + i * 4)], [INFO] [stdout] 22 + self.bytes[offset + i * 4 ], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/dictionary_lib/word_id_table.rs:23:20 [INFO] [stdout] | [INFO] [stdout] 23 | self.bytes[(offset + i * 4 + 1)], [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 23 - self.bytes[(offset + i * 4 + 1)], [INFO] [stdout] 23 + self.bytes[offset + i * 4 + 1 ], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/dictionary_lib/word_id_table.rs:24:20 [INFO] [stdout] | [INFO] [stdout] 24 | self.bytes[(offset + i * 4 + 2)], [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 24 - self.bytes[(offset + i * 4 + 2)], [INFO] [stdout] 24 + self.bytes[offset + i * 4 + 2 ], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around index expression [INFO] [stdout] --> src/dictionary_lib/word_id_table.rs:25:20 [INFO] [stdout] | [INFO] [stdout] 25 | self.bytes[(offset + i * 4 + 3)], [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 25 - self.bytes[(offset + i * 4 + 3)], [INFO] [stdout] 25 + self.bytes[offset + i * 4 + 3 ], [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: ControlFlow, PathBuf> [INFO] [stdout] --> src/config.rs:55:7 [INFO] [stdout] | [INFO] [stdout] 55 | PathBuf::from_str(&here)? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/config.rs:55:7 [INFO] [stdout] | [INFO] [stdout] 55 | PathBuf::from_str(&here)? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/config.rs:58:27 [INFO] [stdout] | [INFO] [stdout] 58 | .or_else(|| match PathBuf::from_str(file!()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: ControlFlow, PathBuf> [INFO] [stdout] --> src/config.rs:82:7 [INFO] [stdout] | [INFO] [stdout] 82 | PathBuf::from_str(d)? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/config.rs:82:7 [INFO] [stdout] | [INFO] [stdout] 82 | PathBuf::from_str(d)? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: ControlFlow, PathBuf> [INFO] [stdout] --> src/config.rs:215:18 [INFO] [stdout] | [INFO] [stdout] 215 | ok_or_io_err(PathBuf::from_str(&src_path)?.parent(), "NotFoundParentDir")?.join("sudachidict"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/config.rs:215:18 [INFO] [stdout] | [INFO] [stdout] 215 | ok_or_io_err(PathBuf::from_str(&src_path)?.parent(), "NotFoundParentDir")?.join("sudachidict"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: ControlFlow, PathBuf> [INFO] [stdout] --> src/config.rs:240:6 [INFO] [stdout] | [INFO] [stdout] 240 | Ok(PathBuf::from_str(&dict_path)?.join("resources/system.dic")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/config.rs:240:6 [INFO] [stdout] | [INFO] [stdout] 240 | Ok(PathBuf::from_str(&dict_path)?.join("resources/system.dic")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/morpheme_list.rs:56:15 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn iter(&self) -> MorphemeIterator { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 56 | pub fn iter(&self) -> MorphemeIterator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: ControlFlow, SimpleOovPlugin> [INFO] [stdout] --> src/plugin/oov_provider_plugin.rs:79:45 [INFO] [stdout] | [INFO] [stdout] 79 | Ok(OovProviderPlugin::SimpleOovPlugin(SimpleOovPlugin::setup( [INFO] [stdout] | _____________________________________________^ [INFO] [stdout] 80 | | json_obj, grammar, [INFO] [stdout] 81 | | )?)) [INFO] [stdout] | |________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/plugin/oov_provider_plugin.rs:79:45 [INFO] [stdout] | [INFO] [stdout] 79 | Ok(OovProviderPlugin::SimpleOovPlugin(SimpleOovPlugin::setup( [INFO] [stdout] | _____________________________________________^ [INFO] [stdout] 80 | | json_obj, grammar, [INFO] [stdout] 81 | | )?)) [INFO] [stdout] | |_______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/plugin/simple_oov_plugin.rs:28:57 [INFO] [stdout] | [INFO] [stdout] 28 | ) -> Result { [INFO] [stdout] | _________________________________________________________^ [INFO] [stdout] 29 | | let left_id = get_u64_by_key(json_obj, "leftId") as u32; [INFO] [stdout] 30 | | let right_id = get_u64_by_key(json_obj, "rightId") as u32; [INFO] [stdout] 31 | | let cost = get_i64_by_key(json_obj, "cost") as i32; [INFO] [stdout] ... | [INFO] [stdout] 51 | | }) [INFO] [stdout] 52 | | } [INFO] [stdout] | |___^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/plugin/simple_oov_plugin.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | / Ok(SimpleOovPlugin { [INFO] [stdout] 47 | | left_id, [INFO] [stdout] 48 | | right_id, [INFO] [stdout] 49 | | cost, [INFO] [stdout] 50 | | oov_pos_id, [INFO] [stdout] 51 | | }) [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> src/tokenizer.rs:89:33 [INFO] [stdout] | [INFO] [stdout] 89 | process_oov(oov_plugin.deref(), input, i, &mut has_words, &mut lattice); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `OovProviderPlugin` does not implement `Deref`, so calling `deref` on `&OovProviderPlugin` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 89 - process_oov(oov_plugin.deref(), input, i, &mut has_words, &mut lattice); [INFO] [stdout] 89 + process_oov(oov_plugin, input, i, &mut has_words, &mut lattice); [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `OovProviderPlugin`, implement `Clone` for it [INFO] [stdout] --> src/plugin/oov_provider_plugin.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 + #[derive(Clone)] [INFO] [stdout] 14 | pub enum OovProviderPlugin { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> src/tokenizer.rs:94:33 [INFO] [stdout] | [INFO] [stdout] 94 | process_oov(oov_plugin.deref(), input, i, &mut has_words, &mut lattice); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `OovProviderPlugin` does not implement `Deref`, so calling `deref` on `&OovProviderPlugin` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 94 - process_oov(oov_plugin.deref(), input, i, &mut has_words, &mut lattice); [INFO] [stdout] 94 + process_oov(oov_plugin, input, i, &mut has_words, &mut lattice); [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `OovProviderPlugin`, implement `Clone` for it [INFO] [stdout] --> src/plugin/oov_provider_plugin.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 + #[derive(Clone)] [INFO] [stdout] 14 | pub enum OovProviderPlugin { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/tokenizer.rs:98:16 [INFO] [stdout] | [INFO] [stdout] 98 | panic!(format!("there is no morpheme at {}", i)); [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 [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 98 - panic!(format!("there is no morpheme at {}", i)); [INFO] [stdout] 98 + panic!("there is no morpheme at {}", i); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/utf8_input_text.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | fn get_substring(&self, start: usize, end: usize) -> Result, ()>; [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 21 | fn get_substring(&self, start: usize, end: usize) -> Result, ()>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/utf8_input_text.rs:75:20 [INFO] [stdout] | [INFO] [stdout] 75 | fn get_substring(&self, start: usize, end: usize) -> Result, ()> { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 75 | fn get_substring(&self, start: usize, end: usize) -> Result, ()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `sudachiclone` (lib) due to 13 previous errors; 10 warnings emitted [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error: this type will no longer be must used: ControlFlow, PathBuf> [INFO] [stdout] --> src/config.rs:55:7 [INFO] [stdout] | [INFO] [stdout] 55 | PathBuf::from_str(&here)? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: requested on the command line with `-D unmustuse-in-always-ok` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/config.rs:55:7 [INFO] [stdout] | [INFO] [stdout] 55 | PathBuf::from_str(&here)? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/config.rs:58:27 [INFO] [stdout] | [INFO] [stdout] 58 | .or_else(|| match PathBuf::from_str(file!()) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: ControlFlow, PathBuf> [INFO] [stdout] --> src/config.rs:82:7 [INFO] [stdout] | [INFO] [stdout] 82 | PathBuf::from_str(d)? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/config.rs:82:7 [INFO] [stdout] | [INFO] [stdout] 82 | PathBuf::from_str(d)? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: ControlFlow, PathBuf> [INFO] [stdout] --> src/config.rs:215:18 [INFO] [stdout] | [INFO] [stdout] 215 | ok_or_io_err(PathBuf::from_str(&src_path)?.parent(), "NotFoundParentDir")?.join("sudachidict"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/config.rs:215:18 [INFO] [stdout] | [INFO] [stdout] 215 | ok_or_io_err(PathBuf::from_str(&src_path)?.parent(), "NotFoundParentDir")?.join("sudachidict"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: ControlFlow, PathBuf> [INFO] [stdout] --> src/config.rs:240:6 [INFO] [stdout] | [INFO] [stdout] 240 | Ok(PathBuf::from_str(&dict_path)?.join("resources/system.dic")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/config.rs:240:6 [INFO] [stdout] | [INFO] [stdout] 240 | Ok(PathBuf::from_str(&dict_path)?.join("resources/system.dic")) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/dictionary_lib/character_category.rs:282:5 [INFO] [stdout] | [INFO] [stdout] 282 | PathBuf::from_str(file!()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/dictionary_lib/dictionary_header.rs:91:9 [INFO] [stdout] | [INFO] [stdout] 91 | PathBuf::from_str(file!()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/dictionary_lib/double_array_lexicon.rs:152:9 [INFO] [stdout] | [INFO] [stdout] 152 | PathBuf::from_str(file!()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/morpheme_list.rs:56:15 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn iter(&self) -> MorphemeIterator { [INFO] [stdout] | ^^^^^ ^^^^^^^^^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | | [INFO] [stdout] | the lifetime is elided here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] = note: `#[warn(mismatched_lifetime_syntaxes)]` on by default [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 56 | pub fn iter(&self) -> MorphemeIterator<'_> { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/plugin/default_input_text_plugin.rs:179:5 [INFO] [stdout] | [INFO] [stdout] 179 | PathBuf::from_str(file!()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/plugin/default_input_text_plugin.rs:224:27 [INFO] [stdout] | [INFO] [stdout] 224 | config.resource_dir = PathBuf::from_str(file!()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/plugin/mecab_oov_plugin.rs:317:22 [INFO] [stdout] | [INFO] [stdout] 317 | fn get_substring(&self, start: usize, end: usize) -> Result, ()> { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 317 | fn get_substring(&self, start: usize, end: usize) -> Result, ()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: ControlFlow, SimpleOovPlugin> [INFO] [stdout] --> src/plugin/oov_provider_plugin.rs:79:45 [INFO] [stdout] | [INFO] [stdout] 79 | Ok(OovProviderPlugin::SimpleOovPlugin(SimpleOovPlugin::setup( [INFO] [stdout] | _____________________________________________^ [INFO] [stdout] 80 | | json_obj, grammar, [INFO] [stdout] 81 | | )?)) [INFO] [stdout] | |________^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/plugin/oov_provider_plugin.rs:79:45 [INFO] [stdout] | [INFO] [stdout] 79 | Ok(OovProviderPlugin::SimpleOovPlugin(SimpleOovPlugin::setup( [INFO] [stdout] | _____________________________________________^ [INFO] [stdout] 80 | | json_obj, grammar, [INFO] [stdout] 81 | | )?)) [INFO] [stdout] | |_______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/plugin/prolonged_soundmark_input_text_plugin.rs:84:9 [INFO] [stdout] | [INFO] [stdout] 84 | PathBuf::from_str(file!()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/plugin/simple_oov_plugin.rs:28:57 [INFO] [stdout] | [INFO] [stdout] 28 | ) -> Result { [INFO] [stdout] | _________________________________________________________^ [INFO] [stdout] 29 | | let left_id = get_u64_by_key(json_obj, "leftId") as u32; [INFO] [stdout] 30 | | let right_id = get_u64_by_key(json_obj, "rightId") as u32; [INFO] [stdout] 31 | | let cost = get_i64_by_key(json_obj, "cost") as i32; [INFO] [stdout] ... | [INFO] [stdout] 51 | | }) [INFO] [stdout] 52 | | } [INFO] [stdout] | |___^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/plugin/simple_oov_plugin.rs:46:5 [INFO] [stdout] | [INFO] [stdout] 46 | / Ok(SimpleOovPlugin { [INFO] [stdout] 47 | | left_id, [INFO] [stdout] 48 | | right_id, [INFO] [stdout] 49 | | cost, [INFO] [stdout] 50 | | oov_pos_id, [INFO] [stdout] 51 | | }) [INFO] [stdout] | |______^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> src/tokenizer.rs:89:33 [INFO] [stdout] | [INFO] [stdout] 89 | process_oov(oov_plugin.deref(), input, i, &mut has_words, &mut lattice); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `OovProviderPlugin` does not implement `Deref`, so calling `deref` on `&OovProviderPlugin` copies the reference, which does not do anything and can be removed [INFO] [stdout] = note: `#[warn(noop_method_call)]` on by default [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 89 - process_oov(oov_plugin.deref(), input, i, &mut has_words, &mut lattice); [INFO] [stdout] 89 + process_oov(oov_plugin, input, i, &mut has_words, &mut lattice); [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `OovProviderPlugin`, implement `Clone` for it [INFO] [stdout] --> src/plugin/oov_provider_plugin.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 + #[derive(Clone)] [INFO] [stdout] 14 | pub enum OovProviderPlugin { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: call to `.deref()` on a reference in this situation does nothing [INFO] [stdout] --> src/tokenizer.rs:94:33 [INFO] [stdout] | [INFO] [stdout] 94 | process_oov(oov_plugin.deref(), input, i, &mut has_words, &mut lattice); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: the type `OovProviderPlugin` does not implement `Deref`, so calling `deref` on `&OovProviderPlugin` copies the reference, which does not do anything and can be removed [INFO] [stdout] help: remove this redundant call [INFO] [stdout] | [INFO] [stdout] 94 - process_oov(oov_plugin.deref(), input, i, &mut has_words, &mut lattice); [INFO] [stdout] 94 + process_oov(oov_plugin, input, i, &mut has_words, &mut lattice); [INFO] [stdout] | [INFO] [stdout] help: if you meant to clone `OovProviderPlugin`, implement `Clone` for it [INFO] [stdout] --> src/plugin/oov_provider_plugin.rs:13:1 [INFO] [stdout] | [INFO] [stdout] 13 + #[derive(Clone)] [INFO] [stdout] 14 | pub enum OovProviderPlugin { [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: panic message is not a string literal [INFO] [stdout] --> src/tokenizer.rs:98:16 [INFO] [stdout] | [INFO] [stdout] 98 | panic!(format!("there is no morpheme at {}", i)); [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 [INFO] [stdout] = note: the `panic!()` macro supports formatting, so there's no need for the `format!()` macro here [INFO] [stdout] = note: `#[warn(non_fmt_panics)]` (part of `#[warn(rust_2021_compatibility)]`) on by default [INFO] [stdout] help: remove the `format!(..)` macro call [INFO] [stdout] | [INFO] [stdout] 98 - panic!(format!("there is no morpheme at {}", i)); [INFO] [stdout] 98 + panic!("there is no morpheme at {}", i); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/tokenizer.rs:234:24 [INFO] [stdout] | [INFO] [stdout] 234 | let resource_dir = PathBuf::from_str(file!()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/utf8_input_text.rs:21:20 [INFO] [stdout] | [INFO] [stdout] 21 | fn get_substring(&self, start: usize, end: usize) -> Result, ()>; [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 21 | fn get_substring(&self, start: usize, end: usize) -> Result, ()>; [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: hiding a lifetime that's elided elsewhere is confusing [INFO] [stdout] --> src/utf8_input_text.rs:75:20 [INFO] [stdout] | [INFO] [stdout] 75 | fn get_substring(&self, start: usize, end: usize) -> Result, ()> { [INFO] [stdout] | ^^^^^ the lifetime is elided here ^^^^^^^^ the same lifetime is hidden here [INFO] [stdout] | [INFO] [stdout] = help: the same lifetime is referred to in inconsistent ways, making the signature confusing [INFO] [stdout] help: use `'_` for type paths [INFO] [stdout] | [INFO] [stdout] 75 | fn get_substring(&self, start: usize, end: usize) -> Result, ()> { [INFO] [stdout] | +++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this type will no longer be must used: Result [INFO] [stdout] --> src/utf8_input_text_builder.rs:234:7 [INFO] [stdout] | [INFO] [stdout] 234 | PathBuf::from_str(file!()) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `sudachiclone` (lib test) due to 21 previous errors; 11 warnings emitted [INFO] running `Command { std: "docker" "inspect" "109ff71245c1d7c7d1a6faeadf9627aee238233f01523035a4dea4e2c00942de", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "109ff71245c1d7c7d1a6faeadf9627aee238233f01523035a4dea4e2c00942de", kill_on_drop: false }` [INFO] [stdout] 109ff71245c1d7c7d1a6faeadf9627aee238233f01523035a4dea4e2c00942de