[INFO] cloning repository https://github.com/bnpysse/rust_by_example_19 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/bnpysse/rust_by_example_19" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbnpysse%2Frust_by_example_19", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbnpysse%2Frust_by_example_19'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 44be002630fc6d065ae74c6d02ab0b0bd83e8059 [INFO] checking bnpysse/rust_by_example_19 against master#c5af0610196bc39c44e54f1e08bd9149bdc66929 for pr-118120 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbnpysse%2Frust_by_example_19" "/workspace/builds/worker-1-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bnpysse/rust_by_example_19 on toolchain c5af0610196bc39c44e54f1e08bd9149bdc66929 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c5af0610196bc39c44e54f1e08bd9149bdc66929" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/bnpysse/rust_by_example_19 [INFO] finished tweaking git repo https://github.com/bnpysse/rust_by_example_19 [INFO] tweaked toml for git repo https://github.com/bnpysse/rust_by_example_19 written to /workspace/builds/worker-1-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/bnpysse/rust_by_example_19 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" "+c5af0610196bc39c44e54f1e08bd9149bdc66929" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [ERROR] error running command: no output for 300 seconds [ERROR] this task or one of its parent failed! [ERROR] no output for 300 seconds [ERROR] note: run with `RUST_BACKTRACE=1` to display a backtrace. [INFO] checking bnpysse/rust_by_example_19 against try#a832c07a2bcc7587230eb0706f83d1d602ae5c2b for pr-118120 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fbnpysse%2Frust_by_example_19" "/workspace/builds/worker-1-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-1-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/bnpysse/rust_by_example_19 on toolchain a832c07a2bcc7587230eb0706f83d1d602ae5c2b [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a832c07a2bcc7587230eb0706f83d1d602ae5c2b" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/bnpysse/rust_by_example_19 [INFO] finished tweaking git repo https://github.com/bnpysse/rust_by_example_19 [INFO] tweaked toml for git repo https://github.com/bnpysse/rust_by_example_19 written to /workspace/builds/worker-1-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/bnpysse/rust_by_example_19 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" "+a832c07a2bcc7587230eb0706f83d1d602ae5c2b" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+a832c07a2bcc7587230eb0706f83d1d602ae5c2b" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] cf56c83f2f064d25d98c2c7f26b6b64e5e528471a4fa2fd47be1ef75d862980c [INFO] running `Command { std: "docker" "start" "-a" "cf56c83f2f064d25d98c2c7f26b6b64e5e528471a4fa2fd47be1ef75d862980c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "cf56c83f2f064d25d98c2c7f26b6b64e5e528471a4fa2fd47be1ef75d862980c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "cf56c83f2f064d25d98c2c7f26b6b64e5e528471a4fa2fd47be1ef75d862980c", kill_on_drop: false }` [INFO] [stdout] cf56c83f2f064d25d98c2c7f26b6b64e5e528471a4fa2fd47be1ef75d862980c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-1-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:2788e3201cd34a07e3172128adcd8b3090168a8e3bcc40d7c032b9dda1df7d1c" "/opt/rustwide/cargo-home/bin/cargo" "+a832c07a2bcc7587230eb0706f83d1d602ae5c2b" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2b36f3377421a032943c7ad33b685f25c7270610237919ff4161f04ea0580f3f [INFO] running `Command { std: "docker" "start" "-a" "2b36f3377421a032943c7ad33b685f25c7270610237919ff4161f04ea0580f3f", kill_on_drop: false }` [INFO] [stderr] Checking rust_by_example_19 v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet` [INFO] [stdout] --> src/main.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MathError`, `MathResult` [INFO] [stdout] --> src/main.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::checked::{MathError, MathResult}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `HashMap`, `HashSet` [INFO] [stdout] --> src/main.rs:3:24 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ^^^^^^^ ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::rc::Rc` [INFO] [stdout] --> src/main.rs:4:5 [INFO] [stdout] | [INFO] [stdout] 4 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `MathError`, `MathResult` [INFO] [stdout] --> src/main.rs:5:22 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::checked::{MathError, MathResult}; [INFO] [stdout] | ^^^^^^^^^ ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HashMap` is imported redundantly [INFO] [stdout] --> src/main.rs:318:9 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ------- the item `HashMap` is already imported here [INFO] [stdout] ... [INFO] [stdout] 318 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HashSet` is imported redundantly [INFO] [stdout] --> src/main.rs:425:9 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ------- the item `HashSet` is already imported here [INFO] [stdout] ... [INFO] [stdout] 425 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HashMap` is imported redundantly [INFO] [stdout] --> src/main.rs:318:9 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ------- the item `HashMap` is already imported here [INFO] [stdout] ... [INFO] [stdout] 318 | use std::collections::HashMap; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Rc` is imported redundantly [INFO] [stdout] --> src/main.rs:453:9 [INFO] [stdout] | [INFO] [stdout] 4 | use std::rc::Rc; [INFO] [stdout] | ----------- the item `Rc` is already imported here [INFO] [stdout] ... [INFO] [stdout] 453 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `HashSet` is imported redundantly [INFO] [stdout] --> src/main.rs:425:9 [INFO] [stdout] | [INFO] [stdout] 3 | use std::collections::{HashMap, HashSet}; [INFO] [stdout] | ------- the item `HashSet` is already imported here [INFO] [stdout] ... [INFO] [stdout] 425 | use std::collections::HashSet; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: the item `Rc` is imported redundantly [INFO] [stdout] --> src/main.rs:453:9 [INFO] [stdout] | [INFO] [stdout] 4 | use std::rc::Rc; [INFO] [stdout] | ----------- the item `Rc` is already imported here [INFO] [stdout] ... [INFO] [stdout] 453 | use std::rc::Rc; [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quotes` [INFO] [stdout] --> src/main.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 215 | let quotes = br#"You can also use "fancier" formatting, \ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_quotes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none` [INFO] [stdout] --> src/main.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | let none: Option = None; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_none` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `quotes` [INFO] [stdout] --> src/main.rs:215:9 [INFO] [stdout] | [INFO] [stdout] 215 | let quotes = br#"You can also use "fancier" formatting, \ [INFO] [stdout] | ^^^^^^ help: if this is intentional, prefix it with an underscore: `_quotes` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `none` [INFO] [stdout] --> src/main.rs:250:9 [INFO] [stdout] | [INFO] [stdout] 250 | let none: Option = None; [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_none` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DivisionByZero`, `NegativeLogarithm`, and `NegativeSquareRoot` are never constructed [INFO] [stdout] --> src/main.rs:495:9 [INFO] [stdout] | [INFO] [stdout] 494 | pub enum MathError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 495 | DivisionByZero, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 496 | NegativeLogarithm, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 497 | NegativeSquareRoot, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MathError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `MathResult` is never used [INFO] [stdout] --> src/main.rs:499:14 [INFO] [stdout] | [INFO] [stdout] 499 | pub type MathResult = Result; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sqrt` is never used [INFO] [stdout] --> src/main.rs:500:12 [INFO] [stdout] | [INFO] [stdout] 500 | pub fn sqrt(x: f64) -> MathResult { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ln` is never used [INFO] [stdout] --> src/main.rs:508:12 [INFO] [stdout] | [INFO] [stdout] 508 | pub fn ln(x: f64) -> MathResult { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `div` is never used [INFO] [stdout] --> src/main.rs:515:12 [INFO] [stdout] | [INFO] [stdout] 515 | pub fn div(x: f64, y: f64) -> MathResult { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DivisionByZero`, `NegativeLogarithm`, and `NegativeSquareRoot` are never constructed [INFO] [stdout] --> src/main.rs:526:9 [INFO] [stdout] | [INFO] [stdout] 525 | pub enum MathError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 526 | DivisionByZero, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 527 | NegativeLogarithm, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 528 | NegativeSquareRoot, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MathError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `MathResult` is never used [INFO] [stdout] --> src/main.rs:530:14 [INFO] [stdout] | [INFO] [stdout] 530 | pub type MathResult = Result; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sqrt` is never used [INFO] [stdout] --> src/main.rs:531:12 [INFO] [stdout] | [INFO] [stdout] 531 | pub fn sqrt(x: f64) -> MathResult { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ln` is never used [INFO] [stdout] --> src/main.rs:539:12 [INFO] [stdout] | [INFO] [stdout] 539 | pub fn ln(x: f64) -> MathResult { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `div` is never used [INFO] [stdout] --> src/main.rs:546:8 [INFO] [stdout] | [INFO] [stdout] 546 | fn div(x: f64, y: f64) -> MathResult { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `op_` is never used [INFO] [stdout] --> src/main.rs:553:8 [INFO] [stdout] | [INFO] [stdout] 553 | fn op_(x: f64, y: f64) -> MathResult { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `division_int` is never used [INFO] [stdout] --> src/main.rs:297:8 [INFO] [stdout] | [INFO] [stdout] 297 | fn division_int(dividend: i32, divisor: i32) -> i32 { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `op` is never used [INFO] [stdout] --> src/main.rs:560:12 [INFO] [stdout] | [INFO] [stdout] 560 | pub fn op(x: f64, y: f64) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DivisionByZero`, `NegativeLogarithm`, and `NegativeSquareRoot` are never constructed [INFO] [stdout] --> src/main.rs:495:9 [INFO] [stdout] | [INFO] [stdout] 494 | pub enum MathError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 495 | DivisionByZero, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 496 | NegativeLogarithm, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 497 | NegativeSquareRoot, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MathError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `MathResult` is never used [INFO] [stdout] --> src/main.rs:499:14 [INFO] [stdout] | [INFO] [stdout] 499 | pub type MathResult = Result; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sqrt` is never used [INFO] [stdout] --> src/main.rs:500:12 [INFO] [stdout] | [INFO] [stdout] 500 | pub fn sqrt(x: f64) -> MathResult { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ln` is never used [INFO] [stdout] --> src/main.rs:508:12 [INFO] [stdout] | [INFO] [stdout] 508 | pub fn ln(x: f64) -> MathResult { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `div` is never used [INFO] [stdout] --> src/main.rs:515:12 [INFO] [stdout] | [INFO] [stdout] 515 | pub fn div(x: f64, y: f64) -> MathResult { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `DivisionByZero`, `NegativeLogarithm`, and `NegativeSquareRoot` are never constructed [INFO] [stdout] --> src/main.rs:526:9 [INFO] [stdout] | [INFO] [stdout] 525 | pub enum MathError { [INFO] [stdout] | --------- variants in this enum [INFO] [stdout] 526 | DivisionByZero, [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] 527 | NegativeLogarithm, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] 528 | NegativeSquareRoot, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `MathError` has a derived impl for the trait `Debug`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias `MathResult` is never used [INFO] [stdout] --> src/main.rs:530:14 [INFO] [stdout] | [INFO] [stdout] 530 | pub type MathResult = Result; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::str::from_utf8` with a invalid literal always return an error [INFO] [stdout] --> src/main.rs:222:11 [INFO] [stdout] | [INFO] [stdout] 219 | let shift_jis = b"\x82\xe6\x82\xa8\x82\xb1\x82"; // SHIFT-JIS 编码的 "ようこそ" [INFO] [stdout] | ------------------------------- the literal was valid UTF-8 up to the 0 bytes [INFO] [stdout] ... [INFO] [stdout] 222 | match str::from_utf8(shift_jis) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(invalid_from_utf8)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `sqrt` is never used [INFO] [stdout] --> src/main.rs:531:12 [INFO] [stdout] | [INFO] [stdout] 531 | pub fn sqrt(x: f64) -> MathResult { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `ln` is never used [INFO] [stdout] --> src/main.rs:539:12 [INFO] [stdout] | [INFO] [stdout] 539 | pub fn ln(x: f64) -> MathResult { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `div` is never used [INFO] [stdout] --> src/main.rs:546:8 [INFO] [stdout] | [INFO] [stdout] 546 | fn div(x: f64, y: f64) -> MathResult { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `op_` is never used [INFO] [stdout] --> src/main.rs:553:8 [INFO] [stdout] | [INFO] [stdout] 553 | fn op_(x: f64, y: f64) -> MathResult { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `op` is never used [INFO] [stdout] --> src/main.rs:560:12 [INFO] [stdout] | [INFO] [stdout] 560 | pub fn op(x: f64, y: f64) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: calls to `std::str::from_utf8` with a invalid literal always return an error [INFO] [stdout] --> src/main.rs:222:11 [INFO] [stdout] | [INFO] [stdout] 219 | let shift_jis = b"\x82\xe6\x82\xa8\x82\xb1\x82"; // SHIFT-JIS 编码的 "ようこそ" [INFO] [stdout] | ------------------------------- the literal was valid UTF-8 up to the 0 bytes [INFO] [stdout] ... [INFO] [stdout] 222 | match str::from_utf8(shift_jis) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(invalid_from_utf8)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 21 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 22 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.11s [INFO] running `Command { std: "docker" "inspect" "2b36f3377421a032943c7ad33b685f25c7270610237919ff4161f04ea0580f3f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2b36f3377421a032943c7ad33b685f25c7270610237919ff4161f04ea0580f3f", kill_on_drop: false }` [INFO] [stdout] 2b36f3377421a032943c7ad33b685f25c7270610237919ff4161f04ea0580f3f