[INFO] fetching crate hanja_hangul 0.1.3... [INFO] testing hanja_hangul-0.1.3 against master#cdb45c87e2cd43495379f7e867e3cc15dcee9f93 for pr-145838-1 [INFO] extracting crate hanja_hangul 0.1.3 into /workspace/builds/worker-6-tc1/source [INFO] started tweaking crates.io crate hanja_hangul 0.1.3 [INFO] finished tweaking crates.io crate hanja_hangul 0.1.3 [INFO] tweaked toml for crates.io crate hanja_hangul 0.1.3 written to /workspace/builds/worker-6-tc1/source/Cargo.toml [INFO] validating manifest of crates.io crate hanja_hangul 0.1.3 on toolchain cdb45c87e2cd43495379f7e867e3cc15dcee9f93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate crates.io crate hanja_hangul 0.1.3 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" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 575c9213914806d3f46f7b42785c2d826b072205a9a6d73fb48f0a6d32f9b556 [INFO] running `Command { std: "docker" "start" "-a" "575c9213914806d3f46f7b42785c2d826b072205a9a6d73fb48f0a6d32f9b556", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "575c9213914806d3f46f7b42785c2d826b072205a9a6d73fb48f0a6d32f9b556", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "575c9213914806d3f46f7b42785c2d826b072205a9a6d73fb48f0a6d32f9b556", kill_on_drop: false }` [INFO] [stdout] 575c9213914806d3f46f7b42785c2d826b072205a9a6d73fb48f0a6d32f9b556 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4e59d2213e7472511ac2c6240ba6b10ab38baf6beed8dcfdcf8e3528cc5dbcdf [INFO] running `Command { std: "docker" "start" "-a" "4e59d2213e7472511ac2c6240ba6b10ab38baf6beed8dcfdcf8e3528cc5dbcdf", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.171 [INFO] [stderr] Compiling smallvec v1.14.0 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling parking_lot_core v0.9.10 [INFO] [stderr] Compiling mio v1.0.3 [INFO] [stderr] Compiling socket2 v0.5.8 [INFO] [stderr] Compiling signal-hook-registry v1.4.2 [INFO] [stderr] Compiling parking_lot v0.12.3 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling tokio v1.44.0 [INFO] [stderr] Compiling hanja_hangul v0.1.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 12.28s [INFO] running `Command { std: "docker" "inspect" "4e59d2213e7472511ac2c6240ba6b10ab38baf6beed8dcfdcf8e3528cc5dbcdf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4e59d2213e7472511ac2c6240ba6b10ab38baf6beed8dcfdcf8e3528cc5dbcdf", kill_on_drop: false }` [INFO] [stdout] 4e59d2213e7472511ac2c6240ba6b10ab38baf6beed8dcfdcf8e3528cc5dbcdf [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ad8e593ac49f5864101790a0548a8c171474177d0d5a9db30ae2790c7b979b00 [INFO] running `Command { std: "docker" "start" "-a" "ad8e593ac49f5864101790a0548a8c171474177d0d5a9db30ae2790c7b979b00", kill_on_drop: false }` [INFO] [stderr] Compiling hanja_hangul v0.1.3 (/opt/rustwide/workdir) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.82s [INFO] running `Command { std: "docker" "inspect" "ad8e593ac49f5864101790a0548a8c171474177d0d5a9db30ae2790c7b979b00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ad8e593ac49f5864101790a0548a8c171474177d0d5a9db30ae2790c7b979b00", kill_on_drop: false }` [INFO] [stdout] ad8e593ac49f5864101790a0548a8c171474177d0d5a9db30ae2790c7b979b00 [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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+cdb45c87e2cd43495379f7e867e3cc15dcee9f93" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 5b89277dde95ba23930814edfc93aa966b30525aadd179a5f3c41b4b074fb4a7 [INFO] running `Command { std: "docker" "start" "-a" "5b89277dde95ba23930814edfc93aa966b30525aadd179a5f3c41b4b074fb4a7", kill_on_drop: false }` [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/hanja_hangul-72af20a649b26316) [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests hanja_hangul [INFO] [stdout] [INFO] [stdout] running 12 tests [INFO] [stdout] test src/lib.rs - (line 63) ... FAILED [INFO] [stdout] test src/lib.rs - (line 55) ... FAILED [INFO] [stdout] test src/lib.rs - load_dictionary_from_file (line 250) ... FAILED [INFO] [stdout] test src/lib.rs - (line 128) ... FAILED [INFO] [stdout] test src/lib.rs - chi2kor_str (line 445) ... FAILED [INFO] [stdout] test src/lib.rs - (line 139) ... FAILED [INFO] [stdout] test src/lib.rs - (line 46) ... FAILED [INFO] [stdout] test src/lib.rs - chi2kor_file (line 385) ... FAILED [INFO] [stdout] test src/lib.rs - load_dictionary (line 288) ... FAILED [INFO] [stdout] test src/lib.rs - (line 22) ... FAILED [INFO] [stdout] test src/lib.rs - chi2kor_file (line 371) ... FAILED [INFO] [stdout] test src/lib.rs - (line 104) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 63) stdout ---- [INFO] [stdout] error: expected one of `!` or `::`, found `add` [INFO] [stdout] --> src/lib.rs:64:7 [INFO] [stdout] | [INFO] [stdout] 1 | cargo add tokio --features full [INFO] [stdout] | ^^^ expected one of `!` or `::` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 55) stdout ---- [INFO] [stdout] error: expected item, found `[` [INFO] [stdout] --> src/lib.rs:56:1 [INFO] [stdout] | [INFO] [stdout] 1 | [dependencies] [INFO] [stdout] | ^ expected item [INFO] [stdout] | [INFO] [stdout] = note: for a full list of items that can appear in modules, see [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - load_dictionary_from_file (line 250) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `dongum_dic` in this scope [INFO] [stdout] --> src/lib.rs:258:61 [INFO] [stdout] | [INFO] [stdout] 10 | h2h::chi2kor_file("123.txt", "", &hanja_dic, &dueum_dic, &dongum_dic).await?; [INFO] [stdout] | ^^^^^^^^^^ help: a local variable with a similar name exists: `dueum_dic` [INFO] [stdout] [INFO] [stdout] error[E0061]: this function takes 0 arguments but 3 arguments were supplied [INFO] [stdout] --> src/lib.rs:257:42 [INFO] [stdout] | [INFO] [stdout] 9 | let (hanja_dic, dueum_dic, word_dic) = h2h::load_dictionary("hanja_char.csv","dueum.csv", "hanja_word.csv")?; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ ---------------- ----------- ---------------- unexpected argument #3 of type `&'static str` [INFO] [stdout] | | | [INFO] [stdout] | | unexpected argument #2 of type `&'static str` [INFO] [stdout] | unexpected argument #1 of type `&'static str` [INFO] [stdout] | [INFO] [stdout] note: function defined here [INFO] [stdout] --> /opt/rustwide/workdir/src/lib.rs:300:8 [INFO] [stdout] | [INFO] [stdout] 300 | pub fn load_dictionary() [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] help: remove the extra arguments [INFO] [stdout] | [INFO] [stdout] 9 - let (hanja_dic, dueum_dic, word_dic) = h2h::load_dictionary("hanja_char.csv","dueum.csv", "hanja_word.csv")?; [INFO] [stdout] 9 + let (hanja_dic, dueum_dic, word_dic) = h2h::load_dictionary()?; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 128) stdout ---- [INFO] [stdout] error: unknown start of token: \u{300c} [INFO] [stdout] --> src/lib.rs:129:1 [INFO] [stdout] | [INFO] [stdout] 1 | 「宋寅壽기자」14일 농림해양수산위의 농협 국감에선 올해 추곡수매와 농산물시장 [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: Unicode character '「' (Left Corner Bracket) looks like '[' (Left Square Bracket), but it is not [INFO] [stdout] | [INFO] [stdout] 1 - 「宋寅壽기자」14일 농림해양수산위의 농협 국감에선 올해 추곡수매와 농산물시장 [INFO] [stdout] 1 + [宋寅壽기자」14일 농림해양수산위의 농협 국감에선 올해 추곡수매와 농산물시장 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \u{300d} [INFO] [stdout] --> src/lib.rs:129:7 [INFO] [stdout] | [INFO] [stdout] 1 | 「宋寅壽기자」14일 농림해양수산위의 농협 국감에선 올해 추곡수매와 농산물시장 [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: Unicode character '」' (Right Corner Bracket) looks like ']' (Right Square Bracket), but it is not [INFO] [stdout] | [INFO] [stdout] 1 - 「宋寅壽기자」14일 농림해양수산위의 농협 국감에선 올해 추곡수매와 농산물시장 [INFO] [stdout] 1 + 「宋寅壽기자]14일 농림해양수산위의 농협 국감에선 올해 추곡수매와 농산물시장 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: expected item, found `[` [INFO] [stdout] --> src/lib.rs:129:1 [INFO] [stdout] | [INFO] [stdout] 1 | 「宋寅壽기자」14일 농림해양수산위의 농협 국감에선 올해 추곡수매와 농산물시장 [INFO] [stdout] | ^^ expected item [INFO] [stdout] | [INFO] [stdout] = note: for a full list of items that can appear in modules, see [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - chi2kor_str (line 445) stdout ---- [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:455:61 [INFO] [stdout] | [INFO] [stdout] 4 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_445_0() { [INFO] [stdout] | ----------------------------------- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] ... [INFO] [stdout] 13 | let (char_dic, dueum_dic, word_dic) = h2h::load_dictionary()?; [INFO] [stdout] | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] | [INFO] [stdout] help: consider adding return type [INFO] [stdout] | [INFO] [stdout] 4 ~ fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_445_0() -> Result<(), Box> { [INFO] [stdout] 5 | use hanja_hangul as h2h; [INFO] [stdout] ... [INFO] [stdout] 15 | println!("{:?}", result); [INFO] [stdout] 16 + Ok(()) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 139) stdout ---- [INFO] [stdout] error: unknown start of token: \u{300c} [INFO] [stdout] --> src/lib.rs:140:1 [INFO] [stdout] | [INFO] [stdout] 1 | 「송인수기자」14일 농림해양수산위의 농협 국감에선 올해 추곡수매와 농산물시장 [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: Unicode character '「' (Left Corner Bracket) looks like '[' (Left Square Bracket), but it is not [INFO] [stdout] | [INFO] [stdout] 1 - 「송인수기자」14일 농림해양수산위의 농협 국감에선 올해 추곡수매와 농산물시장 [INFO] [stdout] 1 + [송인수기자」14일 농림해양수산위의 농협 국감에선 올해 추곡수매와 농산물시장 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: unknown start of token: \u{300d} [INFO] [stdout] --> src/lib.rs:140:7 [INFO] [stdout] | [INFO] [stdout] 1 | 「송인수기자」14일 농림해양수산위의 농협 국감에선 올해 추곡수매와 농산물시장 [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] help: Unicode character '」' (Right Corner Bracket) looks like ']' (Right Square Bracket), but it is not [INFO] [stdout] | [INFO] [stdout] 1 - 「송인수기자」14일 농림해양수산위의 농협 국감에선 올해 추곡수매와 농산물시장 [INFO] [stdout] 1 + 「송인수기자]14일 농림해양수산위의 농협 국감에선 올해 추곡수매와 농산물시장 [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: expected item, found `[` [INFO] [stdout] --> src/lib.rs:140:1 [INFO] [stdout] | [INFO] [stdout] 1 | 「송인수기자」14일 농림해양수산위의 농협 국감에선 올해 추곡수매와 농산물시장 [INFO] [stdout] | ^^ expected item [INFO] [stdout] | [INFO] [stdout] = note: for a full list of items that can appear in modules, see [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 46) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `char_dic` in this scope [INFO] [stdout] --> src/lib.rs:47:54 [INFO] [stdout] | [INFO] [stdout] 3 | h2h::chi2kor_file("test.txt", "test_converted.txt", &char_dic, &dueum_dic, &word_dic).await?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `dueum_dic` in this scope [INFO] [stdout] --> src/lib.rs:47:65 [INFO] [stdout] | [INFO] [stdout] 3 | h2h::chi2kor_file("test.txt", "test_converted.txt", &char_dic, &dueum_dic, &word_dic).await?; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `word_dic` in this scope [INFO] [stdout] --> src/lib.rs:47:77 [INFO] [stdout] | [INFO] [stdout] 3 | h2h::chi2kor_file("test.txt", "test_converted.txt", &char_dic, &dueum_dic, &word_dic).await?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:47:87 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_46_0() { [INFO] [stdout] | ---------------------------------- this is not `async` [INFO] [stdout] 3 | h2h::chi2kor_file("test.txt", "test_converted.txt", &char_dic, &dueum_dic, &word_dic).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `h2h` [INFO] [stdout] --> src/lib.rs:47:1 [INFO] [stdout] | [INFO] [stdout] 3 | h2h::chi2kor_file("test.txt", "test_converted.txt", &char_dic, &dueum_dic, &word_dic).await?; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `h2h` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `h2h`, use `cargo add h2h` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - chi2kor_file (line 385) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `char_dic` in this scope [INFO] [stdout] --> src/lib.rs:386:54 [INFO] [stdout] | [INFO] [stdout] 3 | h2h::chi2kor_file("test.txt", "test_converted.txt", &char_dic, &dueum_dic, &word_dic).await?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `dueum_dic` in this scope [INFO] [stdout] --> src/lib.rs:386:65 [INFO] [stdout] | [INFO] [stdout] 3 | h2h::chi2kor_file("test.txt", "test_converted.txt", &char_dic, &dueum_dic, &word_dic).await?; [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `word_dic` in this scope [INFO] [stdout] --> src/lib.rs:386:77 [INFO] [stdout] | [INFO] [stdout] 3 | h2h::chi2kor_file("test.txt", "test_converted.txt", &char_dic, &dueum_dic, &word_dic).await?; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0728]: `await` is only allowed inside `async` functions and blocks [INFO] [stdout] --> src/lib.rs:386:87 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_385_0() { [INFO] [stdout] | ----------------------------------- this is not `async` [INFO] [stdout] 3 | h2h::chi2kor_file("test.txt", "test_converted.txt", &char_dic, &dueum_dic, &word_dic).await?; [INFO] [stdout] | ^^^^^ only allowed inside `async` functions and blocks [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of unresolved module or unlinked crate `h2h` [INFO] [stdout] --> src/lib.rs:386:1 [INFO] [stdout] | [INFO] [stdout] 3 | h2h::chi2kor_file("test.txt", "test_converted.txt", &char_dic, &dueum_dic, &word_dic).await?; [INFO] [stdout] | ^^^ use of unresolved module or unlinked crate `h2h` [INFO] [stdout] | [INFO] [stdout] = help: if you wanted to use a crate named `h2h`, use `cargo add h2h` to add it to your `Cargo.toml` [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433, E0728. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - load_dictionary (line 288) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `dongum_dic` in this scope [INFO] [stdout] --> src/lib.rs:296:61 [INFO] [stdout] | [INFO] [stdout] 10 | h2h::chi2kor_file("123.txt", "", &hanja_dic, &dueum_dic, &dongum_dic).await?; [INFO] [stdout] | ^^^^^^^^^^ help: a local variable with a similar name exists: `dueum_dic` [INFO] [stdout] [INFO] [stdout] error: aborting due to 1 previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 22) stdout ---- [INFO] [stdout] Test executable failed (exit status: 1). [INFO] [stdout] [INFO] [stdout] stderr: [INFO] [stdout] Error: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" } [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - chi2kor_file (line 371) stdout ---- [INFO] [stdout] Test executable failed (exit status: 1). [INFO] [stdout] [INFO] [stdout] stderr: [INFO] [stdout] Error: Os { code: 2, kind: NotFound, message: "No such file or directory" } [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 104) stdout ---- [INFO] [stdout] Test executable failed (exit status: 1). [INFO] [stdout] [INFO] [stdout] stderr: [INFO] [stdout] Error: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" } [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - (line 104) [INFO] [stdout] src/lib.rs - (line 128) [INFO] [stdout] src/lib.rs - (line 139) [INFO] [stdout] src/lib.rs - (line 22) [INFO] [stdout] src/lib.rs - (line 46) [INFO] [stdout] src/lib.rs - (line 55) [INFO] [stdout] src/lib.rs - (line 63) [INFO] [stdout] src/lib.rs - chi2kor_file (line 371) [INFO] [stdout] src/lib.rs - chi2kor_file (line 385) [INFO] [stdout] src/lib.rs - chi2kor_str (line 445) [INFO] [stdout] src/lib.rs - load_dictionary (line 288) [INFO] [stdout] src/lib.rs - load_dictionary_from_file (line 250) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 12 failed; 0 ignored; 0 measured; 0 filtered out; finished in 1.52s [INFO] [stdout] [INFO] [stderr] error: doctest failed, to rerun pass `--doc` [INFO] running `Command { std: "docker" "inspect" "5b89277dde95ba23930814edfc93aa966b30525aadd179a5f3c41b4b074fb4a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5b89277dde95ba23930814edfc93aa966b30525aadd179a5f3c41b4b074fb4a7", kill_on_drop: false }` [INFO] [stdout] 5b89277dde95ba23930814edfc93aa966b30525aadd179a5f3c41b4b074fb4a7