[INFO] cloning repository https://github.com/JamieMason/rustlings [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/JamieMason/rustlings" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJamieMason%2Frustlings", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJamieMason%2Frustlings'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1811560b3a6746d01b0f8fdb270ac1b7d8128346 [INFO] testing JamieMason/rustlings/1811560b3a6746d01b0f8fdb270ac1b7d8128346 against beta-2024-10-19 for beta-1.83-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FJamieMason%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/JamieMason/rustlings on toolchain beta-2024-10-19 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+beta-2024-10-19" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/JamieMason/rustlings [INFO] finished tweaking git repo https://github.com/JamieMason/rustlings [INFO] tweaked toml for git repo https://github.com/JamieMason/rustlings written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/JamieMason/rustlings 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" "+beta-2024-10-19" "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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-10-19" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 4edb98d40525d9ffb013fb0ce0d621940dd7aceddf7046bac7db775d3bd6b93c [INFO] running `Command { std: "docker" "start" "-a" "4edb98d40525d9ffb013fb0ce0d621940dd7aceddf7046bac7db775d3bd6b93c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "4edb98d40525d9ffb013fb0ce0d621940dd7aceddf7046bac7db775d3bd6b93c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4edb98d40525d9ffb013fb0ce0d621940dd7aceddf7046bac7db775d3bd6b93c", kill_on_drop: false }` [INFO] [stdout] 4edb98d40525d9ffb013fb0ce0d621940dd7aceddf7046bac7db775d3bd6b93c [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-10-19" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8feaf8594e725a0044d4c11ac85592acdb3444afe42f192501da5c35979825c0 [INFO] running `Command { std: "docker" "start" "-a" "8feaf8594e725a0044d4c11ac85592acdb3444afe42f192501da5c35979825c0", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.58 [INFO] [stderr] Compiling rand_core v0.4.0 [INFO] [stderr] Compiling autocfg v0.1.4 [INFO] [stderr] Compiling semver-parser v0.7.0 [INFO] [stderr] Compiling cfg-if v0.1.9 [INFO] [stderr] Compiling memchr v2.2.0 [INFO] [stderr] Compiling lazy_static v1.3.0 [INFO] [stderr] Compiling proc-macro2 v0.4.30 [INFO] [stderr] Compiling ucd-util v0.1.3 [INFO] [stderr] Compiling unicode-xid v0.1.0 [INFO] [stderr] Compiling semver v0.9.0 [INFO] [stderr] Compiling rand_core v0.3.1 [INFO] [stderr] Compiling rand_jitter v0.1.4 [INFO] [stderr] Compiling rand_pcg v0.1.2 [INFO] [stderr] Compiling rand_chacha v0.1.1 [INFO] [stderr] Compiling rustc_version v0.2.3 [INFO] [stderr] Compiling rand v0.6.5 [INFO] [stderr] Compiling rand_isaac v0.1.1 [INFO] [stderr] Compiling rand_xorshift v0.1.1 [INFO] [stderr] Compiling parking_lot_core v0.5.0 [INFO] [stderr] Compiling rand_hc v0.1.0 [INFO] [stderr] Compiling parking_lot v0.8.0 [INFO] [stderr] Compiling thread_local v0.3.6 [INFO] [stderr] Compiling syn v0.15.34 [INFO] [stderr] Compiling rand_os v0.1.3 [INFO] [stderr] Compiling utf8-ranges v1.0.2 [INFO] [stderr] Compiling scopeguard v1.0.0 [INFO] [stderr] Compiling unicode-width v0.1.5 [INFO] [stderr] Compiling smallvec v0.6.9 [INFO] [stderr] Compiling regex v1.1.6 [INFO] [stderr] Compiling lock_api v0.2.0 [INFO] [stderr] Compiling atty v0.2.11 [INFO] [stderr] Compiling quote v0.6.12 [INFO] [stderr] Compiling aho-corasick v0.7.3 [INFO] [stderr] Compiling regex-syntax v0.6.6 [INFO] [stderr] Compiling termios v0.3.1 [INFO] [stderr] Compiling net2 v0.2.33 [INFO] [stderr] Compiling iovec v0.1.2 [INFO] [stderr] Compiling log v0.4.6 [INFO] [stderr] Compiling slab v0.4.2 [INFO] [stderr] Compiling regex v0.2.11 [INFO] [stderr] Compiling lazy_static v0.2.11 [INFO] [stderr] Compiling serde v1.0.92 [INFO] [stderr] Compiling bitflags v1.0.4 [INFO] [stderr] Compiling mio v0.6.19 [INFO] [stderr] Compiling clicolors-control v1.0.0 [INFO] [stderr] Compiling inotify-sys v0.1.3 [INFO] [stderr] Compiling aho-corasick v0.6.10 [INFO] [stderr] Compiling regex-syntax v0.5.6 [INFO] [stderr] Compiling lazycell v1.2.1 [INFO] [stderr] Compiling same-file v1.0.4 [INFO] [stderr] Compiling walkdir v2.2.7 [INFO] [stderr] Compiling inotify v0.6.1 [INFO] [stderr] Compiling clicolors-control v0.2.0 [INFO] [stderr] Compiling mio-extras v2.0.5 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling filetime v0.2.5 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling notify v4.0.12 [INFO] [stderr] Compiling clap v2.33.0 [INFO] [stderr] Compiling serde_derive v1.0.92 [INFO] [stderr] Compiling console v0.7.5 [INFO] [stderr] Compiling console v0.6.2 [INFO] [stderr] Compiling indicatif v0.9.0 [INFO] [stderr] Compiling toml v0.4.10 [INFO] [stderr] Compiling rustlings v1.4.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/exercise.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Mode` [INFO] [stdout] 14 | #[serde(rename_all = "lowercase")] [INFO] [stdout] 15 | pub enum Mode { [INFO] [stdout] | ---- `Mode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [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: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [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/exercise.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_ExerciseList` [INFO] [stdout] 21 | pub struct ExerciseList { [INFO] [stdout] | ------------ `ExerciseList` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [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: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [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/exercise.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Exercise` [INFO] [stdout] 26 | pub struct Exercise { [INFO] [stdout] | -------- `Exercise` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [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: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 8.81s [INFO] running `Command { std: "docker" "inspect" "8feaf8594e725a0044d4c11ac85592acdb3444afe42f192501da5c35979825c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8feaf8594e725a0044d4c11ac85592acdb3444afe42f192501da5c35979825c0", kill_on_drop: false }` [INFO] [stdout] 8feaf8594e725a0044d4c11ac85592acdb3444afe42f192501da5c35979825c0 [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-10-19" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a7084a2f60c2c069e6d95913ec0c47542dd1484cc15ef734e5db25438e8a125e [INFO] running `Command { std: "docker" "start" "-a" "a7084a2f60c2c069e6d95913ec0c47542dd1484cc15ef734e5db25438e8a125e", kill_on_drop: false }` [INFO] [stderr] Compiling ryu v0.2.8 [INFO] [stderr] Compiling escargot v0.4.0 [INFO] [stderr] Compiling predicates-core v1.0.0 [INFO] [stderr] Compiling itoa v0.4.4 [INFO] [stderr] Compiling difference v2.0.0 [INFO] [stderr] Compiling treeline v0.1.0 [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/exercise.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Mode` [INFO] [stdout] 14 | #[serde(rename_all = "lowercase")] [INFO] [stdout] 15 | pub enum Mode { [INFO] [stdout] | ---- `Mode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [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: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [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/exercise.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_ExerciseList` [INFO] [stdout] 21 | pub struct ExerciseList { [INFO] [stdout] | ------------ `ExerciseList` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [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: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [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/exercise.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Exercise` [INFO] [stdout] 26 | pub struct Exercise { [INFO] [stdout] | -------- `Exercise` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [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: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Compiling predicates-tree v1.0.0 [INFO] [stderr] Compiling predicates v1.0.1 [INFO] [stderr] Compiling serde_json v1.0.39 [INFO] [stderr] Compiling assert_cmd v0.11.1 [INFO] [stderr] Compiling rustlings v1.4.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stdout] --> src/exercise.rs:13:10 [INFO] [stdout] | [INFO] [stdout] 13 | #[derive(Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Mode` [INFO] [stdout] 14 | #[serde(rename_all = "lowercase")] [INFO] [stdout] 15 | pub enum Mode { [INFO] [stdout] | ---- `Mode` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [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: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [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/exercise.rs:20:10 [INFO] [stdout] | [INFO] [stdout] 20 | #[derive(Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_ExerciseList` [INFO] [stdout] 21 | pub struct ExerciseList { [INFO] [stdout] | ------------ `ExerciseList` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [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: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [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/exercise.rs:25:10 [INFO] [stdout] | [INFO] [stdout] 25 | #[derive(Deserialize)] [INFO] [stdout] | ^---------- [INFO] [stdout] | | [INFO] [stdout] | `Deserialize` is not local [INFO] [stdout] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Exercise` [INFO] [stdout] 26 | pub struct Exercise { [INFO] [stdout] | -------- `Exercise` is not local [INFO] [stdout] | [INFO] [stdout] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stdout] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [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: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stdout] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 1.77s [INFO] running `Command { std: "docker" "inspect" "a7084a2f60c2c069e6d95913ec0c47542dd1484cc15ef734e5db25438e8a125e", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a7084a2f60c2c069e6d95913ec0c47542dd1484cc15ef734e5db25438e8a125e", kill_on_drop: false }` [INFO] [stdout] a7084a2f60c2c069e6d95913ec0c47542dd1484cc15ef734e5db25438e8a125e [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=warn" "-e" "RUSTDOCFLAGS=--cap-lints=warn" "-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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2024-10-19" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 9447d7e4e71829b2c2ac85d62eab1ba7515d2193abd657998be69685527ccfb5 [INFO] running `Command { std: "docker" "start" "-a" "9447d7e4e71829b2c2ac85d62eab1ba7515d2193abd657998be69685527ccfb5", kill_on_drop: false }` [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/exercise.rs:13:10 [INFO] [stderr] | [INFO] [stderr] 13 | #[derive(Deserialize)] [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `Deserialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Mode` [INFO] [stderr] 14 | #[serde(rename_all = "lowercase")] [INFO] [stderr] 15 | pub enum Mode { [INFO] [stderr] | ---- `Mode` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = 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] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: `#[warn(non_local_definitions)]` on by default [INFO] [stderr] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/exercise.rs:20:10 [INFO] [stderr] | [INFO] [stderr] 20 | #[derive(Deserialize)] [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `Deserialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_ExerciseList` [INFO] [stderr] 21 | pub struct ExerciseList { [INFO] [stderr] | ------------ `ExerciseList` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = 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] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: non-local `impl` definition, `impl` blocks should be written at the same level as their item [INFO] [stderr] --> src/exercise.rs:25:10 [INFO] [stderr] | [INFO] [stderr] 25 | #[derive(Deserialize)] [INFO] [stderr] | ^---------- [INFO] [stderr] | | [INFO] [stderr] | `Deserialize` is not local [INFO] [stderr] | move the `impl` block outside of this constant `_IMPL_DESERIALIZE_FOR_Exercise` [INFO] [stderr] 26 | pub struct Exercise { [INFO] [stderr] | -------- `Exercise` is not local [INFO] [stderr] | [INFO] [stderr] = note: the derive macro `Deserialize` defines the non-local `impl`, and may need to be changed [INFO] [stderr] = note: the derive macro `Deserialize` may come from an old version of the `serde_derive` crate, try updating your dependency with `cargo update -p serde_derive` [INFO] [stderr] = 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] [stderr] = note: items in an anonymous const item (`const _: () = { ... }`) are treated as in the same scope as the anonymous const's declaration for the purpose of this lint [INFO] [stderr] = note: this warning originates in the derive macro `Deserialize` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stderr] [INFO] [stderr] warning: `rustlings` (bin "rustlings") generated 3 warnings [INFO] [stderr] warning: `rustlings` (bin "rustlings" test) generated 3 warnings (3 duplicates) [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s [INFO] [stderr] Running unittests src/main.rs (/opt/rustwide/target/debug/deps/rustlings-d201f6a8b2a25a0a) [INFO] [stdout] [INFO] [stdout] running 1 test [INFO] [stdout] test exercise::test::test_clean ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- exercise::test::test_clean stdout ---- [INFO] [stdout] thread 'exercise::test::test_clean' panicked at src/exercise.rs:71:36: [INFO] [stdout] called `Result::unwrap()` on an `Err` value: Os { code: 30, kind: ReadOnlyFilesystem, message: "Read-only file system" } [INFO] [stdout] stack backtrace: [INFO] [stdout] 0: 0x5c60fe331d1a - std::backtrace_rs::backtrace::libunwind::trace::h4d70d1fc3f387ba0 [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/std/src/../../backtrace/src/backtrace/libunwind.rs:116:5 [INFO] [stdout] 1: 0x5c60fe331d1a - std::backtrace_rs::backtrace::trace_unsynchronized::h36ec8598f89aa10d [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/std/src/../../backtrace/src/backtrace/mod.rs:66:5 [INFO] [stdout] 2: 0x5c60fe331d1a - std::sys::backtrace::_print_fmt::h28554e34eddafd0e [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/std/src/sys/backtrace.rs:66:9 [INFO] [stdout] 3: 0x5c60fe331d1a - ::fmt::hcfddd6c618da2362 [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/std/src/sys/backtrace.rs:39:26 [INFO] [stdout] 4: 0x5c60fe3571a3 - core::fmt::rt::Argument::fmt::h61c6663ef797a8d8 [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/core/src/fmt/rt.rs:177:76 [INFO] [stdout] 5: 0x5c60fe3571a3 - core::fmt::write::hd107f06dbaee3bcd [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/core/src/fmt/mod.rs:1186:21 [INFO] [stdout] 6: 0x5c60fe32f003 - std::io::Write::write_fmt::he91cdb71d5735485 [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/std/src/io/mod.rs:1839:15 [INFO] [stdout] 7: 0x5c60fe331b62 - std::sys::backtrace::BacktraceLock::print::h0aaa3c788fc54962 [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/std/src/sys/backtrace.rs:42:9 [INFO] [stdout] 8: 0x5c60fe33317a - std::panicking::default_hook::{{closure}}::ha21be3bf10424d59 [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/std/src/panicking.rs:268:22 [INFO] [stdout] 9: 0x5c60fe332f84 - std::panicking::default_hook::h7c625ca31e6655f8 [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/std/src/panicking.rs:292:9 [INFO] [stdout] 10: 0x5c60fe2fbc89 - as core::ops::function::Fn>::call::h27e62728b51ac345 [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/alloc/src/boxed.rs:2468:9 [INFO] [stdout] 11: 0x5c60fe2fbc89 - test::test_main::{{closure}}::hbed48e9da271eb2d [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/test/src/lib.rs:133:21 [INFO] [stdout] 12: 0x5c60fe333818 - as core::ops::function::Fn>::call::hd23f1b4f57a7d85e [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/alloc/src/boxed.rs:2468:9 [INFO] [stdout] 13: 0x5c60fe333818 - std::panicking::rust_panic_with_hook::h4dfaea2b0d4c7530 [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/std/src/panicking.rs:809:13 [INFO] [stdout] 14: 0x5c60fe3335da - std::panicking::begin_panic_handler::{{closure}}::hb745add2af2f30cf [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/std/src/panicking.rs:674:13 [INFO] [stdout] 15: 0x5c60fe3321f9 - std::sys::backtrace::__rust_end_short_backtrace::h06673da104b2a94d [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/std/src/sys/backtrace.rs:170:18 [INFO] [stdout] 16: 0x5c60fe33326c - rust_begin_unwind [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/std/src/panicking.rs:665:5 [INFO] [stdout] 17: 0x5c60fe2c1b10 - core::panicking::panic_fmt::h7e8d81c8d715d530 [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/core/src/panicking.rs:74:14 [INFO] [stdout] 18: 0x5c60fe2c1eb6 - core::result::unwrap_failed::hd3788f9453624d5e [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/core/src/result.rs:1700:5 [INFO] [stdout] 19: 0x5c60fe2c2eba - core::result::Result::unwrap::h6e5293d0ce830234 [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/core/src/result.rs:1104:23 [INFO] [stdout] 20: 0x5c60fe2c2eba - rustlings::exercise::test::test_clean::h42925c7f264edc0b [INFO] [stdout] at /opt/rustwide/workdir/src/exercise.rs:71:9 [INFO] [stdout] 21: 0x5c60fe2c2df7 - rustlings::exercise::test::test_clean::{{closure}}::h3983e2f679d7607e [INFO] [stdout] at /opt/rustwide/workdir/src/exercise.rs:70:20 [INFO] [stdout] 22: 0x5c60fe2c26e6 - core::ops::function::FnOnce::call_once::h9ac09231caaf1050 [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 23: 0x5c60fe30057b - core::ops::function::FnOnce::call_once::h5ce2090d0ba06760 [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 24: 0x5c60fe30057b - test::__rust_begin_short_backtrace::h49e973657dd86077 [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/test/src/lib.rs:621:18 [INFO] [stdout] 25: 0x5c60fe2ffe47 - test::run_test_in_process::{{closure}}::hb4c111032eacbf3c [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/test/src/lib.rs:644:60 [INFO] [stdout] 26: 0x5c60fe2ffe47 - as core::ops::function::FnOnce<()>>::call_once::hc84870afebfce019 [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 27: 0x5c60fe2ffe47 - std::panicking::try::do_call::hce598b5d1a04cf08 [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/std/src/panicking.rs:557:40 [INFO] [stdout] 28: 0x5c60fe2ffe47 - std::panicking::try::h25a7aea9d63b441f [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/std/src/panicking.rs:520:19 [INFO] [stdout] 29: 0x5c60fe2ffe47 - std::panic::catch_unwind::h4b12b06a11af50d2 [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/std/src/panic.rs:358:14 [INFO] [stdout] 30: 0x5c60fe2ffe47 - test::run_test_in_process::hd69883821bd30381 [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/test/src/lib.rs:644:27 [INFO] [stdout] 31: 0x5c60fe2ffe47 - test::run_test::{{closure}}::he160a756db6d8677 [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/test/src/lib.rs:565:43 [INFO] [stdout] 32: 0x5c60fe2c5074 - test::run_test::{{closure}}::h2e90a3191e3e0ce0 [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/test/src/lib.rs:595:41 [INFO] [stdout] 33: 0x5c60fe2c5074 - std::sys::backtrace::__rust_begin_short_backtrace::he01c960b1833637c [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/std/src/sys/backtrace.rs:154:18 [INFO] [stdout] 34: 0x5c60fe2c87de - std::thread::Builder::spawn_unchecked_::{{closure}}::{{closure}}::h30b75746266698d7 [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/std/src/thread/mod.rs:538:17 [INFO] [stdout] 35: 0x5c60fe2c87de - as core::ops::function::FnOnce<()>>::call_once::h6a5dff2677e9a6c5 [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/core/src/panic/unwind_safe.rs:272:9 [INFO] [stdout] 36: 0x5c60fe2c87de - std::panicking::try::do_call::h5e069e9a53dd16f8 [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/std/src/panicking.rs:557:40 [INFO] [stdout] 37: 0x5c60fe2c87de - std::panicking::try::h0f789115e2be34bc [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/std/src/panicking.rs:520:19 [INFO] [stdout] 38: 0x5c60fe2c87de - std::panic::catch_unwind::h5caa505f99ba7d23 [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/std/src/panic.rs:358:14 [INFO] [stdout] 39: 0x5c60fe2c87de - std::thread::Builder::spawn_unchecked_::{{closure}}::ha405b857d4a0e18b [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/std/src/thread/mod.rs:537:30 [INFO] [stdout] 40: 0x5c60fe2c87de - core::ops::function::FnOnce::call_once{{vtable.shim}}::hd3c96c07e3187855 [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/core/src/ops/function.rs:250:5 [INFO] [stdout] 41: 0x5c60fe33765b - as core::ops::function::FnOnce>::call_once::hfe31dd51cc8f40d6 [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/alloc/src/boxed.rs:2454:9 [INFO] [stdout] 42: 0x5c60fe33765b - as core::ops::function::FnOnce>::call_once::h424186ab2917e76f [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/alloc/src/boxed.rs:2454:9 [INFO] [stdout] 43: 0x5c60fe33765b - std::sys::pal::unix::thread::Thread::new::thread_start::h5bbddfcb1fc1838d [INFO] [stdout] at /rustc/88c1c3c1102bbf3860891bfa52b7ddd9f26aec2f/library/std/src/sys/pal/unix/thread.rs:105:17 [INFO] [stdout] 44: 0x73125b7b4ac3 - [INFO] [stdout] 45: 0x73125b845a04 - clone [INFO] [stdout] 46: 0x0 - [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] exercise::test::test_clean [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.01s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass `--bin rustlings` [INFO] running `Command { std: "docker" "inspect" "9447d7e4e71829b2c2ac85d62eab1ba7515d2193abd657998be69685527ccfb5", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9447d7e4e71829b2c2ac85d62eab1ba7515d2193abd657998be69685527ccfb5", kill_on_drop: false }` [INFO] [stdout] 9447d7e4e71829b2c2ac85d62eab1ba7515d2193abd657998be69685527ccfb5