[INFO] updating cached repository CarloMicieli/rust_tutorial [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/CarloMicieli/rust_tutorial [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/CarloMicieli/rust_tutorial" "work/ex/beta-1.38-1/sources/1.37.0/gh/CarloMicieli/rust_tutorial"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/1.37.0/gh/CarloMicieli/rust_tutorial'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/CarloMicieli/rust_tutorial" "work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/CarloMicieli/rust_tutorial"` [INFO] [stderr] Cloning into 'work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/CarloMicieli/rust_tutorial'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 40e53e04214f9147c7e45942a4cb2c041f235287 [INFO] sha for GitHub repo CarloMicieli/rust_tutorial: 40e53e04214f9147c7e45942a4cb2c041f235287 [INFO] validating manifest of CarloMicieli/rust_tutorial on toolchain 1.37.0 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of CarloMicieli/rust_tutorial on toolchain beta-2019-08-13 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing CarloMicieli/rust_tutorial [INFO] finished frobbing CarloMicieli/rust_tutorial [INFO] frobbed toml for CarloMicieli/rust_tutorial written to work/ex/beta-1.38-1/sources/1.37.0/gh/CarloMicieli/rust_tutorial/Cargo.toml [INFO] started frobbing CarloMicieli/rust_tutorial [INFO] finished frobbing CarloMicieli/rust_tutorial [INFO] frobbed toml for CarloMicieli/rust_tutorial written to work/ex/beta-1.38-1/sources/beta-2019-08-13/gh/CarloMicieli/rust_tutorial/Cargo.toml [INFO] crate CarloMicieli/rust_tutorial already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+1.37.0" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+beta-2019-08-13" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] testing CarloMicieli/rust_tutorial against 1.37.0 for beta-1.38-1 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-5/1.37.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/1.37.0/gh/CarloMicieli/rust_tutorial:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+1.37.0" "build" "--frozen"` [INFO] [stdout] 1cb7f58f2a77742862454dad60a1c2db12dc7b90f189e25013dd293ab4a6fc98 [INFO] running `"docker" "start" "-a" "1cb7f58f2a77742862454dad60a1c2db12dc7b90f189e25013dd293ab4a6fc98"` [INFO] [stderr] Compiling rust_tutorial v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: function is never used: `thruth` [INFO] [stderr] --> src/control_flow/ifs.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | pub fn thruth(x: i32) -> bool { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(dead_code)] on by default [INFO] [stderr] [INFO] [stderr] warning: function is never used: `if_as_expression` [INFO] [stderr] --> src/control_flow/ifs.rs:9:1 [INFO] [stderr] | [INFO] [stderr] 9 | pub fn if_as_expression(x: i32) -> &'static str { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `sum` [INFO] [stderr] --> src/control_flow/loops.rs:2:1 [INFO] [stderr] | [INFO] [stderr] 2 | pub fn sum(from: i32, to: i32) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `sum2` [INFO] [stderr] --> src/control_flow/loops.rs:15:1 [INFO] [stderr] | [INFO] [stderr] 15 | pub fn sum2(from: i32, to: i32) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `sum3` [INFO] [stderr] --> src/control_flow/loops.rs:24:1 [INFO] [stderr] | [INFO] [stderr] 24 | pub fn sum3(from: i32, to: i32) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Val` [INFO] [stderr] --> src/custom_types/expressions.rs:5:5 [INFO] [stderr] | [INFO] [stderr] 5 | Val { n: i32 }, [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Variable` [INFO] [stderr] --> src/custom_types/expressions.rs:6:5 [INFO] [stderr] | [INFO] [stderr] 6 | Variable { name: String, exp: Box }, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `Sum` [INFO] [stderr] --> src/custom_types/expressions.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | Sum { lhs: Box, rhs: Box }, [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `constant` [INFO] [stderr] --> src/custom_types/expressions.rs:22:5 [INFO] [stderr] | [INFO] [stderr] 22 | pub fn constant(val: i32) -> Exp { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `variable` [INFO] [stderr] --> src/custom_types/expressions.rs:29:5 [INFO] [stderr] | [INFO] [stderr] 29 | pub fn variable(name: &str, exp: Exp) -> Exp { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `sum` [INFO] [stderr] --> src/custom_types/expressions.rs:36:5 [INFO] [stderr] | [INFO] [stderr] 36 | pub fn sum(lhs: Exp, rhs: Exp) -> Exp { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `eval` [INFO] [stderr] --> src/custom_types/expressions.rs:43:5 [INFO] [stderr] | [INFO] [stderr] 43 | pub fn eval(exp: &Exp) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `numerator` [INFO] [stderr] --> src/custom_types/rational.rs:26:5 [INFO] [stderr] | [INFO] [stderr] 26 | pub fn numerator(&self) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `denominator` [INFO] [stderr] --> src/custom_types/rational.rs:30:5 [INFO] [stderr] | [INFO] [stderr] 30 | pub fn denominator(&self) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: method is never used: `from` [INFO] [stderr] --> src/custom_types/rational.rs:35:5 [INFO] [stderr] | [INFO] [stderr] 35 | pub fn from(num: i32) -> Rational { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `sum` [INFO] [stderr] --> src/functions/functions.rs:1:1 [INFO] [stderr] | [INFO] [stderr] 1 | fn sum(a: i32, b: i32) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: variant is never constructed: `DividedByZero` [INFO] [stderr] --> src/functions/functions.rs:7:5 [INFO] [stderr] | [INFO] [stderr] 7 | DividedByZero, [INFO] [stderr] | ^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `div` [INFO] [stderr] --> src/functions/functions.rs:10:1 [INFO] [stderr] | [INFO] [stderr] 10 | fn div(a: i32, b: i32) -> Result { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `fib` [INFO] [stderr] --> src/functions/functions.rs:18:1 [INFO] [stderr] | [INFO] [stderr] 18 | pub fn fib(n: i32) -> i32 { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `max` [INFO] [stderr] --> src/functions/functions.rs:28:1 [INFO] [stderr] | [INFO] [stderr] 28 | / fn max(a: T, b: T) -> T [INFO] [stderr] 29 | | where [INFO] [stderr] 30 | | T: PartialOrd, [INFO] [stderr] 31 | | { [INFO] [stderr] ... | [INFO] [stderr] 36 | | } [INFO] [stderr] 37 | | } [INFO] [stderr] | |_^ [INFO] [stderr] [INFO] [stderr] warning: function is never used: `hello` [INFO] [stderr] --> src/primitive_types/strings.rs:2:1 [INFO] [stderr] | [INFO] [stderr] 2 | fn hello(name: &str) -> String { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the `d:` in this pattern is redundant [INFO] [stderr] --> src/custom_types/rational.rs:80:30 [INFO] [stderr] | [INFO] [stderr] 80 | let Rational { n: c, d: d } = other; [INFO] [stderr] | --^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this [INFO] [stderr] | [INFO] [stderr] = note: #[warn(non_shorthand_field_patterns)] on by default [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.49s [INFO] running `"docker" "inspect" "1cb7f58f2a77742862454dad60a1c2db12dc7b90f189e25013dd293ab4a6fc98"` [INFO] running `"docker" "rm" "-f" "1cb7f58f2a77742862454dad60a1c2db12dc7b90f189e25013dd293ab4a6fc98"` [INFO] [stdout] 1cb7f58f2a77742862454dad60a1c2db12dc7b90f189e25013dd293ab4a6fc98 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-5/1.37.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/1.37.0/gh/CarloMicieli/rust_tutorial:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+1.37.0" "test" "--frozen" "--no-run"` [INFO] [stdout] b131cdbb3aa3bead5cf701832dd1f5ff0f52ba69e3a8d8aacd4e389d2f86e3a5 [INFO] running `"docker" "start" "-a" "b131cdbb3aa3bead5cf701832dd1f5ff0f52ba69e3a8d8aacd4e389d2f86e3a5"` [INFO] [stderr] Compiling rust_tutorial v0.1.0 (/opt/crater/workdir) [INFO] [stderr] warning: unused import: `super::*` [INFO] [stderr] --> src/collections/arrays.rs:4:9 [INFO] [stderr] | [INFO] [stderr] 4 | use super::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: #[warn(unused_imports)] on by default [INFO] [stderr] [INFO] [stderr] warning: unused import: `super::*` [INFO] [stderr] --> src/collections/vectors.rs:4:9 [INFO] [stderr] | [INFO] [stderr] 4 | use super::*; [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] warning: the `d:` in this pattern is redundant [INFO] [stderr] --> src/custom_types/rational.rs:80:30 [INFO] [stderr] | [INFO] [stderr] 80 | let Rational { n: c, d: d } = other; [INFO] [stderr] | --^^ [INFO] [stderr] | | [INFO] [stderr] | help: remove this [INFO] [stderr] | [INFO] [stderr] = note: #[warn(non_shorthand_field_patterns)] on by default [INFO] [stderr] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 1.75s [INFO] running `"docker" "inspect" "b131cdbb3aa3bead5cf701832dd1f5ff0f52ba69e3a8d8aacd4e389d2f86e3a5"` [INFO] running `"docker" "rm" "-f" "b131cdbb3aa3bead5cf701832dd1f5ff0f52ba69e3a8d8aacd4e389d2f86e3a5"` [INFO] [stdout] b131cdbb3aa3bead5cf701832dd1f5ff0f52ba69e3a8d8aacd4e389d2f86e3a5 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/beta-1.38-1/worker-5/1.37.0:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/beta-1.38-1/sources/1.37.0/gh/CarloMicieli/rust_tutorial:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+1.37.0" "test" "--frozen"` [INFO] [stdout] 4e17e5f65cffb4f3cd46ae70918c16606cf0370bec6f1870b127a359337f8a73 [INFO] running `"docker" "start" "-a" "4e17e5f65cffb4f3cd46ae70918c16606cf0370bec6f1870b127a359337f8a73"` [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 0.03s [INFO] [stderr] Running /opt/crater/target/debug/deps/rust_tutorial-28fcd1484c252d32 [INFO] [stdout] [INFO] [stdout] running 45 tests [INFO] [stdout] test collections::vectors::tests::should_create_an_empty_vector_with_an_initial_capacity ... ok [INFO] [stdout] test collections::vectors::tests::should_push_new_elements_onto_vectors ... ok [INFO] [stdout] test collections::vectors::tests::should_insert_an_element_at_given_index ... ok [INFO] [stdout] test collections::vectors::tests::should_pop_elements_from_a_vector ... ok [INFO] [stdout] test collections::arrays::tests::should_create_an_empty_array ... ok [INFO] [stdout] test collections::vectors::tests::should_increase_a_vector_adding_elements_over_its_capacity ... ok [INFO] [stdout] test control_flow::ifs::tests::should_find_truth_in_42 ... ok [INFO] [stdout] test control_flow::ifs::tests::should_not_find_truth_in_666 ... ok [INFO] [stdout] test collections::vectors::tests::should_remove_an_element_at_given_index ... ok [INFO] [stdout] test control_flow::ifs::tests::should_use_ifs_as_expressions ... ok [INFO] [stdout] test collections::vectors::tests::should_init_a_vector_with_the_same_value ... ok [INFO] [stdout] test collections::vectors::tests::should_create_a_new_vector_from_iterator_values ... ok [INFO] [stdout] test collections::vectors::tests::should_create_an_empty_vector ... ok [INFO] [stdout] test control_flow::loops::tests::should_make_the_sum_from_a_number_to_another2 ... ok [INFO] [stdout] test custom_types::expressions::tests::should_create_new_variable_with_a_bound_expression ... ok [INFO] [stdout] test custom_types::expressions::tests::should_evaluate_expressions ... ok [INFO] [stdout] test custom_types::rational::tests::should_check_whether_the_rational_number_is_negative ... ok [INFO] [stdout] test custom_types::rational::tests::should_check_whether_the_rational_number_is_positive ... ok [INFO] [stdout] test control_flow::loops::tests::should_make_the_sum_from_a_number_to_another3 ... ok [INFO] [stdout] test custom_types::expressions::tests::should_create_a_sum_expression ... ok [INFO] [stdout] test custom_types::expressions::tests::should_create_new_constant_expressions ... ok [INFO] [stdout] test control_flow::loops::tests::should_make_the_sum_from_a_number_to_another ... ok [INFO] [stdout] test custom_types::rational::tests::should_compare_two_rational_numbers ... ok [INFO] [stdout] test custom_types::rational::tests::should_divide_two_rational_numbers ... ok [INFO] [stdout] test custom_types::rational::tests::should_create_rational_numbers_from_whole_numbers ... ok [INFO] [stdout] test custom_types::rational::tests::should_display_negative_rational_numbers ... ok [INFO] [stdout] test custom_types::rational::tests::should_display_rational_numbers ... ok [INFO] [stdout] test custom_types::rational::tests::should_create_new_rational_numbers_simplifing_its_values ... ok [INFO] [stdout] test custom_types::rational::tests::should_create_rational_numbers_from_number ... ok [INFO] [stdout] test custom_types::rational::tests::should_create_new_rational_numbers ... ok [INFO] [stdout] test custom_types::rational::tests::should_sum_two_rational_numbers ... ok [INFO] [stdout] test custom_types::rational::tests::should_sum_and_assign_two_rational_numbers ... ok [INFO] [stdout] test custom_types::rational::tests::should_substract_and_assign_two_rational_numbers ... ok [INFO] [stdout] test functions::functions::tests::div_should_return_an_err_result_when_divisor_is_zero ... ok [INFO] [stdout] test functions::functions::tests::div_should_return_an_ok_result_when_divisor_is_not_zero ... ok [INFO] [stdout] test functions::functions::tests::fib_should_compute_the_nth_fibonacci_number ... ok [INFO] [stdout] test functions::functions::tests::max_should_find_max_between_two_f32_values ... ok [INFO] [stdout] test functions::functions::tests::max_should_find_max_between_two_i32_values ... ok [INFO] [stdout] test functions::functions::tests::sum_should_add_two_i32_values ... ok [INFO] [stdout] test primitive_types::strings::tests::hello_should_make_a_greeting ... ok [INFO] [stdout] test custom_types::rational::tests::should_make_the_difference_between_two_rational_numbers ... ok [INFO] [stdout] test custom_types::rational::tests::should_multiply_two_rational_numbers ... ok [INFO] [stdout] test custom_types::rational::tests::should_negate_rational_numbers ... ok [INFO] [stdout] test custom_types::rational::tests::should_panic_when_denominator_is_zero ... ok [INFO] [stdout] test custom_types::rational::tests::should_panic_when_the_rhs_numerator_is_zero ... ok [INFO] [stdout] [INFO] [stdout] test result: ok. 45 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] Doc-tests rust_tutorial [INFO] [stdout] [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] running `"docker" "inspect" "4e17e5f65cffb4f3cd46ae70918c16606cf0370bec6f1870b127a359337f8a73"` [INFO] running `"docker" "rm" "-f" "4e17e5f65cffb4f3cd46ae70918c16606cf0370bec6f1870b127a359337f8a73"` [INFO] [stdout] 4e17e5f65cffb4f3cd46ae70918c16606cf0370bec6f1870b127a359337f8a73