[INFO] cloning repository https://github.com/ForPrakWS19-20/forprak_rust_ws_19-20 [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/ForPrakWS19-20/forprak_rust_ws_19-20" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FForPrakWS19-20%2Fforprak_rust_ws_19-20", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FForPrakWS19-20%2Fforprak_rust_ws_19-20'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 98c63a0dc91d3f536315357c82c01435fbdf4eeb [INFO] testing ForPrakWS19-20/forprak_rust_ws_19-20 against 1.45.2 for beta-1.46-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FForPrakWS19-20%2Fforprak_rust_ws_19-20" "/workspace/builds/worker-5/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ForPrakWS19-20/forprak_rust_ws_19-20 on toolchain 1.45.2 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.45.2" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/ForPrakWS19-20/forprak_rust_ws_19-20 [INFO] finished tweaking git repo https://github.com/ForPrakWS19-20/forprak_rust_ws_19-20 [INFO] tweaked toml for git repo https://github.com/ForPrakWS19-20/forprak_rust_ws_19-20 written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate git repo https://github.com/ForPrakWS19-20/forprak_rust_ws_19-20 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.45.2" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] d8ea50c30b478a76ae7701ee2afe211ec7e68bf462136e825d93ef90b65548c9 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "d8ea50c30b478a76ae7701ee2afe211ec7e68bf462136e825d93ef90b65548c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "d8ea50c30b478a76ae7701ee2afe211ec7e68bf462136e825d93ef90b65548c9", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "d8ea50c30b478a76ae7701ee2afe211ec7e68bf462136e825d93ef90b65548c9", kill_on_drop: false }` [INFO] [stdout] d8ea50c30b478a76ae7701ee2afe211ec7e68bf462136e825d93ef90b65548c9 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 6c8bb41b99fcb93830ef39dba12804c0156507de280ec512ef7aba05abb8af65 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "6c8bb41b99fcb93830ef39dba12804c0156507de280ec512ef7aba05abb8af65", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling syn v1.0.33 [INFO] [stderr] Compiling serde_derive v1.0.114 [INFO] [stderr] Compiling serde v1.0.114 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Compiling bincode v1.3.1 [INFO] [stderr] Compiling Foprak v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0423]: expected function, tuple struct or tuple variant, found struct `InnerElement` [INFO] [stdout] --> src/lib.rs:138:9 [INFO] [stdout] | [INFO] [stdout] 56 | / pub struct InnerElement { [INFO] [stdout] 57 | | id: usize, [INFO] [stdout] 58 | | //MBRect von Kinder [INFO] [stdout] 59 | | mbrs:Vec, [INFO] [stdout] 60 | | //ID, mit welcher Blöcke vom BFA geholt werden können [INFO] [stdout] 61 | | children:usize [INFO] [stdout] 62 | | } [INFO] [stdout] | |_- `InnerElement` defined here [INFO] [stdout] ... [INFO] [stdout] 138 | InnerElement(id,mbr,children) [INFO] [stdout] | ^^^^^^^^^^^^ did you mean `InnerElement { /* fields */ }`? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, tuple struct or tuple variant, found struct `LeafElement` [INFO] [stdout] --> src/lib.rs:144:9 [INFO] [stdout] | [INFO] [stdout] 51 | / pub struct LeafElement { [INFO] [stdout] 52 | | daten:Vec, [INFO] [stdout] 53 | | mbr:MBRect [INFO] [stdout] 54 | | } [INFO] [stdout] | |_- `LeafElement` defined here [INFO] [stdout] ... [INFO] [stdout] 144 | LeafElement(daten,mbr) [INFO] [stdout] | ^^^^^^^^^^^ did you mean `LeafElement { /* fields */ }`? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, tuple struct or tuple variant, found struct `Point` [INFO] [stdout] --> src/lib.rs:150:9 [INFO] [stdout] | [INFO] [stdout] 65 | / pub struct Point{ [INFO] [stdout] 66 | | //Pos 0: x, Pos 1: y [INFO] [stdout] 67 | | //coor:Vec [INFO] [stdout] 68 | | x:f64, [INFO] [stdout] 69 | | y:f64 [INFO] [stdout] 70 | | } [INFO] [stdout] | |_- `Point` defined here [INFO] [stdout] ... [INFO] [stdout] 150 | Point(x,y) [INFO] [stdout] | ^^^^^ did you mean `Point { /* fields */ }`? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, tuple struct or tuple variant, found struct `MBRect` [INFO] [stdout] --> src/lib.rs:156:9 [INFO] [stdout] | [INFO] [stdout] 72 | / pub struct MBRect{ [INFO] [stdout] 73 | | id: usize, [INFO] [stdout] 74 | | botton_left:Point, [INFO] [stdout] 75 | | top_right:Point, [INFO] [stdout] 76 | | } [INFO] [stdout] | |_- `MBRect` defined here [INFO] [stdout] ... [INFO] [stdout] 156 | MBRect(id,bl,tp) [INFO] [stdout] | ^^^^^^ did you mean `MBRect { /* fields */ }`? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `r1` in this scope [INFO] [stdout] --> src/lib.rs:160:21 [INFO] [stdout] | [INFO] [stdout] 160 | let minx1 = r1.botton_left.x; [INFO] [stdout] | ^^ help: a local variable with a similar name exists: `p1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `r1` in this scope [INFO] [stdout] --> src/lib.rs:161:21 [INFO] [stdout] | [INFO] [stdout] 161 | let miny1 = r1.botton_left.y; [INFO] [stdout] | ^^ help: a local variable with a similar name exists: `p1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `r1` in this scope [INFO] [stdout] --> src/lib.rs:162:21 [INFO] [stdout] | [INFO] [stdout] 162 | let maxx1 = r1.top_right.x; [INFO] [stdout] | ^^ help: a local variable with a similar name exists: `p1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `r1` in this scope [INFO] [stdout] --> src/lib.rs:163:21 [INFO] [stdout] | [INFO] [stdout] 163 | let maxy1 = r1.top_right.y; [INFO] [stdout] | ^^ help: a local variable with a similar name exists: `p1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `r2` in this scope [INFO] [stdout] --> src/lib.rs:164:21 [INFO] [stdout] | [INFO] [stdout] 164 | let minx2 = r2.botton_left.x; [INFO] [stdout] | ^^ help: a local variable with a similar name exists: `p2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `r2` in this scope [INFO] [stdout] --> src/lib.rs:165:21 [INFO] [stdout] | [INFO] [stdout] 165 | let miny2 = r2.botton_left.y; [INFO] [stdout] | ^^ help: a local variable with a similar name exists: `p2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `r2` in this scope [INFO] [stdout] --> src/lib.rs:166:21 [INFO] [stdout] | [INFO] [stdout] 166 | let maxx2 = r2.top_right.x; [INFO] [stdout] | ^^ help: a local variable with a similar name exists: `p2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `r2` in this scope [INFO] [stdout] --> src/lib.rs:167:21 [INFO] [stdout] | [INFO] [stdout] 167 | let maxy2 = r2.top_right.y; [INFO] [stdout] | ^^ help: a local variable with a similar name exists: `p2` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0532]: expected unit struct, unit variant or constant, found struct variant `Node::Leaf` [INFO] [stdout] --> src/lib.rs:234:13 [INFO] [stdout] | [INFO] [stdout] 42 | / Leaf{ [INFO] [stdout] 43 | | content: Vec [INFO] [stdout] 44 | | }, [INFO] [stdout] | |_____- `Node::Leaf` defined here [INFO] [stdout] ... [INFO] [stdout] 234 | Node::Leaf => true, [INFO] [stdout] | ^^^^^^^^^^ did you mean `Node::Leaf { /* fields */ }`? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0532]: expected unit struct, unit variant or constant, found struct variant `Node::InnerNode` [INFO] [stdout] --> src/lib.rs:235:13 [INFO] [stdout] | [INFO] [stdout] 45 | / InnerNode{ [INFO] [stdout] 46 | | content: Vec [INFO] [stdout] 47 | | }, [INFO] [stdout] | |_____- `Node::InnerNode` defined here [INFO] [stdout] ... [INFO] [stdout] 235 | Node::InnerNode => false, [INFO] [stdout] | ^^^^^^^^^^^^^^^ did you mean `Node::InnerNode { /* fields */ }`? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mbr` in this scope [INFO] [stdout] --> src/lib.rs:389:60 [INFO] [stdout] | [INFO] [stdout] 389 | let new_node_element = LeafElement::new(vec![],mbr); [INFO] [stdout] | ^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `tmp_id` in this scope [INFO] [stdout] --> src/lib.rs:398:24 [INFO] [stdout] | [INFO] [stdout] 398 | self.split(tmp_id, Vec::new(), Vec::new()); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `tmp_id` in this scope [INFO] [stdout] --> src/lib.rs:400:30 [INFO] [stdout] | [INFO] [stdout] 400 | self.adjust_tree(tmp_id); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `M` in this scope [INFO] [stdout] --> src/lib.rs:505:35 [INFO] [stdout] | [INFO] [stdout] 505 | let m = max(2 as usize, ((M as f32) / (2 as f32)).ceil() as usize); [INFO] [stdout] | ^ help: you might have meant to use the available field: `self.M` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pick_group` in this scope [INFO] [stdout] --> src/lib.rs:598:33 [INFO] [stdout] | [INFO] [stdout] 598 | let index_first_entry = pick_group.iter().position(|x| x == assigned_entries[0]).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `assigned_entries` in this scope [INFO] [stdout] --> src/lib.rs:598:69 [INFO] [stdout] | [INFO] [stdout] 598 | let index_first_entry = pick_group.iter().position(|x| x == assigned_entries[0]).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `pick_group` in this scope [INFO] [stdout] --> src/lib.rs:599:34 [INFO] [stdout] | [INFO] [stdout] 599 | let index_second_entry = pick_group.iter().position(|x| x == assigned_entries[1]).unwrap(); [INFO] [stdout] | ^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `assigned_entries` in this scope [INFO] [stdout] --> src/lib.rs:599:70 [INFO] [stdout] | [INFO] [stdout] 599 | let index_second_entry = pick_group.iter().position(|x| x == assigned_entries[1]).unwrap(); [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'core_intrinsics': intrinsics are unlikely to ever be stabilized, instead they should be used through stabilized interfaces in the rest of the standard library [INFO] [stdout] --> src/lib.rs:634:23 [INFO] [stdout] | [INFO] [stdout] 634 | use std::intrinsics::{breakpoint, ceilf64}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0658]: use of unstable library feature 'core_intrinsics': intrinsics are unlikely to ever be stabilized, instead they should be used through stabilized interfaces in the rest of the standard library [INFO] [stdout] --> src/lib.rs:634:35 [INFO] [stdout] | [INFO] [stdout] 634 | use std::intrinsics::{breakpoint, ceilf64}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Node: _::_serde::Deserialize<'_>` is not satisfied [INFO] [stdout] --> src/lib.rs:81:20 [INFO] [stdout] | [INFO] [stdout] 81 | let node = bincode::deserialize(block.contents.as_slice()); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ the trait `_::_serde::Deserialize<'_>` is not implemented for `Node` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/bincode-1.3.1/src/lib.rs:149:8 [INFO] [stdout] | [INFO] [stdout] 149 | T: serde::de::Deserialize<'a>, [INFO] [stdout] | -------------------------- required by this bound in `bincode::deserialize` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Node: _::_serde::Serialize` is not satisfied [INFO] [stdout] --> src/lib.rs:126:28 [INFO] [stdout] | [INFO] [stdout] 126 | bincode::serialize(&self).unwrap() [INFO] [stdout] | ^^^^^ the trait `_::_serde::Serialize` is not implemented for `Node` [INFO] [stdout] | [INFO] [stdout] ::: /opt/rustwide/cargo-home/registry/src/github.com-1ecc6299db9ec823/bincode-1.3.1/src/lib.rs:93:8 [INFO] [stdout] | [INFO] [stdout] 93 | T: serde::Serialize, [INFO] [stdout] | ---------------- required by this bound in `bincode::serialize` [INFO] [stdout] | [INFO] [stdout] = note: required because of the requirements on the impl of `_::_serde::Serialize` for `&Node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `f64: std::cmp::Ord` is not satisfied [INFO] [stdout] --> src/lib.rs:168:20 [INFO] [stdout] | [INFO] [stdout] 168 | let minx = min(minx1,minx2); [INFO] [stdout] | ^^^ the trait `std::cmp::Ord` is not implemented for `f64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `f64: std::cmp::Ord` is not satisfied [INFO] [stdout] --> src/lib.rs:169:20 [INFO] [stdout] | [INFO] [stdout] 169 | let miny = min(miny1,miny2); [INFO] [stdout] | ^^^ the trait `std::cmp::Ord` is not implemented for `f64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `f64: std::cmp::Ord` is not satisfied [INFO] [stdout] --> src/lib.rs:170:20 [INFO] [stdout] | [INFO] [stdout] 170 | let maxx = max(maxx1,maxx2); [INFO] [stdout] | ^^^ the trait `std::cmp::Ord` is not implemented for `f64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `f64: std::cmp::Ord` is not satisfied [INFO] [stdout] --> src/lib.rs:171:20 [INFO] [stdout] | [INFO] [stdout] 171 | let maxy = max(maxy1,maxy2); [INFO] [stdout] | ^^^ the trait `std::cmp::Ord` is not implemented for `f64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `f64: std::cmp::Ord` is not satisfied [INFO] [stdout] --> src/lib.rs:187:20 [INFO] [stdout] | [INFO] [stdout] 187 | let minx = min(minx1,minx2); [INFO] [stdout] | ^^^ the trait `std::cmp::Ord` is not implemented for `f64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `f64: std::cmp::Ord` is not satisfied [INFO] [stdout] --> src/lib.rs:188:20 [INFO] [stdout] | [INFO] [stdout] 188 | let miny = min(miny1,miny2); [INFO] [stdout] | ^^^ the trait `std::cmp::Ord` is not implemented for `f64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `f64: std::cmp::Ord` is not satisfied [INFO] [stdout] --> src/lib.rs:189:20 [INFO] [stdout] | [INFO] [stdout] 189 | let maxx = max(maxx1,maxx2); [INFO] [stdout] | ^^^ the trait `std::cmp::Ord` is not implemented for `f64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `f64: std::cmp::Ord` is not satisfied [INFO] [stdout] --> src/lib.rs:190:20 [INFO] [stdout] | [INFO] [stdout] 190 | let maxy = max(maxy1,maxy2); [INFO] [stdout] | ^^^ the trait `std::cmp::Ord` is not implemented for `f64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `f64: std::cmp::Ord` is not satisfied [INFO] [stdout] --> src/lib.rs:206:20 [INFO] [stdout] | [INFO] [stdout] 206 | let minx = max(minx1,minx2); [INFO] [stdout] | ^^^ the trait `std::cmp::Ord` is not implemented for `f64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `f64: std::cmp::Ord` is not satisfied [INFO] [stdout] --> src/lib.rs:207:20 [INFO] [stdout] | [INFO] [stdout] 207 | let miny = max(miny1,miny2); [INFO] [stdout] | ^^^ the trait `std::cmp::Ord` is not implemented for `f64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `f64: std::cmp::Ord` is not satisfied [INFO] [stdout] --> src/lib.rs:208:20 [INFO] [stdout] | [INFO] [stdout] 208 | let maxx = min(maxx1,maxx2); [INFO] [stdout] | ^^^ the trait `std::cmp::Ord` is not implemented for `f64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `f64: std::cmp::Ord` is not satisfied [INFO] [stdout] --> src/lib.rs:209:20 [INFO] [stdout] | [INFO] [stdout] 209 | let maxy = min(maxy1,maxy2); [INFO] [stdout] | ^^^ the trait `std::cmp::Ord` is not implemented for `f64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:241:42 [INFO] [stdout] | [INFO] [stdout] 241 | fn get_node(&mut self, id: usize) -> Node { [INFO] [stdout] | -------- ^^^^ expected enum `Node`, found `()` [INFO] [stdout] | | [INFO] [stdout] | implicitly returns `()` as its body has no tail or `return` expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_rect` found for mutable reference `&mut RTree` in the current scope [INFO] [stdout] --> src/lib.rs:280:25 [INFO] [stdout] | [INFO] [stdout] 280 | let rect = self.get_rect(id); [INFO] [stdout] | ^^^^^^^^ method not found in `&mut RTree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:319:17 [INFO] [stdout] | [INFO] [stdout] 308 | / match tmp_node { [INFO] [stdout] 309 | | Node::InnerNode {content} => {} [INFO] [stdout] 310 | | Node::Leaf {content} => { [INFO] [stdout] 311 | | for i in 0..content.len()-1 { [INFO] [stdout] ... | [INFO] [stdout] 319 | | Some(res) [INFO] [stdout] | | ^^^^^^^^^ expected `()`, found enum `std::option::Option` [INFO] [stdout] 320 | | } [INFO] [stdout] 321 | | } [INFO] [stdout] | |_________- expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `std::option::Option>` [INFO] [stdout] help: try adding a semicolon [INFO] [stdout] | [INFO] [stdout] 319 | Some(res); [INFO] [stdout] | ^ [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 321 | }; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: `match` arms have incompatible types [INFO] [stdout] --> src/lib.rs:362:36 [INFO] [stdout] | [INFO] [stdout] 360 | / match data { [INFO] [stdout] 361 | | None => (), [INFO] [stdout] | | -- this is found to be of type `()` [INFO] [stdout] 362 | | Some(i) => i [INFO] [stdout] | | ^ expected `()`, found struct `std::vec::Vec` [INFO] [stdout] 363 | | } [INFO] [stdout] | |_____________________- `match` arms have incompatible types [INFO] [stdout] | [INFO] [stdout] = note: expected type `()` [INFO] [stdout] found struct `std::vec::Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `children` found for enum `Node` in the current scope [INFO] [stdout] --> src/lib.rs:381:37 [INFO] [stdout] | [INFO] [stdout] 39 | enum Node{ [INFO] [stdout] | --------- method `children` not found for this [INFO] [stdout] ... [INFO] [stdout] 381 | let child_num = chosen_node.children().unwrap().len(); [INFO] [stdout] | ^^^^^^^^ method not found in `Node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `children` found for enum `Node` in the current scope [INFO] [stdout] --> src/lib.rs:385:25 [INFO] [stdout] | [INFO] [stdout] 39 | enum Node{ [INFO] [stdout] | --------- method `children` not found for this [INFO] [stdout] ... [INFO] [stdout] 385 | chosen_node.children().unwrap().push(new_id); [INFO] [stdout] | ^^^^^^^^ method not found in `Node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `>=` cannot be applied to type `&Point` [INFO] [stdout] --> src/lib.rs:414:16 [INFO] [stdout] | [INFO] [stdout] 414 | if sbl >= bbl && str <= btr{ } [INFO] [stdout] | --- ^^ --- &Point [INFO] [stdout] | | [INFO] [stdout] | &Point [INFO] [stdout] | [INFO] [stdout] = note: an implementation of `std::cmp::PartialOrd` might be missing for `&Point` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0369]: binary operation `<=` cannot be applied to type `&Point` [INFO] [stdout] --> src/lib.rs:414:30 [INFO] [stdout] | [INFO] [stdout] 414 | if sbl >= bbl && str <= btr{ } [INFO] [stdout] | --- ^^ --- &Point [INFO] [stdout] | | [INFO] [stdout] | &Point [INFO] [stdout] | [INFO] [stdout] = note: an implementation of `std::cmp::PartialOrd` might be missing for `&Point` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `f64: std::cmp::Ord` is not satisfied [INFO] [stdout] --> src/lib.rs:416:28 [INFO] [stdout] | [INFO] [stdout] 416 | let neu_bl_x = min(sbl.x,bbl.x); [INFO] [stdout] | ^^^ the trait `std::cmp::Ord` is not implemented for `f64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `f64: std::cmp::Ord` is not satisfied [INFO] [stdout] --> src/lib.rs:417:28 [INFO] [stdout] | [INFO] [stdout] 417 | let neu_bl_y = min(sbl.y,bbl.y); [INFO] [stdout] | ^^^ the trait `std::cmp::Ord` is not implemented for `f64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `f64: std::cmp::Ord` is not satisfied [INFO] [stdout] --> src/lib.rs:418:28 [INFO] [stdout] | [INFO] [stdout] 418 | let neu_tr_x = max(str.x,btr.x); [INFO] [stdout] | ^^^ the trait `std::cmp::Ord` is not implemented for `f64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `f64: std::cmp::Ord` is not satisfied [INFO] [stdout] --> src/lib.rs:419:28 [INFO] [stdout] | [INFO] [stdout] 419 | let neu_tr_y = max(str.y,btr.y); [INFO] [stdout] | ^^^ the trait `std::cmp::Ord` is not implemented for `f64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `rect` found for enum `Node` in the current scope [INFO] [stdout] --> src/lib.rs:435:33 [INFO] [stdout] | [INFO] [stdout] 39 | enum Node{ [INFO] [stdout] | --------- method `rect` not found for this [INFO] [stdout] ... [INFO] [stdout] 435 | let tmp_rect = tmp_node.rect(); [INFO] [stdout] | ^^^^ method not found in `Node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `children` found for enum `Node` in the current scope [INFO] [stdout] --> src/lib.rs:436:33 [INFO] [stdout] | [INFO] [stdout] 39 | enum Node{ [INFO] [stdout] | --------- method `children` not found for this [INFO] [stdout] ... [INFO] [stdout] 436 | let child_id = tmp_node.children().unwrap()[0]; [INFO] [stdout] | ^^^^^^^^ method not found in `Node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `children` found for enum `Node` in the current scope [INFO] [stdout] --> src/lib.rs:444:35 [INFO] [stdout] | [INFO] [stdout] 39 | enum Node{ [INFO] [stdout] | --------- method `children` not found for this [INFO] [stdout] ... [INFO] [stdout] 444 | let mut id = tmp_node.children().unwrap()[0]; [INFO] [stdout] | ^^^^^^^^ method not found in `Node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `children` found for enum `Node` in the current scope [INFO] [stdout] --> src/lib.rs:445:34 [INFO] [stdout] | [INFO] [stdout] 39 | enum Node{ [INFO] [stdout] | --------- method `children` not found for this [INFO] [stdout] ... [INFO] [stdout] 445 | for i in 0..tmp_node.children().len-1 { [INFO] [stdout] | ^^^^^^^^ method not found in `Node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `children` found for enum `Node` in the current scope [INFO] [stdout] --> src/lib.rs:446:36 [INFO] [stdout] | [INFO] [stdout] 39 | enum Node{ [INFO] [stdout] | --------- method `children` not found for this [INFO] [stdout] ... [INFO] [stdout] 446 | let tmp = tmp_node.children().unwrap()[i]; [INFO] [stdout] | ^^^^^^^^ method not found in `Node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:512:12 [INFO] [stdout] | [INFO] [stdout] 512 | if assigned_1.len() + assigned_2.len() = self.total_id {} [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | expected `bool`, found `()` [INFO] [stdout] | help: try comparing for equality: `assigned_1.len() + assigned_2.len() == self.total_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `f64: std::cmp::Ord` is not satisfied [INFO] [stdout] --> src/lib.rs:544:24 [INFO] [stdout] | [INFO] [stdout] 544 | let new_bl_x = min(bl1.x,bl2.x); [INFO] [stdout] | ^^^ the trait `std::cmp::Ord` is not implemented for `f64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `f64: std::cmp::Ord` is not satisfied [INFO] [stdout] --> src/lib.rs:545:24 [INFO] [stdout] | [INFO] [stdout] 545 | let new_bl_y = min(bl1.y,bl2.y); [INFO] [stdout] | ^^^ the trait `std::cmp::Ord` is not implemented for `f64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `f64: std::cmp::Ord` is not satisfied [INFO] [stdout] --> src/lib.rs:546:24 [INFO] [stdout] | [INFO] [stdout] 546 | let new_tr_x = max(tr1.x,tr2.x); [INFO] [stdout] | ^^^ the trait `std::cmp::Ord` is not implemented for `f64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `f64: std::cmp::Ord` is not satisfied [INFO] [stdout] --> src/lib.rs:547:24 [INFO] [stdout] | [INFO] [stdout] 547 | let new_tr_y = max(tr1.y,tr2.y); [INFO] [stdout] | ^^^ the trait `std::cmp::Ord` is not implemented for `f64` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `children` found for enum `Node` in the current scope [INFO] [stdout] --> src/lib.rs:559:41 [INFO] [stdout] | [INFO] [stdout] 39 | enum Node{ [INFO] [stdout] | --------- method `children` not found for this [INFO] [stdout] ... [INFO] [stdout] 559 | let mut pick_group = spelt_node.children().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `Node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_rect` found for mutable reference `&mut RTree` in the current scope [INFO] [stdout] --> src/lib.rs:567:40 [INFO] [stdout] | [INFO] [stdout] 567 | let pick_rect_1 = self.get_rect(id_1); [INFO] [stdout] | ^^^^^^^^ method not found in `&mut RTree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_rect` found for mutable reference `&mut RTree` in the current scope [INFO] [stdout] --> src/lib.rs:568:40 [INFO] [stdout] | [INFO] [stdout] 568 | let pick_rect_2 = self.get_rect(id_2); [INFO] [stdout] | ^^^^^^^^ method not found in `&mut RTree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_rect` found for mutable reference `&mut RTree` in the current scope [INFO] [stdout] --> src/lib.rs:588:36 [INFO] [stdout] | [INFO] [stdout] 588 | let assigned_rect_1 = self.get_rect(assigned[0]); [INFO] [stdout] | ^^^^^^^^ method not found in `&mut RTree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_rect` found for mutable reference `&mut RTree` in the current scope [INFO] [stdout] --> src/lib.rs:589:36 [INFO] [stdout] | [INFO] [stdout] 589 | let assigned_rect_2 = self.get_rect(assigned[1]); [INFO] [stdout] | ^^^^^^^^ method not found in `&mut RTree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `children` found for enum `Node` in the current scope [INFO] [stdout] --> src/lib.rs:596:46 [INFO] [stdout] | [INFO] [stdout] 39 | enum Node{ [INFO] [stdout] | --------- method `children` not found for this [INFO] [stdout] ... [INFO] [stdout] 596 | let mut children = self.get_node(id).children().unwrap(); [INFO] [stdout] | ^^^^^^^^ method not found in `Node` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `get_rect` found for mutable reference `&mut RTree` in the current scope [INFO] [stdout] --> src/lib.rs:607:33 [INFO] [stdout] | [INFO] [stdout] 607 | let tmp_rect = self.get_rect(assigning[i]); [INFO] [stdout] | ^^^^^^^^ method not found in `&mut RTree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `rect_area` found for mutable reference `&mut RTree` in the current scope [INFO] [stdout] --> src/lib.rs:608:76 [INFO] [stdout] | [INFO] [stdout] 608 | let d1 = self.area_two_rect(&tmp_rect,&assigned_rect_1) - self.rect_area(&tmp_rect) - self.rect_area(&assigned_rect_1); [INFO] [stdout] | ^^^^^^^^^ help: there is an associated function with a similar name: `rect_area_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `rect_area` found for mutable reference `&mut RTree` in the current scope [INFO] [stdout] --> src/lib.rs:608:104 [INFO] [stdout] | [INFO] [stdout] 608 | let d1 = self.area_two_rect(&tmp_rect,&assigned_rect_1) - self.rect_area(&tmp_rect) - self.rect_area(&assigned_rect_1); [INFO] [stdout] | ^^^^^^^^^ help: there is an associated function with a similar name: `rect_area_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `rect_area` found for mutable reference `&mut RTree` in the current scope [INFO] [stdout] --> src/lib.rs:609:76 [INFO] [stdout] | [INFO] [stdout] 609 | let d2 = self.area_two_rect(&tmp_rect,&assigned_rect_2) - self.rect_area(&tmp_rect) - self.rect_area(&assigned_rect_2); [INFO] [stdout] | ^^^^^^^^^ help: there is an associated function with a similar name: `rect_area_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0599]: no method named `rect_area` found for mutable reference `&mut RTree` in the current scope [INFO] [stdout] --> src/lib.rs:609:104 [INFO] [stdout] | [INFO] [stdout] 609 | let d2 = self.area_two_rect(&tmp_rect,&assigned_rect_2) - self.rect_area(&tmp_rect) - self.rect_area(&assigned_rect_2); [INFO] [stdout] | ^^^^^^^^^ help: there is an associated function with a similar name: `rect_area_id` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:812:27 [INFO] [stdout] | [INFO] [stdout] 812 | pub fn get(&mut self, &id:usize) -> Block{ [INFO] [stdout] | ^^^------- [INFO] [stdout] | | | [INFO] [stdout] | | expected due to this [INFO] [stdout] | expected `usize`, found reference [INFO] [stdout] | help: did you mean `id`: `&usize` [INFO] [stdout] | [INFO] [stdout] = note: expected type `usize` [INFO] [stdout] found reference `&_` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[bool]` cannot be indexed by `&usize` [INFO] [stdout] --> src/lib.rs:836:13 [INFO] [stdout] | [INFO] [stdout] 836 | self.reserved_file[&id] = false; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::slice::SliceIndex<[bool]>` is not implemented for `&usize` [INFO] [stdout] = note: required because of the requirements on the impl of `std::ops::Index<&usize>` for `std::vec::Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[bool]` cannot be indexed by `&usize` [INFO] [stdout] --> src/lib.rs:837:13 [INFO] [stdout] | [INFO] [stdout] 837 | self.update_file[&id] =true; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ slice indices are of type `usize` or ranges of `usize` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::slice::SliceIndex<[bool]>` is not implemented for `&usize` [INFO] [stdout] = note: required because of the requirements on the impl of `std::ops::Index<&usize>` for `std::vec::Vec` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 74 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0308, E0369, E0423, E0425, E0532, E0599, E0658. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] [INFO] [stderr] error: could not compile `Foprak`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "6c8bb41b99fcb93830ef39dba12804c0156507de280ec512ef7aba05abb8af65", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6c8bb41b99fcb93830ef39dba12804c0156507de280ec512ef7aba05abb8af65", kill_on_drop: false }` [INFO] [stdout] 6c8bb41b99fcb93830ef39dba12804c0156507de280ec512ef7aba05abb8af65