[INFO] cloning repository https://github.com/luk036/gray-code-order [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/luk036/gray-code-order" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluk036%2Fgray-code-order", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluk036%2Fgray-code-order'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 5d0842bba5f50eaf092e42ddbd7e764e977ca71c [INFO] testing luk036/gray-code-order against try#a7ce54db9b096bd1098d07c645b489195a667c9f for pr-137940 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fluk036%2Fgray-code-order" "/workspace/builds/worker-7-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7-tc2/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/luk036/gray-code-order on toolchain a7ce54db9b096bd1098d07c645b489195a667c9f [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/luk036/gray-code-order [INFO] finished tweaking git repo https://github.com/luk036/gray-code-order [INFO] tweaked toml for git repo https://github.com/luk036/gray-code-order written to /workspace/builds/worker-7-tc2/source/Cargo.toml [INFO] crate git repo https://github.com/luk036/gray-code-order 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" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "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-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 11ee16ffb6e429a9422e9b3a9b25f25705e580d54ab142c548809a63d1b1b725 [INFO] running `Command { std: "docker" "start" "-a" "11ee16ffb6e429a9422e9b3a9b25f25705e580d54ab142c548809a63d1b1b725", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "11ee16ffb6e429a9422e9b3a9b25f25705e580d54ab142c548809a63d1b1b725", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "11ee16ffb6e429a9422e9b3a9b25f25705e580d54ab142c548809a63d1b1b725", kill_on_drop: false }` [INFO] [stdout] 11ee16ffb6e429a9422e9b3a9b25f25705e580d54ab142c548809a63d1b1b725 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7-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:1680c8fbd8dfb46fcd6d22e546df16ab0e007457dc29fcd9e987cdd5077fd1af" "/opt/rustwide/cargo-home/bin/cargo" "+a7ce54db9b096bd1098d07c645b489195a667c9f" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8e201ac70b0b4af3c9073c3407f060c3d4be753ae35a7bac51bd4d96bc3d9b07 [INFO] running `Command { std: "docker" "start" "-a" "8e201ac70b0b4af3c9073c3407f060c3d4be753ae35a7bac51bd4d96bc3d9b07", 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 middle v0.1.0 (/opt/rustwide/workdir/middle) [INFO] [stderr] Compiling rect v0.1.0 (/opt/rustwide/workdir/rect) [INFO] [stdout] warning: unused import: `EdgeDir` [INFO] [stdout] --> rect/src/rectangulation.rs:1:25 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::edge::{Edge, EdgeDir}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `vertex_x_coord` [INFO] [stdout] --> rect/src/rectangulation.rs:101:17 [INFO] [stdout] | [INFO] [stdout] 101 | let mut vertex_x_coord = vec![-1; 2 * self.n + 3]; [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_vertex_x_coord` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> rect/src/rectangulation.rs:101:13 [INFO] [stdout] | [INFO] [stdout] 101 | let mut vertex_x_coord = vec![-1; 2 * self.n + 3]; [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] error[E0599]: no method named `bits` found for struct `Vertex` in the current scope [INFO] [stdout] --> middle/src/hamcycle.rs:16:19 [INFO] [stdout] | [INFO] [stdout] 16 | assert!(x.bits().len() % 2 == 1); [INFO] [stdout] | ^^^^ private field, not a method [INFO] [stdout] | [INFO] [stdout] ::: middle/src/vertex.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Vertex { [INFO] [stdout] | ----------------- method `bits` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_bits` with a similar name [INFO] [stdout] | [INFO] [stdout] 16 | assert!(x.get_bits().len() % 2 == 1); [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `bits` found for struct `Vertex` in the current scope [INFO] [stdout] --> middle/src/hamcycle.rs:17:19 [INFO] [stdout] | [INFO] [stdout] 17 | let n = x.bits().len() / 2; [INFO] [stdout] | ^^^^ private field, not a method [INFO] [stdout] | [INFO] [stdout] ::: middle/src/vertex.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Vertex { [INFO] [stdout] | ----------------- method `bits` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_bits` with a similar name [INFO] [stdout] | [INFO] [stdout] 17 | let n = x.get_bits().len() / 2; [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `bits` found for struct `Vertex` in the current scope [INFO] [stdout] --> middle/src/hamcycle.rs:22:15 [INFO] [stdout] | [INFO] [stdout] 22 | if xs.bits()[2 * n] == 1 { [INFO] [stdout] | ^^^^ private field, not a method [INFO] [stdout] | [INFO] [stdout] ::: middle/src/vertex.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Vertex { [INFO] [stdout] | ----------------- method `bits` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_bits` with a similar name [INFO] [stdout] | [INFO] [stdout] 22 | if xs.get_bits()[2 * n] == 1 { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_last_vertex` found for struct `Vertex` in the current scope [INFO] [stdout] --> middle/src/hamcycle.rs:24:24 [INFO] [stdout] | [INFO] [stdout] 24 | skip += xs.to_last_vertex(); [INFO] [stdout] | ^^^^^^^^^^^^^^ method not found in `Vertex` [INFO] [stdout] | [INFO] [stdout] ::: middle/src/vertex.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Vertex { [INFO] [stdout] | ----------------- method `to_last_vertex` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `bits_mut` found for struct `Vertex` in the current scope [INFO] [stdout] --> middle/src/hamcycle.rs:26:16 [INFO] [stdout] | [INFO] [stdout] 26 | xs.bits_mut()[2 * n] = 0; [INFO] [stdout] | ^^^^^^^^ method not found in `Vertex` [INFO] [stdout] | [INFO] [stdout] ::: middle/src/vertex.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Vertex { [INFO] [stdout] | ----------------- method `bits_mut` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `to_first_vertex` found for struct `Vertex` in the current scope [INFO] [stdout] --> middle/src/hamcycle.rs:29:20 [INFO] [stdout] | [INFO] [stdout] 29 | skip += xs.to_first_vertex(); [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] ::: middle/src/vertex.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Vertex { [INFO] [stdout] | ----------------- method `to_first_vertex` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `is_first_vertex` with a similar name [INFO] [stdout] | [INFO] [stdout] 29 - skip += xs.to_first_vertex(); [INFO] [stdout] 29 + skip += xs.is_first_vertex(); [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> middle/src/hamcycle.rs:32:36 [INFO] [stdout] | [INFO] [stdout] 32 | let mut y_tree = Tree::new(xs.clone()); [INFO] [stdout] | --------- ^^^^^^^^^^ expected `Vec`, found `Vertex` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] = note: expected struct `Vec` [INFO] [stdout] found struct `Vertex` [INFO] [stdout] note: associated function defined here [INFO] [stdout] --> middle/src/tree.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn new(xv: Vec) -> Self { [INFO] [stdout] | ^^^ ------------ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `bits` found for struct `Vertex` in the current scope [INFO] [stdout] --> middle/src/hamcycle.rs:35:19 [INFO] [stdout] | [INFO] [stdout] 35 | if xs.bits()[1] == 1 && skip <= 5 { [INFO] [stdout] | ^^^^ private field, not a method [INFO] [stdout] | [INFO] [stdout] ::: middle/src/vertex.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Vertex { [INFO] [stdout] | ----------------- method `bits` not found for this struct [INFO] [stdout] | [INFO] [stdout] help: there is a method `get_bits` with a similar name [INFO] [stdout] | [INFO] [stdout] 35 | if xs.get_bits()[1] == 1 && skip <= 5 { [INFO] [stdout] | ++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0061]: this method takes 1 argument but 0 arguments were supplied [INFO] [stdout] --> middle/src/hamcycle.rs:39:18 [INFO] [stdout] | [INFO] [stdout] 39 | .to_bitstring() [INFO] [stdout] | ^^^^^^^^^^^^-- argument #1 of type `&mut [i32]` is missing [INFO] [stdout] | [INFO] [stdout] note: method defined here [INFO] [stdout] --> middle/src/tree.rs:381:12 [INFO] [stdout] | [INFO] [stdout] 381 | pub fn to_bitstring(&self, x: &mut [i32]) { [INFO] [stdout] | ^^^^^^^^^^^^ ------------- [INFO] [stdout] help: provide the argument [INFO] [stdout] | [INFO] [stdout] 39 | .to_bitstring(/* &mut [i32] */) [INFO] [stdout] | ++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: `()` is not an iterator [INFO] [stdout] --> middle/src/hamcycle.rs:40:18 [INFO] [stdout] | [INFO] [stdout] 38 | let y_vec = y_tree [INFO] [stdout] | _________________________- [INFO] [stdout] 39 | | .to_bitstring() [INFO] [stdout] 40 | | .into_iter() [INFO] [stdout] | | -^^^^^^^^^ `()` is not an iterator [INFO] [stdout] | |_________________| [INFO] [stdout] | [INFO] [stdout] | [INFO] [stdout] = note: the following trait bounds were not satisfied: [INFO] [stdout] `(): Iterator` [INFO] [stdout] which is required by `(): IntoIterator` [INFO] [stdout] `&(): Iterator` [INFO] [stdout] which is required by `&(): IntoIterator` [INFO] [stdout] `&mut (): Iterator` [INFO] [stdout] which is required by `&mut (): IntoIterator` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no function or associated item named `from_bits` found for struct `Vertex` in the current scope [INFO] [stdout] --> middle/src/hamcycle.rs:43:26 [INFO] [stdout] | [INFO] [stdout] 43 | xs = Vertex::from_bits(y_vec); [INFO] [stdout] | ^^^^^^^^^ function or associated item not found in `Vertex` [INFO] [stdout] | [INFO] [stdout] ::: middle/src/vertex.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Vertex { [INFO] [stdout] | ----------------- function or associated item `from_bits` not found for this struct [INFO] [stdout] | [INFO] [stdout] note: if you're trying to build a new `Vertex`, consider using `Vertex::new` which returns `Vertex` [INFO] [stdout] --> middle/src/vertex.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn new(x: Vec) -> Self { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `flip_bit` found for struct `Vertex` in the current scope [INFO] [stdout] --> middle/src/hamcycle.rs:84:28 [INFO] [stdout] | [INFO] [stdout] 84 | self.y.flip_bit(i); [INFO] [stdout] | ^^^^^^^^ method not found in `Vertex` [INFO] [stdout] | [INFO] [stdout] ::: middle/src/vertex.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Vertex { [INFO] [stdout] | ----------------- method `flip_bit` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> middle/src/hamcycle.rs:85:56 [INFO] [stdout] | [INFO] [stdout] 85 | (self.visit_f)(&self.y.get_bits(), i); [INFO] [stdout] | -------------- ^ expected `i32`, found `usize` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: implementation defined here [INFO] [stdout] --> /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/alloc/src/boxed.rs:1982:1 [INFO] [stdout] help: you can convert a `usize` to an `i32` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 85 | (self.visit_f)(&self.y.get_bits(), i.try_into().unwrap()); [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `flip_bit` found for struct `Vertex` in the current scope [INFO] [stdout] --> middle/src/hamcycle.rs:88:28 [INFO] [stdout] | [INFO] [stdout] 88 | self.y.flip_bit(i); [INFO] [stdout] | ^^^^^^^^ method not found in `Vertex` [INFO] [stdout] | [INFO] [stdout] ::: middle/src/vertex.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Vertex { [INFO] [stdout] | ----------------- method `flip_bit` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `flip_bit` found for struct `Vertex` in the current scope [INFO] [stdout] --> middle/src/hamcycle.rs:97:24 [INFO] [stdout] | [INFO] [stdout] 97 | self.y.flip_bit(i); [INFO] [stdout] | ^^^^^^^^ method not found in `Vertex` [INFO] [stdout] | [INFO] [stdout] ::: middle/src/vertex.rs:3:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub struct Vertex { [INFO] [stdout] | ----------------- method `flip_bit` not found for this struct [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> middle/src/hamcycle.rs:98:52 [INFO] [stdout] | [INFO] [stdout] 98 | (self.visit_f)(&self.y.get_bits(), i); [INFO] [stdout] | -------------- ^ expected `i32`, found `usize` [INFO] [stdout] | | [INFO] [stdout] | arguments to this function are incorrect [INFO] [stdout] | [INFO] [stdout] note: implementation defined here [INFO] [stdout] --> /rustc/a7ce54db9b096bd1098d07c645b489195a667c9f/library/alloc/src/boxed.rs:1982:1 [INFO] [stdout] help: you can convert a `usize` to an `i32` and panic if the converted value doesn't fit [INFO] [stdout] | [INFO] [stdout] 98 | (self.visit_f)(&self.y.get_bits(), i.try_into().unwrap()); [INFO] [stdout] | ++++++++++++++++++++ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0061, E0308, E0599. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0061`. [INFO] [stdout] [INFO] [stderr] error: could not compile `middle` (lib) due to 16 previous errors [INFO] running `Command { std: "docker" "inspect" "8e201ac70b0b4af3c9073c3407f060c3d4be753ae35a7bac51bd4d96bc3d9b07", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8e201ac70b0b4af3c9073c3407f060c3d4be753ae35a7bac51bd4d96bc3d9b07", kill_on_drop: false }` [INFO] [stdout] 8e201ac70b0b4af3c9073c3407f060c3d4be753ae35a7bac51bd4d96bc3d9b07