[INFO] cloning repository https://github.com/ruggeri/rust_learning [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ruggeri/rust_learning" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fruggeri%2Frust_learning", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fruggeri%2Frust_learning'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 6564c9e695a39cf690d74e0eb370d542f146007c [INFO] checking ruggeri/rust_learning against try#998b6603a58e47f42ccce7a67943234e96b6839e for pr-143170 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fruggeri%2Frust_learning" "/workspace/builds/worker-0-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-0-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/ruggeri/rust_learning [INFO] finished tweaking git repo https://github.com/ruggeri/rust_learning [INFO] tweaked toml for git repo https://github.com/ruggeri/rust_learning written to /workspace/builds/worker-0-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/ruggeri/rust_learning on toolchain 998b6603a58e47f42ccce7a67943234e96b6839e [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/ruggeri/rust_learning 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" "+998b6603a58e47f42ccce7a67943234e96b6839e" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 497d42723aed1902c3e6e64fbe6ca8a0e5b521c652f7cc2f9c0ad6d60adcaaa4 [INFO] running `Command { std: "docker" "start" "-a" "497d42723aed1902c3e6e64fbe6ca8a0e5b521c652f7cc2f9c0ad6d60adcaaa4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "497d42723aed1902c3e6e64fbe6ca8a0e5b521c652f7cc2f9c0ad6d60adcaaa4", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "497d42723aed1902c3e6e64fbe6ca8a0e5b521c652f7cc2f9c0ad6d60adcaaa4", kill_on_drop: false }` [INFO] [stdout] 497d42723aed1902c3e6e64fbe6ca8a0e5b521c652f7cc2f9c0ad6d60adcaaa4 [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=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:90999bfc7ae267e83380e433d8e61a7c072ca6729e92edbae886d3423b3a6f4c" "/opt/rustwide/cargo-home/bin/cargo" "+998b6603a58e47f42ccce7a67943234e96b6839e" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8d6be861357185c789259d5b9a6c802465325431a7a216c509121b244f63fec3 [INFO] running `Command { std: "docker" "start" "-a" "8d6be861357185c789259d5b9a6c802465325431a7a216c509121b244f63fec3", kill_on_drop: false }` [INFO] [stderr] warning: no edition set: defaulting to the 2015 edition while the latest is 2024 [INFO] [stderr] Checking rust_learning v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/lib.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(box_patterns, box_syntax)] [INFO] [stdout] | ^^^^^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: removed in 1.70.0; see for more information [INFO] [stdout] = note: replaced with `#[rustc_box]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `box_syntax` has been removed [INFO] [stdout] --> src/bst/bst.rs:111:27 [INFO] [stdout] | [INFO] [stdout] 111 | left: box Nil, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `Box::new()` instead [INFO] [stdout] | [INFO] [stdout] 111 - left: box Nil, [INFO] [stdout] 111 + left: Box::new(Nil), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `box_syntax` has been removed [INFO] [stdout] --> src/bst/bst.rs:112:28 [INFO] [stdout] | [INFO] [stdout] 112 | right: box Nil, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `Box::new()` instead [INFO] [stdout] | [INFO] [stdout] 112 - right: box Nil, [INFO] [stdout] 112 + right: Box::new(Nil), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0557]: feature has been removed [INFO] [stdout] --> src/lib.rs:1:26 [INFO] [stdout] | [INFO] [stdout] 1 | #![feature(box_patterns, box_syntax)] [INFO] [stdout] | ^^^^^^^^^^ feature has been removed [INFO] [stdout] | [INFO] [stdout] = note: removed in 1.70.0; see for more information [INFO] [stdout] = note: replaced with `#[rustc_box]` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `box_syntax` has been removed [INFO] [stdout] --> src/bst/bst.rs:111:27 [INFO] [stdout] | [INFO] [stdout] 111 | left: box Nil, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `Box::new()` instead [INFO] [stdout] | [INFO] [stdout] 111 - left: box Nil, [INFO] [stdout] 111 + left: Box::new(Nil), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: `box_syntax` has been removed [INFO] [stdout] --> src/bst/bst.rs:112:28 [INFO] [stdout] | [INFO] [stdout] 112 | right: box Nil, [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] help: use `Box::new()` instead [INFO] [stdout] | [INFO] [stdout] 112 - right: box Nil, [INFO] [stdout] 112 + right: Box::new(Nil), [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/bst/bst.rs:79:61 [INFO] [stdout] | [INFO] [stdout] 75 | fn find_mut(&mut self, t: &T) -> &mut BST { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 76 | / match self { [INFO] [stdout] 77 | | Nil => self, [INFO] [stdout] 78 | | Node(NodeData { value, left, .. }) if *t < *value => left.find_mut(t), [INFO] [stdout] | | ---- first mutable borrow occurs here [INFO] [stdout] 79 | | Node(NodeData { value, .. }) if *t == *value => self, [INFO] [stdout] | | ^^^^ second mutable borrow occurs here [INFO] [stdout] 80 | | Node(NodeData { value, right, .. }) if *value < *t => right.find_mut(t), [INFO] [stdout] 81 | | Node(_) => unreachable!(), [INFO] [stdout] 82 | | } [INFO] [stdout] | |_________- returning this value requires that `self.0.left` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0499]: cannot borrow `*self` as mutable more than once at a time [INFO] [stdout] --> src/bst/bst.rs:79:61 [INFO] [stdout] | [INFO] [stdout] 75 | fn find_mut(&mut self, t: &T) -> &mut BST { [INFO] [stdout] | - let's call the lifetime of this reference `'1` [INFO] [stdout] 76 | / match self { [INFO] [stdout] 77 | | Nil => self, [INFO] [stdout] 78 | | Node(NodeData { value, left, .. }) if *t < *value => left.find_mut(t), [INFO] [stdout] | | ---- first mutable borrow occurs here [INFO] [stdout] 79 | | Node(NodeData { value, .. }) if *t == *value => self, [INFO] [stdout] | | ^^^^ second mutable borrow occurs here [INFO] [stdout] 80 | | Node(NodeData { value, right, .. }) if *value < *t => right.find_mut(t), [INFO] [stdout] 81 | | Node(_) => unreachable!(), [INFO] [stdout] 82 | | } [INFO] [stdout] | |_________- returning this value requires that `self.0.left` is borrowed for `'1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bst/bst.rs:146:21 [INFO] [stdout] | [INFO] [stdout] 146 | let mut prev_node = left.find_max_mut(); [INFO] [stdout] | ----^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/bst/bst.rs:146:21 [INFO] [stdout] | [INFO] [stdout] 146 | let mut prev_node = left.find_max_mut(); [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] Some errors have detailed explanations: E0499, E0557. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_learning` (lib test) due to 4 previous errors; 1 warning emitted [INFO] [stdout] Some errors have detailed explanations: E0499, E0557. [INFO] [stdout] [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] For more information about an error, try `rustc --explain E0499`. [INFO] [stdout] [INFO] [stderr] error: could not compile `rust_learning` (lib) due to 4 previous errors; 1 warning emitted [INFO] running `Command { std: "docker" "inspect" "8d6be861357185c789259d5b9a6c802465325431a7a216c509121b244f63fec3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8d6be861357185c789259d5b9a6c802465325431a7a216c509121b244f63fec3", kill_on_drop: false }` [INFO] [stdout] 8d6be861357185c789259d5b9a6c802465325431a7a216c509121b244f63fec3