[INFO] cloning repository https://github.com/chojuninengu/functions_in_rust [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/chojuninengu/functions_in_rust" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchojuninengu%2Ffunctions_in_rust", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchojuninengu%2Ffunctions_in_rust'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 61f4a464563b13d5fb137e590b25788e764a7180 [INFO] checking chojuninengu/functions_in_rust against master#82310651b93a594a3fd69015e1562186a080d94c for pr-145770 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fchojuninengu%2Ffunctions_in_rust" "/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/chojuninengu/functions_in_rust [INFO] finished tweaking git repo https://github.com/chojuninengu/functions_in_rust [INFO] tweaked toml for git repo https://github.com/chojuninengu/functions_in_rust written to /workspace/builds/worker-2-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/chojuninengu/functions_in_rust on toolchain 82310651b93a594a3fd69015e1562186a080d94c [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+82310651b93a594a3fd69015e1562186a080d94c" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/chojuninengu/functions_in_rust 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" "+82310651b93a594a3fd69015e1562186a080d94c" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+82310651b93a594a3fd69015e1562186a080d94c" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 3748258ee0d1b9a034e2a94b1f5de049019ecc10a7ee95619f18812f77259bc2 [INFO] running `Command { std: "docker" "start" "-a" "3748258ee0d1b9a034e2a94b1f5de049019ecc10a7ee95619f18812f77259bc2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "3748258ee0d1b9a034e2a94b1f5de049019ecc10a7ee95619f18812f77259bc2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "3748258ee0d1b9a034e2a94b1f5de049019ecc10a7ee95619f18812f77259bc2", kill_on_drop: false }` [INFO] [stdout] 3748258ee0d1b9a034e2a94b1f5de049019ecc10a7ee95619f18812f77259bc2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/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:7ad1b28ee6f5f7f699f6cf7015098d6ccdd96d6f2d78dd06228f5b4c9faf309c" "/opt/rustwide/cargo-home/bin/cargo" "+82310651b93a594a3fd69015e1562186a080d94c" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2287274fce240eb2d71f9f7e3a7a216aaa32faa59377ee43e696d31d40702dce [INFO] running `Command { std: "docker" "start" "-a" "2287274fce240eb2d71f9f7e3a7a216aaa32faa59377ee43e696d31d40702dce", kill_on_drop: false }` [INFO] [stderr] Checking functions_in_rust v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0449]: visibility qualifiers are not permitted here [INFO] [stdout] --> src/exercise1.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub impl Counter { [INFO] [stdout] | ^^^ help: remove the qualifier [INFO] [stdout] | [INFO] [stdout] = note: place qualifiers on individual impl items instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: `()` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/exercise2.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | println!("{}", add_x(10)); [INFO] [stdout] | -- ^^^^^^^^^ `()` cannot be formatted with the default formatter [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `()` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0449]: visibility qualifiers are not permitted here [INFO] [stdout] --> src/exercise1.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub impl Counter { [INFO] [stdout] | ^^^ help: remove the qualifier [INFO] [stdout] | [INFO] [stdout] = note: place qualifiers on individual impl items instead [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0624]: method `increase` is private [INFO] [stdout] --> src/main.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | println!("{}", c.increase()); [INFO] [stdout] | ^^^^^^^^ private method [INFO] [stdout] | [INFO] [stdout] ::: src/exercise1.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | fn increase(&mut self) -> i32 { [INFO] [stdout] | ----------------------------- private method defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0449, E0624. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] error[E0277]: `()` doesn't implement `std::fmt::Display` [INFO] [stdout] --> src/exercise2.rs:7:20 [INFO] [stdout] | [INFO] [stdout] 7 | println!("{}", add_x(10)); [INFO] [stdout] | -- ^^^^^^^^^ `()` cannot be formatted with the default formatter [INFO] [stdout] | | [INFO] [stdout] | required by this formatting parameter [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::fmt::Display` is not implemented for `()` [INFO] [stdout] = note: in format strings you may be able to use `{:?}` (or {:#?} for pretty-print) instead [INFO] [stdout] = note: this error originates in the macro `$crate::format_args_nl` which comes from the expansion of the macro `println` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `functions_in_rust` (bin "functions_in_rust") due to 3 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0624]: method `increase` is private [INFO] [stdout] --> src/main.rs:10:22 [INFO] [stdout] | [INFO] [stdout] 10 | println!("{}", c.increase()); [INFO] [stdout] | ^^^^^^^^ private method [INFO] [stdout] | [INFO] [stdout] ::: src/exercise1.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | fn increase(&mut self) -> i32 { [INFO] [stdout] | ----------------------------- private method defined here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0449, E0624. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `functions_in_rust` (bin "functions_in_rust" test) due to 3 previous errors [INFO] running `Command { std: "docker" "inspect" "2287274fce240eb2d71f9f7e3a7a216aaa32faa59377ee43e696d31d40702dce", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2287274fce240eb2d71f9f7e3a7a216aaa32faa59377ee43e696d31d40702dce", kill_on_drop: false }` [INFO] [stdout] 2287274fce240eb2d71f9f7e3a7a216aaa32faa59377ee43e696d31d40702dce