[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] checking mwalczyk/graphics_utils against try#8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 for pr-82565 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmwalczyk%2Fgraphics_utils" "/workspace/builds/worker-4/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-4/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mwalczyk/graphics_utils on toolchain 8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "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-4/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: "/workspace/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 9977e1200d51b9cc089f63bb6f3aca0480ec6155eb87e357caf09b20485470c0 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "9977e1200d51b9cc089f63bb6f3aca0480ec6155eb87e357caf09b20485470c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "9977e1200d51b9cc089f63bb6f3aca0480ec6155eb87e357caf09b20485470c0", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "9977e1200d51b9cc089f63bb6f3aca0480ec6155eb87e357caf09b20485470c0", kill_on_drop: false }` [INFO] [stdout] 9977e1200d51b9cc089f63bb6f3aca0480ec6155eb87e357caf09b20485470c0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-4/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "rustops/crates-build-env@sha256:f2f6bcd4b43ebee4e173f653a26493129bdb64017c85f916b780ca7fbdbaa79d" "/opt/rustwide/cargo-home/bin/cargo" "+8e3afc79c11f48cb3acd1be5b3b7de98fe3f93a8" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 8445eddc3e4fe331b20c5aa021c0f10411cc52b38f76e14a3ba153948c8fdb24 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "8445eddc3e4fe331b20c5aa021c0f10411cc52b38f76e14a3ba153948c8fdb24", kill_on_drop: false }` [INFO] [stderr] Compiling arrayvec v0.4.11 [INFO] [stderr] Checking scopeguard v1.0.0 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling khronos_api v3.1.0 [INFO] [stderr] Compiling rayon-core v1.6.0 [INFO] [stderr] Checking either v1.5.3 [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] Checking crossbeam-utils v0.6.6 [INFO] [stderr] Checking rand_core v0.3.1 [INFO] [stderr] Checking inflate v0.3.4 [INFO] [stderr] Checking gif v0.9.2 [INFO] [stderr] Compiling cgmath v0.17.0 [INFO] [stderr] Compiling log v0.4.8 [INFO] [stderr] Checking rand_pcg v0.1.2 [INFO] [stderr] Compiling memoffset v0.5.1 [INFO] [stderr] Checking rand_os v0.1.3 [INFO] [stderr] Checking rand v0.4.6 [INFO] [stderr] Checking rand_chacha v0.1.1 [INFO] [stderr] Checking rand_xorshift v0.1.1 [INFO] [stderr] Checking rand_hc v0.1.0 [INFO] [stderr] Checking rand_isaac v0.1.1 [INFO] [stderr] Checking crossbeam-queue v0.1.2 [INFO] [stderr] Checking rand v0.6.5 [INFO] [stderr] Compiling gl_generator v0.13.1 [INFO] [stderr] Checking rand v0.3.23 [INFO] [stderr] Checking crossbeam-epoch v0.7.2 [INFO] [stderr] Checking deflate v0.7.20 [INFO] [stderr] Checking crossbeam-deque v0.7.1 [INFO] [stderr] Checking num-traits v0.1.43 [INFO] [stderr] Checking approx v0.3.2 [INFO] [stderr] Compiling gl v0.13.0 [INFO] [stderr] Checking enum_primitive v0.1.1 [INFO] [stderr] Checking rayon v1.2.0 [INFO] [stderr] Checking num-rational v0.1.42 [INFO] [stderr] Checking png v0.11.0 [INFO] [stderr] Checking jpeg-decoder v0.1.16 [INFO] [stderr] Checking image v0.18.0 [INFO] [stderr] Checking noise v0.5.1 [INFO] [stderr] Checking 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: 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: value assigned to `sc` is never read [INFO] [stdout] --> src/polyline.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let mut sc: f32 = 0.0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sN` is never read [INFO] [stdout] --> src/polyline.rs:68:13 [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:13 [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:13 [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 = 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 = Vector3::zero(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_circle_center` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sc` is never read [INFO] [stdout] --> src/polyline.rs:67:13 [INFO] [stdout] | [INFO] [stdout] 67 | let mut sc: f32 = 0.0; [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_assignments)]` on by default [INFO] [stdout] = help: maybe it is overwritten before being read? [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `sN` is never read [INFO] [stdout] --> src/polyline.rs:68:13 [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:13 [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:13 [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 = 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 = Vector3::zero(); [INFO] [stdout] | ^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_circle_center` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function is never used: `get_memory_size` [INFO] [stdout] --> src/mesh.rs:26:12 [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 is never used: `Intersection` [INFO] [stdout] --> src/polyline.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | type Intersection = (Vector3, f32, f32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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: `#[warn(temporary_cstring_as_ptr)]` on by default [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: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: 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: 29 warnings emitted [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: associated function is never used: `get_memory_size` [INFO] [stdout] --> src/mesh.rs:26:12 [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 is never used: `Intersection` [INFO] [stdout] --> src/polyline.rs:6:1 [INFO] [stdout] | [INFO] [stdout] 6 | type Intersection = (Vector3, f32, f32); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [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: `#[warn(temporary_cstring_as_ptr)]` on by default [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: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: 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: 33 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 37.41s [INFO] running `Command { std: "docker" "inspect" "8445eddc3e4fe331b20c5aa021c0f10411cc52b38f76e14a3ba153948c8fdb24", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "8445eddc3e4fe331b20c5aa021c0f10411cc52b38f76e14a3ba153948c8fdb24", kill_on_drop: false }` [INFO] [stdout] 8445eddc3e4fe331b20c5aa021c0f10411cc52b38f76e14a3ba153948c8fdb24