[INFO] cloning repository https://github.com/RevelationOfTuring/Rust-exercise [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/RevelationOfTuring/Rust-exercise" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRevelationOfTuring%2FRust-exercise", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRevelationOfTuring%2FRust-exercise'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 85833a6e8ad2ed3365b46f1059682316bdcdc8ef [INFO] checking RevelationOfTuring/Rust-exercise against try#3d9fdbff4f377de96b3a51174e7a64086bee9a5c for pr-81477 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRevelationOfTuring%2FRust-exercise" "/workspace/builds/worker-10/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-10/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/RevelationOfTuring/Rust-exercise on toolchain 3d9fdbff4f377de96b3a51174e7a64086bee9a5c [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3d9fdbff4f377de96b3a51174e7a64086bee9a5c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/RevelationOfTuring/Rust-exercise [INFO] finished tweaking git repo https://github.com/RevelationOfTuring/Rust-exercise [INFO] tweaked toml for git repo https://github.com/RevelationOfTuring/Rust-exercise written to /workspace/builds/worker-10/source/Cargo.toml [INFO] crate git repo https://github.com/RevelationOfTuring/Rust-exercise already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+3d9fdbff4f377de96b3a51174e7a64086bee9a5c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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:ea7d7bff36b2ba8ce4de8bba1d2dea90376bc481f1a945a913994a8c492e40c1" "/opt/rustwide/cargo-home/bin/cargo" "+3d9fdbff4f377de96b3a51174e7a64086bee9a5c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 71f7f4f318e645c40f9dcf1b1600a3205f20895c5eca0496779f80a9ef008fd7 [INFO] running `Command { std: "docker" "start" "-a" "71f7f4f318e645c40f9dcf1b1600a3205f20895c5eca0496779f80a9ef008fd7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "71f7f4f318e645c40f9dcf1b1600a3205f20895c5eca0496779f80a9ef008fd7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "71f7f4f318e645c40f9dcf1b1600a3205f20895c5eca0496779f80a9ef008fd7", kill_on_drop: false }` [INFO] [stdout] 71f7f4f318e645c40f9dcf1b1600a3205f20895c5eca0496779f80a9ef008fd7 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-10/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" "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:ea7d7bff36b2ba8ce4de8bba1d2dea90376bc481f1a945a913994a8c492e40c1" "/opt/rustwide/cargo-home/bin/cargo" "+3d9fdbff4f377de96b3a51174e7a64086bee9a5c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d3b0f6e5ae62b03ee4746279f54262ffbecf2b01c43b7a3c0ffd6ee9b372df90 [INFO] running `Command { std: "docker" "start" "-a" "d3b0f6e5ae62b03ee4746279f54262ffbecf2b01c43b7a3c0ffd6ee9b372df90", kill_on_drop: false }` [INFO] [stderr] Checking rust-exercise v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/macro_rules/domain_specific_languages.rs:11:1 [INFO] [stdout] | [INFO] [stdout] 11 | / macro_rules! calculate { [INFO] [stdout] 12 | | (michael $e:expr) => { [INFO] [stdout] 13 | | { [INFO] [stdout] 14 | | { [INFO] [stdout] ... | [INFO] [stdout] 20 | | }; [INFO] [stdout] 21 | | } [INFO] [stdout] | |_^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_macros)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused macro definition [INFO] [stdout] --> src/macro_rules/variadic_interfaces.rs:9:1 [INFO] [stdout] | [INFO] [stdout] 9 | / macro_rules! calculate { [INFO] [stdout] 10 | | // 如果是单个参数 [INFO] [stdout] 11 | | (michael $e:expr) => { [INFO] [stdout] 12 | | { [INFO] [stdout] ... | [INFO] [stdout] 25 | | } [INFO] [stdout] 26 | | } [INFO] [stdout] | |_^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `arg` [INFO] [stdout] --> src/generics.rs:14:25 [INFO] [stdout] | [INFO] [stdout] 14 | fn generics_function(arg: T) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_arg` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `private_function` [INFO] [stdout] --> src/module_visibility.rs:11:8 [INFO] [stdout] | [INFO] [stdout] 11 | fn private_function() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `function` [INFO] [stdout] --> src/module_visibility.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 16 | pub fn function() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `indirect_access` [INFO] [stdout] --> src/module_visibility.rs:21:12 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn indirect_access() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `function` [INFO] [stdout] --> src/module_visibility.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 29 | pub fn function() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `private_function` [INFO] [stdout] --> src/module_visibility.rs:34:12 [INFO] [stdout] | [INFO] [stdout] 34 | fn private_function() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `public_function_in_my_mod` [INFO] [stdout] --> src/module_visibility.rs:40:53 [INFO] [stdout] | [INFO] [stdout] 40 | pub(in crate::module_visibility::my_mod) fn public_function_in_my_mod() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `public_function_in_my_mod_inner` [INFO] [stdout] --> src/module_visibility.rs:47:22 [INFO] [stdout] | [INFO] [stdout] 47 | pub(self) fn public_function_in_my_mod_inner() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `public_function_in_super_mod` [INFO] [stdout] --> src/module_visibility.rs:52:23 [INFO] [stdout] | [INFO] [stdout] 52 | pub(super) fn public_function_in_super_mod() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `call_public_function_in_my_mod` [INFO] [stdout] --> src/module_visibility.rs:57:12 [INFO] [stdout] | [INFO] [stdout] 57 | pub fn call_public_function_in_my_mod() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `public_function_in_crate` [INFO] [stdout] --> src/module_visibility.rs:65:19 [INFO] [stdout] | [INFO] [stdout] 65 | pub(crate) fn public_function_in_crate() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `function` [INFO] [stdout] --> src/module_visibility.rs:71:16 [INFO] [stdout] | [INFO] [stdout] 71 | pub fn function() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `function` [INFO] [stdout] --> src/module_visibility.rs:77:4 [INFO] [stdout] | [INFO] [stdout] 77 | fn function() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `OpenBox` [INFO] [stdout] --> src/module_struct_visibility.rs:9:16 [INFO] [stdout] | [INFO] [stdout] 9 | pub struct OpenBox { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct is never constructed: `ClosedBox` [INFO] [stdout] --> src/module_struct_visibility.rs:15:16 [INFO] [stdout] | [INFO] [stdout] 15 | pub struct ClosedBox { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `new` [INFO] [stdout] --> src/module_struct_visibility.rs:22:16 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn new(contents: T) -> ClosedBox { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `function` [INFO] [stdout] --> src/module_super_and_self.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn function() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `function` [INFO] [stdout] --> src/module_super_and_self.rs:10:12 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn function() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `function` [INFO] [stdout] --> src/module_super_and_self.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | fn function() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `function` [INFO] [stdout] --> src/module_super_and_self.rs:21:16 [INFO] [stdout] | [INFO] [stdout] 21 | pub fn function() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `indirect_call` [INFO] [stdout] --> src/module_super_and_self.rs:26:12 [INFO] [stdout] | [INFO] [stdout] 26 | pub fn indirect_call() { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `public_function` [INFO] [stdout] --> src/module_file_hierarchy/my_mod/inaccessible.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn public_function() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `function` [INFO] [stdout] --> src/module_file_hierarchy/my_mod/nested.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | pub fn function() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `private_function` [INFO] [stdout] --> src/module_file_hierarchy/my_mod/nested.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn private_function() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `function` [INFO] [stdout] --> src/module_file_hierarchy/my_mod/mod.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn function() { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `private_function` [INFO] [stdout] --> src/module_file_hierarchy/my_mod/mod.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn private_function() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `indirect_access` [INFO] [stdout] --> src/module_file_hierarchy/my_mod/mod.rs:15:8 [INFO] [stdout] | [INFO] [stdout] 15 | pub fn indirect_access() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `function` [INFO] [stdout] --> src/module_file_hierarchy.rs:18:4 [INFO] [stdout] | [INFO] [stdout] 18 | fn function(){ [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `are_you_on_linux` [INFO] [stdout] --> src/attribute_cfg.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn are_you_on_linux() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `generics_function` [INFO] [stdout] --> src/generics.rs:14:4 [INFO] [stdout] | [INFO] [stdout] 14 | fn generics_function(arg: T) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `multiply_v1` [INFO] [stdout] --> src/error_handling_result_map.rs:30:8 [INFO] [stdout] | [INFO] [stdout] 30 | fn multiply_v1(first_num_str: &str, second_num_str: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_result` [INFO] [stdout] --> src/error_handling_result_map.rs:46:8 [INFO] [stdout] | [INFO] [stdout] 46 | fn print_result(result: Result) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `multiply_v2` [INFO] [stdout] --> src/error_handling_result_map.rs:71:8 [INFO] [stdout] | [INFO] [stdout] 71 | fn multiply_v2(first_num_str: &str, second_num_str: &str) -> Result { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `Result` [INFO] [stdout] --> src/error_handling_multiple_error_types_boxing_errors.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 15 | type Result = std::result::Result>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `double_first` [INFO] [stdout] --> src/error_handling_multiple_error_types_boxing_errors.rs:28:8 [INFO] [stdout] | [INFO] [stdout] 28 | fn double_first(vec: Vec<&str>) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `print_result` [INFO] [stdout] --> src/error_handling_multiple_error_types_boxing_errors.rs:54:8 [INFO] [stdout] | [INFO] [stdout] 54 | fn print_result(result: Result) { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `create_box` [INFO] [stdout] --> src/scoping_rules/raii/mod.rs:14:8 [INFO] [stdout] | [INFO] [stdout] 14 | fn create_box() { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `author` [INFO] [stdout] --> src/scoping_rules/borrowing/mutability.rs:14:9 [INFO] [stdout] | [INFO] [stdout] 14 | author: &'static str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `title` [INFO] [stdout] --> src/scoping_rules/borrowing/mutability.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | title: &'static str, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `year` [INFO] [stdout] --> src/scoping_rules/borrowing/mutability.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | year: u32, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `borrow_book` [INFO] [stdout] --> src/scoping_rules/borrowing/mutability.rs:20:8 [INFO] [stdout] | [INFO] [stdout] 20 | fn borrow_book(book: &Book) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `new_edition` [INFO] [stdout] --> src/scoping_rules/borrowing/mutability.rs:25:8 [INFO] [stdout] | [INFO] [stdout] 25 | fn new_edition(book: &mut Book) { [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `NUM` [INFO] [stdout] --> src/lifetimes/static.rs:12:1 [INFO] [stdout] | [INFO] [stdout] 12 | static NUM: i32 = 1024; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `MichaelDivisionByZero` [INFO] [stdout] --> src/std_library_types/result.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | MichaelDivisionByZero, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `MichaelNegativeSquareRoot` [INFO] [stdout] --> src/std_library_types/result.rs:23:9 [INFO] [stdout] | [INFO] [stdout] 23 | MichaelNegativeSquareRoot, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `MichaelNegativeLogarithm` [INFO] [stdout] --> src/std_library_types/result.rs:25:9 [INFO] [stdout] | [INFO] [stdout] 25 | MichaelNegativeLogarithm, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `MichaelResult` [INFO] [stdout] --> src/std_library_types/result.rs:29:5 [INFO] [stdout] | [INFO] [stdout] 29 | pub type MichaelResult = Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `divide` [INFO] [stdout] --> src/std_library_types/result.rs:33:12 [INFO] [stdout] | [INFO] [stdout] 33 | pub fn divide(divident: f64, divisor: f64) -> MichaelResult { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sqrt` [INFO] [stdout] --> src/std_library_types/result.rs:45:12 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn sqrt(num: f64) -> MichaelResult { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ln` [INFO] [stdout] --> src/std_library_types/result.rs:56:12 [INFO] [stdout] | [INFO] [stdout] 56 | pub fn ln(num: f64) -> MichaelResult { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `MichaelDivisionByZero` [INFO] [stdout] --> src/std_library_types/result_with_question_mark.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | MichaelDivisionByZero, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `MichaelNegativeSquareRoot` [INFO] [stdout] --> src/std_library_types/result_with_question_mark.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | MichaelNegativeSquareRoot, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant is never constructed: `MichaelNegativeLogarithm` [INFO] [stdout] --> src/std_library_types/result_with_question_mark.rs:18:9 [INFO] [stdout] | [INFO] [stdout] 18 | MichaelNegativeLogarithm, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `MichaelResult` [INFO] [stdout] --> src/std_library_types/result_with_question_mark.rs:21:5 [INFO] [stdout] | [INFO] [stdout] 21 | type MichaelResult = Result; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: Trailing semicolon in macro [INFO] [stdout] --> src/macro_rules/dont_repeat_yourself.rs:23:33 [INFO] [stdout] | [INFO] [stdout] 23 | ($b.len(),)); [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 35 | assert_equal_len!(a,b,hi,+=) [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `assert_equal_len` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `div` [INFO] [stdout] --> src/std_library_types/result_with_question_mark.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn div(divident: f64, divisor: f64) -> MichaelResult { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `ln` [INFO] [stdout] --> src/std_library_types/result_with_question_mark.rs:31:12 [INFO] [stdout] | [INFO] [stdout] 31 | pub fn ln(num: f64) -> MichaelResult { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sqrt` [INFO] [stdout] --> src/std_library_types/result_with_question_mark.rs:39:12 [INFO] [stdout] | [INFO] [stdout] 39 | pub fn sqrt(num: f64) -> MichaelResult { [INFO] [stdout] | ^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `op` [INFO] [stdout] --> src/std_library_types/result_with_question_mark.rs:49:12 [INFO] [stdout] | [INFO] [stdout] 49 | pub fn op(num1: f64, num2: f64) { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `run_op` [INFO] [stdout] --> src/std_library_types/result_with_question_mark.rs:66:8 [INFO] [stdout] | [INFO] [stdout] 66 | fn run_op(num1: f64, num2: f64) -> MichaelResult { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: static is never used: `TEXT` [INFO] [stdout] --> src/file_io/create.rs:8:1 [INFO] [stdout] | [INFO] [stdout] 8 | static TEXT: &str = "This is a file for create test!!"; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 62 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused label [INFO] [stdout] --> src/labels.rs:12:13 [INFO] [stdout] | [INFO] [stdout] 12 | 'inner: loop { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_labels)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/file_io/open.rs:23:77 [INFO] [stdout] | [INFO] [stdout] 23 | Err(err) => panic!("file {} is opened failed: {}", display, err.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/file_io/open.rs:30:75 [INFO] [stdout] | [INFO] [stdout] 30 | Err(err) => panic!("file {} is read failed: {}", display, err.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated associated function `std::error::Error::description`: use the Display impl or to_string() [INFO] [stdout] --> src/file_io/create.rs:27:78 [INFO] [stdout] | [INFO] [stdout] 27 | Err(err) => panic!("file {} is created failed: {}", display, err.description()), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error; 4 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `rust-exercise` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "d3b0f6e5ae62b03ee4746279f54262ffbecf2b01c43b7a3c0ffd6ee9b372df90", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d3b0f6e5ae62b03ee4746279f54262ffbecf2b01c43b7a3c0ffd6ee9b372df90", kill_on_drop: false }` [INFO] [stdout] d3b0f6e5ae62b03ee4746279f54262ffbecf2b01c43b7a3c0ffd6ee9b372df90