[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] a54902de26ac5b6b7563d6255fadf729d9894bf9 [INFO] checking ForPrakWS19-20/forprak_rust_ws_19-20 against master#de32266a1780aa4ef748ce7f6200a1554fad0aca for pr-75585 [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-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/ForPrakWS19-20/forprak_rust_ws_19-20 on toolchain de32266a1780aa4ef748ce7f6200a1554fad0aca [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+de32266a1780aa4ef748ce7f6200a1554fad0aca" "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-4/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" "+de32266a1780aa4ef748ce7f6200a1554fad0aca" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+de32266a1780aa4ef748ce7f6200a1554fad0aca" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 866f16323a11769a406d185b3bfa803b9be1e8f3aa20c19237b80c1e8f511cd1 [INFO] running `Command { std: "docker" "start" "-a" "866f16323a11769a406d185b3bfa803b9be1e8f3aa20c19237b80c1e8f511cd1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "866f16323a11769a406d185b3bfa803b9be1e8f3aa20c19237b80c1e8f511cd1", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "866f16323a11769a406d185b3bfa803b9be1e8f3aa20c19237b80c1e8f511cd1", kill_on_drop: false }` [INFO] [stdout] 866f16323a11769a406d185b3bfa803b9be1e8f3aa20c19237b80c1e8f511cd1 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/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:d92eaeed33fa75130ca1ee6c8a01d1ffb62bac859dfdfb3450e3e5d1c0146529" "/opt/rustwide/cargo-home/bin/cargo" "+de32266a1780aa4ef748ce7f6200a1554fad0aca" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] ac0f7588f4b7ec093c78f60d65534943a6099322002ead22cac2e40870b71d4d [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" "ac0f7588f4b7ec093c78f60d65534943a6099322002ead22cac2e40870b71d4d", kill_on_drop: false }` [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 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:138: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] 138 | InnerElement(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:148: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] 148 | 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:154: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] 154 | 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:160: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] 160 | 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[E0532]: expected unit struct, unit variant or constant, found struct variant `Node::Leaf` [INFO] [stdout] --> src/lib.rs:220: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] 220 | 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:221: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] 221 | Node::InnerNode => false, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: use struct pattern syntax instead: `Node::InnerNode { content }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct variant `Node::InnerNode` [INFO] [stdout] --> src/lib.rs:374:40 [INFO] [stdout] | [INFO] [stdout] 45 | / InnerNode{ [INFO] [stdout] 46 | | content: Vec [INFO] [stdout] 47 | | }, [INFO] [stdout] | |_____- `Node::InnerNode` defined here [INFO] [stdout] ... [INFO] [stdout] 374 | let mut new_root = Node::InnerNode; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: use struct literal syntax instead: `Node::InnerNode { content: val }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct variant `Node::InnerNode` [INFO] [stdout] --> src/lib.rs:386:40 [INFO] [stdout] | [INFO] [stdout] 45 | / InnerNode{ [INFO] [stdout] 46 | | content: Vec [INFO] [stdout] 47 | | }, [INFO] [stdout] | |_____- `Node::InnerNode` defined here [INFO] [stdout] ... [INFO] [stdout] 386 | let mut new_root = Node::InnerNode ; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: use struct literal syntax instead: `Node::InnerNode { content: val }` [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:723:23 [INFO] [stdout] | [INFO] [stdout] 723 | 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:723:35 [INFO] [stdout] | [INFO] [stdout] 723 | 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:138: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] 138 | InnerElement(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:148: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] 148 | 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:154: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] 154 | 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:160: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] 160 | 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[E0532]: expected unit struct, unit variant or constant, found struct variant `Node::Leaf` [INFO] [stdout] --> src/lib.rs:220: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] 220 | 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:221: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] 221 | Node::InnerNode => false, [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: use struct pattern syntax instead: `Node::InnerNode { content }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct variant `Node::InnerNode` [INFO] [stdout] --> src/lib.rs:374:40 [INFO] [stdout] | [INFO] [stdout] 45 | / InnerNode{ [INFO] [stdout] 46 | | content: Vec [INFO] [stdout] 47 | | }, [INFO] [stdout] | |_____- `Node::InnerNode` defined here [INFO] [stdout] ... [INFO] [stdout] 374 | let mut new_root = Node::InnerNode; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: use struct literal syntax instead: `Node::InnerNode { content: val }` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found struct variant `Node::InnerNode` [INFO] [stdout] --> src/lib.rs:386:40 [INFO] [stdout] | [INFO] [stdout] 45 | / InnerNode{ [INFO] [stdout] 46 | | content: Vec [INFO] [stdout] 47 | | }, [INFO] [stdout] | |_____- `Node::InnerNode` defined here [INFO] [stdout] ... [INFO] [stdout] 386 | let mut new_root = Node::InnerNode ; [INFO] [stdout] | ^^^^^^^^^^^^^^^ help: use struct literal syntax instead: `Node::InnerNode { content: val }` [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:723:23 [INFO] [stdout] | [INFO] [stdout] 723 | 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:723:35 [INFO] [stdout] | [INFO] [stdout] 723 | 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::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: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 `Node: _::_serde::Serialize` is not satisfied [INFO] [stdout] --> src/lib.rs:130:38 [INFO] [stdout] | [INFO] [stdout] 130 | let obj = 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] [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: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:173:20 [INFO] [stdout] | [INFO] [stdout] 173 | 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 `Node: _::_serde::Serialize` is not satisfied [INFO] [stdout] --> src/lib.rs:130:38 [INFO] [stdout] | [INFO] [stdout] 130 | let obj = 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] [INFO] [stdout] error[E0277]: the trait bound `f64: std::cmp::Ord` is not satisfied [INFO] [stdout] --> src/lib.rs:174:20 [INFO] [stdout] | [INFO] [stdout] 174 | 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:173:20 [INFO] [stdout] | [INFO] [stdout] 173 | 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:175:20 [INFO] [stdout] | [INFO] [stdout] 175 | 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:174:20 [INFO] [stdout] | [INFO] [stdout] 174 | 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:176:20 [INFO] [stdout] | [INFO] [stdout] 176 | 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:175:20 [INFO] [stdout] | [INFO] [stdout] 175 | 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:192:20 [INFO] [stdout] | [INFO] [stdout] 192 | 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:193:20 [INFO] [stdout] | [INFO] [stdout] 193 | 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:176:20 [INFO] [stdout] | [INFO] [stdout] 176 | 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:192:20 [INFO] [stdout] | [INFO] [stdout] 192 | 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:194:20 [INFO] [stdout] | [INFO] [stdout] 194 | 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:193:20 [INFO] [stdout] | [INFO] [stdout] 193 | 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:194:20 [INFO] [stdout] | [INFO] [stdout] 194 | 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:195:20 [INFO] [stdout] | [INFO] [stdout] 195 | 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:227:42 [INFO] [stdout] | [INFO] [stdout] 227 | 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[E0277]: the trait bound `f64: std::cmp::Ord` is not satisfied [INFO] [stdout] --> src/lib.rs:195:20 [INFO] [stdout] | [INFO] [stdout] 195 | let maxy = min(maxy1,maxy2); [INFO] [stdout] | ^^^ the trait `std::cmp::Ord` is not implemented for `f64` [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:266:25 [INFO] [stdout] | [INFO] [stdout] 266 | 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:227:42 [INFO] [stdout] | [INFO] [stdout] 227 | 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:266:25 [INFO] [stdout] | [INFO] [stdout] 266 | 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:303:43 [INFO] [stdout] | [INFO] [stdout] 302 | / match tmp_node { [INFO] [stdout] 303 | | Node::InnerNode {content} => {None} [INFO] [stdout] | | ^^^^ expected `()`, found enum `std::option::Option` [INFO] [stdout] 304 | | Node::Leaf {content} => { [INFO] [stdout] 305 | | for i in tmp_node.get_leaf_content().unwrap() { [INFO] [stdout] ... | [INFO] [stdout] 313 | | } [INFO] [stdout] 314 | | } [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:303:43 [INFO] [stdout] | [INFO] [stdout] 302 | / match tmp_node { [INFO] [stdout] 303 | | Node::InnerNode {content} => {None} [INFO] [stdout] | | ^^^^ expected `()`, found enum `std::option::Option` [INFO] [stdout] 304 | | Node::Leaf {content} => { [INFO] [stdout] 305 | | for i in tmp_node.get_leaf_content().unwrap() { [INFO] [stdout] ... | [INFO] [stdout] 313 | | } [INFO] [stdout] 314 | | } [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:312:17 [INFO] [stdout] | [INFO] [stdout] 302 | / match tmp_node { [INFO] [stdout] 303 | | Node::InnerNode {content} => {None} [INFO] [stdout] 304 | | Node::Leaf {content} => { [INFO] [stdout] 305 | | for i in tmp_node.get_leaf_content().unwrap() { [INFO] [stdout] ... | [INFO] [stdout] 312 | | Some(res) [INFO] [stdout] | | ^^^^^^^^^ expected `()`, found enum `std::option::Option` [INFO] [stdout] 313 | | } [INFO] [stdout] 314 | | } [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] 312 | Some(res); [INFO] [stdout] | ^ [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 314 | }; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:332:17 [INFO] [stdout] | [INFO] [stdout] 318 | fn search(&mut self, rect: &MBRect) -> Option>{ [INFO] [stdout] | ------------------ expected `std::option::Option>` because of return type [INFO] [stdout] ... [INFO] [stdout] 332 | / for i in overlapped { [INFO] [stdout] 333 | | let point = self.search_overlap_leafnode(rect,i).unwrap(); [INFO] [stdout] 334 | | for j in point { [INFO] [stdout] 335 | | res.push(j); [INFO] [stdout] 336 | | } [INFO] [stdout] 337 | | } [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[E0600]: cannot apply unary operator `-` to type `usize` [INFO] [stdout] --> src/lib.rs:356:52 [INFO] [stdout] | [INFO] [stdout] 356 | self.adjust_tree(leaf_id, id_ancestry, -1); [INFO] [stdout] | ^^ cannot apply unary operator `-` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0070]: invalid left-hand side of assignment [INFO] [stdout] --> src/lib.rs:372:30 [INFO] [stdout] | [INFO] [stdout] 372 | &content = N.get_innernode_content().unwrap(); [INFO] [stdout] | -------- ^ [INFO] [stdout] | | [INFO] [stdout] | cannot assign to this expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0070]: invalid left-hand side of assignment [INFO] [stdout] --> src/lib.rs:384:30 [INFO] [stdout] | [INFO] [stdout] 384 | &content = N.get_leaf_content().unwrap(); [INFO] [stdout] | -------- ^ [INFO] [stdout] | | [INFO] [stdout] | cannot assign to this expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0623]: lifetime mismatch [INFO] [stdout] --> src/lib.rs:435:25 [INFO] [stdout] | [INFO] [stdout] 412 | fn choose_leaf(&mut self, tmp: usize, insert_rect:&MBRect, mut parent: &Vec) -> (usize, &Vec) { [INFO] [stdout] | ----------- -------------------- [INFO] [stdout] | | [INFO] [stdout] | this parameter and the return type are declared with different lifetimes... [INFO] [stdout] ... [INFO] [stdout] 435 | return (tmp,parent); [INFO] [stdout] | ^^^^^^ ...but data from `parent` is returned here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:312:17 [INFO] [stdout] | [INFO] [stdout] 302 | / match tmp_node { [INFO] [stdout] 303 | | Node::InnerNode {content} => {None} [INFO] [stdout] 304 | | Node::Leaf {content} => { [INFO] [stdout] 305 | | for i in tmp_node.get_leaf_content().unwrap() { [INFO] [stdout] ... | [INFO] [stdout] 312 | | Some(res) [INFO] [stdout] | | ^^^^^^^^^ expected `()`, found enum `std::option::Option` [INFO] [stdout] 313 | | } [INFO] [stdout] 314 | | } [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] 312 | Some(res); [INFO] [stdout] | ^ [INFO] [stdout] help: consider using a semicolon here [INFO] [stdout] | [INFO] [stdout] 314 | }; [INFO] [stdout] | ^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `usize` [INFO] [stdout] --> src/lib.rs:463:25 [INFO] [stdout] | [INFO] [stdout] 463 | if split == -1 { [INFO] [stdout] | ^^ cannot apply unary operator `-` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0614]: type `MBRect` cannot be dereferenced [INFO] [stdout] --> src/lib.rs:469:47 [INFO] [stdout] | [INFO] [stdout] 469 | ... new_mbrs.push(*j.mbr); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `usize` [INFO] [stdout] --> src/lib.rs:480:53 [INFO] [stdout] | [INFO] [stdout] 480 | self.adjust_tree(parent,id_ancestry,-1) [INFO] [stdout] | ^^ cannot apply unary operator `-` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0070]: invalid left-hand side of assignment [INFO] [stdout] --> src/lib.rs:489:34 [INFO] [stdout] | [INFO] [stdout] 489 | &content = N.get_leaf_content().unwrap(); [INFO] [stdout] | -------- ^ [INFO] [stdout] | | [INFO] [stdout] | cannot assign to this expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `usize` [INFO] [stdout] --> src/lib.rs:498:65 [INFO] [stdout] | [INFO] [stdout] 498 | ... self.adjust_tree(parent,id_ancestry,-1) [INFO] [stdout] | ^^ cannot apply unary operator `-` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0070]: invalid left-hand side of assignment [INFO] [stdout] --> src/lib.rs:506:34 [INFO] [stdout] | [INFO] [stdout] 506 | &content = N.get_innernode_content().unwrap(); [INFO] [stdout] | -------- ^ [INFO] [stdout] | | [INFO] [stdout] | cannot assign to this expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `usize` [INFO] [stdout] --> src/lib.rs:514:65 [INFO] [stdout] | [INFO] [stdout] 514 | ... self.adjust_tree(parent,id_ancestry,-1) [INFO] [stdout] | ^^ cannot apply unary operator `-` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0614]: type `MBRect` cannot be dereferenced [INFO] [stdout] --> src/lib.rs:559:38 [INFO] [stdout] | [INFO] [stdout] 559 | group_1_mbr.push(*elem.mbr); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0614]: type `MBRect` cannot be dereferenced [INFO] [stdout] --> src/lib.rs:564:38 [INFO] [stdout] | [INFO] [stdout] 564 | group_2_mbr.push(*elem.mbr); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:332:17 [INFO] [stdout] | [INFO] [stdout] 318 | fn search(&mut self, rect: &MBRect) -> Option>{ [INFO] [stdout] | ------------------ expected `std::option::Option>` because of return type [INFO] [stdout] ... [INFO] [stdout] 332 | / for i in overlapped { [INFO] [stdout] 333 | | let point = self.search_overlap_leafnode(rect,i).unwrap(); [INFO] [stdout] 334 | | for j in point { [INFO] [stdout] 335 | | res.push(j); [INFO] [stdout] 336 | | } [INFO] [stdout] 337 | | } [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[E0600]: cannot apply unary operator `-` to type `usize` [INFO] [stdout] --> src/lib.rs:356:52 [INFO] [stdout] | [INFO] [stdout] 356 | self.adjust_tree(leaf_id, id_ancestry, -1); [INFO] [stdout] | ^^ cannot apply unary operator `-` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0070]: invalid left-hand side of assignment [INFO] [stdout] --> src/lib.rs:372:30 [INFO] [stdout] | [INFO] [stdout] 372 | &content = N.get_innernode_content().unwrap(); [INFO] [stdout] | -------- ^ [INFO] [stdout] | | [INFO] [stdout] | cannot assign to this expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0070]: invalid left-hand side of assignment [INFO] [stdout] --> src/lib.rs:384:30 [INFO] [stdout] | [INFO] [stdout] 384 | &content = N.get_leaf_content().unwrap(); [INFO] [stdout] | -------- ^ [INFO] [stdout] | | [INFO] [stdout] | cannot assign to this expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0623]: lifetime mismatch [INFO] [stdout] --> src/lib.rs:435:25 [INFO] [stdout] | [INFO] [stdout] 412 | fn choose_leaf(&mut self, tmp: usize, insert_rect:&MBRect, mut parent: &Vec) -> (usize, &Vec) { [INFO] [stdout] | ----------- -------------------- [INFO] [stdout] | | [INFO] [stdout] | this parameter and the return type are declared with different lifetimes... [INFO] [stdout] ... [INFO] [stdout] 435 | return (tmp,parent); [INFO] [stdout] | ^^^^^^ ...but data from `parent` is returned here [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `usize` [INFO] [stdout] --> src/lib.rs:463:25 [INFO] [stdout] | [INFO] [stdout] 463 | if split == -1 { [INFO] [stdout] | ^^ cannot apply unary operator `-` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0614]: type `MBRect` cannot be dereferenced [INFO] [stdout] --> src/lib.rs:469:47 [INFO] [stdout] | [INFO] [stdout] 469 | ... new_mbrs.push(*j.mbr); [INFO] [stdout] | ^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `usize` [INFO] [stdout] --> src/lib.rs:480:53 [INFO] [stdout] | [INFO] [stdout] 480 | self.adjust_tree(parent,id_ancestry,-1) [INFO] [stdout] | ^^ cannot apply unary operator `-` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0070]: invalid left-hand side of assignment [INFO] [stdout] --> src/lib.rs:489:34 [INFO] [stdout] | [INFO] [stdout] 489 | &content = N.get_leaf_content().unwrap(); [INFO] [stdout] | -------- ^ [INFO] [stdout] | | [INFO] [stdout] | cannot assign to this expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `usize` [INFO] [stdout] --> src/lib.rs:498:65 [INFO] [stdout] | [INFO] [stdout] 498 | ... self.adjust_tree(parent,id_ancestry,-1) [INFO] [stdout] | ^^ cannot apply unary operator `-` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0070]: invalid left-hand side of assignment [INFO] [stdout] --> src/lib.rs:506:34 [INFO] [stdout] | [INFO] [stdout] 506 | &content = N.get_innernode_content().unwrap(); [INFO] [stdout] | -------- ^ [INFO] [stdout] | | [INFO] [stdout] | cannot assign to this expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0600]: cannot apply unary operator `-` to type `usize` [INFO] [stdout] --> src/lib.rs:514:65 [INFO] [stdout] | [INFO] [stdout] 514 | ... self.adjust_tree(parent,id_ancestry,-1) [INFO] [stdout] | ^^ cannot apply unary operator `-` [INFO] [stdout] | [INFO] [stdout] = note: unsigned values cannot be negated [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0614]: type `MBRect` cannot be dereferenced [INFO] [stdout] --> src/lib.rs:559:38 [INFO] [stdout] | [INFO] [stdout] 559 | group_1_mbr.push(*elem.mbr); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0614]: type `MBRect` cannot be dereferenced [INFO] [stdout] --> src/lib.rs:564:38 [INFO] [stdout] | [INFO] [stdout] 564 | group_2_mbr.push(*elem.mbr); [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:904:27 [INFO] [stdout] | [INFO] [stdout] 904 | 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:928:13 [INFO] [stdout] | [INFO] [stdout] 928 | 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:929:13 [INFO] [stdout] | [INFO] [stdout] 929 | 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 42 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0070, E0277, E0308, E0423, E0532, E0599, E0600, E0614, E0623... [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0070`. [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/lib.rs:904:27 [INFO] [stdout] | [INFO] [stdout] 904 | 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:928:13 [INFO] [stdout] | [INFO] [stdout] 928 | 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:929:13 [INFO] [stdout] | [INFO] [stdout] 929 | 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] [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: aborting due to 42 previous errors [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0070, E0277, E0308, E0423, E0532, E0599, E0600, E0614, E0623... [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0070`. [INFO] [stdout] [INFO] [stderr] error: build failed [INFO] running `Command { std: "docker" "inspect" "ac0f7588f4b7ec093c78f60d65534943a6099322002ead22cac2e40870b71d4d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "ac0f7588f4b7ec093c78f60d65534943a6099322002ead22cac2e40870b71d4d", kill_on_drop: false }` [INFO] [stdout] ac0f7588f4b7ec093c78f60d65534943a6099322002ead22cac2e40870b71d4d