[INFO] cloning repository https://github.com/psatomas/error_handling [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/psatomas/error_handling" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsatomas%2Ferror_handling", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsatomas%2Ferror_handling'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] c574343146562852d2a0d46fddce64669e1deb02 [INFO] checking psatomas/error_handling against 98fd715edd3a0a5aa8f2041d7e20a3143b0fc0d3 for pr-160235-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fpsatomas%2Ferror_handling" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/psatomas/error_handling [INFO] finished tweaking git repo https://github.com/psatomas/error_handling [INFO] tweaked toml for git repo https://github.com/psatomas/error_handling written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/psatomas/error_handling on toolchain 98fd715edd3a0a5aa8f2041d7e20a3143b0fc0d3 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+98fd715edd3a0a5aa8f2041d7e20a3143b0fc0d3" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/psatomas/error_handling already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+98fd715edd3a0a5aa8f2041d7e20a3143b0fc0d3" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: binary `asking_the_user_for_input` should have a kebab-case name [INFO] [stderr] | [INFO] [stderr] 1 | /workspace/builds/worker-2-tc1/source/target/.../asking_the_user_for_input [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `cargo::non_kebab_case_bins` is set to `warn` by default [INFO] [stderr] help: to change the binary name to `asking-the-user-for-input`, convert the file stem [INFO] [stderr] | [INFO] [stderr] 1 - src/bin/asking_the_user_for_input.rs [INFO] [stderr] 1 + src/bin/asking-the-user-for-input.rs [INFO] [stderr] | [INFO] [stderr] warning: binary `coding_challenge` should have a kebab-case name [INFO] [stderr] | [INFO] [stderr] 1 | /workspace/builds/worker-2-tc1/source/target/.../coding_challenge [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to change the binary name to `coding-challenge`, convert the file stem [INFO] [stderr] | [INFO] [stderr] 1 - src/bin/coding_challenge.rs [INFO] [stderr] 1 + src/bin/coding-challenge.rs [INFO] [stderr] | [INFO] [stderr] warning: binary `error_handling` should have a kebab-case name [INFO] [stderr] | [INFO] [stderr] 1 | /workspace/builds/worker-2-tc1/source/target/.../error_handling [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to change the binary name to `error-handling`, convert `package.name` [INFO] [stderr] --> Cargo.toml:5:8 [INFO] [stderr] | [INFO] [stderr] 5 - name = "error_handling" [INFO] [stderr] 5 + name = "error-handling" [INFO] [stderr] | [INFO] [stderr] help: to change the binary name to `error-handling`, specify `bin.name` [INFO] [stderr] --> Cargo.toml:6:19 [INFO] [stderr] | [INFO] [stderr] 6 ~ version = "0.1.0" [INFO] [stderr] 7 + [[bin]] [INFO] [stderr] 8 + name = "error-handling" [INFO] [stderr] 9 + path = "src/main.rs" [INFO] [stderr] | [INFO] [stderr] warning: binary `opening_a_file` should have a kebab-case name [INFO] [stderr] | [INFO] [stderr] 1 | /workspace/builds/worker-2-tc1/source/target/.../opening_a_file [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to change the binary name to `opening-a-file`, convert the file stem [INFO] [stderr] | [INFO] [stderr] 1 - src/bin/opening_a_file.rs [INFO] [stderr] 1 + src/bin/opening-a-file.rs [INFO] [stderr] | [INFO] [stderr] warning: binary `propagating_errors` should have a kebab-case name [INFO] [stderr] | [INFO] [stderr] 1 | /workspace/builds/worker-2-tc1/source/target/.../propagating_errors [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to change the binary name to `propagating-errors`, convert the file stem [INFO] [stderr] | [INFO] [stderr] 1 - src/bin/propagating_errors.rs [INFO] [stderr] 1 + src/bin/propagating-errors.rs [INFO] [stderr] | [INFO] [stderr] warning: binary `reading_the_file_contents` should have a kebab-case name [INFO] [stderr] | [INFO] [stderr] 1 | /workspace/builds/worker-2-tc1/source/target/.../reading_the_file_contents [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to change the binary name to `reading-the-file-contents`, convert the file stem [INFO] [stderr] | [INFO] [stderr] 1 - src/bin/reading_the_file_contents.rs [INFO] [stderr] 1 + src/bin/reading-the-file-contents.rs [INFO] [stderr] | [INFO] [stderr] warning: binary `standard_error_eprintln_macro` should have a kebab-case name [INFO] [stderr] | [INFO] [stderr] 1 | /workspace/builds/worker-2-tc1/source/target/.../standard_error_eprintln_macro [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to change the binary name to `standard-error-eprintln-macro`, convert the file stem [INFO] [stderr] | [INFO] [stderr] 1 - src/bin/standard_error_eprintln_macro.rs [INFO] [stderr] 1 + src/bin/standard-error-eprintln-macro.rs [INFO] [stderr] | [INFO] [stderr] warning: binary `the_panic_marcro` should have a kebab-case name [INFO] [stderr] | [INFO] [stderr] 1 | /workspace/builds/worker-2-tc1/source/target/.../the_panic_marcro [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to change the binary name to `the-panic-marcro`, convert the file stem [INFO] [stderr] | [INFO] [stderr] 1 - src/bin/the_panic_marcro.rs [INFO] [stderr] 1 + src/bin/the-panic-marcro.rs [INFO] [stderr] | [INFO] [stderr] warning: binary `the_process_module_and_the_exit_function` should have a kebab-case name [INFO] [stderr] | [INFO] [stderr] 1 | /workspace/builds/worker-2-tc1/source/target/.../the_process_module_and_the_exit_function [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to change the binary name to `the-process-module-and-the-exit-function`, convert the file stem [INFO] [stderr] | [INFO] [stderr] 1 - src/bin/the_process_module_and_the_exit_function.rs [INFO] [stderr] 1 + src/bin/the-process-module-and-the-exit-function.rs [INFO] [stderr] | [INFO] [stderr] warning: binary `the_read_to_string_associated_function` should have a kebab-case name [INFO] [stderr] | [INFO] [stderr] 1 | /workspace/builds/worker-2-tc1/source/target/.../the_read_to_string_associated_function [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to change the binary name to `the-read-to-string-associated-function`, convert the file stem [INFO] [stderr] | [INFO] [stderr] 1 - src/bin/the_read_to_string_associated_function.rs [INFO] [stderr] 1 + src/bin/the-read-to-string-associated-function.rs [INFO] [stderr] | [INFO] [stderr] warning: binary `the_try_operator` should have a kebab-case name [INFO] [stderr] | [INFO] [stderr] 1 | /workspace/builds/worker-2-tc1/source/target/.../the_try_operator [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to change the binary name to `the-try-operator`, convert the file stem [INFO] [stderr] | [INFO] [stderr] 1 - src/bin/the_try_operator.rs [INFO] [stderr] 1 + src/bin/the-try-operator.rs [INFO] [stderr] | [INFO] [stderr] warning: binary `using_try_operator_with_option` should have a kebab-case name [INFO] [stderr] | [INFO] [stderr] 1 | /workspace/builds/worker-2-tc1/source/target/.../using_try_operator_with_option [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to change the binary name to `using-try-operator-with-option`, convert the file stem [INFO] [stderr] | [INFO] [stderr] 1 - src/bin/using_try_operator_with_option.rs [INFO] [stderr] 1 + src/bin/using-try-operator-with-option.rs [INFO] [stderr] | [INFO] [stderr] warning: `error_handling` (manifest) generated 12 warnings [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,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" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:8683fc1fc2eb5c9ac98e0d076ab094b2ffac7f99da555d2b6a2e27f346de2ec7" "sleep" "infinity", kill_on_drop: false }` [INFO] [stdout] 6b5eee362659c590303a878100fe381afd0f0044fcb61091c178fc33b8cfa4e5 [INFO] running `Command { std: "docker" "start" "6b5eee362659c590303a878100fe381afd0f0044fcb61091c178fc33b8cfa4e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6b5eee362659c590303a878100fe381afd0f0044fcb61091c178fc33b8cfa4e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6b5eee362659c590303a878100fe381afd0f0044fcb61091c178fc33b8cfa4e5" "/opt/rustwide/cargo-home/bin/cargo" "+98fd715edd3a0a5aa8f2041d7e20a3143b0fc0d3" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "6b5eee362659c590303a878100fe381afd0f0044fcb61091c178fc33b8cfa4e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-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" "-w" "/opt/rustwide/workdir" "--user" "0:0" "6b5eee362659c590303a878100fe381afd0f0044fcb61091c178fc33b8cfa4e5" "/opt/rustwide/cargo-home/bin/cargo" "+98fd715edd3a0a5aa8f2041d7e20a3143b0fc0d3" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] warning: binary `asking_the_user_for_input` should have a kebab-case name [INFO] [stderr] | [INFO] [stderr] 1 | /opt/rustwide/target/.../asking_the_user_for_input [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `cargo::non_kebab_case_bins` is set to `warn` by default [INFO] [stderr] help: to change the binary name to `asking-the-user-for-input`, convert the file stem [INFO] [stderr] | [INFO] [stderr] 1 - src/bin/asking_the_user_for_input.rs [INFO] [stderr] 1 + src/bin/asking-the-user-for-input.rs [INFO] [stderr] | [INFO] [stderr] warning: binary `coding_challenge` should have a kebab-case name [INFO] [stderr] | [INFO] [stderr] 1 | /opt/rustwide/target/.../coding_challenge [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to change the binary name to `coding-challenge`, convert the file stem [INFO] [stderr] | [INFO] [stderr] 1 - src/bin/coding_challenge.rs [INFO] [stderr] 1 + src/bin/coding-challenge.rs [INFO] [stderr] | [INFO] [stderr] warning: binary `error_handling` should have a kebab-case name [INFO] [stderr] | [INFO] [stderr] 1 | /opt/rustwide/target/.../error_handling [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to change the binary name to `error-handling`, convert `package.name` [INFO] [stderr] --> Cargo.toml:5:8 [INFO] [stderr] | [INFO] [stderr] 5 - name = "error_handling" [INFO] [stderr] 5 + name = "error-handling" [INFO] [stderr] | [INFO] [stderr] help: to change the binary name to `error-handling`, specify `bin.name` [INFO] [stderr] --> Cargo.toml:6:19 [INFO] [stderr] | [INFO] [stderr] 6 ~ version = "0.1.0" [INFO] [stderr] 7 + [[bin]] [INFO] [stderr] 8 + name = "error-handling" [INFO] [stderr] 9 + path = "src/main.rs" [INFO] [stderr] | [INFO] [stderr] warning: binary `opening_a_file` should have a kebab-case name [INFO] [stderr] | [INFO] [stderr] 1 | /opt/rustwide/target/.../opening_a_file [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to change the binary name to `opening-a-file`, convert the file stem [INFO] [stderr] | [INFO] [stderr] 1 - src/bin/opening_a_file.rs [INFO] [stderr] 1 + src/bin/opening-a-file.rs [INFO] [stderr] | [INFO] [stderr] warning: binary `propagating_errors` should have a kebab-case name [INFO] [stderr] | [INFO] [stderr] 1 | /opt/rustwide/target/.../propagating_errors [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to change the binary name to `propagating-errors`, convert the file stem [INFO] [stderr] | [INFO] [stderr] 1 - src/bin/propagating_errors.rs [INFO] [stderr] 1 + src/bin/propagating-errors.rs [INFO] [stderr] | [INFO] [stderr] warning: binary `reading_the_file_contents` should have a kebab-case name [INFO] [stderr] | [INFO] [stderr] 1 | /opt/rustwide/target/.../reading_the_file_contents [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to change the binary name to `reading-the-file-contents`, convert the file stem [INFO] [stderr] | [INFO] [stderr] 1 - src/bin/reading_the_file_contents.rs [INFO] [stderr] 1 + src/bin/reading-the-file-contents.rs [INFO] [stderr] | [INFO] [stderr] warning: binary `standard_error_eprintln_macro` should have a kebab-case name [INFO] [stderr] | [INFO] [stderr] 1 | /opt/rustwide/target/.../standard_error_eprintln_macro [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to change the binary name to `standard-error-eprintln-macro`, convert the file stem [INFO] [stderr] | [INFO] [stderr] 1 - src/bin/standard_error_eprintln_macro.rs [INFO] [stderr] 1 + src/bin/standard-error-eprintln-macro.rs [INFO] [stderr] | [INFO] [stderr] warning: binary `the_panic_marcro` should have a kebab-case name [INFO] [stderr] | [INFO] [stderr] 1 | /opt/rustwide/target/.../the_panic_marcro [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to change the binary name to `the-panic-marcro`, convert the file stem [INFO] [stderr] | [INFO] [stderr] 1 - src/bin/the_panic_marcro.rs [INFO] [stderr] 1 + src/bin/the-panic-marcro.rs [INFO] [stderr] | [INFO] [stderr] warning: binary `the_process_module_and_the_exit_function` should have a kebab-case name [INFO] [stderr] | [INFO] [stderr] 1 | /opt/rustwide/target/.../the_process_module_and_the_exit_function [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to change the binary name to `the-process-module-and-the-exit-function`, convert the file stem [INFO] [stderr] | [INFO] [stderr] 1 - src/bin/the_process_module_and_the_exit_function.rs [INFO] [stderr] 1 + src/bin/the-process-module-and-the-exit-function.rs [INFO] [stderr] | [INFO] [stderr] warning: binary `the_read_to_string_associated_function` should have a kebab-case name [INFO] [stderr] | [INFO] [stderr] 1 | /opt/rustwide/target/.../the_read_to_string_associated_function [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to change the binary name to `the-read-to-string-associated-function`, convert the file stem [INFO] [stderr] | [INFO] [stderr] 1 - src/bin/the_read_to_string_associated_function.rs [INFO] [stderr] 1 + src/bin/the-read-to-string-associated-function.rs [INFO] [stderr] | [INFO] [stderr] warning: binary `the_try_operator` should have a kebab-case name [INFO] [stderr] | [INFO] [stderr] 1 | /opt/rustwide/target/.../the_try_operator [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to change the binary name to `the-try-operator`, convert the file stem [INFO] [stderr] | [INFO] [stderr] 1 - src/bin/the_try_operator.rs [INFO] [stderr] 1 + src/bin/the-try-operator.rs [INFO] [stderr] | [INFO] [stderr] warning: binary `using_try_operator_with_option` should have a kebab-case name [INFO] [stderr] | [INFO] [stderr] 1 | /opt/rustwide/target/.../using_try_operator_with_option [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] help: to change the binary name to `using-try-operator-with-option`, convert the file stem [INFO] [stderr] | [INFO] [stderr] 1 - src/bin/using_try_operator_with_option.rs [INFO] [stderr] 1 + src/bin/using-try-operator-with-option.rs [INFO] [stderr] | [INFO] [stderr] warning: `error_handling` (manifest) generated 12 warnings [INFO] [stderr] Checking error_handling v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/bin/the_panic_marcro.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let a = 1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/bin/the_process_module_and_the_exit_function.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | process::exit(1); [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] 5 | println!("This will not print"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `a` [INFO] [stdout] --> src/bin/the_panic_marcro.rs:2:9 [INFO] [stdout] | [INFO] [stdout] 2 | let a = 1; [INFO] [stdout] | ^ help: if this is intentional, prefix it with an underscore: `_a` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable statement [INFO] [stdout] --> src/bin/the_process_module_and_the_exit_function.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 4 | process::exit(1); [INFO] [stdout] | ---------------- any code following this expression is unreachable [INFO] [stdout] 5 | println!("This will not print"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ unreachable statement [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` (part of `#[warn(unused)]`) on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.28s [INFO] running `Command { std: "docker" "inspect" "6b5eee362659c590303a878100fe381afd0f0044fcb61091c178fc33b8cfa4e5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6b5eee362659c590303a878100fe381afd0f0044fcb61091c178fc33b8cfa4e5", kill_on_drop: false }` [INFO] [stdout] 6b5eee362659c590303a878100fe381afd0f0044fcb61091c178fc33b8cfa4e5