[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/6022049a59cdba485cb07dddf77a344cf71e6b3d against master#ff1737bb00913444173658b4e0b274fd79aabf66 for pr-132712-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FTezerrr%2Fmtuci-rs" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/Tezerrr/mtuci-rs on toolchain ff1737bb00913444173658b4e0b274fd79aabf66 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "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-tc1/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" "+ff1737bb00913444173658b4e0b274fd79aabf66" "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] 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:4a844ea9eb2546a2d2c7022eacef16ef2e8229c7fbb2c7d4d55a9ceca922f72d" "/opt/rustwide/cargo-home/bin/cargo" "+ff1737bb00913444173658b4e0b274fd79aabf66" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 5e77aa6dd75a069834c6c1205f22c8caf0b7389a4b78fdf9a558f2a867a50fdf [INFO] running `Command { std: "docker" "start" "-a" "5e77aa6dd75a069834c6c1205f22c8caf0b7389a4b78fdf9a558f2a867a50fdf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "5e77aa6dd75a069834c6c1205f22c8caf0b7389a4b78fdf9a558f2a867a50fdf", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "5e77aa6dd75a069834c6c1205f22c8caf0b7389a4b78fdf9a558f2a867a50fdf", kill_on_drop: false }` [INFO] [stdout] 5e77aa6dd75a069834c6c1205f22c8caf0b7389a4b78fdf9a558f2a867a50fdf [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=allow" "-e" "RUSTDOCFLAGS=--cap-lints=allow" "-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" "+ff1737bb00913444173658b4e0b274fd79aabf66" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] a92f2698cabd54cacae1a870ce9d93c0767480d58ed69c740ebc2ee7a88dc249 [INFO] running `Command { std: "docker" "start" "-a" "a92f2698cabd54cacae1a870ce9d93c0767480d58ed69c740ebc2ee7a88dc249", 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: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[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[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` [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` [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` [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` [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` [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` [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` [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` [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` [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` [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` [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` [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` [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` [INFO] [stdout] | [INFO] [stdout] 6 | impl MyVec { [INFO] [stdout] | +++++++++++++++++++++++ [INFO] [stdout] [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] [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] [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" "a92f2698cabd54cacae1a870ce9d93c0767480d58ed69c740ebc2ee7a88dc249", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "a92f2698cabd54cacae1a870ce9d93c0767480d58ed69c740ebc2ee7a88dc249", kill_on_drop: false }` [INFO] [stdout] a92f2698cabd54cacae1a870ce9d93c0767480d58ed69c740ebc2ee7a88dc249