[INFO] cloning repository https://github.com/jagill/rust_worksheets [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jagill/rust_worksheets" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjagill%2Frust_worksheets", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjagill%2Frust_worksheets'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 998e3b7947f364fa8aa2c733d52fa42baa11a08e [INFO] checking jagill/rust_worksheets/998e3b7947f364fa8aa2c733d52fa42baa11a08e against master#c720f49c46ec3e70bbc2bbb3e0dd1fe7fc0a47f2 for pr-142712 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjagill%2Frust_worksheets" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/jagill/rust_worksheets [INFO] finished tweaking git repo https://github.com/jagill/rust_worksheets [INFO] tweaked toml for git repo https://github.com/jagill/rust_worksheets written to /workspace/builds/worker-3-tc1/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/jagill/rust_worksheets on toolchain c720f49c46ec3e70bbc2bbb3e0dd1fe7fc0a47f2 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c720f49c46ec3e70bbc2bbb3e0dd1fe7fc0a47f2" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c720f49c46ec3e70bbc2bbb3e0dd1fe7fc0a47f2" "generate-lockfile" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Updating crates.io index [INFO] [stderr] Locking 7 packages to latest compatible versions [INFO] [stderr] Adding thiserror v1.0.69 (available: v2.0.12) [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+c720f49c46ec3e70bbc2bbb3e0dd1fe7fc0a47f2" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+c720f49c46ec3e70bbc2bbb3e0dd1fe7fc0a47f2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5442643acd331d1c27a94b6b483bf990ddb64e158160ea2ebb0f33ba4402e4a8 [INFO] running `Command { std: "docker" "start" "-a" "5442643acd331d1c27a94b6b483bf990ddb64e158160ea2ebb0f33ba4402e4a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5442643acd331d1c27a94b6b483bf990ddb64e158160ea2ebb0f33ba4402e4a8", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5442643acd331d1c27a94b6b483bf990ddb64e158160ea2ebb0f33ba4402e4a8", kill_on_drop: false }` [INFO] [stdout] 5442643acd331d1c27a94b6b483bf990ddb64e158160ea2ebb0f33ba4402e4a8 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+c720f49c46ec3e70bbc2bbb3e0dd1fe7fc0a47f2" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 2a9be3d7a1d47be0bff41f6a6ae7aa387c42bfa50f4176596cfca58c3ff76d00 [INFO] running `Command { std: "docker" "start" "-a" "2a9be3d7a1d47be0bff41f6a6ae7aa387c42bfa50f4176596cfca58c3ff76d00", kill_on_drop: false }` [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Compiling thiserror-impl v1.0.69 [INFO] [stderr] Checking thiserror v1.0.69 [INFO] [stderr] Checking dlcm_rust_workshop v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/traits.rs:43:13 [INFO] [stdout] | [INFO] [stdout] 43 | let mut count = Count(0); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/traits.rs:52:13 [INFO] [stdout] | [INFO] [stdout] 52 | let mut count = Count(-5); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/traits.rs:76:13 [INFO] [stdout] | [INFO] [stdout] 76 | let mut count = Count(1); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/traits.rs:205:13 [INFO] [stdout] | [INFO] [stdout] 205 | let mut count = Count(4); [INFO] [stdout] | ----^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/traits.rs:236:13 [INFO] [stdout] | [INFO] [stdout] 236 | let mut list = vec![1, 2, 3]; [INFO] [stdout] | ----^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/generics.rs:53:9 [INFO] [stdout] | [INFO] [stdout] 51 | fn test_generics_impls() { [INFO] [stdout] | ------------------------ move the `impl` block outside of this function `test_generics_impls` [INFO] [stdout] 52 | // We can access generics in the impl block [INFO] [stdout] 53 | impl Either { [INFO] [stdout] | ^^^^^^^^^^^------^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Either` is not local [INFO] [stdout] | [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/generics.rs:79:9 [INFO] [stdout] | [INFO] [stdout] 77 | fn test_generics_impls_concrete() { [INFO] [stdout] | --------------------------------- move the `impl` block outside of this function `test_generics_impls_concrete` [INFO] [stdout] 78 | // Generics can be used in cool ways in impls. Notice we've constrained each side to be the same! [INFO] [stdout] 79 | impl Either { [INFO] [stdout] | ^^^^^^^^------^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Either` is not local [INFO] [stdout] | [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/generics.rs:99:9 [INFO] [stdout] | [INFO] [stdout] 77 | fn test_generics_impls_concrete() { [INFO] [stdout] | --------------------------------- move the `impl` block outside of this function `test_generics_impls_concrete` [INFO] [stdout] ... [INFO] [stdout] 99 | impl Either { [INFO] [stdout] | ^^^^^------^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | `Either` is not local [INFO] [stdout] | [INFO] [stdout] = note: an `impl` is never scoped, even when it is nested inside an item, as it may impact type checking outside of that item, which can be the case if neither the trait or the self type are at the same nesting level as the `impl` [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.81s [INFO] running `Command { std: "docker" "inspect" "2a9be3d7a1d47be0bff41f6a6ae7aa387c42bfa50f4176596cfca58c3ff76d00", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "2a9be3d7a1d47be0bff41f6a6ae7aa387c42bfa50f4176596cfca58c3ff76d00", kill_on_drop: false }` [INFO] [stdout] 2a9be3d7a1d47be0bff41f6a6ae7aa387c42bfa50f4176596cfca58c3ff76d00