[INFO] cloning repository https://github.com/Tezerrr/mtuci-rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Tezerrr/mtuci-rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTezerrr%2Fmtuci-rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTezerrr%2Fmtuci-rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6022049a59cdba485cb07dddf77a344cf71e6b3d [INFO] checking Tezerrr/mtuci-rs against master#17ffbc81a30c094193836a5d7f90dff273b5df93 for pr-138785 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTezerrr%2Fmtuci-rs" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Tezerrr/mtuci-rs on toolchain 17ffbc81a30c094193836a5d7f90dff273b5df93 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+17ffbc81a30c094193836a5d7f90dff273b5df93" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/Tezerrr/mtuci-rs [INFO] finished tweaking git repo https://github.com/Tezerrr/mtuci-rs [INFO] tweaked toml for git repo https://github.com/Tezerrr/mtuci-rs written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/Tezerrr/mtuci-rs 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" "+17ffbc81a30c094193836a5d7f90dff273b5df93" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+17ffbc81a30c094193836a5d7f90dff273b5df93" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 410a3447c3c0b1806f9697097438daf87aa7e1e0f57df2b1c145c91aaeb33e31 [INFO] running `Command { std: "docker" "start" "-a" "410a3447c3c0b1806f9697097438daf87aa7e1e0f57df2b1c145c91aaeb33e31", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "410a3447c3c0b1806f9697097438daf87aa7e1e0f57df2b1c145c91aaeb33e31", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "410a3447c3c0b1806f9697097438daf87aa7e1e0f57df2b1c145c91aaeb33e31", kill_on_drop: false }` [INFO] [stdout] 410a3447c3c0b1806f9697097438daf87aa7e1e0f57df2b1c145c91aaeb33e31 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-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=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:b0b074c097205a61b89e8ad263052f976b2b332c4dc5f02aef1fe52501660d6e" "/opt/rustwide/cargo-home/bin/cargo" "+17ffbc81a30c094193836a5d7f90dff273b5df93" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 7f62cdd692b20ade36e2ceec24d6d50af5fe38db5dc50804c27f433a89120efc [INFO] running `Command { std: "docker" "start" "-a" "7f62cdd692b20ade36e2ceec24d6d50af5fe38db5dc50804c27f433a89120efc", kill_on_drop: false }` [INFO] [stderr] warning: virtual workspace defaulting to `resolver = "1"` despite one or more workspace members being on edition 2021 which implies `resolver = "2"` [INFO] [stderr] note: to keep the current resolver, specify `workspace.resolver = "1"` in the workspace root's manifest [INFO] [stderr] note: to use the edition 2021 resolver, specify `workspace.resolver = "2"` in the workspace root's manifest [INFO] [stderr] note: for more details see https://doc.rust-lang.org/cargo/reference/resolver.html#resolver-versions [INFO] [stderr] Compiling anyhow v1.0.71 [INFO] [stderr] Checking hw4 v0.1.0 (/opt/rustwide/workdir/hw4) [INFO] [stdout] error[E0435]: attempt to use a non-constant value in a constant [INFO] [stdout] --> hw4/src/myvec.rs:16:49 [INFO] [stdout] | [INFO] [stdout] 14 | fn with_capacity(capacity: usize) -> Self { [INFO] [stdout] | -------- this would need to be a `const` [INFO] [stdout] 15 | MyVec { [INFO] [stdout] 16 | data: Box::new([Default::default(); capacity]), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0435]: attempt to use a non-constant value in a constant [INFO] [stdout] --> hw4/src/myvec.rs:60:68 [INFO] [stdout] | [INFO] [stdout] 59 | fn resize(&mut self, new_size: usize) { [INFO] [stdout] | -------- this would need to be a `const` [INFO] [stdout] 60 | let mut new_data: Box<[T]> = Box::new([Default::default(); new_size]); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0601]: `main` function not found in crate `myvec` [INFO] [stdout] --> hw4/src/myvec.rs:66:2 [INFO] [stdout] | [INFO] [stdout] 66 | } [INFO] [stdout] | ^ consider adding a `main` function to `hw4/src/myvec.rs` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0435]: attempt to use a non-constant value in a constant [INFO] [stdout] --> hw4/src/myvec.rs:16:49 [INFO] [stdout] | [INFO] [stdout] 14 | fn with_capacity(capacity: usize) -> Self { [INFO] [stdout] | -------- this would need to be a `const` [INFO] [stdout] 15 | MyVec { [INFO] [stdout] 16 | data: Box::new([Default::default(); capacity]), [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0435]: attempt to use a non-constant value in a constant [INFO] [stdout] --> hw4/src/myvec.rs:60:68 [INFO] [stdout] | [INFO] [stdout] 59 | fn resize(&mut self, new_size: usize) { [INFO] [stdout] | -------- this would need to be a `const` [INFO] [stdout] 60 | let mut new_data: Box<[T]> = Box::new([Default::default(); new_size]); [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `T: Copy` is not satisfied [INFO] [stdout] --> hw4/src/myvec.rs:16:29 [INFO] [stdout] | [INFO] [stdout] 16 | data: Box::new([Default::default(); capacity]), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `T` [INFO] [stdout] | [INFO] [stdout] = note: the `Copy` trait is required because this value will be copied for each element of the array [INFO] [stdout] = help: consider using `core::array::from_fn` to initialize the array [INFO] [stdout] = help: see https://doc.rust-lang.org/stable/std/array/fn.from_fn.html for more information [INFO] [stdout] help: consider restricting type parameter `T` with trait `Copy` [INFO] [stdout] | [INFO] [stdout] 6 | impl MyVec { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `T: Copy` is not satisfied [INFO] [stdout] --> hw4/src/myvec.rs:16:29 [INFO] [stdout] | [INFO] [stdout] 16 | data: Box::new([Default::default(); capacity]), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `T` [INFO] [stdout] | [INFO] [stdout] = note: the `Copy` trait is required because this value will be copied for each element of the array [INFO] [stdout] = help: consider using `core::array::from_fn` to initialize the array [INFO] [stdout] = help: see https://doc.rust-lang.org/stable/std/array/fn.from_fn.html for more information [INFO] [stdout] help: consider restricting type parameter `T` with trait `Copy` [INFO] [stdout] | [INFO] [stdout] 6 | impl MyVec { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `T: Default` is not satisfied [INFO] [stdout] --> hw4/src/myvec.rs:16:29 [INFO] [stdout] | [INFO] [stdout] 16 | data: Box::new([Default::default(); capacity]), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `T` [INFO] [stdout] | [INFO] [stdout] help: consider restricting type parameter `T` with trait `Default` [INFO] [stdout] | [INFO] [stdout] 6 | impl MyVec { [INFO] [stdout] | +++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `T: Default` is not satisfied [INFO] [stdout] --> hw4/src/myvec.rs:16:29 [INFO] [stdout] | [INFO] [stdout] 16 | data: Box::new([Default::default(); capacity]), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `T` [INFO] [stdout] | [INFO] [stdout] help: consider restricting type parameter `T` with trait `Default` [INFO] [stdout] | [INFO] [stdout] 6 | impl MyVec { [INFO] [stdout] | +++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `T: Default` is not satisfied [INFO] [stdout] --> hw4/src/myvec.rs:32:63 [INFO] [stdout] | [INFO] [stdout] 32 | Some(std::mem::replace(&mut self.data[self.size], Default::default())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `T` [INFO] [stdout] | [INFO] [stdout] help: consider restricting type parameter `T` with trait `Default` [INFO] [stdout] | [INFO] [stdout] 6 | impl MyVec { [INFO] [stdout] | +++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `T: Default` is not satisfied [INFO] [stdout] --> hw4/src/myvec.rs:41:73 [INFO] [stdout] | [INFO] [stdout] 41 | let removed_item = std::mem::replace(&mut self.data[index], Default::default()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `T` [INFO] [stdout] | [INFO] [stdout] help: consider restricting type parameter `T` with trait `Default` [INFO] [stdout] | [INFO] [stdout] 6 | impl MyVec { [INFO] [stdout] | +++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `T: Default` is not satisfied [INFO] [stdout] --> hw4/src/myvec.rs:32:63 [INFO] [stdout] | [INFO] [stdout] 32 | Some(std::mem::replace(&mut self.data[self.size], Default::default())) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `T` [INFO] [stdout] | [INFO] [stdout] help: consider restricting type parameter `T` with trait `Default` [INFO] [stdout] | [INFO] [stdout] 6 | impl MyVec { [INFO] [stdout] | +++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `T: Default` is not satisfied [INFO] [stdout] --> hw4/src/myvec.rs:43:73 [INFO] [stdout] | [INFO] [stdout] 43 | self.data[i] = std::mem::replace(&mut self.data[i + 1], Default::default()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `T` [INFO] [stdout] | [INFO] [stdout] help: consider restricting type parameter `T` with trait `Default` [INFO] [stdout] | [INFO] [stdout] 6 | impl MyVec { [INFO] [stdout] | +++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `T: Default` is not satisfied [INFO] [stdout] --> hw4/src/myvec.rs:41:73 [INFO] [stdout] | [INFO] [stdout] 41 | let removed_item = std::mem::replace(&mut self.data[index], Default::default()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `T` [INFO] [stdout] | [INFO] [stdout] help: consider restricting type parameter `T` with trait `Default` [INFO] [stdout] | [INFO] [stdout] 6 | impl MyVec { [INFO] [stdout] | +++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `T: Default` is not satisfied [INFO] [stdout] --> hw4/src/myvec.rs:43:73 [INFO] [stdout] | [INFO] [stdout] 43 | self.data[i] = std::mem::replace(&mut self.data[i + 1], Default::default()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `T` [INFO] [stdout] | [INFO] [stdout] help: consider restricting type parameter `T` with trait `Default` [INFO] [stdout] | [INFO] [stdout] 6 | impl MyVec { [INFO] [stdout] | +++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `T: Copy` is not satisfied [INFO] [stdout] --> hw4/src/myvec.rs:60:48 [INFO] [stdout] | [INFO] [stdout] 60 | let mut new_data: Box<[T]> = Box::new([Default::default(); new_size]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `T` [INFO] [stdout] | [INFO] [stdout] = note: the `Copy` trait is required because this value will be copied for each element of the array [INFO] [stdout] = help: consider using `core::array::from_fn` to initialize the array [INFO] [stdout] = help: see https://doc.rust-lang.org/stable/std/array/fn.from_fn.html for more information [INFO] [stdout] help: consider restricting type parameter `T` with trait `Copy` [INFO] [stdout] | [INFO] [stdout] 6 | impl MyVec { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `T: Default` is not satisfied [INFO] [stdout] --> hw4/src/myvec.rs:60:48 [INFO] [stdout] | [INFO] [stdout] 60 | let mut new_data: Box<[T]> = Box::new([Default::default(); new_size]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `T` [INFO] [stdout] | [INFO] [stdout] help: consider restricting type parameter `T` with trait `Default` [INFO] [stdout] | [INFO] [stdout] 6 | impl MyVec { [INFO] [stdout] | +++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `T: Copy` is not satisfied [INFO] [stdout] --> hw4/src/myvec.rs:60:48 [INFO] [stdout] | [INFO] [stdout] 60 | let mut new_data: Box<[T]> = Box::new([Default::default(); new_size]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `Copy` is not implemented for `T` [INFO] [stdout] | [INFO] [stdout] = note: the `Copy` trait is required because this value will be copied for each element of the array [INFO] [stdout] = help: consider using `core::array::from_fn` to initialize the array [INFO] [stdout] = help: see https://doc.rust-lang.org/stable/std/array/fn.from_fn.html for more information [INFO] [stdout] help: consider restricting type parameter `T` with trait `Copy` [INFO] [stdout] | [INFO] [stdout] 6 | impl MyVec { [INFO] [stdout] | +++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `T: Default` is not satisfied [INFO] [stdout] --> hw4/src/myvec.rs:60:48 [INFO] [stdout] | [INFO] [stdout] 60 | let mut new_data: Box<[T]> = Box::new([Default::default(); new_size]); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ the trait `Default` is not implemented for `T` [INFO] [stdout] | [INFO] [stdout] help: consider restricting type parameter `T` with trait `Default` [INFO] [stdout] | [INFO] [stdout] 6 | impl MyVec { [INFO] [stdout] | +++++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0435. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0435, E0601. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `hw4` (bin "myvec") due to 10 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error: could not compile `hw4` (bin "myvec" test) due to 9 previous errors [INFO] running `Command { std: "docker" "inspect" "7f62cdd692b20ade36e2ceec24d6d50af5fe38db5dc50804c27f433a89120efc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "7f62cdd692b20ade36e2ceec24d6d50af5fe38db5dc50804c27f433a89120efc", kill_on_drop: false }` [INFO] [stdout] 7f62cdd692b20ade36e2ceec24d6d50af5fe38db5dc50804c27f433a89120efc