[INFO] cloning repository https://github.com/alex-kattathra-johnson/rustlings [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/alex-kattathra-johnson/rustlings" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falex-kattathra-johnson%2Frustlings", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falex-kattathra-johnson%2Frustlings'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] bd5909ccba73229a521eebef79d8166b7bcdc518 [INFO] checking alex-kattathra-johnson/rustlings against try#9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869 for pr-129249 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Falex-kattathra-johnson%2Frustlings" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/alex-kattathra-johnson/rustlings on toolchain 9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/alex-kattathra-johnson/rustlings [INFO] finished tweaking git repo https://github.com/alex-kattathra-johnson/rustlings [INFO] tweaked toml for git repo https://github.com/alex-kattathra-johnson/rustlings written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 2c965603e09a4aad572eaeb68030149acbef6966f6f209dcd203d3e6ff8e8e4c [INFO] running `Command { std: "docker" "start" "-a" "2c965603e09a4aad572eaeb68030149acbef6966f6f209dcd203d3e6ff8e8e4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "2c965603e09a4aad572eaeb68030149acbef6966f6f209dcd203d3e6ff8e8e4c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2c965603e09a4aad572eaeb68030149acbef6966f6f209dcd203d3e6ff8e8e4c", kill_on_drop: false }` [INFO] [stdout] 2c965603e09a4aad572eaeb68030149acbef6966f6f209dcd203d3e6ff8e8e4c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-0-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+9543f8ea2aae74b8f13ac2a6e6c0ecdca9810869" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] f833d8959fd19cb4f143ebe1c232f3361cdfdfe668b37d1cfbc15d15ca235ca6 [INFO] running `Command { std: "docker" "start" "-a" "f833d8959fd19cb4f143ebe1c232f3361cdfdfe668b37d1cfbc15d15ca235ca6", kill_on_drop: false }` [INFO] [stderr] Checking exercises v0.0.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: function `animal_habitat` is never used [INFO] [stdout] --> solutions/03_if/if3.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn animal_habitat(animal: &str) -> &str { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `power_of_2` is never used [INFO] [stdout] --> exercises/17_tests/tests2.rs:3:4 [INFO] [stdout] | [INFO] [stdout] 3 | fn power_of_2(n: u8) -> u64 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Rectangle` is never constructed [INFO] [stdout] --> exercises/17_tests/tests3.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct Rectangle { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> exercises/17_tests/tests3.rs:8:8 [INFO] [stdout] | [INFO] [stdout] 6 | impl Rectangle { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 7 | // Don't change this function. [INFO] [stdout] 8 | fn new(width: i32, height: i32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `byte_counter` is never used [INFO] [stdout] --> solutions/23_conversions/as_ref_mut.rs:6:4 [INFO] [stdout] | [INFO] [stdout] 6 | fn byte_counter>(arg: T) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `char_counter` is never used [INFO] [stdout] --> solutions/23_conversions/as_ref_mut.rs:11:4 [INFO] [stdout] | [INFO] [stdout] 11 | fn char_counter>(arg: T) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `num_sq` is never used [INFO] [stdout] --> solutions/23_conversions/as_ref_mut.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn num_sq>(arg: &mut T) { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_nametag_text` is never used [INFO] [stdout] --> exercises/13_error_handling/errors1.rs:7:4 [INFO] [stdout] | [INFO] [stdout] 7 | fn generate_nametag_text(name: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `maybe_icecream` is never used [INFO] [stdout] --> solutions/12_options/options1.rs:5:4 [INFO] [stdout] | [INFO] [stdout] 5 | fn maybe_icecream(hour_of_day: u16) -> Option { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ColorRegularStruct` is never constructed [INFO] [stdout] --> exercises/07_structs/structs1.rs:1:8 [INFO] [stdout] | [INFO] [stdout] 1 | struct ColorRegularStruct { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `ColorTupleStruct` is never constructed [INFO] [stdout] --> exercises/07_structs/structs1.rs:7:8 [INFO] [stdout] | [INFO] [stdout] 7 | struct ColorTupleStruct(u8, u8, u8); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `UnitStruct` is never constructed [INFO] [stdout] --> exercises/07_structs/structs1.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct UnitStruct; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `factorial_for` is never used [INFO] [stdout] --> solutions/18_iterators/iterators4.rs:4:4 [INFO] [stdout] | [INFO] [stdout] 4 | fn factorial_for(num: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `factorial_fold` is never used [INFO] [stdout] --> solutions/18_iterators/iterators4.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn factorial_fold(num: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `factorial_product` is never used [INFO] [stdout] --> solutions/18_iterators/iterators4.rs:34:4 [INFO] [stdout] | [INFO] [stdout] 34 | fn factorial_product(num: u64) -> u64 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CreationError` is never used [INFO] [stdout] --> solutions/13_error_handling/errors4.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | enum CreationError { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PositiveNonzeroInteger` is never constructed [INFO] [stdout] --> solutions/13_error_handling/errors4.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct PositiveNonzeroInteger(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> solutions/13_error_handling/errors4.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl PositiveNonzeroInteger { [INFO] [stdout] | --------------------------- associated function in this implementation [INFO] [stdout] 13 | fn new(value: i64) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `CreationError` is never used [INFO] [stdout] --> exercises/13_error_handling/errors4.rs:4:6 [INFO] [stdout] | [INFO] [stdout] 4 | enum CreationError { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `PositiveNonzeroInteger` is never constructed [INFO] [stdout] --> exercises/13_error_handling/errors4.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | struct PositiveNonzeroInteger(u64); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> exercises/13_error_handling/errors4.rs:13:8 [INFO] [stdout] | [INFO] [stdout] 12 | impl PositiveNonzeroInteger { [INFO] [stdout] | --------------------------- associated function in this implementation [INFO] [stdout] 13 | fn new(value: i64) -> Result { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `fill_vec` is never used [INFO] [stdout] --> exercises/06_move_semantics/move_semantics3.rs:2:4 [INFO] [stdout] | [INFO] [stdout] 2 | fn fill_vec(mut vec: Vec) -> Vec { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `abs_all` is never used [INFO] [stdout] --> solutions/19_smart_pointers/cow1.rs:8:4 [INFO] [stdout] | [INFO] [stdout] 8 | fn abs_all(input: &mut Cow<[i32]>) { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: enum `Progress` is never used [INFO] [stdout] --> solutions/18_iterators/iterators5.rs:10:6 [INFO] [stdout] | [INFO] [stdout] 10 | enum Progress { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_for` is never used [INFO] [stdout] --> solutions/18_iterators/iterators5.rs:16:4 [INFO] [stdout] | [INFO] [stdout] 16 | fn count_for(map: &HashMap, value: Progress) -> usize { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_iterator` is never used [INFO] [stdout] --> solutions/18_iterators/iterators5.rs:26:4 [INFO] [stdout] | [INFO] [stdout] 26 | fn count_iterator(map: &HashMap, value: Progress) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_collection_for` is never used [INFO] [stdout] --> solutions/18_iterators/iterators5.rs:32:4 [INFO] [stdout] | [INFO] [stdout] 32 | fn count_collection_for(collection: &[HashMap], value: Progress) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_collection_iterator` is never used [INFO] [stdout] --> solutions/18_iterators/iterators5.rs:40:4 [INFO] [stdout] | [INFO] [stdout] 40 | fn count_collection_iterator(collection: &[HashMap], value: Progress) -> usize { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `count_collection_iterator_flat` is never used [INFO] [stdout] --> solutions/18_iterators/iterators5.rs:53:4 [INFO] [stdout] | [INFO] [stdout] 53 | fn count_collection_iterator_flat( [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `generate_nametag_text` is never used [INFO] [stdout] --> solutions/13_error_handling/errors1.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn generate_nametag_text(name: String) -> Result { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `calculate_price_of_apples` is never used [INFO] [stdout] --> exercises/quizzes/quiz1.rs:13:4 [INFO] [stdout] | [INFO] [stdout] 13 | fn calculate_price_of_apples(qty: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: this conversion is useless `&str` to `&str` [INFO] [stdout] --> solutions/09_strings/strings4.rs:25:18 [INFO] [stdout] | [INFO] [stdout] 25 | string_slice("nice weather".into()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[deny(self_type_conversion)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `exercises` (bin "strings4_sol" test) due to 1 previous error [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] warning: struct `Order` is never constructed [INFO] [stdout] --> exercises/07_structs/structs2.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Order { [INFO] [stdout] | ^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `create_order_template` is never used [INFO] [stdout] --> exercises/07_structs/structs2.rs:12:4 [INFO] [stdout] | [INFO] [stdout] 12 | fn create_order_template() -> Order { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `bigger` is never used [INFO] [stdout] --> solutions/03_if/if1.rs:1:4 [INFO] [stdout] | [INFO] [stdout] 1 | fn bigger(a: i32, b: i32) -> i32 { [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: struct `Package` is never constructed [INFO] [stdout] --> solutions/07_structs/structs3.rs:2:8 [INFO] [stdout] | [INFO] [stdout] 2 | struct Package { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new`, `is_international`, and `get_fees` are never used [INFO] [stdout] --> solutions/07_structs/structs3.rs:9:8 [INFO] [stdout] | [INFO] [stdout] 8 | impl Package { [INFO] [stdout] | ------------ associated items in this implementation [INFO] [stdout] 9 | fn new(sender_country: String, recipient_country: String, weight_in_grams: u32) -> Self { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 23 | fn is_international(&self) -> bool { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 28 | fn get_fees(&self, cents_per_gram: u32) -> u32 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] running `Command { std: "docker" "inspect" "f833d8959fd19cb4f143ebe1c232f3361cdfdfe668b37d1cfbc15d15ca235ca6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f833d8959fd19cb4f143ebe1c232f3361cdfdfe668b37d1cfbc15d15ca235ca6", kill_on_drop: false }` [INFO] [stdout] f833d8959fd19cb4f143ebe1c232f3361cdfdfe668b37d1cfbc15d15ca235ca6