[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 against master#ecb170afc878648c3ae355dbd596c8e4b6f7ebdc for pr-139022 [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] validating manifest of git repo https://github.com/jagill/rust_worksheets on toolchain ecb170afc878648c3ae355dbd596c8e4b6f7ebdc [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ecb170afc878648c3ae355dbd596c8e4b6f7ebdc" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [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] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ecb170afc878648c3ae355dbd596c8e4b6f7ebdc" "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" "+ecb170afc878648c3ae355dbd596c8e4b6f7ebdc" "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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+ecb170afc878648c3ae355dbd596c8e4b6f7ebdc" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f00385c2d052ab35a6d61294d0c786e239aa4c0ef236c9944e1d9093acce07c6 [INFO] running `Command { std: "docker" "start" "-a" "f00385c2d052ab35a6d61294d0c786e239aa4c0ef236c9944e1d9093acce07c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f00385c2d052ab35a6d61294d0c786e239aa4c0ef236c9944e1d9093acce07c6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f00385c2d052ab35a6d61294d0c786e239aa4c0ef236c9944e1d9093acce07c6", kill_on_drop: false }` [INFO] [stdout] f00385c2d052ab35a6d61294d0c786e239aa4c0ef236c9944e1d9093acce07c6 [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:4b26683ee3c49f365255c425c23003cbf4366de097804722c29c5bbbee3624d2" "/opt/rustwide/cargo-home/bin/cargo" "+ecb170afc878648c3ae355dbd596c8e4b6f7ebdc" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ba369322b627975dcd928a6a54d74e2b72611080c00f3760be5c1c10777c47a7 [INFO] running `Command { std: "docker" "start" "-a" "ba369322b627975dcd928a6a54d74e2b72611080c00f3760be5c1c10777c47a7", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.94 [INFO] [stderr] Compiling unicode-ident v1.0.18 [INFO] [stderr] Compiling anyhow v1.0.97 [INFO] [stderr] Compiling thiserror v1.0.69 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Compiling syn v2.0.100 [INFO] [stderr] Compiling thiserror-impl 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.68s [INFO] running `Command { std: "docker" "inspect" "ba369322b627975dcd928a6a54d74e2b72611080c00f3760be5c1c10777c47a7", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ba369322b627975dcd928a6a54d74e2b72611080c00f3760be5c1c10777c47a7", kill_on_drop: false }` [INFO] [stdout] ba369322b627975dcd928a6a54d74e2b72611080c00f3760be5c1c10777c47a7