[INFO] cloning repository https://github.com/amuricys/sars [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/amuricys/sars" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Famuricys%2Fsars", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Famuricys%2Fsars'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 530b44a6710c7c7a9b485f7d698ce88d76366ed9 [INFO] checking amuricys/sars against master#a609fb45efad59dfd459c76e50899be9f0583b5a for pr-80579 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Famuricys%2Fsars" "/workspace/builds/worker-8/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-8/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/amuricys/sars on toolchain a609fb45efad59dfd459c76e50899be9f0583b5a [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/amuricys/sars [INFO] finished tweaking git repo https://github.com/amuricys/sars [INFO] tweaked toml for git repo https://github.com/amuricys/sars written to /workspace/builds/worker-8/source/Cargo.toml [INFO] crate git repo https://github.com/amuricys/sars already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "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] fa056f2d4e621a8e81ddd827d3051b7f89683a925e5dbd46cd202ddaf57e784c [INFO] running `Command { std: "docker" "start" "-a" "fa056f2d4e621a8e81ddd827d3051b7f89683a925e5dbd46cd202ddaf57e784c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "fa056f2d4e621a8e81ddd827d3051b7f89683a925e5dbd46cd202ddaf57e784c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fa056f2d4e621a8e81ddd827d3051b7f89683a925e5dbd46cd202ddaf57e784c", kill_on_drop: false }` [INFO] [stdout] fa056f2d4e621a8e81ddd827d3051b7f89683a925e5dbd46cd202ddaf57e784c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-8/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:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+a609fb45efad59dfd459c76e50899be9f0583b5a" "check" "--frozen" "--all" "--all-targets" "--message-format=json", 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] 72e751149220a39ab5c5b11723bf79e62cef72cd055684a930eb72d126731258 [INFO] running `Command { std: "docker" "start" "-a" "72e751149220a39ab5c5b11723bf79e62cef72cd055684a930eb72d126731258", kill_on_drop: false }` [INFO] [stderr] Compiling autocfg v1.0.0 [INFO] [stderr] Compiling libc v0.2.73 [INFO] [stderr] Checking cfg-if v0.1.10 [INFO] [stderr] Compiling xml-rs v0.8.3 [INFO] [stderr] Checking lazy_static v1.4.0 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling maybe-uninit v2.0.0 [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Checking scopeguard v1.1.0 [INFO] [stderr] Compiling libloading v0.6.2 [INFO] [stderr] Compiling proc-macro2 v1.0.19 [INFO] [stderr] Checking piston-float v1.0.0 [INFO] [stderr] Compiling unicode-xid v0.2.1 [INFO] [stderr] Compiling nix v0.14.1 [INFO] [stderr] Compiling serde v1.0.117 [INFO] [stderr] Checking void v1.0.2 [INFO] [stderr] Compiling syn v1.0.35 [INFO] [stderr] Compiling pkg-config v0.3.18 [INFO] [stderr] Compiling rayon-core v1.7.1 [INFO] [stderr] Compiling serde_derive v1.0.114 [INFO] [stderr] Checking adler32 v1.1.0 [INFO] [stderr] Checking downcast-rs v1.2.0 [INFO] [stderr] Checking piston-graphics_api_version v0.2.0 [INFO] [stderr] Compiling cc v1.0.58 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling getrandom v0.1.14 [INFO] [stderr] Checking xdg v2.2.0 [INFO] [stderr] Checking lzw v0.10.0 [INFO] [stderr] Checking color_quant v1.0.1 [INFO] [stderr] Checking interpolation v0.2.0 [INFO] [stderr] Checking bytemuck v1.3.0 [INFO] [stderr] Checking piston-texture v0.8.0 [INFO] [stderr] Checking ppv-lite86 v0.2.8 [INFO] [stderr] Checking read_color v1.0.0 [INFO] [stderr] Checking scoped_threadpool v0.1.9 [INFO] [stderr] Checking piston-shaders_graphics2d v0.3.1 [INFO] [stderr] Checking vec1 v1.6.0 [INFO] [stderr] Checking lock_api v0.3.4 [INFO] [stderr] Checking piston-viewport v1.0.0 [INFO] [stderr] Checking vecmath v1.0.0 [INFO] [stderr] Checking miniz_oxide v0.3.7 [INFO] [stderr] Checking shader_version v0.6.0 [INFO] [stderr] Checking gif v0.10.3 [INFO] [stderr] Compiling log v0.4.11 [INFO] [stderr] Compiling num-traits v0.2.12 [INFO] [stderr] Compiling crossbeam-utils v0.7.2 [INFO] [stderr] Compiling memoffset v0.5.5 [INFO] [stderr] Compiling crossbeam-epoch v0.8.2 [INFO] [stderr] Compiling num-integer v0.1.43 [INFO] [stderr] Compiling rayon v1.3.1 [INFO] [stderr] Compiling num-rational v0.3.0 [INFO] [stderr] Compiling num-iter v0.1.41 [INFO] [stderr] Compiling parking_lot_core v0.6.2 [INFO] [stderr] Compiling parking_lot v0.9.0 [INFO] [stderr] Checking smallvec v0.6.13 [INFO] [stderr] Checking dlib v0.4.2 [INFO] [stderr] Compiling gl_generator v0.13.1 [INFO] [stderr] Compiling gl_generator v0.10.0 [INFO] [stderr] Compiling wayland-scanner v0.21.13 [INFO] [stderr] Checking wayland-sys v0.21.13 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Compiling quote v1.0.7 [INFO] [stderr] Checking stb_truetype v0.3.1 [INFO] [stderr] Checking deflate v0.8.6 [INFO] [stderr] Checking tiff v0.5.0 [INFO] [stderr] Checking num_cpus v1.13.0 [INFO] [stderr] Checking memmap v0.7.0 [INFO] [stderr] Checking raw-window-handle v0.3.3 [INFO] [stderr] Checking shared_library v0.1.9 [INFO] [stderr] Checking crossbeam-queue v0.2.3 [INFO] [stderr] Checking png v0.16.7 [INFO] [stderr] Checking osmesa-sys v0.1.2 [INFO] [stderr] Checking rand_core v0.5.1 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Checking ordered-float v1.1.0 [INFO] [stderr] Checking line_drawing v0.7.0 [INFO] [stderr] Checking float-cmp v0.8.0 [INFO] [stderr] Checking crossbeam-deque v0.7.3 [INFO] [stderr] Compiling libloading v0.5.2 [INFO] [stderr] Checking rand_chacha v0.2.2 [INFO] [stderr] Checking rusttype v0.8.3 [INFO] [stderr] Compiling gl v0.11.0 [INFO] [stderr] Checking rand v0.7.3 [INFO] [stderr] Compiling glutin_egl_sys v0.1.4 [INFO] [stderr] Compiling glutin_glx_sys v0.1.6 [INFO] [stderr] Compiling wayland-client v0.21.13 [INFO] [stderr] Compiling wayland-protocols v0.21.13 [INFO] [stderr] Checking rusttype v0.7.9 [INFO] [stderr] Checking piston2d-graphics v0.36.0 [INFO] [stderr] Checking andrew v0.2.1 [INFO] [stderr] Checking toml v0.5.7 [INFO] [stderr] Checking wayland-commons v0.21.13 [INFO] [stderr] Checking jpeg-decoder v0.1.20 [INFO] [stderr] Checking image v0.23.7 [INFO] [stderr] Checking piston2d-opengl_graphics v0.72.0 [INFO] [stderr] Checking pistoncore-input v1.0.0 [INFO] [stderr] Checking smithay-client-toolkit v0.4.6 [INFO] [stderr] Checking pistoncore-window v0.46.0 [INFO] [stderr] Checking pistoncore-event_loop v0.51.0 [INFO] [stderr] Checking piston v0.51.0 [INFO] [stderr] Checking winit v0.19.5 [INFO] [stderr] Checking glutin v0.21.2 [INFO] [stderr] Checking pistoncore-glutin_window v0.65.0 [INFO] [stderr] Checking sars v0.0.1 (/opt/rustwide/workdir) [INFO] [stdout] warning: unused import: `Node` [INFO] [stdout] --> src/renderer.rs:7:53 [INFO] [stdout] | [INFO] [stdout] 7 | use types::{ThickSurface, OUTER, INNER, NodeChange, Node}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `simulated_annealing::step_with_manual_change` [INFO] [stdout] --> src/renderer.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use simulated_annealing::step_with_manual_change; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `available_node_id` [INFO] [stdout] --> src/graph_change.rs:4:37 [INFO] [stdout] | [INFO] [stdout] 4 | use graph::{distance_between_nodes, available_node_id}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `piston::input::keyboard::Key::Out` [INFO] [stdout] --> src/graph_change.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use piston::input::keyboard::Key::Out; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `Node` [INFO] [stdout] --> src/renderer.rs:7:53 [INFO] [stdout] | [INFO] [stdout] 7 | use types::{ThickSurface, OUTER, INNER, NodeChange, Node}; [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `simulated_annealing::step_with_manual_change` [INFO] [stdout] --> src/renderer.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 12 | use simulated_annealing::step_with_manual_change; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `available_node_id` [INFO] [stdout] --> src/graph_change.rs:4:37 [INFO] [stdout] | [INFO] [stdout] 4 | use graph::{distance_between_nodes, available_node_id}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `piston::input::keyboard::Key::Out` [INFO] [stdout] --> src/graph_change.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use piston::input::keyboard::Key::Out; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `cyclic_graph_from_coords`, `establish_correspondences` [INFO] [stdout] --> src/graph_change.rs:294:17 [INFO] [stdout] | [INFO] [stdout] 294 | use graph::{cyclic_graph_from_coords, circular_graph, area, circular_thick_surface, node_to_add, establish_correspondences}; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `vec1::Vec1` [INFO] [stdout] --> src/graph_change.rs:295:9 [INFO] [stdout] | [INFO] [stdout] 295 | use vec1::Vec1; [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `simulated_annealing::debug_changes` [INFO] [stdout] --> src/graph.rs:174:9 [INFO] [stdout] | [INFO] [stdout] 174 | use simulated_annealing::debug_changes; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/graph_change.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 159 | panic!(""); [INFO] [stdout] | ----------- any code following this expression is unreachable [INFO] [stdout] 160 | return false [INFO] [stdout] | ^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/graph_change.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 166 | panic!(""); [INFO] [stdout] | ----------- any code following this expression is unreachable [INFO] [stdout] 167 | return false [INFO] [stdout] | ^^^^^^^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `low_high` [INFO] [stdout] --> src/simulated_annealing.rs:29:28 [INFO] [stdout] | [INFO] [stdout] 29 | ... low_high: (f64, f64), [INFO] [stdout] | ^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_low_high` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `rng` [INFO] [stdout] --> src/simulated_annealing.rs:30:28 [INFO] [stdout] | [INFO] [stdout] 30 | ... rng: &mut rand::rngs::ThreadRng) -> (HashMap, HashMap) { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_rng` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `node_deletion_threshold` [INFO] [stdout] --> src/simulated_annealing.rs:157:32 [INFO] [stdout] | [INFO] [stdout] 157 | ... node_deletion_threshold: f64, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_node_deletion_threshold` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `key` [INFO] [stdout] --> src/renderer.rs:179:21 [INFO] [stdout] | [INFO] [stdout] 179 | if let Some(key) = e.press_args() { [INFO] [stdout] | ^^^ help: if this is intentional, prefix it with an underscore: `_key` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `args` [INFO] [stdout] --> src/renderer.rs:62:26 [INFO] [stdout] | [INFO] [stdout] 62 | fn update(&mut self, args: &UpdateArgs) { [INFO] [stdout] | ^^^^ help: if this is intentional, prefix it with an underscore: `_args` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `num_points` [INFO] [stdout] --> src/graph.rs:45:31 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn debug_straight_surface(num_points: usize) -> ThickSurface { [INFO] [stdout] | ^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_num_points` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/graph_change.rs:160:13 [INFO] [stdout] | [INFO] [stdout] 159 | panic!(""); [INFO] [stdout] | ----------- any code following this expression is unreachable [INFO] [stdout] 160 | return false [INFO] [stdout] | ^^^^^^^^^^^^ unreachable expression [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unreachable_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unreachable expression [INFO] [stdout] --> src/graph_change.rs:167:13 [INFO] [stdout] | [INFO] [stdout] 166 | panic!(""); [INFO] [stdout] | ----------- any code following this expression is unreachable [INFO] [stdout] 167 | return false [INFO] [stdout] | ^^^^^^^^^^^^ unreachable expression [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variable does not need to be mutable [INFO] [stdout] --> src/graph_change.rs:175:13 [INFO] [stdout] | [INFO] [stdout] 175 | let mut node_in_layer_across = ts.layers[layer_across].nodes.get_mut(across).unwrap(); [INFO] [stdout] | ----^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | help: remove this `mut` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_mut)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/graph_change.rs:304:65 [INFO] [stdout] | [INFO] [stdout] 304 | let change = NodeChange { id: 1, cur_x: test_circ.nodes[1].x, cur_y: test_circ.nodes[1].y, delta_x: 70.0, delta_y: 100.0 }; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | expected `&usize`, found integer [INFO] [stdout] | help: consider borrowing here: `&1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/graph_change.rs:304:94 [INFO] [stdout] | [INFO] [stdout] 304 | let change = NodeChange { id: 1, cur_x: test_circ.nodes[1].x, cur_y: test_circ.nodes[1].y, delta_x: 70.0, delta_y: 100.0 }; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | expected `&usize`, found integer [INFO] [stdout] | help: consider borrowing here: `&1` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/graph_change.rs:357:114 [INFO] [stdout] | [INFO] [stdout] 357 | ...r.layers[INNER], &circular.layers[OUTER].nodes[10], &circular.layers[OUTER].nodes[10].next(&circular.layers[OUTER]), 0.000001); [INFO] [stdout] | ^^ [INFO] [stdout] | | [INFO] [stdout] | expected `&usize`, found integer [INFO] [stdout] | help: consider borrowing here: `&10` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/graph_change.rs:357:149 [INFO] [stdout] | [INFO] [stdout] 357 | ...UTER].nodes[10], &circular.layers[OUTER].nodes[10].next(&circular.layers[OUTER]), 0.000001); [INFO] [stdout] | ^^ [INFO] [stdout] | | [INFO] [stdout] | expected `&usize`, found integer [INFO] [stdout] | help: consider borrowing here: `&10` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/graph_change.rs:359:114 [INFO] [stdout] | [INFO] [stdout] 359 | ...r.layers[INNER], &circular.layers[OUTER].nodes[10], &circular.layers[OUTER].nodes[10].next(&circular.layers[OUTER]), 0.000001); [INFO] [stdout] | ^^ [INFO] [stdout] | | [INFO] [stdout] | expected `&usize`, found integer [INFO] [stdout] | help: consider borrowing here: `&10` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/graph_change.rs:359:149 [INFO] [stdout] | [INFO] [stdout] 359 | ...UTER].nodes[10], &circular.layers[OUTER].nodes[10].next(&circular.layers[OUTER]), 0.000001); [INFO] [stdout] | ^^ [INFO] [stdout] | | [INFO] [stdout] | expected `&usize`, found integer [INFO] [stdout] | help: consider borrowing here: `&10` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/graph_change.rs:361:114 [INFO] [stdout] | [INFO] [stdout] 361 | ...r.layers[INNER], &circular.layers[OUTER].nodes[10], &circular.layers[OUTER].nodes[10].next(&circular.layers[OUTER]), 0.000001); [INFO] [stdout] | ^^ [INFO] [stdout] | | [INFO] [stdout] | expected `&usize`, found integer [INFO] [stdout] | help: consider borrowing here: `&10` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/graph_change.rs:361:149 [INFO] [stdout] | [INFO] [stdout] 361 | ...UTER].nodes[10], &circular.layers[OUTER].nodes[10].next(&circular.layers[OUTER]), 0.000001); [INFO] [stdout] | ^^ [INFO] [stdout] | | [INFO] [stdout] | expected `&usize`, found integer [INFO] [stdout] | help: consider borrowing here: `&10` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/graph_change.rs:364:114 [INFO] [stdout] | [INFO] [stdout] 364 | ...r.layers[OUTER], &circular.layers[INNER].nodes[10], &circular.layers[INNER].nodes[10].next(&circular.layers[INNER]), 0.000001); [INFO] [stdout] | ^^ [INFO] [stdout] | | [INFO] [stdout] | expected `&usize`, found integer [INFO] [stdout] | help: consider borrowing here: `&10` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/graph_change.rs:364:149 [INFO] [stdout] | [INFO] [stdout] 364 | ...NNER].nodes[10], &circular.layers[INNER].nodes[10].next(&circular.layers[INNER]), 0.000001); [INFO] [stdout] | ^^ [INFO] [stdout] | | [INFO] [stdout] | expected `&usize`, found integer [INFO] [stdout] | help: consider borrowing here: `&10` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `debug_changes` [INFO] [stdout] --> src/simulated_annealing.rs:10:8 [INFO] [stdout] | [INFO] [stdout] 10 | pub fn debug_changes(ts: &ThickSurface, how_smooth: usize, compression_factor: f64, which_node: usize, (x_change, y_change): (f64, f64)) ... [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant is never used: `WHITE` [INFO] [stdout] --> src/renderer.rs:17:1 [INFO] [stdout] | [INFO] [stdout] 17 | const WHITE: Color = [1.0, 1.0, 1.0, 1.0]; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `render_playground` [INFO] [stdout] --> src/renderer.rs:167:8 [INFO] [stdout] | [INFO] [stdout] 167 | pub fn render_playground(ts: &mut ThickSurface, [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `smooth_change_out` [INFO] [stdout] --> src/graph_change.rs:63:8 [INFO] [stdout] | [INFO] [stdout] 63 | pub fn smooth_change_out(g: &Graph, change: NodeChange, how_smooth: f64) -> Vec { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `direction_vector0` [INFO] [stdout] --> src/graph_change.rs:229:4 [INFO] [stdout] | [INFO] [stdout] 229 | fn direction_vector0(_other_graph: &Graph, change: &NodeChange, _other_graph_changes: &HashMap) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `direction_vector1` [INFO] [stdout] --> src/graph_change.rs:233:4 [INFO] [stdout] | [INFO] [stdout] 233 | fn direction_vector1(other_graph: &Graph, change: &NodeChange, other_graph_changes: &HashMap) -> (f64, f64) { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: type alias is never used: `EdgeIndex` [INFO] [stdout] --> src/types.rs:5:1 [INFO] [stdout] | [INFO] [stdout] 5 | pub type EdgeIndex = usize; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `debug_straight_surface` [INFO] [stdout] --> src/graph.rs:45:8 [INFO] [stdout] | [INFO] [stdout] 45 | pub fn debug_straight_surface(num_points: usize) -> ThickSurface { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `perimeter` [INFO] [stdout] --> src/graph.rs:69:8 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn perimeter(g: &Graph) -> f64 { [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field is never read: `softness_factor` [INFO] [stdout] --> src/main.rs:23:5 [INFO] [stdout] | [INFO] [stdout] 23 | softness_factor: f64, // <- how much should closeness of nodes in different surfaces impact pushes? [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function is never used: `playground_main` [INFO] [stdout] --> src/main.rs:70:4 [INFO] [stdout] | [INFO] [stdout] 70 | fn playground_main() { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/graph_change.rs:33:9 [INFO] [stdout] | [INFO] [stdout] 33 | apply_change(g, &change); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_must_use)]` on by default [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/graph_change.rs:40:9 [INFO] [stdout] | [INFO] [stdout] 40 | revert_change(g, &change); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused `std::result::Result` that must be used [INFO] [stdout] --> src/graph_change.rs:198:9 [INFO] [stdout] | [INFO] [stdout] 198 | ts.layers[layer_across].nodes.get_mut(&acr).unwrap().acrossness.try_remove(ind); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this `Result` may be an `Err` variant, which should be handled [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: 27 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `acrossness` on type `(&usize, &types::Node)` [INFO] [stdout] --> src/graph_change.rs:368:27 [INFO] [stdout] | [INFO] [stdout] 368 | for acr in &n.acrossness { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `id` on type `(&usize, &types::Node)` [INFO] [stdout] --> src/graph_change.rs:371:38 [INFO] [stdout] | [INFO] [stdout] 371 | if *acr_acr == n.id { found = true; break } [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `acrossness` on type `(&usize, &types::Node)` [INFO] [stdout] --> src/graph_change.rs:378:27 [INFO] [stdout] | [INFO] [stdout] 378 | for acr in &n.acrossness { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `id` on type `(&usize, &types::Node)` [INFO] [stdout] --> src/graph_change.rs:381:38 [INFO] [stdout] | [INFO] [stdout] 381 | if *acr_acr == n.id { found = true; break } [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/graph.rs:182:43 [INFO] [stdout] | [INFO] [stdout] 182 | let mut walker = &test_circ.nodes[0]; [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | expected `&usize`, found integer [INFO] [stdout] | help: consider borrowing here: `&0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/graph.rs:183:37 [INFO] [stdout] | [INFO] [stdout] 183 | let first = test_circ.nodes[0].clone(); [INFO] [stdout] | ^ [INFO] [stdout] | | [INFO] [stdout] | expected `&usize`, found integer [INFO] [stdout] | help: consider borrowing here: `&0` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `acrossness` on type `(&usize, &types::Node)` [INFO] [stdout] --> src/graph.rs:197:26 [INFO] [stdout] | [INFO] [stdout] 197 | assert_eq!(n.acrossness[0], n.id) [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0609]: no field `id` on type `(&usize, &types::Node)` [INFO] [stdout] --> src/graph.rs:197:43 [INFO] [stdout] | [INFO] [stdout] 197 | assert_eq!(n.acrossness[0], n.id) [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 18 previous errors; 9 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0609. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] [INFO] [stderr] error: could not compile `sars` [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "72e751149220a39ab5c5b11723bf79e62cef72cd055684a930eb72d126731258", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "72e751149220a39ab5c5b11723bf79e62cef72cd055684a930eb72d126731258", kill_on_drop: false }` [INFO] [stdout] 72e751149220a39ab5c5b11723bf79e62cef72cd055684a930eb72d126731258