[INFO] cloning repository https://github.com/mwalczyk/graphics_utils
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mwalczyk/graphics_utils" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmwalczyk%2Fgraphics_utils", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmwalczyk%2Fgraphics_utils'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] c37392deda24be444e5f4fe9ebbf106d070a0c56
[INFO] testing mwalczyk/graphics_utils against master#1871252fc8bb672d40787e67404e6eaae7059369 for pr-125151
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmwalczyk%2Fgraphics_utils" "/workspace/builds/worker-2-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc1/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/mwalczyk/graphics_utils on toolchain 1871252fc8bb672d40787e67404e6eaae7059369
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/mwalczyk/graphics_utils
[INFO] finished tweaking git repo https://github.com/mwalczyk/graphics_utils
[INFO] tweaked toml for git repo https://github.com/mwalczyk/graphics_utils written to /workspace/builds/worker-2-tc1/source/Cargo.toml
[INFO] crate git repo https://github.com/mwalczyk/graphics_utils already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] 0afcb857736a3c68f88303cb945fabb3a34cb26df3997c44ff12eaf3bcb006c9
[INFO] running `Command { std: "docker" "start" "-a" "0afcb857736a3c68f88303cb945fabb3a34cb26df3997c44ff12eaf3bcb006c9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "0afcb857736a3c68f88303cb945fabb3a34cb26df3997c44ff12eaf3bcb006c9", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0afcb857736a3c68f88303cb945fabb3a34cb26df3997c44ff12eaf3bcb006c9", kill_on_drop: false }`
[INFO] [stdout] 0afcb857736a3c68f88303cb945fabb3a34cb26df3997c44ff12eaf3bcb006c9
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] cc35669dbdb8dc0d9223e67603ca499e6389f752984b0faa64910c2cddf82d49
[INFO] running `Command { std: "docker" "start" "-a" "cc35669dbdb8dc0d9223e67603ca499e6389f752984b0faa64910c2cddf82d49", kill_on_drop: false }`
[INFO] [stderr]    Compiling autocfg v0.1.6
[INFO] [stderr]    Compiling cfg-if v0.1.9
[INFO] [stderr]    Compiling libc v0.2.62
[INFO] [stderr]    Compiling semver-parser v0.7.0
[INFO] [stderr]    Compiling rand_core v0.4.2
[INFO] [stderr]    Compiling arrayvec v0.4.11
[INFO] [stderr]    Compiling lazy_static v1.4.0
[INFO] [stderr]    Compiling nodrop v0.1.13
[INFO] [stderr]    Compiling scopeguard v1.0.0
[INFO] [stderr]    Compiling byteorder v1.3.2
[INFO] [stderr]    Compiling rayon-core v1.6.0
[INFO] [stderr]    Compiling khronos_api v3.1.0
[INFO] [stderr]    Compiling log v0.4.8
[INFO] [stderr]    Compiling adler32 v1.0.4
[INFO] [stderr]    Compiling bitflags v1.1.0
[INFO] [stderr]    Compiling either v1.5.3
[INFO] [stderr]    Compiling xml-rs v0.8.0
[INFO] [stderr]    Compiling crossbeam-utils v0.6.6
[INFO] [stderr]    Compiling color_quant v1.0.1
[INFO] [stderr]    Compiling lzw v0.10.0
[INFO] [stderr]    Compiling inflate v0.3.4
[INFO] [stderr]    Compiling rand_core v0.3.1
[INFO] [stderr]    Compiling semver v0.9.0
[INFO] [stderr]    Compiling rand_hc v0.1.0
[INFO] [stderr]    Compiling gif v0.9.2
[INFO] [stderr]    Compiling num-traits v0.2.8
[INFO] [stderr]    Compiling num-integer v0.1.41
[INFO] [stderr]    Compiling num-iter v0.1.39
[INFO] [stderr]    Compiling crossbeam-queue v0.1.2
[INFO] [stderr]    Compiling rand_pcg v0.1.2
[INFO] [stderr]    Compiling rustc_version v0.2.3
[INFO] [stderr]    Compiling rand_chacha v0.1.1
[INFO] [stderr]    Compiling rand v0.6.5
[INFO] [stderr]    Compiling rand_isaac v0.1.1
[INFO] [stderr]    Compiling rand_xorshift v0.1.1
[INFO] [stderr]    Compiling memoffset v0.5.1
[INFO] [stderr]    Compiling gl_generator v0.13.1
[INFO] [stderr]    Compiling rand_jitter v0.1.4
[INFO] [stderr]    Compiling scoped_threadpool v0.1.9
[INFO] [stderr]    Compiling cgmath v0.17.0
[INFO] [stderr]    Compiling deflate v0.7.20
[INFO] [stderr]    Compiling num_cpus v1.10.1
[INFO] [stderr]    Compiling rand_os v0.1.3
[INFO] [stderr]    Compiling rand v0.4.6
[INFO] [stderr]    Compiling crossbeam-epoch v0.7.2
[INFO] [stderr]    Compiling crossbeam-deque v0.7.1
[INFO] [stderr]    Compiling gl v0.13.0
[INFO] [stderr]    Compiling rand v0.3.23
[INFO] [stderr]    Compiling num-traits v0.1.43
[INFO] [stderr]    Compiling approx v0.3.2
[INFO] [stderr]    Compiling enum_primitive v0.1.1
[INFO] [stderr]    Compiling rayon v1.2.0
[INFO] [stderr]    Compiling num-rational v0.1.42
[INFO] [stderr]    Compiling png v0.11.0
[INFO] [stderr]    Compiling jpeg-decoder v0.1.16
[INFO] [stderr]    Compiling image v0.18.0
[INFO] [stderr]    Compiling noise v0.5.1
[INFO] [stderr]    Compiling graphics_utils v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/mesh.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `NoiseFn`, `Perlin`
[INFO] [stdout]  --> src/polyline.rs:2:13
[INFO] [stdout]   |
[INFO] [stdout] 2 | use noise::{NoiseFn, Perlin};
[INFO] [stdout]   |             ^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::max`
[INFO] [stdout]  --> src/polyline.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::cmp::max;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around index expression
[INFO] [stdout]    --> src/polyline.rs:262:37
[INFO] [stdout]     |
[INFO] [stdout] 262 |         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stdout]     |                                     ^         ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 262 -         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stdout] 262 +         Segment::new(&self.vertices[index + 0], &self.vertices[(index + 1)])
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around index expression
[INFO] [stdout]    --> src/polyline.rs:262:66
[INFO] [stdout]     |
[INFO] [stdout] 262 |         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stdout]     |                                                                  ^         ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 262 -         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stdout] 262 +         Segment::new(&self.vertices[(index + 0)], &self.vertices[index + 1])
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `sc` is never read
[INFO] [stdout]   --> src/polyline.rs:67:17
[INFO] [stdout]    |
[INFO] [stdout] 67 |         let mut sc: f32 = 0.0;
[INFO] [stdout]    |                 ^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `sN` is never read
[INFO] [stdout]   --> src/polyline.rs:68:17
[INFO] [stdout]    |
[INFO] [stdout] 68 |         let mut sN: f32 = 0.0;
[INFO] [stdout]    |                 ^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `tc` is never read
[INFO] [stdout]   --> src/polyline.rs:70:17
[INFO] [stdout]    |
[INFO] [stdout] 70 |         let mut tc: f32 = 0.0;
[INFO] [stdout]    |                 ^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `tN` is never read
[INFO] [stdout]   --> src/polyline.rs:71:17
[INFO] [stdout]    |
[INFO] [stdout] 71 |         let mut tN: f32 = 0.0;
[INFO] [stdout]    |                 ^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `circle_normal`
[INFO] [stdout]    --> src/polyline.rs:321:13
[INFO] [stdout]     |
[INFO] [stdout] 321 |         let circle_normal: Vector3<f32> = Vector3::unit_y();
[INFO] [stdout]     |             ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_circle_normal`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `circle_center`
[INFO] [stdout]    --> src/polyline.rs:322:13
[INFO] [stdout]     |
[INFO] [stdout] 322 |         let circle_center: Vector3<f32> = Vector3::zero();
[INFO] [stdout]     |             ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_circle_center`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_memory_size` is never used
[INFO] [stdout]   --> src/mesh.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl Attribute {
[INFO] [stdout]    | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 26 |     pub fn get_memory_size(&self) -> usize {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `Intersection` is never used
[INFO] [stdout]  --> src/polyline.rs:6:6
[INFO] [stdout]   |
[INFO] [stdout] 6 | type Intersection = (Vector3<f32>, f32, f32);
[INFO] [stdout]   |      ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `D` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:65:13
[INFO] [stdout]    |
[INFO] [stdout] 65 |         let D = a * c - b * b; // always >= 0
[INFO] [stdout]    |             ^ help: convert the identifier to snake case: `d`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `sN` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:68:17
[INFO] [stdout]    |
[INFO] [stdout] 68 |         let mut sN: f32 = 0.0;
[INFO] [stdout]    |                 ^^ help: convert the identifier to snake case: `s_n`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `sD` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:69:17
[INFO] [stdout]    |
[INFO] [stdout] 69 |         let mut sD = D; // sc = sN / sD, default sD = D >= 0
[INFO] [stdout]    |                 ^^ help: convert the identifier to snake case: `s_d`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `tN` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:71:17
[INFO] [stdout]    |
[INFO] [stdout] 71 |         let mut tN: f32 = 0.0;
[INFO] [stdout]    |                 ^^ help: convert the identifier to snake case: `t_n`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `tD` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:72:17
[INFO] [stdout]    |
[INFO] [stdout] 72 |         let mut tD = D; // tc = tN / tD, default tD = D >= 0
[INFO] [stdout]    |                 ^^ help: convert the identifier to snake case: `t_d`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:131:88
[INFO] [stdout]     |
[INFO] [stdout] 131 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout]     = note: `#[warn(temporary_cstring_as_ptr)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:138:88
[INFO] [stdout]     |
[INFO] [stdout] 138 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:145:88
[INFO] [stdout]     |
[INFO] [stdout] 145 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:152:88
[INFO] [stdout]     |
[INFO] [stdout] 152 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:159:88
[INFO] [stdout]     |
[INFO] [stdout] 159 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:166:88
[INFO] [stdout]     |
[INFO] [stdout] 166 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:173:88
[INFO] [stdout]     |
[INFO] [stdout] 173 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:180:88
[INFO] [stdout]     |
[INFO] [stdout] 180 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:187:88
[INFO] [stdout]     |
[INFO] [stdout] 187 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:194:88
[INFO] [stdout]     |
[INFO] [stdout] 194 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:201:88
[INFO] [stdout]     |
[INFO] [stdout] 201 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:208:88
[INFO] [stdout]     |
[INFO] [stdout] 208 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:215:88
[INFO] [stdout]     |
[INFO] [stdout] 215 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 31 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.93s
[INFO] running `Command { std: "docker" "inspect" "cc35669dbdb8dc0d9223e67603ca499e6389f752984b0faa64910c2cddf82d49", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cc35669dbdb8dc0d9223e67603ca499e6389f752984b0faa64910c2cddf82d49", kill_on_drop: false }`
[INFO] [stdout] cc35669dbdb8dc0d9223e67603ca499e6389f752984b0faa64910c2cddf82d49
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 1635d7833b3a8fee3ffbe422fa672f949d67600b174083c54559354e55c730dc
[INFO] running `Command { std: "docker" "start" "-a" "1635d7833b3a8fee3ffbe422fa672f949d67600b174083c54559354e55c730dc", kill_on_drop: false }`
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/mesh.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `NoiseFn`, `Perlin`
[INFO] [stdout]  --> src/polyline.rs:2:13
[INFO] [stdout]   |
[INFO] [stdout] 2 | use noise::{NoiseFn, Perlin};
[INFO] [stdout]   |             ^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::max`
[INFO] [stdout]  --> src/polyline.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::cmp::max;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around index expression
[INFO] [stdout]    --> src/polyline.rs:262:37
[INFO] [stdout]     |
[INFO] [stdout] 262 |         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stdout]     |                                     ^         ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 262 -         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stdout] 262 +         Segment::new(&self.vertices[index + 0], &self.vertices[(index + 1)])
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around index expression
[INFO] [stdout]    --> src/polyline.rs:262:66
[INFO] [stdout]     |
[INFO] [stdout] 262 |         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stdout]     |                                                                  ^         ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 262 -         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stdout] 262 +         Segment::new(&self.vertices[(index + 0)], &self.vertices[index + 1])
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `sc` is never read
[INFO] [stdout]   --> src/polyline.rs:67:17
[INFO] [stdout]    |
[INFO] [stdout] 67 |         let mut sc: f32 = 0.0;
[INFO] [stdout]    |                 ^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `sN` is never read
[INFO] [stdout]   --> src/polyline.rs:68:17
[INFO] [stdout]    |
[INFO] [stdout] 68 |         let mut sN: f32 = 0.0;
[INFO] [stdout]    |                 ^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `tc` is never read
[INFO] [stdout]   --> src/polyline.rs:70:17
[INFO] [stdout]    |
[INFO] [stdout] 70 |         let mut tc: f32 = 0.0;
[INFO] [stdout]    |                 ^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `tN` is never read
[INFO] [stdout]   --> src/polyline.rs:71:17
[INFO] [stdout]    |
[INFO] [stdout] 71 |         let mut tN: f32 = 0.0;
[INFO] [stdout]    |                 ^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `circle_normal`
[INFO] [stdout]    --> src/polyline.rs:321:13
[INFO] [stdout]     |
[INFO] [stdout] 321 |         let circle_normal: Vector3<f32> = Vector3::unit_y();
[INFO] [stdout]     |             ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_circle_normal`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `circle_center`
[INFO] [stdout]    --> src/polyline.rs:322:13
[INFO] [stdout]     |
[INFO] [stdout] 322 |         let circle_center: Vector3<f32> = Vector3::zero();
[INFO] [stdout]     |             ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_circle_center`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_memory_size` is never used
[INFO] [stdout]   --> src/mesh.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl Attribute {
[INFO] [stdout]    | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 26 |     pub fn get_memory_size(&self) -> usize {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `Intersection` is never used
[INFO] [stdout]  --> src/polyline.rs:6:6
[INFO] [stdout]   |
[INFO] [stdout] 6 | type Intersection = (Vector3<f32>, f32, f32);
[INFO] [stdout]   |      ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `D` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:65:13
[INFO] [stdout]    |
[INFO] [stdout] 65 |         let D = a * c - b * b; // always >= 0
[INFO] [stdout]    |             ^ help: convert the identifier to snake case: `d`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `sN` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:68:17
[INFO] [stdout]    |
[INFO] [stdout] 68 |         let mut sN: f32 = 0.0;
[INFO] [stdout]    |                 ^^ help: convert the identifier to snake case: `s_n`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `sD` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:69:17
[INFO] [stdout]    |
[INFO] [stdout] 69 |         let mut sD = D; // sc = sN / sD, default sD = D >= 0
[INFO] [stdout]    |                 ^^ help: convert the identifier to snake case: `s_d`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `tN` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:71:17
[INFO] [stdout]    |
[INFO] [stdout] 71 |         let mut tN: f32 = 0.0;
[INFO] [stdout]    |                 ^^ help: convert the identifier to snake case: `t_n`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `tD` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:72:17
[INFO] [stdout]    |
[INFO] [stdout] 72 |         let mut tD = D; // tc = tN / tD, default tD = D >= 0
[INFO] [stdout]    |                 ^^ help: convert the identifier to snake case: `t_d`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:131:88
[INFO] [stdout]     |
[INFO] [stdout] 131 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout]     = note: `#[warn(temporary_cstring_as_ptr)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:138:88
[INFO] [stdout]     |
[INFO] [stdout] 138 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:145:88
[INFO] [stdout]     |
[INFO] [stdout] 145 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:152:88
[INFO] [stdout]     |
[INFO] [stdout] 152 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:159:88
[INFO] [stdout]     |
[INFO] [stdout] 159 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:166:88
[INFO] [stdout]     |
[INFO] [stdout] 166 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:173:88
[INFO] [stdout]     |
[INFO] [stdout] 173 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:180:88
[INFO] [stdout]     |
[INFO] [stdout] 180 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:187:88
[INFO] [stdout]     |
[INFO] [stdout] 187 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:194:88
[INFO] [stdout]     |
[INFO] [stdout] 194 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:201:88
[INFO] [stdout]     |
[INFO] [stdout] 201 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:208:88
[INFO] [stdout]     |
[INFO] [stdout] 208 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:215:88
[INFO] [stdout]     |
[INFO] [stdout] 215 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 31 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling graphics_utils v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/mesh.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `NoiseFn`, `Perlin`
[INFO] [stdout]  --> src/polyline.rs:2:13
[INFO] [stdout]   |
[INFO] [stdout] 2 | use noise::{NoiseFn, Perlin};
[INFO] [stdout]   |             ^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::max`
[INFO] [stdout]  --> src/polyline.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::cmp::max;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around index expression
[INFO] [stdout]    --> src/polyline.rs:262:37
[INFO] [stdout]     |
[INFO] [stdout] 262 |         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stdout]     |                                     ^         ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 262 -         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stdout] 262 +         Segment::new(&self.vertices[index + 0], &self.vertices[(index + 1)])
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around index expression
[INFO] [stdout]    --> src/polyline.rs:262:66
[INFO] [stdout]     |
[INFO] [stdout] 262 |         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stdout]     |                                                                  ^         ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 262 -         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stdout] 262 +         Segment::new(&self.vertices[(index + 0)], &self.vertices[index + 1])
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/half_edge.rs:692:13
[INFO] [stdout]     |
[INFO] [stdout] 692 |         let mut adjacent_to_face_0 = half_edge_mesh.get_adjacent_half_edges_to_face(FaceIndex(0));
[INFO] [stdout]     |             ----^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/half_edge.rs:693:13
[INFO] [stdout]     |
[INFO] [stdout] 693 |         let mut adjacent_to_face_1 = half_edge_mesh.get_adjacent_half_edges_to_face(FaceIndex(1));
[INFO] [stdout]     |             ----^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/half_edge.rs:703:13
[INFO] [stdout]     |
[INFO] [stdout] 703 |         let mut vertices_around_face_0 = half_edge_mesh.get_adjacent_vertices_to_face(FaceIndex(0));
[INFO] [stdout]     |             ----^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/half_edge.rs:704:13
[INFO] [stdout]     |
[INFO] [stdout] 704 |         let mut vertices_around_face_1 = half_edge_mesh.get_adjacent_vertices_to_face(FaceIndex(1));
[INFO] [stdout]     |             ----^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `sc` is never read
[INFO] [stdout]   --> src/polyline.rs:67:17
[INFO] [stdout]    |
[INFO] [stdout] 67 |         let mut sc: f32 = 0.0;
[INFO] [stdout]    |                 ^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `sN` is never read
[INFO] [stdout]   --> src/polyline.rs:68:17
[INFO] [stdout]    |
[INFO] [stdout] 68 |         let mut sN: f32 = 0.0;
[INFO] [stdout]    |                 ^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `tc` is never read
[INFO] [stdout]   --> src/polyline.rs:70:17
[INFO] [stdout]    |
[INFO] [stdout] 70 |         let mut tc: f32 = 0.0;
[INFO] [stdout]    |                 ^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `tN` is never read
[INFO] [stdout]   --> src/polyline.rs:71:17
[INFO] [stdout]    |
[INFO] [stdout] 71 |         let mut tN: f32 = 0.0;
[INFO] [stdout]    |                 ^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `circle_normal`
[INFO] [stdout]    --> src/polyline.rs:321:13
[INFO] [stdout]     |
[INFO] [stdout] 321 |         let circle_normal: Vector3<f32> = Vector3::unit_y();
[INFO] [stdout]     |             ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_circle_normal`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `circle_center`
[INFO] [stdout]    --> src/polyline.rs:322:13
[INFO] [stdout]     |
[INFO] [stdout] 322 |         let circle_center: Vector3<f32> = Vector3::zero();
[INFO] [stdout]     |             ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_circle_center`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_memory_size` is never used
[INFO] [stdout]   --> src/mesh.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl Attribute {
[INFO] [stdout]    | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 26 |     pub fn get_memory_size(&self) -> usize {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `Intersection` is never used
[INFO] [stdout]  --> src/polyline.rs:6:6
[INFO] [stdout]   |
[INFO] [stdout] 6 | type Intersection = (Vector3<f32>, f32, f32);
[INFO] [stdout]   |      ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `D` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:65:13
[INFO] [stdout]    |
[INFO] [stdout] 65 |         let D = a * c - b * b; // always >= 0
[INFO] [stdout]    |             ^ help: convert the identifier to snake case: `d`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `sN` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:68:17
[INFO] [stdout]    |
[INFO] [stdout] 68 |         let mut sN: f32 = 0.0;
[INFO] [stdout]    |                 ^^ help: convert the identifier to snake case: `s_n`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `sD` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:69:17
[INFO] [stdout]    |
[INFO] [stdout] 69 |         let mut sD = D; // sc = sN / sD, default sD = D >= 0
[INFO] [stdout]    |                 ^^ help: convert the identifier to snake case: `s_d`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `tN` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:71:17
[INFO] [stdout]    |
[INFO] [stdout] 71 |         let mut tN: f32 = 0.0;
[INFO] [stdout]    |                 ^^ help: convert the identifier to snake case: `t_n`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `tD` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:72:17
[INFO] [stdout]    |
[INFO] [stdout] 72 |         let mut tD = D; // tc = tN / tD, default tD = D >= 0
[INFO] [stdout]    |                 ^^ help: convert the identifier to snake case: `t_d`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:131:88
[INFO] [stdout]     |
[INFO] [stdout] 131 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout]     = note: `#[warn(temporary_cstring_as_ptr)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:138:88
[INFO] [stdout]     |
[INFO] [stdout] 138 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:145:88
[INFO] [stdout]     |
[INFO] [stdout] 145 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:152:88
[INFO] [stdout]     |
[INFO] [stdout] 152 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:159:88
[INFO] [stdout]     |
[INFO] [stdout] 159 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:166:88
[INFO] [stdout]     |
[INFO] [stdout] 166 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:173:88
[INFO] [stdout]     |
[INFO] [stdout] 173 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:180:88
[INFO] [stdout]     |
[INFO] [stdout] 180 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:187:88
[INFO] [stdout]     |
[INFO] [stdout] 187 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:194:88
[INFO] [stdout]     |
[INFO] [stdout] 194 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:201:88
[INFO] [stdout]     |
[INFO] [stdout] 201 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:208:88
[INFO] [stdout]     |
[INFO] [stdout] 208 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:215:88
[INFO] [stdout]     |
[INFO] [stdout] 215 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 35 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.80s
[INFO] running `Command { std: "docker" "inspect" "1635d7833b3a8fee3ffbe422fa672f949d67600b174083c54559354e55c730dc", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "1635d7833b3a8fee3ffbe422fa672f949d67600b174083c54559354e55c730dc", kill_on_drop: false }`
[INFO] [stdout] 1635d7833b3a8fee3ffbe422fa672f949d67600b174083c54559354e55c730dc
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc1/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+1871252fc8bb672d40787e67404e6eaae7059369" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] 0a48cb1ed486d72f479f4348aff4c94c3f43bcb337d65c7ac4f8f3227218bec8
[INFO] running `Command { std: "docker" "start" "-a" "0a48cb1ed486d72f479f4348aff4c94c3f43bcb337d65c7ac4f8f3227218bec8", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `std::collections::HashMap`
[INFO] [stderr]  --> src/mesh.rs:5:5
[INFO] [stderr]   |
[INFO] [stderr] 5 | use std::collections::HashMap;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `NoiseFn`, `Perlin`
[INFO] [stderr]  --> src/polyline.rs:2:13
[INFO] [stderr]   |
[INFO] [stderr] 2 | use noise::{NoiseFn, Perlin};
[INFO] [stderr]   |             ^^^^^^^  ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::cmp::max`
[INFO] [stderr]  --> src/polyline.rs:3:5
[INFO] [stderr]   |
[INFO] [stderr] 3 | use std::cmp::max;
[INFO] [stderr]   |     ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around index expression
[INFO] [stderr]    --> src/polyline.rs:262:37
[INFO] [stderr]     |
[INFO] [stderr] 262 |         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stderr]     |                                     ^         ^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]     |
[INFO] [stderr] 262 -         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stderr] 262 +         Segment::new(&self.vertices[index + 0], &self.vertices[(index + 1)])
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around index expression
[INFO] [stderr]    --> src/polyline.rs:262:66
[INFO] [stderr]     |
[INFO] [stderr] 262 |         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stderr]     |                                                                  ^         ^
[INFO] [stderr]     |
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]     |
[INFO] [stderr] 262 -         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stderr] 262 +         Segment::new(&self.vertices[(index + 0)], &self.vertices[index + 1])
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: value assigned to `sc` is never read
[INFO] [stderr]   --> src/polyline.rs:67:17
[INFO] [stderr]    |
[INFO] [stderr] 67 |         let mut sc: f32 = 0.0;
[INFO] [stderr]    |                 ^^
[INFO] [stderr]    |
[INFO] [stderr]    = help: maybe it is overwritten before being read?
[INFO] [stderr]    = note: `#[warn(unused_assignments)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: value assigned to `sN` is never read
[INFO] [stderr]   --> src/polyline.rs:68:17
[INFO] [stderr]    |
[INFO] [stderr] 68 |         let mut sN: f32 = 0.0;
[INFO] [stderr]    |                 ^^
[INFO] [stderr]    |
[INFO] [stderr]    = help: maybe it is overwritten before being read?
[INFO] [stderr] 
[INFO] [stderr] warning: value assigned to `tc` is never read
[INFO] [stderr]   --> src/polyline.rs:70:17
[INFO] [stderr]    |
[INFO] [stderr] 70 |         let mut tc: f32 = 0.0;
[INFO] [stderr]    |                 ^^
[INFO] [stderr]    |
[INFO] [stderr]    = help: maybe it is overwritten before being read?
[INFO] [stderr] 
[INFO] [stderr] warning: value assigned to `tN` is never read
[INFO] [stderr]   --> src/polyline.rs:71:17
[INFO] [stderr]    |
[INFO] [stderr] 71 |         let mut tN: f32 = 0.0;
[INFO] [stderr]    |                 ^^
[INFO] [stderr]    |
[INFO] [stderr]    = help: maybe it is overwritten before being read?
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `circle_normal`
[INFO] [stderr]    --> src/polyline.rs:321:13
[INFO] [stderr]     |
[INFO] [stderr] 321 |         let circle_normal: Vector3<f32> = Vector3::unit_y();
[INFO] [stderr]     |             ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_circle_normal`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `circle_center`
[INFO] [stderr]    --> src/polyline.rs:322:13
[INFO] [stderr]     |
[INFO] [stderr] 322 |         let circle_center: Vector3<f32> = Vector3::zero();
[INFO] [stderr]     |             ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_circle_center`
[INFO] [stderr] 
[INFO] [stderr] warning: method `get_memory_size` is never used
[INFO] [stderr]   --> src/mesh.rs:26:12
[INFO] [stderr]    |
[INFO] [stderr] 16 | impl Attribute {
[INFO] [stderr]    | -------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 26 |     pub fn get_memory_size(&self) -> usize {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: type alias `Intersection` is never used
[INFO] [stderr]  --> src/polyline.rs:6:6
[INFO] [stderr]   |
[INFO] [stderr] 6 | type Intersection = (Vector3<f32>, f32, f32);
[INFO] [stderr]   |      ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: variable `D` should have a snake case name
[INFO] [stderr]   --> src/polyline.rs:65:13
[INFO] [stderr]    |
[INFO] [stderr] 65 |         let D = a * c - b * b; // always >= 0
[INFO] [stderr]    |             ^ help: convert the identifier to snake case: `d`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(non_snake_case)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: variable `sN` should have a snake case name
[INFO] [stderr]   --> src/polyline.rs:68:17
[INFO] [stderr]    |
[INFO] [stderr] 68 |         let mut sN: f32 = 0.0;
[INFO] [stderr]    |                 ^^ help: convert the identifier to snake case: `s_n`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `sD` should have a snake case name
[INFO] [stderr]   --> src/polyline.rs:69:17
[INFO] [stderr]    |
[INFO] [stderr] 69 |         let mut sD = D; // sc = sN / sD, default sD = D >= 0
[INFO] [stderr]    |                 ^^ help: convert the identifier to snake case: `s_d`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `tN` should have a snake case name
[INFO] [stderr]   --> src/polyline.rs:71:17
[INFO] [stderr]    |
[INFO] [stderr] 71 |         let mut tN: f32 = 0.0;
[INFO] [stderr]    |                 ^^ help: convert the identifier to snake case: `t_n`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `tD` should have a snake case name
[INFO] [stderr]   --> src/polyline.rs:72:17
[INFO] [stderr]    |
[INFO] [stderr] 72 |         let mut tD = D; // tc = tN / tD, default tD = D >= 0
[INFO] [stderr]    |                 ^^ help: convert the identifier to snake case: `t_d`
[INFO] [stderr] 
[INFO] [stderr] warning: getting the inner pointer of a temporary `CString`
[INFO] [stderr]    --> src/program.rs:131:88
[INFO] [stderr]     |
[INFO] [stderr] 131 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stderr]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stderr]     |                                                            |
[INFO] [stderr]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stderr]     |
[INFO] [stderr]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stderr]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stderr]     = note: `#[warn(temporary_cstring_as_ptr)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: getting the inner pointer of a temporary `CString`
[INFO] [stderr]    --> src/program.rs:138:88
[INFO] [stderr]     |
[INFO] [stderr] 138 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stderr]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stderr]     |                                                            |
[INFO] [stderr]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stderr]     |
[INFO] [stderr]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stderr]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stderr] 
[INFO] [stderr] warning: getting the inner pointer of a temporary `CString`
[INFO] [stderr]    --> src/program.rs:145:88
[INFO] [stderr]     |
[INFO] [stderr] 145 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stderr]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stderr]     |                                                            |
[INFO] [stderr]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stderr]     |
[INFO] [stderr]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stderr]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stderr] 
[INFO] [stderr] warning: getting the inner pointer of a temporary `CString`
[INFO] [stderr]    --> src/program.rs:152:88
[INFO] [stderr]     |
[INFO] [stderr] 152 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stderr]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stderr]     |                                                            |
[INFO] [stderr]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stderr]     |
[INFO] [stderr]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stderr]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stderr] 
[INFO] [stderr] warning: getting the inner pointer of a temporary `CString`
[INFO] [stderr]    --> src/program.rs:159:88
[INFO] [stderr]     |
[INFO] [stderr] 159 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stderr]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stderr]     |                                                            |
[INFO] [stderr]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stderr]     |
[INFO] [stderr]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stderr]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stderr] 
[INFO] [stderr] warning: getting the inner pointer of a temporary `CString`
[INFO] [stderr]    --> src/program.rs:166:88
[INFO] [stderr]     |
[INFO] [stderr] 166 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stderr]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stderr]     |                                                            |
[INFO] [stderr]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stderr]     |
[INFO] [stderr]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stderr]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stderr] 
[INFO] [stderr] warning: getting the inner pointer of a temporary `CString`
[INFO] [stderr]    --> src/program.rs:173:88
[INFO] [stderr]     |
[INFO] [stderr] 173 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stderr]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stderr]     |                                                            |
[INFO] [stderr]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stderr]     |
[INFO] [stderr]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stderr]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stderr] 
[INFO] [stderr] warning: getting the inner pointer of a temporary `CString`
[INFO] [stderr]    --> src/program.rs:180:88
[INFO] [stderr]     |
[INFO] [stderr] 180 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stderr]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stderr]     |                                                            |
[INFO] [stderr]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stderr]     |
[INFO] [stderr]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stderr]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stderr] 
[INFO] [stderr] warning: getting the inner pointer of a temporary `CString`
[INFO] [stderr]    --> src/program.rs:187:88
[INFO] [stderr]     |
[INFO] [stderr] 187 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stderr]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stderr]     |                                                            |
[INFO] [stderr]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stderr]     |
[INFO] [stderr]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stderr]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stderr] 
[INFO] [stderr] warning: getting the inner pointer of a temporary `CString`
[INFO] [stderr]    --> src/program.rs:194:88
[INFO] [stderr]     |
[INFO] [stderr] 194 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stderr]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stderr]     |                                                            |
[INFO] [stderr]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stderr]     |
[INFO] [stderr]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stderr]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stderr] 
[INFO] [stderr] warning: getting the inner pointer of a temporary `CString`
[INFO] [stderr]    --> src/program.rs:201:88
[INFO] [stderr]     |
[INFO] [stderr] 201 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stderr]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stderr]     |                                                            |
[INFO] [stderr]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stderr]     |
[INFO] [stderr]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stderr]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stderr] 
[INFO] [stderr] warning: getting the inner pointer of a temporary `CString`
[INFO] [stderr]    --> src/program.rs:208:88
[INFO] [stderr]     |
[INFO] [stderr] 208 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stderr]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stderr]     |                                                            |
[INFO] [stderr]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stderr]     |
[INFO] [stderr]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stderr]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stderr] 
[INFO] [stderr] warning: getting the inner pointer of a temporary `CString`
[INFO] [stderr]    --> src/program.rs:215:88
[INFO] [stderr]     |
[INFO] [stderr] 215 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stderr]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stderr]     |                                                            |
[INFO] [stderr]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stderr]     |
[INFO] [stderr]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stderr]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/half_edge.rs:692:13
[INFO] [stderr]     |
[INFO] [stderr] 692 |         let mut adjacent_to_face_0 = half_edge_mesh.get_adjacent_half_edges_to_face(FaceIndex(0));
[INFO] [stderr]     |             ----^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |             |
[INFO] [stderr]     |             help: remove this `mut`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/half_edge.rs:693:13
[INFO] [stderr]     |
[INFO] [stderr] 693 |         let mut adjacent_to_face_1 = half_edge_mesh.get_adjacent_half_edges_to_face(FaceIndex(1));
[INFO] [stderr]     |             ----^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |             |
[INFO] [stderr]     |             help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/half_edge.rs:703:13
[INFO] [stderr]     |
[INFO] [stderr] 703 |         let mut vertices_around_face_0 = half_edge_mesh.get_adjacent_vertices_to_face(FaceIndex(0));
[INFO] [stderr]     |             ----^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |             |
[INFO] [stderr]     |             help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/half_edge.rs:704:13
[INFO] [stderr]     |
[INFO] [stderr] 704 |         let mut vertices_around_face_1 = half_edge_mesh.get_adjacent_vertices_to_face(FaceIndex(1));
[INFO] [stderr]     |             ----^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |             |
[INFO] [stderr]     |             help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: `graphics_utils` (lib) generated 31 warnings (run `cargo fix --lib -p graphics_utils` to apply 5 suggestions)
[INFO] [stderr] warning: `graphics_utils` (lib test) generated 35 warnings (31 duplicates) (run `cargo fix --lib -p graphics_utils --tests` to apply 4 suggestions)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/graphics_utils-ae14a99366a12d60)
[INFO] [stdout] 
[INFO] [stdout] running 6 tests
[INFO] [stdout] test polyline::tests::test_distance_between_0 ... ok
[INFO] [stdout] test half_edge::tests::test_from_faces ... ok
[INFO] [stdout] test polyline::tests::test_point_at_0 ... ok
[INFO] [stdout] test polyline::tests::test_distance_between_1 ... ok
[INFO] [stdout] test polyline::tests::test_point_at_1 ... ok
[INFO] [stdout] test polyline::tests::test_point_at_2 ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests graphics_utils
[INFO] [stderr] warning: unnecessary parentheses around index expression
[INFO] [stderr]    --> src/polyline.rs:262:37
[INFO] [stderr]     |
[INFO] [stderr] 262 |         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stderr]     |                                     ^         ^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]     |
[INFO] [stderr] 262 -         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stderr] 262 +         Segment::new(&self.vertices[index + 0], &self.vertices[(index + 1)])
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around index expression
[INFO] [stderr]    --> src/polyline.rs:262:66
[INFO] [stderr]     |
[INFO] [stderr] 262 |         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stderr]     |                                                                  ^         ^
[INFO] [stderr]     |
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]     |
[INFO] [stderr] 262 -         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stderr] 262 +         Segment::new(&self.vertices[(index + 0)], &self.vertices[index + 1])
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: 2 warnings emitted
[INFO] [stderr] 
[INFO] [stdout] 
[INFO] [stdout] running 1 test
[INFO] [stdout] test src/half_edge.rs - half_edge::get_edge_indices_for_face_indices (line 12) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/half_edge.rs - half_edge::get_edge_indices_for_face_indices (line 12) stdout ----
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]  --> src/half_edge.rs:13:1
[INFO] [stdout]   |
[INFO] [stdout] 2 |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_half_edge_rs_12_0() {
[INFO] [stdout]   |                                                                                - help: try adding a return type: `-> [[i32; 2]; 3]`
[INFO] [stdout] 3 | / [
[INFO] [stdout] 4 | |     [0, 2],
[INFO] [stdout] 5 | |     [2, 4],
[INFO] [stdout] 6 | |     [4, 0],
[INFO] [stdout] 7 | | ]
[INFO] [stdout]   | |_^ expected `()`, found `[[{integer}; 2]; 3]`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/half_edge.rs - half_edge::get_edge_indices_for_face_indices (line 12)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "0a48cb1ed486d72f479f4348aff4c94c3f43bcb337d65c7ac4f8f3227218bec8", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "0a48cb1ed486d72f479f4348aff4c94c3f43bcb337d65c7ac4f8f3227218bec8", kill_on_drop: false }`
[INFO] [stdout] 0a48cb1ed486d72f479f4348aff4c94c3f43bcb337d65c7ac4f8f3227218bec8
[INFO] testing mwalczyk/graphics_utils against try#b642703cf9526da1e72c0b6755753b939a9c6b6d for pr-125151
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmwalczyk%2Fgraphics_utils" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'...
[INFO] [stderr] done.
[INFO] validating manifest of git repo https://github.com/mwalczyk/graphics_utils on toolchain b642703cf9526da1e72c0b6755753b939a9c6b6d
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] started tweaking git repo https://github.com/mwalczyk/graphics_utils
[INFO] finished tweaking git repo https://github.com/mwalczyk/graphics_utils
[INFO] tweaked toml for git repo https://github.com/mwalczyk/graphics_utils written to /workspace/builds/worker-2-tc2/source/Cargo.toml
[INFO] crate git repo https://github.com/mwalczyk/graphics_utils already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] [stdout] cb417fdebb658cdfcbe7d0a0fdc0872f47dfc04c0bf9fc7a6918497305b6e75a
[INFO] running `Command { std: "docker" "start" "-a" "cb417fdebb658cdfcbe7d0a0fdc0872f47dfc04c0bf9fc7a6918497305b6e75a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "cb417fdebb658cdfcbe7d0a0fdc0872f47dfc04c0bf9fc7a6918497305b6e75a", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "cb417fdebb658cdfcbe7d0a0fdc0872f47dfc04c0bf9fc7a6918497305b6e75a", kill_on_drop: false }`
[INFO] [stdout] cb417fdebb658cdfcbe7d0a0fdc0872f47dfc04c0bf9fc7a6918497305b6e75a
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "build" "--frozen" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] da3e92a02742d291e4f53a167e714dc8c5552fb13667f41ed1c202f7f3efc55f
[INFO] running `Command { std: "docker" "start" "-a" "da3e92a02742d291e4f53a167e714dc8c5552fb13667f41ed1c202f7f3efc55f", kill_on_drop: false }`
[INFO] [stderr]    Compiling autocfg v0.1.6
[INFO] [stderr]    Compiling cfg-if v0.1.9
[INFO] [stderr]    Compiling libc v0.2.62
[INFO] [stderr]    Compiling semver-parser v0.7.0
[INFO] [stderr]    Compiling rand_core v0.4.2
[INFO] [stderr]    Compiling arrayvec v0.4.11
[INFO] [stderr]    Compiling lazy_static v1.4.0
[INFO] [stderr]    Compiling nodrop v0.1.13
[INFO] [stderr]    Compiling byteorder v1.3.2
[INFO] [stderr]    Compiling scopeguard v1.0.0
[INFO] [stderr]    Compiling rayon-core v1.6.0
[INFO] [stderr]    Compiling log v0.4.8
[INFO] [stderr]    Compiling khronos_api v3.1.0
[INFO] [stderr]    Compiling bitflags v1.1.0
[INFO] [stderr]    Compiling adler32 v1.0.4
[INFO] [stderr]    Compiling xml-rs v0.8.0
[INFO] [stderr]    Compiling either v1.5.3
[INFO] [stderr]    Compiling crossbeam-utils v0.6.6
[INFO] [stderr]    Compiling color_quant v1.0.1
[INFO] [stderr]    Compiling inflate v0.3.4
[INFO] [stderr]    Compiling lzw v0.10.0
[INFO] [stderr]    Compiling rand_core v0.3.1
[INFO] [stderr]    Compiling semver v0.9.0
[INFO] [stderr]    Compiling rand_isaac v0.1.1
[INFO] [stderr]    Compiling rand_hc v0.1.0
[INFO] [stderr]    Compiling num-traits v0.2.8
[INFO] [stderr]    Compiling num-integer v0.1.41
[INFO] [stderr]    Compiling num-iter v0.1.39
[INFO] [stderr]    Compiling rand_chacha v0.1.1
[INFO] [stderr]    Compiling rustc_version v0.2.3
[INFO] [stderr]    Compiling crossbeam-queue v0.1.2
[INFO] [stderr]    Compiling rand_pcg v0.1.2
[INFO] [stderr]    Compiling rand v0.6.5
[INFO] [stderr]    Compiling gif v0.9.2
[INFO] [stderr]    Compiling gl_generator v0.13.1
[INFO] [stderr]    Compiling rand_xorshift v0.1.1
[INFO] [stderr]    Compiling memoffset v0.5.1
[INFO] [stderr]    Compiling rand_jitter v0.1.4
[INFO] [stderr]    Compiling cgmath v0.17.0
[INFO] [stderr]    Compiling deflate v0.7.20
[INFO] [stderr]    Compiling scoped_threadpool v0.1.9
[INFO] [stderr]    Compiling num_cpus v1.10.1
[INFO] [stderr]    Compiling rand_os v0.1.3
[INFO] [stderr]    Compiling rand v0.4.6
[INFO] [stderr]    Compiling crossbeam-epoch v0.7.2
[INFO] [stderr]    Compiling crossbeam-deque v0.7.1
[INFO] [stderr]    Compiling gl v0.13.0
[INFO] [stderr]    Compiling num-traits v0.1.43
[INFO] [stderr]    Compiling approx v0.3.2
[INFO] [stderr]    Compiling rand v0.3.23
[INFO] [stderr]    Compiling enum_primitive v0.1.1
[INFO] [stderr]    Compiling num-rational v0.1.42
[INFO] [stderr]    Compiling rayon v1.2.0
[INFO] [stderr]    Compiling png v0.11.0
[INFO] [stderr]    Compiling jpeg-decoder v0.1.16
[INFO] [stderr]    Compiling image v0.18.0
[INFO] [stderr]    Compiling noise v0.5.1
[INFO] [stderr]    Compiling graphics_utils v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/mesh.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `NoiseFn`, `Perlin`
[INFO] [stdout]  --> src/polyline.rs:2:13
[INFO] [stdout]   |
[INFO] [stdout] 2 | use noise::{NoiseFn, Perlin};
[INFO] [stdout]   |             ^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::max`
[INFO] [stdout]  --> src/polyline.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::cmp::max;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around index expression
[INFO] [stdout]    --> src/polyline.rs:262:37
[INFO] [stdout]     |
[INFO] [stdout] 262 |         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stdout]     |                                     ^         ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 262 -         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stdout] 262 +         Segment::new(&self.vertices[index + 0], &self.vertices[(index + 1)])
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around index expression
[INFO] [stdout]    --> src/polyline.rs:262:66
[INFO] [stdout]     |
[INFO] [stdout] 262 |         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stdout]     |                                                                  ^         ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 262 -         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stdout] 262 +         Segment::new(&self.vertices[(index + 0)], &self.vertices[index + 1])
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `sc` is never read
[INFO] [stdout]   --> src/polyline.rs:67:17
[INFO] [stdout]    |
[INFO] [stdout] 67 |         let mut sc: f32 = 0.0;
[INFO] [stdout]    |                 ^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `sN` is never read
[INFO] [stdout]   --> src/polyline.rs:68:17
[INFO] [stdout]    |
[INFO] [stdout] 68 |         let mut sN: f32 = 0.0;
[INFO] [stdout]    |                 ^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `tc` is never read
[INFO] [stdout]   --> src/polyline.rs:70:17
[INFO] [stdout]    |
[INFO] [stdout] 70 |         let mut tc: f32 = 0.0;
[INFO] [stdout]    |                 ^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `tN` is never read
[INFO] [stdout]   --> src/polyline.rs:71:17
[INFO] [stdout]    |
[INFO] [stdout] 71 |         let mut tN: f32 = 0.0;
[INFO] [stdout]    |                 ^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `circle_normal`
[INFO] [stdout]    --> src/polyline.rs:321:13
[INFO] [stdout]     |
[INFO] [stdout] 321 |         let circle_normal: Vector3<f32> = Vector3::unit_y();
[INFO] [stdout]     |             ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_circle_normal`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `circle_center`
[INFO] [stdout]    --> src/polyline.rs:322:13
[INFO] [stdout]     |
[INFO] [stdout] 322 |         let circle_center: Vector3<f32> = Vector3::zero();
[INFO] [stdout]     |             ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_circle_center`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_memory_size` is never used
[INFO] [stdout]   --> src/mesh.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl Attribute {
[INFO] [stdout]    | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 26 |     pub fn get_memory_size(&self) -> usize {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `Intersection` is never used
[INFO] [stdout]  --> src/polyline.rs:6:6
[INFO] [stdout]   |
[INFO] [stdout] 6 | type Intersection = (Vector3<f32>, f32, f32);
[INFO] [stdout]   |      ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `D` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:65:13
[INFO] [stdout]    |
[INFO] [stdout] 65 |         let D = a * c - b * b; // always >= 0
[INFO] [stdout]    |             ^ help: convert the identifier to snake case: `d`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `sN` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:68:17
[INFO] [stdout]    |
[INFO] [stdout] 68 |         let mut sN: f32 = 0.0;
[INFO] [stdout]    |                 ^^ help: convert the identifier to snake case: `s_n`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `sD` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:69:17
[INFO] [stdout]    |
[INFO] [stdout] 69 |         let mut sD = D; // sc = sN / sD, default sD = D >= 0
[INFO] [stdout]    |                 ^^ help: convert the identifier to snake case: `s_d`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `tN` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:71:17
[INFO] [stdout]    |
[INFO] [stdout] 71 |         let mut tN: f32 = 0.0;
[INFO] [stdout]    |                 ^^ help: convert the identifier to snake case: `t_n`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `tD` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:72:17
[INFO] [stdout]    |
[INFO] [stdout] 72 |         let mut tD = D; // tc = tN / tD, default tD = D >= 0
[INFO] [stdout]    |                 ^^ help: convert the identifier to snake case: `t_d`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:131:88
[INFO] [stdout]     |
[INFO] [stdout] 131 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout]     = note: `#[warn(temporary_cstring_as_ptr)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:138:88
[INFO] [stdout]     |
[INFO] [stdout] 138 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:145:88
[INFO] [stdout]     |
[INFO] [stdout] 145 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:152:88
[INFO] [stdout]     |
[INFO] [stdout] 152 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:159:88
[INFO] [stdout]     |
[INFO] [stdout] 159 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:166:88
[INFO] [stdout]     |
[INFO] [stdout] 166 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:173:88
[INFO] [stdout]     |
[INFO] [stdout] 173 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:180:88
[INFO] [stdout]     |
[INFO] [stdout] 180 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:187:88
[INFO] [stdout]     |
[INFO] [stdout] 187 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:194:88
[INFO] [stdout]     |
[INFO] [stdout] 194 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:201:88
[INFO] [stdout]     |
[INFO] [stdout] 201 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:208:88
[INFO] [stdout]     |
[INFO] [stdout] 208 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:215:88
[INFO] [stdout]     |
[INFO] [stdout] 215 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 31 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `dev` profile [unoptimized + debuginfo] target(s) in 4.96s
[INFO] running `Command { std: "docker" "inspect" "da3e92a02742d291e4f53a167e714dc8c5552fb13667f41ed1c202f7f3efc55f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "da3e92a02742d291e4f53a167e714dc8c5552fb13667f41ed1c202f7f3efc55f", kill_on_drop: false }`
[INFO] [stdout] da3e92a02742d291e4f53a167e714dc8c5552fb13667f41ed1c202f7f3efc55f
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }`
[INFO] [stdout] 63c6ad9219f1e445719eb3ab6b154ea9476d0ca61723a1d2f221fef6f54b111f
[INFO] running `Command { std: "docker" "start" "-a" "63c6ad9219f1e445719eb3ab6b154ea9476d0ca61723a1d2f221fef6f54b111f", kill_on_drop: false }`
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/mesh.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `NoiseFn`, `Perlin`
[INFO] [stdout]  --> src/polyline.rs:2:13
[INFO] [stdout]   |
[INFO] [stdout] 2 | use noise::{NoiseFn, Perlin};
[INFO] [stdout]   |             ^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::max`
[INFO] [stdout]  --> src/polyline.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::cmp::max;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around index expression
[INFO] [stdout]    --> src/polyline.rs:262:37
[INFO] [stdout]     |
[INFO] [stdout] 262 |         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stdout]     |                                     ^         ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 262 -         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stdout] 262 +         Segment::new(&self.vertices[index + 0], &self.vertices[(index + 1)])
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around index expression
[INFO] [stdout]    --> src/polyline.rs:262:66
[INFO] [stdout]     |
[INFO] [stdout] 262 |         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stdout]     |                                                                  ^         ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 262 -         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stdout] 262 +         Segment::new(&self.vertices[(index + 0)], &self.vertices[index + 1])
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `sc` is never read
[INFO] [stdout]   --> src/polyline.rs:67:17
[INFO] [stdout]    |
[INFO] [stdout] 67 |         let mut sc: f32 = 0.0;
[INFO] [stdout]    |                 ^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `sN` is never read
[INFO] [stdout]   --> src/polyline.rs:68:17
[INFO] [stdout]    |
[INFO] [stdout] 68 |         let mut sN: f32 = 0.0;
[INFO] [stdout]    |                 ^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `tc` is never read
[INFO] [stdout]   --> src/polyline.rs:70:17
[INFO] [stdout]    |
[INFO] [stdout] 70 |         let mut tc: f32 = 0.0;
[INFO] [stdout]    |                 ^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `tN` is never read
[INFO] [stdout]   --> src/polyline.rs:71:17
[INFO] [stdout]    |
[INFO] [stdout] 71 |         let mut tN: f32 = 0.0;
[INFO] [stdout]    |                 ^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `circle_normal`
[INFO] [stdout]    --> src/polyline.rs:321:13
[INFO] [stdout]     |
[INFO] [stdout] 321 |         let circle_normal: Vector3<f32> = Vector3::unit_y();
[INFO] [stdout]     |             ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_circle_normal`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `circle_center`
[INFO] [stdout]    --> src/polyline.rs:322:13
[INFO] [stdout]     |
[INFO] [stdout] 322 |         let circle_center: Vector3<f32> = Vector3::zero();
[INFO] [stdout]     |             ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_circle_center`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_memory_size` is never used
[INFO] [stdout]   --> src/mesh.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl Attribute {
[INFO] [stdout]    | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 26 |     pub fn get_memory_size(&self) -> usize {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `Intersection` is never used
[INFO] [stdout]  --> src/polyline.rs:6:6
[INFO] [stdout]   |
[INFO] [stdout] 6 | type Intersection = (Vector3<f32>, f32, f32);
[INFO] [stdout]   |      ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `D` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:65:13
[INFO] [stdout]    |
[INFO] [stdout] 65 |         let D = a * c - b * b; // always >= 0
[INFO] [stdout]    |             ^ help: convert the identifier to snake case: `d`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `sN` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:68:17
[INFO] [stdout]    |
[INFO] [stdout] 68 |         let mut sN: f32 = 0.0;
[INFO] [stdout]    |                 ^^ help: convert the identifier to snake case: `s_n`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `sD` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:69:17
[INFO] [stdout]    |
[INFO] [stdout] 69 |         let mut sD = D; // sc = sN / sD, default sD = D >= 0
[INFO] [stdout]    |                 ^^ help: convert the identifier to snake case: `s_d`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `tN` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:71:17
[INFO] [stdout]    |
[INFO] [stdout] 71 |         let mut tN: f32 = 0.0;
[INFO] [stdout]    |                 ^^ help: convert the identifier to snake case: `t_n`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `tD` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:72:17
[INFO] [stdout]    |
[INFO] [stdout] 72 |         let mut tD = D; // tc = tN / tD, default tD = D >= 0
[INFO] [stdout]    |                 ^^ help: convert the identifier to snake case: `t_d`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:131:88
[INFO] [stdout]     |
[INFO] [stdout] 131 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout]     = note: `#[warn(temporary_cstring_as_ptr)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:138:88
[INFO] [stdout]     |
[INFO] [stdout] 138 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:145:88
[INFO] [stdout]     |
[INFO] [stdout] 145 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:152:88
[INFO] [stdout]     |
[INFO] [stdout] 152 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:159:88
[INFO] [stdout]     |
[INFO] [stdout] 159 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:166:88
[INFO] [stdout]     |
[INFO] [stdout] 166 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:173:88
[INFO] [stdout]     |
[INFO] [stdout] 173 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:180:88
[INFO] [stdout]     |
[INFO] [stdout] 180 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:187:88
[INFO] [stdout]     |
[INFO] [stdout] 187 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:194:88
[INFO] [stdout]     |
[INFO] [stdout] 194 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:201:88
[INFO] [stdout]     |
[INFO] [stdout] 201 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:208:88
[INFO] [stdout]     |
[INFO] [stdout] 208 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]    Compiling graphics_utils v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:215:88
[INFO] [stdout]     |
[INFO] [stdout] 215 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 31 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/mesh.rs:5:5
[INFO] [stdout]   |
[INFO] [stdout] 5 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused imports: `NoiseFn`, `Perlin`
[INFO] [stdout]  --> src/polyline.rs:2:13
[INFO] [stdout]   |
[INFO] [stdout] 2 | use noise::{NoiseFn, Perlin};
[INFO] [stdout]   |             ^^^^^^^  ^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::cmp::max`
[INFO] [stdout]  --> src/polyline.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::cmp::max;
[INFO] [stdout]   |     ^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around index expression
[INFO] [stdout]    --> src/polyline.rs:262:37
[INFO] [stdout]     |
[INFO] [stdout] 262 |         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stdout]     |                                     ^         ^
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 262 -         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stdout] 262 +         Segment::new(&self.vertices[index + 0], &self.vertices[(index + 1)])
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unnecessary parentheses around index expression
[INFO] [stdout]    --> src/polyline.rs:262:66
[INFO] [stdout]     |
[INFO] [stdout] 262 |         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stdout]     |                                                                  ^         ^
[INFO] [stdout]     |
[INFO] [stdout] help: remove these parentheses
[INFO] [stdout]     |
[INFO] [stdout] 262 -         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stdout] 262 +         Segment::new(&self.vertices[(index + 0)], &self.vertices[index + 1])
[INFO] [stdout]     |
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/half_edge.rs:692:13
[INFO] [stdout]     |
[INFO] [stdout] 692 |         let mut adjacent_to_face_0 = half_edge_mesh.get_adjacent_half_edges_to_face(FaceIndex(0));
[INFO] [stdout]     |             ----^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/half_edge.rs:693:13
[INFO] [stdout]     |
[INFO] [stdout] 693 |         let mut adjacent_to_face_1 = half_edge_mesh.get_adjacent_half_edges_to_face(FaceIndex(1));
[INFO] [stdout]     |             ----^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/half_edge.rs:703:13
[INFO] [stdout]     |
[INFO] [stdout] 703 |         let mut vertices_around_face_0 = half_edge_mesh.get_adjacent_vertices_to_face(FaceIndex(0));
[INFO] [stdout]     |             ----^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable does not need to be mutable
[INFO] [stdout]    --> src/half_edge.rs:704:13
[INFO] [stdout]     |
[INFO] [stdout] 704 |         let mut vertices_around_face_1 = half_edge_mesh.get_adjacent_vertices_to_face(FaceIndex(1));
[INFO] [stdout]     |             ----^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]     |             |
[INFO] [stdout]     |             help: remove this `mut`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `sc` is never read
[INFO] [stdout]   --> src/polyline.rs:67:17
[INFO] [stdout]    |
[INFO] [stdout] 67 |         let mut sc: f32 = 0.0;
[INFO] [stdout]    |                 ^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout]    = note: `#[warn(unused_assignments)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `sN` is never read
[INFO] [stdout]   --> src/polyline.rs:68:17
[INFO] [stdout]    |
[INFO] [stdout] 68 |         let mut sN: f32 = 0.0;
[INFO] [stdout]    |                 ^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `tc` is never read
[INFO] [stdout]   --> src/polyline.rs:70:17
[INFO] [stdout]    |
[INFO] [stdout] 70 |         let mut tc: f32 = 0.0;
[INFO] [stdout]    |                 ^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: value assigned to `tN` is never read
[INFO] [stdout]   --> src/polyline.rs:71:17
[INFO] [stdout]    |
[INFO] [stdout] 71 |         let mut tN: f32 = 0.0;
[INFO] [stdout]    |                 ^^
[INFO] [stdout]    |
[INFO] [stdout]    = help: maybe it is overwritten before being read?
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `circle_normal`
[INFO] [stdout]    --> src/polyline.rs:321:13
[INFO] [stdout]     |
[INFO] [stdout] 321 |         let circle_normal: Vector3<f32> = Vector3::unit_y();
[INFO] [stdout]     |             ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_circle_normal`
[INFO] [stdout]     |
[INFO] [stdout]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused variable: `circle_center`
[INFO] [stdout]    --> src/polyline.rs:322:13
[INFO] [stdout]     |
[INFO] [stdout] 322 |         let circle_center: Vector3<f32> = Vector3::zero();
[INFO] [stdout]     |             ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_circle_center`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: method `get_memory_size` is never used
[INFO] [stdout]   --> src/mesh.rs:26:12
[INFO] [stdout]    |
[INFO] [stdout] 16 | impl Attribute {
[INFO] [stdout]    | -------------- method in this implementation
[INFO] [stdout] ...
[INFO] [stdout] 26 |     pub fn get_memory_size(&self) -> usize {
[INFO] [stdout]    |            ^^^^^^^^^^^^^^^
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(dead_code)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: type alias `Intersection` is never used
[INFO] [stdout]  --> src/polyline.rs:6:6
[INFO] [stdout]   |
[INFO] [stdout] 6 | type Intersection = (Vector3<f32>, f32, f32);
[INFO] [stdout]   |      ^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `D` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:65:13
[INFO] [stdout]    |
[INFO] [stdout] 65 |         let D = a * c - b * b; // always >= 0
[INFO] [stdout]    |             ^ help: convert the identifier to snake case: `d`
[INFO] [stdout]    |
[INFO] [stdout]    = note: `#[warn(non_snake_case)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `sN` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:68:17
[INFO] [stdout]    |
[INFO] [stdout] 68 |         let mut sN: f32 = 0.0;
[INFO] [stdout]    |                 ^^ help: convert the identifier to snake case: `s_n`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `sD` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:69:17
[INFO] [stdout]    |
[INFO] [stdout] 69 |         let mut sD = D; // sc = sN / sD, default sD = D >= 0
[INFO] [stdout]    |                 ^^ help: convert the identifier to snake case: `s_d`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `tN` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:71:17
[INFO] [stdout]    |
[INFO] [stdout] 71 |         let mut tN: f32 = 0.0;
[INFO] [stdout]    |                 ^^ help: convert the identifier to snake case: `t_n`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: variable `tD` should have a snake case name
[INFO] [stdout]   --> src/polyline.rs:72:17
[INFO] [stdout]    |
[INFO] [stdout] 72 |         let mut tD = D; // tc = tN / tD, default tD = D >= 0
[INFO] [stdout]    |                 ^^ help: convert the identifier to snake case: `t_d`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:131:88
[INFO] [stdout]     |
[INFO] [stdout] 131 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout]     = note: `#[warn(temporary_cstring_as_ptr)]` on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:138:88
[INFO] [stdout]     |
[INFO] [stdout] 138 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:145:88
[INFO] [stdout]     |
[INFO] [stdout] 145 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:152:88
[INFO] [stdout]     |
[INFO] [stdout] 152 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:159:88
[INFO] [stdout]     |
[INFO] [stdout] 159 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:166:88
[INFO] [stdout]     |
[INFO] [stdout] 166 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:173:88
[INFO] [stdout]     |
[INFO] [stdout] 173 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:180:88
[INFO] [stdout]     |
[INFO] [stdout] 180 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:187:88
[INFO] [stdout]     |
[INFO] [stdout] 187 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:194:88
[INFO] [stdout]     |
[INFO] [stdout] 194 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:201:88
[INFO] [stdout]     |
[INFO] [stdout] 201 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:208:88
[INFO] [stdout]     |
[INFO] [stdout] 208 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: getting the inner pointer of a temporary `CString`
[INFO] [stdout]    --> src/program.rs:215:88
[INFO] [stdout]     |
[INFO] [stdout] 215 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stdout]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stdout]     |                                                            |
[INFO] [stdout]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stdout]     |
[INFO] [stdout]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stdout]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: 35 warnings emitted
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.82s
[INFO] running `Command { std: "docker" "inspect" "63c6ad9219f1e445719eb3ab6b154ea9476d0ca61723a1d2f221fef6f54b111f", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "63c6ad9219f1e445719eb3ab6b154ea9476d0ca61723a1d2f221fef6f54b111f", kill_on_drop: false }`
[INFO] [stdout] 63c6ad9219f1e445719eb3ab6b154ea9476d0ca61723a1d2f221fef6f54b111f
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:59a85a07ab18ca8720692f8e61effa1c651d9e2ca591e072c2b212bb91a6b8b5" "/opt/rustwide/cargo-home/bin/cargo" "+b642703cf9526da1e72c0b6755753b939a9c6b6d" "test" "--frozen", kill_on_drop: false }`
[INFO] [stdout] b23e32a57b1a50ae8cbd3d568ab4cf4eef6372ef05ad5a04fda32f97c1b4ec3b
[INFO] running `Command { std: "docker" "start" "-a" "b23e32a57b1a50ae8cbd3d568ab4cf4eef6372ef05ad5a04fda32f97c1b4ec3b", kill_on_drop: false }`
[INFO] [stderr] warning: unused import: `std::collections::HashMap`
[INFO] [stderr]  --> src/mesh.rs:5:5
[INFO] [stderr]   |
[INFO] [stderr] 5 | use std::collections::HashMap;
[INFO] [stderr]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]   |
[INFO] [stderr]   = note: `#[warn(unused_imports)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused imports: `NoiseFn`, `Perlin`
[INFO] [stderr]  --> src/polyline.rs:2:13
[INFO] [stderr]   |
[INFO] [stderr] 2 | use noise::{NoiseFn, Perlin};
[INFO] [stderr]   |             ^^^^^^^  ^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unused import: `std::cmp::max`
[INFO] [stderr]  --> src/polyline.rs:3:5
[INFO] [stderr]   |
[INFO] [stderr] 3 | use std::cmp::max;
[INFO] [stderr]   |     ^^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around index expression
[INFO] [stderr]    --> src/polyline.rs:262:37
[INFO] [stderr]     |
[INFO] [stderr] 262 |         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stderr]     |                                     ^         ^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]     |
[INFO] [stderr] 262 -         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stderr] 262 +         Segment::new(&self.vertices[index + 0], &self.vertices[(index + 1)])
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around index expression
[INFO] [stderr]    --> src/polyline.rs:262:66
[INFO] [stderr]     |
[INFO] [stderr] 262 |         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stderr]     |                                                                  ^         ^
[INFO] [stderr]     |
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]     |
[INFO] [stderr] 262 -         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stderr] 262 +         Segment::new(&self.vertices[(index + 0)], &self.vertices[index + 1])
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: value assigned to `sc` is never read
[INFO] [stderr]   --> src/polyline.rs:67:17
[INFO] [stderr]    |
[INFO] [stderr] 67 |         let mut sc: f32 = 0.0;
[INFO] [stderr]    |                 ^^
[INFO] [stderr]    |
[INFO] [stderr]    = help: maybe it is overwritten before being read?
[INFO] [stderr]    = note: `#[warn(unused_assignments)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: value assigned to `sN` is never read
[INFO] [stderr]   --> src/polyline.rs:68:17
[INFO] [stderr]    |
[INFO] [stderr] 68 |         let mut sN: f32 = 0.0;
[INFO] [stderr]    |                 ^^
[INFO] [stderr]    |
[INFO] [stderr]    = help: maybe it is overwritten before being read?
[INFO] [stderr] 
[INFO] [stderr] warning: value assigned to `tc` is never read
[INFO] [stderr]   --> src/polyline.rs:70:17
[INFO] [stderr]    |
[INFO] [stderr] 70 |         let mut tc: f32 = 0.0;
[INFO] [stderr]    |                 ^^
[INFO] [stderr]    |
[INFO] [stderr]    = help: maybe it is overwritten before being read?
[INFO] [stderr] 
[INFO] [stderr] warning: value assigned to `tN` is never read
[INFO] [stderr]   --> src/polyline.rs:71:17
[INFO] [stderr]    |
[INFO] [stderr] 71 |         let mut tN: f32 = 0.0;
[INFO] [stderr]    |                 ^^
[INFO] [stderr]    |
[INFO] [stderr]    = help: maybe it is overwritten before being read?
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `circle_normal`
[INFO] [stderr]    --> src/polyline.rs:321:13
[INFO] [stderr]     |
[INFO] [stderr] 321 |         let circle_normal: Vector3<f32> = Vector3::unit_y();
[INFO] [stderr]     |             ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_circle_normal`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_variables)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: unused variable: `circle_center`
[INFO] [stderr]    --> src/polyline.rs:322:13
[INFO] [stderr]     |
[INFO] [stderr] 322 |         let circle_center: Vector3<f32> = Vector3::zero();
[INFO] [stderr]     |             ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_circle_center`
[INFO] [stderr] 
[INFO] [stderr] warning: method `get_memory_size` is never used
[INFO] [stderr]   --> src/mesh.rs:26:12
[INFO] [stderr]    |
[INFO] [stderr] 16 | impl Attribute {
[INFO] [stderr]    | -------------- method in this implementation
[INFO] [stderr] ...
[INFO] [stderr] 26 |     pub fn get_memory_size(&self) -> usize {
[INFO] [stderr]    |            ^^^^^^^^^^^^^^^
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(dead_code)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: type alias `Intersection` is never used
[INFO] [stderr]  --> src/polyline.rs:6:6
[INFO] [stderr]   |
[INFO] [stderr] 6 | type Intersection = (Vector3<f32>, f32, f32);
[INFO] [stderr]   |      ^^^^^^^^^^^^
[INFO] [stderr] 
[INFO] [stderr] warning: variable `D` should have a snake case name
[INFO] [stderr]   --> src/polyline.rs:65:13
[INFO] [stderr]    |
[INFO] [stderr] 65 |         let D = a * c - b * b; // always >= 0
[INFO] [stderr]    |             ^ help: convert the identifier to snake case: `d`
[INFO] [stderr]    |
[INFO] [stderr]    = note: `#[warn(non_snake_case)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: variable `sN` should have a snake case name
[INFO] [stderr]   --> src/polyline.rs:68:17
[INFO] [stderr]    |
[INFO] [stderr] 68 |         let mut sN: f32 = 0.0;
[INFO] [stderr]    |                 ^^ help: convert the identifier to snake case: `s_n`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `sD` should have a snake case name
[INFO] [stderr]   --> src/polyline.rs:69:17
[INFO] [stderr]    |
[INFO] [stderr] 69 |         let mut sD = D; // sc = sN / sD, default sD = D >= 0
[INFO] [stderr]    |                 ^^ help: convert the identifier to snake case: `s_d`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `tN` should have a snake case name
[INFO] [stderr]   --> src/polyline.rs:71:17
[INFO] [stderr]    |
[INFO] [stderr] 71 |         let mut tN: f32 = 0.0;
[INFO] [stderr]    |                 ^^ help: convert the identifier to snake case: `t_n`
[INFO] [stderr] 
[INFO] [stderr] warning: variable `tD` should have a snake case name
[INFO] [stderr]   --> src/polyline.rs:72:17
[INFO] [stderr]    |
[INFO] [stderr] 72 |         let mut tD = D; // tc = tN / tD, default tD = D >= 0
[INFO] [stderr]    |                 ^^ help: convert the identifier to snake case: `t_d`
[INFO] [stderr] 
[INFO] [stderr] warning: getting the inner pointer of a temporary `CString`
[INFO] [stderr]    --> src/program.rs:131:88
[INFO] [stderr]     |
[INFO] [stderr] 131 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stderr]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stderr]     |                                                            |
[INFO] [stderr]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stderr]     |
[INFO] [stderr]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stderr]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stderr]     = note: `#[warn(temporary_cstring_as_ptr)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: getting the inner pointer of a temporary `CString`
[INFO] [stderr]    --> src/program.rs:138:88
[INFO] [stderr]     |
[INFO] [stderr] 138 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stderr]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stderr]     |                                                            |
[INFO] [stderr]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stderr]     |
[INFO] [stderr]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stderr]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stderr] 
[INFO] [stderr] warning: getting the inner pointer of a temporary `CString`
[INFO] [stderr]    --> src/program.rs:145:88
[INFO] [stderr]     |
[INFO] [stderr] 145 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stderr]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stderr]     |                                                            |
[INFO] [stderr]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stderr]     |
[INFO] [stderr]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stderr]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stderr] 
[INFO] [stderr] warning: getting the inner pointer of a temporary `CString`
[INFO] [stderr]    --> src/program.rs:152:88
[INFO] [stderr]     |
[INFO] [stderr] 152 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stderr]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stderr]     |                                                            |
[INFO] [stderr]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stderr]     |
[INFO] [stderr]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stderr]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stderr] 
[INFO] [stderr] warning: getting the inner pointer of a temporary `CString`
[INFO] [stderr]    --> src/program.rs:159:88
[INFO] [stderr]     |
[INFO] [stderr] 159 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stderr]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stderr]     |                                                            |
[INFO] [stderr]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stderr]     |
[INFO] [stderr]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stderr]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stderr] 
[INFO] [stderr] warning: getting the inner pointer of a temporary `CString`
[INFO] [stderr]    --> src/program.rs:166:88
[INFO] [stderr]     |
[INFO] [stderr] 166 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stderr]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stderr]     |                                                            |
[INFO] [stderr]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stderr]     |
[INFO] [stderr]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stderr]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stderr] 
[INFO] [stderr] warning: getting the inner pointer of a temporary `CString`
[INFO] [stderr]    --> src/program.rs:173:88
[INFO] [stderr]     |
[INFO] [stderr] 173 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stderr]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stderr]     |                                                            |
[INFO] [stderr]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stderr]     |
[INFO] [stderr]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stderr]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stderr] 
[INFO] [stderr] warning: getting the inner pointer of a temporary `CString`
[INFO] [stderr]    --> src/program.rs:180:88
[INFO] [stderr]     |
[INFO] [stderr] 180 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stderr]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stderr]     |                                                            |
[INFO] [stderr]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stderr]     |
[INFO] [stderr]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stderr]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stderr] 
[INFO] [stderr] warning: getting the inner pointer of a temporary `CString`
[INFO] [stderr]    --> src/program.rs:187:88
[INFO] [stderr]     |
[INFO] [stderr] 187 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stderr]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stderr]     |                                                            |
[INFO] [stderr]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stderr]     |
[INFO] [stderr]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stderr]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stderr] 
[INFO] [stderr] warning: getting the inner pointer of a temporary `CString`
[INFO] [stderr]    --> src/program.rs:194:88
[INFO] [stderr]     |
[INFO] [stderr] 194 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stderr]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stderr]     |                                                            |
[INFO] [stderr]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stderr]     |
[INFO] [stderr]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stderr]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stderr] 
[INFO] [stderr] warning: getting the inner pointer of a temporary `CString`
[INFO] [stderr]    --> src/program.rs:201:88
[INFO] [stderr]     |
[INFO] [stderr] 201 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stderr]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stderr]     |                                                            |
[INFO] [stderr]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stderr]     |
[INFO] [stderr]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stderr]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stderr] 
[INFO] [stderr] warning: getting the inner pointer of a temporary `CString`
[INFO] [stderr]    --> src/program.rs:208:88
[INFO] [stderr]     |
[INFO] [stderr] 208 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stderr]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stderr]     |                                                            |
[INFO] [stderr]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stderr]     |
[INFO] [stderr]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stderr]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stderr] 
[INFO] [stderr] warning: getting the inner pointer of a temporary `CString`
[INFO] [stderr]    --> src/program.rs:215:88
[INFO] [stderr]     |
[INFO] [stderr] 215 |             let location = gl::GetUniformLocation(self.id, CString::new(name).unwrap().as_ptr());
[INFO] [stderr]     |                                                            --------------------------- ^^^^^^ this pointer will be invalid
[INFO] [stderr]     |                                                            |
[INFO] [stderr]     |                                                            this `CString` is deallocated at the end of the statement, bind it to a variable to extend its lifetime
[INFO] [stderr]     |
[INFO] [stderr]     = note: pointers do not have a lifetime; when calling `as_ptr` the `CString` will be deallocated at the end of the statement because nothing is referencing it as far as the type system is concerned
[INFO] [stderr]     = help: for more information, see https://doc.rust-lang.org/reference/destructors.html
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/half_edge.rs:692:13
[INFO] [stderr]     |
[INFO] [stderr] 692 |         let mut adjacent_to_face_0 = half_edge_mesh.get_adjacent_half_edges_to_face(FaceIndex(0));
[INFO] [stderr]     |             ----^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |             |
[INFO] [stderr]     |             help: remove this `mut`
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_mut)]` on by default
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/half_edge.rs:693:13
[INFO] [stderr]     |
[INFO] [stderr] 693 |         let mut adjacent_to_face_1 = half_edge_mesh.get_adjacent_half_edges_to_face(FaceIndex(1));
[INFO] [stderr]     |             ----^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |             |
[INFO] [stderr]     |             help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/half_edge.rs:703:13
[INFO] [stderr]     |
[INFO] [stderr] 703 |         let mut vertices_around_face_0 = half_edge_mesh.get_adjacent_vertices_to_face(FaceIndex(0));
[INFO] [stderr]     |             ----^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |             |
[INFO] [stderr]     |             help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: variable does not need to be mutable
[INFO] [stderr]    --> src/half_edge.rs:704:13
[INFO] [stderr]     |
[INFO] [stderr] 704 |         let mut vertices_around_face_1 = half_edge_mesh.get_adjacent_vertices_to_face(FaceIndex(1));
[INFO] [stderr]     |             ----^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stderr]     |             |
[INFO] [stderr]     |             help: remove this `mut`
[INFO] [stderr] 
[INFO] [stderr] warning: `graphics_utils` (lib) generated 31 warnings (run `cargo fix --lib -p graphics_utils` to apply 5 suggestions)
[INFO] [stderr] warning: `graphics_utils` (lib test) generated 35 warnings (31 duplicates) (run `cargo fix --lib -p graphics_utils --tests` to apply 4 suggestions)
[INFO] [stderr]     Finished `test` profile [unoptimized + debuginfo] target(s) in 0.04s
[INFO] [stderr]      Running unittests src/lib.rs (/opt/rustwide/target/debug/deps/graphics_utils-ae14a99366a12d60)
[INFO] [stdout] 
[INFO] [stdout] running 6 tests
[INFO] [stdout] test half_edge::tests::test_from_faces ... ok
[INFO] [stdout] test polyline::tests::test_distance_between_0 ... ok
[INFO] [stdout] test polyline::tests::test_distance_between_1 ... ok
[INFO] [stdout] test polyline::tests::test_point_at_0 ... ok
[INFO] [stdout] test polyline::tests::test_point_at_1 ... ok
[INFO] [stdout] test polyline::tests::test_point_at_2 ... ok
[INFO] [stdout] 
[INFO] [stdout] test result: ok. 6 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s
[INFO] [stdout] 
[INFO] [stderr]    Doc-tests graphics_utils
[INFO] [stderr] warning: unnecessary parentheses around index expression
[INFO] [stderr]    --> src/polyline.rs:262:37
[INFO] [stderr]     |
[INFO] [stderr] 262 |         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stderr]     |                                     ^         ^
[INFO] [stderr]     |
[INFO] [stderr]     = note: `#[warn(unused_parens)]` on by default
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]     |
[INFO] [stderr] 262 -         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stderr] 262 +         Segment::new(&self.vertices[index + 0], &self.vertices[(index + 1)])
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: unnecessary parentheses around index expression
[INFO] [stderr]    --> src/polyline.rs:262:66
[INFO] [stderr]     |
[INFO] [stderr] 262 |         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stderr]     |                                                                  ^         ^
[INFO] [stderr]     |
[INFO] [stderr] help: remove these parentheses
[INFO] [stderr]     |
[INFO] [stderr] 262 -         Segment::new(&self.vertices[(index + 0)], &self.vertices[(index + 1)])
[INFO] [stderr] 262 +         Segment::new(&self.vertices[(index + 0)], &self.vertices[index + 1])
[INFO] [stderr]     |
[INFO] [stderr] 
[INFO] [stderr] warning: 2 warnings emitted
[INFO] [stderr] 
[INFO] [stdout] 
[INFO] [stdout] running 1 test
[INFO] [stdout] test src/half_edge.rs - half_edge::get_edge_indices_for_face_indices (line 12) ... FAILED
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout] 
[INFO] [stdout] ---- src/half_edge.rs - half_edge::get_edge_indices_for_face_indices (line 12) stdout ----
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]  --> src/half_edge.rs:13:1
[INFO] [stdout]   |
[INFO] [stdout] 2 |   fn main() { #[allow(non_snake_case)] fn _doctest_main_src_half_edge_rs_12_0() {
[INFO] [stdout]   |                                                                                - help: try adding a return type: `-> [[i32; 2]; 3]`
[INFO] [stdout] 3 | / [
[INFO] [stdout] 4 | |     [0, 2],
[INFO] [stdout] 5 | |     [2, 4],
[INFO] [stdout] 6 | |     [4, 0],
[INFO] [stdout] 7 | | ]
[INFO] [stdout]   | |_^ expected `()`, found `[[{integer}; 2]; 3]`
[INFO] [stdout] 
[INFO] [stdout] error: aborting due to 1 previous error
[INFO] [stdout] 
[INFO] [stdout] For more information about this error, try `rustc --explain E0308`.
[INFO] [stdout] Couldn't compile the test.
[INFO] [stdout] 
[INFO] [stdout] failures:
[INFO] [stdout]     src/half_edge.rs - half_edge::get_edge_indices_for_face_indices (line 12)
[INFO] [stdout] 
[INFO] [stdout] test result: FAILED. 0 passed; 1 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.04s
[INFO] [stdout] 
[INFO] [stderr] error: doctest failed, to rerun pass `--doc`
[INFO] running `Command { std: "docker" "inspect" "b23e32a57b1a50ae8cbd3d568ab4cf4eef6372ef05ad5a04fda32f97c1b4ec3b", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "b23e32a57b1a50ae8cbd3d568ab4cf4eef6372ef05ad5a04fda32f97c1b4ec3b", kill_on_drop: false }`
[INFO] [stdout] b23e32a57b1a50ae8cbd3d568ab4cf4eef6372ef05ad5a04fda32f97c1b4ec3b
