[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] 449be9a6318243386d63557a7c8aec4a6352145f [INFO] checking ForPrakWS19-20/forprak_rust_ws_19-20 against try#f6e2f78768c57172b99c3e85892f867894dc7e30 for pr-75502 [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-13/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-13/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ForPrakWS19-20/forprak_rust_ws_19-20 on toolchain f6e2f78768c57172b99c3e85892f867894dc7e30 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+f6e2f78768c57172b99c3e85892f867894dc7e30" "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-13/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" "+f6e2f78768c57172b99c3e85892f867894dc7e30" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+f6e2f78768c57172b99c3e85892f867894dc7e30" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9c79107725e0f7976b95a92c1f45fa3e7bd3a22c268c27cc18cabb9a83843d70 [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" "9c79107725e0f7976b95a92c1f45fa3e7bd3a22c268c27cc18cabb9a83843d70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9c79107725e0f7976b95a92c1f45fa3e7bd3a22c268c27cc18cabb9a83843d70", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9c79107725e0f7976b95a92c1f45fa3e7bd3a22c268c27cc18cabb9a83843d70", kill_on_drop: false }` [INFO] [stdout] 9c79107725e0f7976b95a92c1f45fa3e7bd3a22c268c27cc18cabb9a83843d70 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-13/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" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+f6e2f78768c57172b99c3e85892f867894dc7e30" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] edcd985e18ac8dfeacd6748212ea211804abcaeb31927ee60ff46763962ee2b6 [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" "edcd985e18ac8dfeacd6748212ea211804abcaeb31927ee60ff46763962ee2b6", kill_on_drop: false }` [INFO] [stderr] Compiling syn v1.0.33 [INFO] [stderr] Compiling serde_derive v1.0.114 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling serde v1.0.114 [INFO] [stderr] Compiling proc-macro2 v1.0.18 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking bincode v1.3.1 [INFO] [stderr] Checking 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:137:9 [INFO] [stdout] | [INFO] [stdout] 56 | / pub struct InnerElement { [INFO] [stdout] 57 | | //MBRect von Kinder [INFO] [stdout] 58 | | mbrs:Vec, [INFO] [stdout] 59 | | //ID, mit welcher Blöcke vom BFA geholt werden können [INFO] [stdout] 60 | | children:usize [INFO] [stdout] 61 | | } [INFO] [stdout] | |_- `InnerElement` defined here [INFO] [stdout] ... [INFO] [stdout] 137 | InnerElement(id,mbr,children) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use struct literal syntax instead: `InnerElement { mbrs: val, children: val }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, tuple struct or tuple variant, found struct `LeafElement` [INFO] [stdout] --> src/lib.rs:143: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] 143 | LeafElement(daten,mbr) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: use struct literal syntax instead: `LeafElement { daten: val, mbr: val }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, tuple struct or tuple variant, found struct `Point` [INFO] [stdout] --> src/lib.rs:149:9 [INFO] [stdout] | [INFO] [stdout] 64 | / pub struct Point{ [INFO] [stdout] 65 | | //Pos 0: x, Pos 1: y [INFO] [stdout] 66 | | //coor:Vec [INFO] [stdout] 67 | | x:f64, [INFO] [stdout] 68 | | y:f64 [INFO] [stdout] 69 | | } [INFO] [stdout] | |_- `Point` defined here [INFO] [stdout] ... [INFO] [stdout] 149 | Point(x,y) [INFO] [stdout] | ^^^^^^^^^^ help: use struct literal syntax instead: `Point { x: val, y: val }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, tuple struct or tuple variant, found struct `MBRect` [INFO] [stdout] --> src/lib.rs:155:9 [INFO] [stdout] | [INFO] [stdout] 71 | / pub struct MBRect{ [INFO] [stdout] 72 | | id: usize, [INFO] [stdout] 73 | | botton_left:Point, [INFO] [stdout] 74 | | top_right:Point, [INFO] [stdout] 75 | | } [INFO] [stdout] | |_- `MBRect` defined here [INFO] [stdout] ... [INFO] [stdout] 155 | MBRect(id,bl,tp) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use struct literal syntax instead: `MBRect { id: val, botton_left: val, top_right: val }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `r1` in this scope [INFO] [stdout] --> src/lib.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | 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:160:21 [INFO] [stdout] | [INFO] [stdout] 160 | 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:161:21 [INFO] [stdout] | [INFO] [stdout] 161 | 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:162:21 [INFO] [stdout] | [INFO] [stdout] 162 | 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:163:21 [INFO] [stdout] | [INFO] [stdout] 163 | 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:164:21 [INFO] [stdout] | [INFO] [stdout] 164 | 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:165:21 [INFO] [stdout] | [INFO] [stdout] 165 | 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:166:21 [INFO] [stdout] | [INFO] [stdout] 166 | 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:233: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] 233 | Node::Leaf => true, [INFO] [stdout] | ^^^^^^^^^^ help: use struct pattern syntax instead: `Node::Leaf { content }` [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:234: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] 234 | Node::InnerNode => false, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: use struct pattern syntax instead: `Node::InnerNode { content }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mbr` in this scope [INFO] [stdout] --> src/lib.rs:403:60 [INFO] [stdout] | [INFO] [stdout] 403 | 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:412:24 [INFO] [stdout] | [INFO] [stdout] 412 | 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:414:30 [INFO] [stdout] | [INFO] [stdout] 414 | 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:519:35 [INFO] [stdout] | [INFO] [stdout] 519 | 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:612:33 [INFO] [stdout] | [INFO] [stdout] 612 | 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:612:69 [INFO] [stdout] | [INFO] [stdout] 612 | 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:613:34 [INFO] [stdout] | [INFO] [stdout] 613 | 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:613:70 [INFO] [stdout] | [INFO] [stdout] 613 | 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:648:23 [INFO] [stdout] | [INFO] [stdout] 648 | use std::intrinsics::{breakpoint, ceilf64}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: add `#![feature(core_intrinsics)]` to the crate attributes to enable [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:648:35 [INFO] [stdout] | [INFO] [stdout] 648 | use std::intrinsics::{breakpoint, ceilf64}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: add `#![feature(core_intrinsics)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, tuple struct or tuple variant, found struct `InnerElement` [INFO] [stdout] --> src/lib.rs:137:9 [INFO] [stdout] | [INFO] [stdout] 56 | / pub struct InnerElement { [INFO] [stdout] 57 | | //MBRect von Kinder [INFO] [stdout] 58 | | mbrs:Vec, [INFO] [stdout] 59 | | //ID, mit welcher Blöcke vom BFA geholt werden können [INFO] [stdout] 60 | | children:usize [INFO] [stdout] 61 | | } [INFO] [stdout] | |_- `InnerElement` defined here [INFO] [stdout] ... [INFO] [stdout] 137 | InnerElement(id,mbr,children) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use struct literal syntax instead: `InnerElement { mbrs: val, children: val }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, tuple struct or tuple variant, found struct `LeafElement` [INFO] [stdout] --> src/lib.rs:143: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] 143 | LeafElement(daten,mbr) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ help: use struct literal syntax instead: `LeafElement { daten: val, mbr: val }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, tuple struct or tuple variant, found struct `Point` [INFO] [stdout] --> src/lib.rs:149:9 [INFO] [stdout] | [INFO] [stdout] 64 | / pub struct Point{ [INFO] [stdout] 65 | | //Pos 0: x, Pos 1: y [INFO] [stdout] 66 | | //coor:Vec [INFO] [stdout] 67 | | x:f64, [INFO] [stdout] 68 | | y:f64 [INFO] [stdout] 69 | | } [INFO] [stdout] | |_- `Point` defined here [INFO] [stdout] ... [INFO] [stdout] 149 | Point(x,y) [INFO] [stdout] | ^^^^^^^^^^ help: use struct literal syntax instead: `Point { x: val, y: val }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected function, tuple struct or tuple variant, found struct `MBRect` [INFO] [stdout] --> src/lib.rs:155:9 [INFO] [stdout] | [INFO] [stdout] 71 | / pub struct MBRect{ [INFO] [stdout] 72 | | id: usize, [INFO] [stdout] 73 | | botton_left:Point, [INFO] [stdout] 74 | | top_right:Point, [INFO] [stdout] 75 | | } [INFO] [stdout] | |_- `MBRect` defined here [INFO] [stdout] ... [INFO] [stdout] 155 | MBRect(id,bl,tp) [INFO] [stdout] | ^^^^^^^^^^^^^^^^ help: use struct literal syntax instead: `MBRect { id: val, botton_left: val, top_right: val }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `r1` in this scope [INFO] [stdout] --> src/lib.rs:159:21 [INFO] [stdout] | [INFO] [stdout] 159 | 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:160:21 [INFO] [stdout] | [INFO] [stdout] 160 | 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:161:21 [INFO] [stdout] | [INFO] [stdout] 161 | 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:162:21 [INFO] [stdout] | [INFO] [stdout] 162 | 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:163:21 [INFO] [stdout] | [INFO] [stdout] 163 | 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:164:21 [INFO] [stdout] | [INFO] [stdout] 164 | 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:165:21 [INFO] [stdout] | [INFO] [stdout] 165 | 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:166:21 [INFO] [stdout] | [INFO] [stdout] 166 | 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:233: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] 233 | Node::Leaf => true, [INFO] [stdout] | ^^^^^^^^^^ help: use struct pattern syntax instead: `Node::Leaf { content }` [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:234: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] 234 | Node::InnerNode => false, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: use struct pattern syntax instead: `Node::InnerNode { content }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `mbr` in this scope [INFO] [stdout] --> src/lib.rs:403:60 [INFO] [stdout] | [INFO] [stdout] 403 | 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:412:24 [INFO] [stdout] | [INFO] [stdout] 412 | 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:414:30 [INFO] [stdout] | [INFO] [stdout] 414 | 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:519:35 [INFO] [stdout] | [INFO] [stdout] 519 | 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:612:33 [INFO] [stdout] | [INFO] [stdout] 612 | 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:612:69 [INFO] [stdout] | [INFO] [stdout] 612 | 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:613:34 [INFO] [stdout] | [INFO] [stdout] 613 | 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:613:70 [INFO] [stdout] | [INFO] [stdout] 613 | 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[E0277]: the trait bound `Node: _::_serde::Deserialize<'_>` is not satisfied [INFO] [stdout] --> src/lib.rs:80:20 [INFO] [stdout] | [INFO] [stdout] 80 | 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[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:648:23 [INFO] [stdout] | [INFO] [stdout] 648 | use std::intrinsics::{breakpoint, ceilf64}; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: add `#![feature(core_intrinsics)]` to the crate attributes to enable [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:648:35 [INFO] [stdout] | [INFO] [stdout] 648 | use std::intrinsics::{breakpoint, ceilf64}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = help: add `#![feature(core_intrinsics)]` to the crate attributes to enable [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Node: _::_serde::Serialize` is not satisfied [INFO] [stdout] --> src/lib.rs:125:28 [INFO] [stdout] | [INFO] [stdout] 125 | 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:167:20 [INFO] [stdout] | [INFO] [stdout] 167 | 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:168:20 [INFO] [stdout] | [INFO] [stdout] 168 | 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:169:20 [INFO] [stdout] | [INFO] [stdout] 169 | 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:170:20 [INFO] [stdout] | [INFO] [stdout] 170 | 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:186:20 [INFO] [stdout] | [INFO] [stdout] 186 | 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:187:20 [INFO] [stdout] | [INFO] [stdout] 187 | 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:188:20 [INFO] [stdout] | [INFO] [stdout] 188 | 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:189:20 [INFO] [stdout] | [INFO] [stdout] 189 | 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:205:20 [INFO] [stdout] | [INFO] [stdout] 205 | 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:206:20 [INFO] [stdout] | [INFO] [stdout] 206 | 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:207:20 [INFO] [stdout] | [INFO] [stdout] 207 | 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:208:20 [INFO] [stdout] | [INFO] [stdout] 208 | 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:240:42 [INFO] [stdout] | [INFO] [stdout] 240 | 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:279:25 [INFO] [stdout] | [INFO] [stdout] 279 | let rect = self.get_rect(id); [INFO] [stdout] | ^^^^^^^^ method not found in `&mut RTree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the trait bound `Node: _::_serde::Deserialize<'_>` is not satisfied [INFO] [stdout] --> src/lib.rs:80:20 [INFO] [stdout] | [INFO] [stdout] 80 | 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:125:28 [INFO] [stdout] | [INFO] [stdout] 125 | 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:167:20 [INFO] [stdout] | [INFO] [stdout] 167 | 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:168:20 [INFO] [stdout] | [INFO] [stdout] 168 | 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:169:20 [INFO] [stdout] | [INFO] [stdout] 169 | 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:170:20 [INFO] [stdout] | [INFO] [stdout] 170 | 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:186:20 [INFO] [stdout] | [INFO] [stdout] 186 | 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:187:20 [INFO] [stdout] | [INFO] [stdout] 187 | 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:188:20 [INFO] [stdout] | [INFO] [stdout] 188 | 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:189:20 [INFO] [stdout] | [INFO] [stdout] 189 | 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:205:20 [INFO] [stdout] | [INFO] [stdout] 205 | 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:206:20 [INFO] [stdout] | [INFO] [stdout] 206 | 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:207:20 [INFO] [stdout] | [INFO] [stdout] 207 | 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:208:20 [INFO] [stdout] | [INFO] [stdout] 208 | 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:316:43 [INFO] [stdout] | [INFO] [stdout] 315 | / match tmp_node { [INFO] [stdout] 316 | | Node::InnerNode {content} => {None} [INFO] [stdout] | | ^^^^ expected `()`, found enum `std::option::Option` [INFO] [stdout] 317 | | Node::Leaf {content} => { [INFO] [stdout] 318 | | for i in tmp_node.get_leaf_content().unwrap() { [INFO] [stdout] ... | [INFO] [stdout] 326 | | } [INFO] [stdout] 327 | | } [INFO] [stdout] | | -- help: consider using a semicolon here [INFO] [stdout] | |_________| [INFO] [stdout] | expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `std::option::Option<_>` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:240:42 [INFO] [stdout] | [INFO] [stdout] 240 | 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:279:25 [INFO] [stdout] | [INFO] [stdout] 279 | 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:325:17 [INFO] [stdout] | [INFO] [stdout] 315 | / match tmp_node { [INFO] [stdout] 316 | | Node::InnerNode {content} => {None} [INFO] [stdout] 317 | | Node::Leaf {content} => { [INFO] [stdout] 318 | | for i in tmp_node.get_leaf_content().unwrap() { [INFO] [stdout] ... | [INFO] [stdout] 325 | | Some(res) [INFO] [stdout] | | ^^^^^^^^^ expected `()`, found enum `std::option::Option` [INFO] [stdout] 326 | | } [INFO] [stdout] 327 | | } [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] 325 | Some(res); [INFO] [stdout] | ^ [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 327 | }; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:345:17 [INFO] [stdout] | [INFO] [stdout] 331 | fn search(&mut self, rect: &MBRect) -> Option>{ [INFO] [stdout] | ------------------ expected `std::option::Option>` because of return type [INFO] [stdout] ... [INFO] [stdout] 345 | / for i in overlapped { [INFO] [stdout] 346 | | let point = self.search_overlap_leafnode(rect,i).unwrap(); [INFO] [stdout] 347 | | for j in point { [INFO] [stdout] 348 | | res.push(j); [INFO] [stdout] 349 | | } [INFO] [stdout] 350 | | } [INFO] [stdout] | |_________________^ expected enum `std::option::Option`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::option::Option>` [INFO] [stdout] found unit type `()` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:316:43 [INFO] [stdout] | [INFO] [stdout] 315 | / match tmp_node { [INFO] [stdout] 316 | | Node::InnerNode {content} => {None} [INFO] [stdout] | | ^^^^ expected `()`, found enum `std::option::Option` [INFO] [stdout] 317 | | Node::Leaf {content} => { [INFO] [stdout] 318 | | for i in tmp_node.get_leaf_content().unwrap() { [INFO] [stdout] ... | [INFO] [stdout] 326 | | } [INFO] [stdout] 327 | | } [INFO] [stdout] | | -- help: consider using a semicolon here [INFO] [stdout] | |_________| [INFO] [stdout] | expected this to be `()` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found enum `std::option::Option<_>` [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:395:37 [INFO] [stdout] | [INFO] [stdout] 39 | enum Node{ [INFO] [stdout] | --------- method `children` not found for this [INFO] [stdout] ... [INFO] [stdout] 395 | 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:399:25 [INFO] [stdout] | [INFO] [stdout] 39 | enum Node{ [INFO] [stdout] | --------- method `children` not found for this [INFO] [stdout] ... [INFO] [stdout] 399 | 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:428:16 [INFO] [stdout] | [INFO] [stdout] 428 | 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:428:30 [INFO] [stdout] | [INFO] [stdout] 428 | 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:430:28 [INFO] [stdout] | [INFO] [stdout] 430 | 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:431:28 [INFO] [stdout] | [INFO] [stdout] 431 | 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:432:28 [INFO] [stdout] | [INFO] [stdout] 432 | 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:433:28 [INFO] [stdout] | [INFO] [stdout] 433 | 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:449:33 [INFO] [stdout] | [INFO] [stdout] 39 | enum Node{ [INFO] [stdout] | --------- method `rect` not found for this [INFO] [stdout] ... [INFO] [stdout] 449 | 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:450:33 [INFO] [stdout] | [INFO] [stdout] 39 | enum Node{ [INFO] [stdout] | --------- method `children` not found for this [INFO] [stdout] ... [INFO] [stdout] 450 | 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:458:35 [INFO] [stdout] | [INFO] [stdout] 39 | enum Node{ [INFO] [stdout] | --------- method `children` not found for this [INFO] [stdout] ... [INFO] [stdout] 458 | 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:459:34 [INFO] [stdout] | [INFO] [stdout] 39 | enum Node{ [INFO] [stdout] | --------- method `children` not found for this [INFO] [stdout] ... [INFO] [stdout] 459 | 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:460:36 [INFO] [stdout] | [INFO] [stdout] 39 | enum Node{ [INFO] [stdout] | --------- method `children` not found for this [INFO] [stdout] ... [INFO] [stdout] 460 | 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:526:12 [INFO] [stdout] | [INFO] [stdout] 526 | 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[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:325:17 [INFO] [stdout] | [INFO] [stdout] 315 | / match tmp_node { [INFO] [stdout] 316 | | Node::InnerNode {content} => {None} [INFO] [stdout] 317 | | Node::Leaf {content} => { [INFO] [stdout] 318 | | for i in tmp_node.get_leaf_content().unwrap() { [INFO] [stdout] ... | [INFO] [stdout] 325 | | Some(res) [INFO] [stdout] | | ^^^^^^^^^ expected `()`, found enum `std::option::Option` [INFO] [stdout] 326 | | } [INFO] [stdout] 327 | | } [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] 325 | Some(res); [INFO] [stdout] | ^ [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 327 | }; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:345:17 [INFO] [stdout] | [INFO] [stdout] 331 | fn search(&mut self, rect: &MBRect) -> Option>{ [INFO] [stdout] | ------------------ expected `std::option::Option>` because of return type [INFO] [stdout] ... [INFO] [stdout] 345 | / for i in overlapped { [INFO] [stdout] 346 | | let point = self.search_overlap_leafnode(rect,i).unwrap(); [INFO] [stdout] 347 | | for j in point { [INFO] [stdout] 348 | | res.push(j); [INFO] [stdout] 349 | | } [INFO] [stdout] 350 | | } [INFO] [stdout] | |_________________^ expected enum `std::option::Option`, found `()` [INFO] [stdout] | [INFO] [stdout] = note: expected enum `std::option::Option>` [INFO] [stdout] found unit type `()` [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:395:37 [INFO] [stdout] | [INFO] [stdout] 39 | enum Node{ [INFO] [stdout] | --------- method `children` not found for this [INFO] [stdout] ... [INFO] [stdout] 395 | 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:399:25 [INFO] [stdout] | [INFO] [stdout] 39 | enum Node{ [INFO] [stdout] | --------- method `children` not found for this [INFO] [stdout] ... [INFO] [stdout] 399 | 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:428:16 [INFO] [stdout] | [INFO] [stdout] 428 | 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:428:30 [INFO] [stdout] | [INFO] [stdout] 428 | 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:558:24 [INFO] [stdout] | [INFO] [stdout] 558 | 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:430:28 [INFO] [stdout] | [INFO] [stdout] 430 | 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:559:24 [INFO] [stdout] | [INFO] [stdout] 559 | 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:431:28 [INFO] [stdout] | [INFO] [stdout] 431 | 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:560:24 [INFO] [stdout] | [INFO] [stdout] 560 | 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:432:28 [INFO] [stdout] | [INFO] [stdout] 432 | 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:561:24 [INFO] [stdout] | [INFO] [stdout] 561 | 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[E0277]: the trait bound `f64: std::cmp::Ord` is not satisfied [INFO] [stdout] --> src/lib.rs:433:28 [INFO] [stdout] | [INFO] [stdout] 433 | 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 `children` found for enum `Node` in the current scope [INFO] [stdout] --> src/lib.rs:573:41 [INFO] [stdout] | [INFO] [stdout] 39 | enum Node{ [INFO] [stdout] | --------- method `children` not found for this [INFO] [stdout] ... [INFO] [stdout] 573 | 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 `rect` found for enum `Node` in the current scope [INFO] [stdout] --> src/lib.rs:449:33 [INFO] [stdout] | [INFO] [stdout] 39 | enum Node{ [INFO] [stdout] | --------- method `rect` not found for this [INFO] [stdout] ... [INFO] [stdout] 449 | let tmp_rect = tmp_node.rect(); [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:581:40 [INFO] [stdout] | [INFO] [stdout] 581 | 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:582:40 [INFO] [stdout] | [INFO] [stdout] 582 | 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 `children` found for enum `Node` in the current scope [INFO] [stdout] --> src/lib.rs:450:33 [INFO] [stdout] | [INFO] [stdout] 39 | enum Node{ [INFO] [stdout] | --------- method `children` not found for this [INFO] [stdout] ... [INFO] [stdout] 450 | 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 `get_rect` found for mutable reference `&mut RTree` in the current scope [INFO] [stdout] --> src/lib.rs:602:36 [INFO] [stdout] | [INFO] [stdout] 602 | 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:603:36 [INFO] [stdout] | [INFO] [stdout] 603 | 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:458:35 [INFO] [stdout] | [INFO] [stdout] 39 | enum Node{ [INFO] [stdout] | --------- method `children` not found for this [INFO] [stdout] ... [INFO] [stdout] 458 | 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:459:34 [INFO] [stdout] | [INFO] [stdout] 39 | enum Node{ [INFO] [stdout] | --------- method `children` not found for this [INFO] [stdout] ... [INFO] [stdout] 459 | 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:610:46 [INFO] [stdout] | [INFO] [stdout] 39 | enum Node{ [INFO] [stdout] | --------- method `children` not found for this [INFO] [stdout] ... [INFO] [stdout] 610 | 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:621:33 [INFO] [stdout] | [INFO] [stdout] 621 | 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:622:76 [INFO] [stdout] | [INFO] [stdout] 622 | 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:622:104 [INFO] [stdout] | [INFO] [stdout] 622 | 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:623:76 [INFO] [stdout] | [INFO] [stdout] 623 | 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:623:104 [INFO] [stdout] | [INFO] [stdout] 623 | 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 `children` found for enum `Node` in the current scope [INFO] [stdout] --> src/lib.rs:460:36 [INFO] [stdout] | [INFO] [stdout] 39 | enum Node{ [INFO] [stdout] | --------- method `children` not found for this [INFO] [stdout] ... [INFO] [stdout] 460 | 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:526:12 [INFO] [stdout] | [INFO] [stdout] 526 | 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:558:24 [INFO] [stdout] | [INFO] [stdout] 558 | 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[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:826:27 [INFO] [stdout] | [INFO] [stdout] 826 | 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 trait bound `f64: std::cmp::Ord` is not satisfied [INFO] [stdout] --> src/lib.rs:559:24 [INFO] [stdout] | [INFO] [stdout] 559 | 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:560:24 [INFO] [stdout] | [INFO] [stdout] 560 | 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:561:24 [INFO] [stdout] | [INFO] [stdout] 561 | 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:573:41 [INFO] [stdout] | [INFO] [stdout] 39 | enum Node{ [INFO] [stdout] | --------- method `children` not found for this [INFO] [stdout] ... [INFO] [stdout] 573 | 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:581:40 [INFO] [stdout] | [INFO] [stdout] 581 | 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:582:40 [INFO] [stdout] | [INFO] [stdout] 582 | 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:602:36 [INFO] [stdout] | [INFO] [stdout] 602 | 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:603:36 [INFO] [stdout] | [INFO] [stdout] 603 | let assigned_rect_2 = self.get_rect(assigned[1]); [INFO] [stdout] | ^^^^^^^^ method not found in `&mut RTree` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0277]: the type `[bool]` cannot be indexed by `&usize` [INFO] [stdout] --> src/lib.rs:850:13 [INFO] [stdout] | [INFO] [stdout] 850 | 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:851:13 [INFO] [stdout] | [INFO] [stdout] 851 | 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[E0599]: no method named `children` found for enum `Node` in the current scope [INFO] [stdout] --> src/lib.rs:610:46 [INFO] [stdout] | [INFO] [stdout] 39 | enum Node{ [INFO] [stdout] | --------- method `children` not found for this [INFO] [stdout] ... [INFO] [stdout] 610 | 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:621:33 [INFO] [stdout] | [INFO] [stdout] 621 | 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:622:76 [INFO] [stdout] | [INFO] [stdout] 622 | 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:622:104 [INFO] [stdout] | [INFO] [stdout] 622 | 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:623:76 [INFO] [stdout] | [INFO] [stdout] 623 | 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:623:104 [INFO] [stdout] | [INFO] [stdout] 623 | 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: aborting due to 75 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] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:826:27 [INFO] [stdout] | [INFO] [stdout] 826 | 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] [stderr] error: could not compile `Foprak`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] error[E0277]: the type `[bool]` cannot be indexed by `&usize` [INFO] [stdout] --> src/lib.rs:850:13 [INFO] [stdout] | [INFO] [stdout] 850 | 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:851:13 [INFO] [stdout] | [INFO] [stdout] 851 | 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 75 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: build failed [INFO] running `Command { std: "docker" "inspect" "edcd985e18ac8dfeacd6748212ea211804abcaeb31927ee60ff46763962ee2b6", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "edcd985e18ac8dfeacd6748212ea211804abcaeb31927ee60ff46763962ee2b6", kill_on_drop: false }` [INFO] [stdout] edcd985e18ac8dfeacd6748212ea211804abcaeb31927ee60ff46763962ee2b6