[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#a7a572ce3edd6d476191fbfe92c9c1986e009b34 for pr-87190-3 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FRevelationOfTuring%2FRust-exercise" "/workspace/builds/worker-14/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-14/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/RevelationOfTuring/Rust-exercise on toolchain a7a572ce3edd6d476191fbfe92c9c1986e009b34 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "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-14/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" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] ae1b104e50dc7146d7f45425909214a3c87b4b8e2a051926fc80f8c9540fa739 [INFO] running `Command { std: "docker" "start" "-a" "ae1b104e50dc7146d7f45425909214a3c87b4b8e2a051926fc80f8c9540fa739", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "ae1b104e50dc7146d7f45425909214a3c87b4b8e2a051926fc80f8c9540fa739", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ae1b104e50dc7146d7f45425909214a3c87b4b8e2a051926fc80f8c9540fa739", kill_on_drop: false }` [INFO] [stdout] ae1b104e50dc7146d7f45425909214a3c87b4b8e2a051926fc80f8c9540fa739 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-14/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:34b6a614d2c27851fe6cbf88fbd1137609cefab8b10d0615aaeb6fd47975d74e" "/opt/rustwide/cargo-home/bin/cargo" "+a7a572ce3edd6d476191fbfe92c9c1986e009b34" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] d73e6f35b10b76e24f78f7597a55965a9e8c2dc8e17acbb2484fe7c091e4ba7a [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "d73e6f35b10b76e24f78f7597a55965a9e8c2dc8e17acbb2484fe7c091e4ba7a", kill_on_drop: false }` [INFO] [stderr] Copying to /tmp/fixit [INFO] [stderr] Running `cargo fix --edition` [INFO] [stderr] Checking rust-exercise v0.1.0 (/tmp/fixit) [INFO] [stderr] Migrating src/main.rs from 2018 edition to 2021 [INFO] [stderr] Fixed src/generics.rs (1 fix) [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: 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] 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: 61 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Fixed src/function_closures_examples_in_std.rs (2 fixes) [INFO] [stderr] Fixed src/scoping_rules/raii/destructor.rs (1 fix) [INFO] [stderr] Fixed src/traits/drop.rs (3 fixes) [INFO] [stderr] Fixed src/variable_bindings.rs (1 fix) [INFO] [stderr] Fixed src/function_closures.rs (1 fix) [INFO] [stderr] Fixed src/std_library_types/hashset.rs (1 fix) [INFO] [stderr] Fixed src/lifetimes/explicit_annotation.rs (1 fix) [INFO] [stderr] Fixed src/object_safe.rs (4 fixes) [INFO] [stderr] Fixed src/traits/derive.rs (1 fix) [INFO] [stderr] Fixed src/function_diverging_functions.rs (1 fix) [INFO] [stderr] Fixed src/traits/operator_overloading.rs (2 fixes) [INFO] [stderr] Fixed src/function_closures_capturing.rs (1 fix) [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: trailing semicolon in macro used in expression position [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: `#[warn(semicolon_in_expressions_from_macros)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: macro invocations at the end of a block are treated as expressions [INFO] [stdout] = note: to ignore the value produced by the macro, add a semicolon after the invocation of `assert_equal_len` [INFO] [stdout] = note: this warning 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: 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] warning: function is never used: `foo` [INFO] [stdout] --> src/function_diverging_functions.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | fn foo() -> ! { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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: `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: field is never read: `contents` [INFO] [stdout] --> src/module_struct_visibility.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | contents: T, [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: `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: `unused_function` [INFO] [stdout] --> src/attribute_dead_code.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | fn unused_function() { [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: struct is never constructed: `Turkey` [INFO] [stdout] --> src/generics_empty_bounds.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | struct Turkey; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `number` [INFO] [stdout] --> src/error_handling_unpacking_options_with_question_mark.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | number: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `x` [INFO] [stdout] --> src/std_library_types/box_stack_heap.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | x: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> src/std_library_types/box_stack_heap.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | y: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `field1` [INFO] [stdout] --> src/std_library_types/box_stack_heap.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | field1: Test1, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `field2` [INFO] [stdout] --> src/std_library_types/box_stack_heap.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | field2: Test1, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_michael` [INFO] [stdout] --> src/macro_rules/dont_repeat_yourself.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | fn $func + Copy>(xs: &mut Vec, ys: &Vec){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | op!(add_michael,Add,+=,add); // Add是一个trait,add是该trait中的方法名 [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `mul_michael` [INFO] [stdout] --> src/macro_rules/dont_repeat_yourself.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | fn $func + Copy>(xs: &mut Vec, ys: &Vec){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | op!(mul_michael,Mul,*=,mul); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sub_michael` [INFO] [stdout] --> src/macro_rules/dont_repeat_yourself.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | fn $func + Copy>(xs: &mut Vec, ys: &Vec){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | op!(sub_michael,Sub,-=,sub); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_michael` [INFO] [stdout] --> src/macro_rules/dont_repeat_yourself.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | fn $func(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | test_michael!(add_michael,1,2,3); [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test_michael` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `mul_michael` [INFO] [stdout] --> src/macro_rules/dont_repeat_yourself.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | fn $func(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | test_michael!(mul_michael,4,5,20); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test_michael` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sub_michael` [INFO] [stdout] --> src/macro_rules/dont_repeat_yourself.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | fn $func(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | test_michael!(sub_michael,3,2,1); [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test_michael` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot test inner items [INFO] [stdout] --> src/macro_rules/dont_repeat_yourself.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | #[test] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | test_michael!(add_michael,1,2,3); [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnameable_test_items)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot test inner items [INFO] [stdout] --> src/macro_rules/dont_repeat_yourself.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | #[test] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | test_michael!(mul_michael,4,5,20); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the attribute macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot test inner items [INFO] [stdout] --> src/macro_rules/dont_repeat_yourself.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | #[test] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | test_michael!(sub_michael,3,2,1); [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the attribute macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_ToString_and_FromStr` should have a snake case name [INFO] [stdout] --> src/conversion.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn test_ToString_and_FromStr() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `test_to_string_and_from_str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5.80s [INFO] [stderr] Running `cargo check` to verify 2021 [INFO] [stderr] Checking rust-exercise v0.1.0 (/tmp/fixit) [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: 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] 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: 61 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: trailing semicolon in macro used in expression position [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: `#[warn(semicolon_in_expressions_from_macros)]` on by default [INFO] [stdout] = warning: this was previously accepted by the compiler but is being phased out; it will become a hard error in a future release! [INFO] [stdout] = note: for more information, see issue #79813 [INFO] [stdout] = note: macro invocations at the end of a block are treated as expressions [INFO] [stdout] = note: to ignore the value produced by the macro, add a semicolon after the invocation of `assert_equal_len` [INFO] [stdout] = note: this warning 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: 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] warning: function is never used: `foo` [INFO] [stdout] --> src/function_diverging_functions.rs:9:12 [INFO] [stdout] | [INFO] [stdout] 9 | fn foo() -> ! { [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [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: `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: field is never read: `contents` [INFO] [stdout] --> src/module_struct_visibility.rs:17:9 [INFO] [stdout] | [INFO] [stdout] 17 | contents: T, [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: `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: `unused_function` [INFO] [stdout] --> src/attribute_dead_code.rs:16:8 [INFO] [stdout] | [INFO] [stdout] 16 | fn unused_function() { [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: struct is never constructed: `Turkey` [INFO] [stdout] --> src/generics_empty_bounds.rs:11:12 [INFO] [stdout] | [INFO] [stdout] 11 | struct Turkey; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `number` [INFO] [stdout] --> src/error_handling_unpacking_options_with_question_mark.rs:45:9 [INFO] [stdout] | [INFO] [stdout] 45 | number: u32, [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `x` [INFO] [stdout] --> src/std_library_types/box_stack_heap.rs:15:9 [INFO] [stdout] | [INFO] [stdout] 15 | x: f32, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `y` [INFO] [stdout] --> src/std_library_types/box_stack_heap.rs:16:9 [INFO] [stdout] | [INFO] [stdout] 16 | y: f64, [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `field1` [INFO] [stdout] --> src/std_library_types/box_stack_heap.rs:21:9 [INFO] [stdout] | [INFO] [stdout] 21 | field1: Test1, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `field2` [INFO] [stdout] --> src/std_library_types/box_stack_heap.rs:22:9 [INFO] [stdout] | [INFO] [stdout] 22 | field2: Test1, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_michael` [INFO] [stdout] --> src/macro_rules/dont_repeat_yourself.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | fn $func + Copy>(xs: &mut Vec, ys: &Vec){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 56 | op!(add_michael,Add,+=,add); // Add是一个trait,add是该trait中的方法名 [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `mul_michael` [INFO] [stdout] --> src/macro_rules/dont_repeat_yourself.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | fn $func + Copy>(xs: &mut Vec, ys: &Vec){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 57 | op!(mul_michael,Mul,*=,mul); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sub_michael` [INFO] [stdout] --> src/macro_rules/dont_repeat_yourself.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | fn $func + Copy>(xs: &mut Vec, ys: &Vec){ [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 58 | op!(sub_michael,Sub,-=,sub); [INFO] [stdout] | ---------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `op` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `add_michael` [INFO] [stdout] --> src/macro_rules/dont_repeat_yourself.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | fn $func(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | test_michael!(add_michael,1,2,3); [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test_michael` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `mul_michael` [INFO] [stdout] --> src/macro_rules/dont_repeat_yourself.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | fn $func(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | test_michael!(mul_michael,4,5,20); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test_michael` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `sub_michael` [INFO] [stdout] --> src/macro_rules/dont_repeat_yourself.rs:66:17 [INFO] [stdout] | [INFO] [stdout] 66 | fn $func(){ [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | test_michael!(sub_michael,3,2,1); [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the macro `test_michael` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot test inner items [INFO] [stdout] --> src/macro_rules/dont_repeat_yourself.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | #[test] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 85 | test_michael!(add_michael,1,2,3); [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unnameable_test_items)]` on by default [INFO] [stdout] = note: this warning originates in the attribute macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot test inner items [INFO] [stdout] --> src/macro_rules/dont_repeat_yourself.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | #[test] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 86 | test_michael!(mul_michael,4,5,20); [INFO] [stdout] | ---------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the attribute macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: cannot test inner items [INFO] [stdout] --> src/macro_rules/dont_repeat_yourself.rs:65:17 [INFO] [stdout] | [INFO] [stdout] 65 | #[test] [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 87 | test_michael!(sub_michael,3,2,1); [INFO] [stdout] | --------------------------------- in this macro invocation [INFO] [stdout] | [INFO] [stdout] = note: this warning originates in the attribute macro `test` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_ToString_and_FromStr` should have a snake case name [INFO] [stdout] --> src/conversion.rs:52:8 [INFO] [stdout] | [INFO] [stdout] 52 | fn test_ToString_and_FromStr() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ help: convert the identifier to snake case: `test_to_string_and_from_str` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(non_snake_case)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 29 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 2.06s [INFO] running `Command { std: "docker" "inspect" "d73e6f35b10b76e24f78f7597a55965a9e8c2dc8e17acbb2484fe7c091e4ba7a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d73e6f35b10b76e24f78f7597a55965a9e8c2dc8e17acbb2484fe7c091e4ba7a", kill_on_drop: false }` [INFO] [stdout] d73e6f35b10b76e24f78f7597a55965a9e8c2dc8e17acbb2484fe7c091e4ba7a