[INFO] cloning repository https://github.com/quephird/scintilla_rs [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/quephird/scintilla_rs" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquephird%2Fscintilla_rs", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquephird%2Fscintilla_rs'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 1cdef5beab2e7bc407ce48e2fc308fb118f3fc16 [INFO] building quephird/scintilla_rs against master#11663cd3bfefef7d34e8f0892c250bf698049392+rustflags=-Dtail-expr-drop-order for pr-134523 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fquephird%2Fscintilla_rs" "/workspace/builds/worker-5-tc1/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-5-tc1/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/quephird/scintilla_rs on toolchain 11663cd3bfefef7d34e8f0892c250bf698049392 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/quephird/scintilla_rs [INFO] finished tweaking git repo https://github.com/quephird/scintilla_rs [INFO] tweaked toml for git repo https://github.com/quephird/scintilla_rs written to /workspace/builds/worker-5-tc1/source/Cargo.toml [INFO] crate git repo https://github.com/quephird/scintilla_rs 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" "+11663cd3bfefef7d34e8f0892c250bf698049392" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] b6ba54ddf338a1b7aeeb62a46e1b8df096cca1a7a6906fc2ab0208a149275880 [INFO] running `Command { std: "docker" "start" "-a" "b6ba54ddf338a1b7aeeb62a46e1b8df096cca1a7a6906fc2ab0208a149275880", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "b6ba54ddf338a1b7aeeb62a46e1b8df096cca1a7a6906fc2ab0208a149275880", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b6ba54ddf338a1b7aeeb62a46e1b8df096cca1a7a6906fc2ab0208a149275880", kill_on_drop: false }` [INFO] [stdout] b6ba54ddf338a1b7aeeb62a46e1b8df096cca1a7a6906fc2ab0208a149275880 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] bc9a9886170d49de3391e76bb990c67b7c88f1a8d98ddb5a10a142f4060485f2 [INFO] running `Command { std: "docker" "start" "-a" "bc9a9886170d49de3391e76bb990c67b7c88f1a8d98ddb5a10a142f4060485f2", kill_on_drop: false }` [INFO] [stderr] Compiling scintilla_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/cube.rs:26:26 [INFO] [stdout] | [INFO] [stdout] 26 | let tmin_numerator = (-1. - origin); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 26 - let tmin_numerator = (-1. - origin); [INFO] [stdout] 26 + let tmin_numerator = -1. - origin; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/cube.rs:27:26 [INFO] [stdout] | [INFO] [stdout] 27 | let tmax_numerator = (1. - origin); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - let tmax_numerator = (1. - origin); [INFO] [stdout] 27 + let tmax_numerator = 1. - origin; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/cylinder.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern` [INFO] [stdout] --> src/examples.rs:6:38 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{color, material, matrix, pattern, transform}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused imports: `material` and `pattern` [INFO] [stdout] --> src/material.rs:1:27 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{color, light, material, pattern, tuple}; [INFO] [stdout] | ^^^^^^^^ ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::shape::Shape` [INFO] [stdout] --> src/material.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::shape::Shape; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::float` [INFO] [stdout] --> src/matrix.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::float; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::shape::Shape` [INFO] [stdout] --> src/pattern.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::shape::Shape; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::fs` [INFO] [stdout] --> src/ppm.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::fs; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::float` [INFO] [stdout] --> src/sphere.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::float; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::pattern::PatternMethods` [INFO] [stdout] --> src/material.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::pattern::PatternMethods; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `tmin` is never read [INFO] [stdout] --> src/cube.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut tmin: f64 = 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 `tmax` is never read [INFO] [stdout] --> src/cube.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut tmax: f64 = 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: `floor_material` [INFO] [stdout] --> src/examples.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | let floor_material = Material { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_floor_material` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `local_point` [INFO] [stdout] --> src/plane.rs:34:25 [INFO] [stdout] | [INFO] [stdout] 34 | fn normal_at(&self, local_point: tuple::Tuple) -> tuple::Tuple { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_local_point` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `view` and `field_of_view` are never read [INFO] [stdout] --> src/camera.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Camera { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 9 | pub view: Matrix4, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub field_of_view: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new_infinite` is never used [INFO] [stdout] --> src/cone.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Cone { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 19 | pub fn new_infinite(transform: Matrix4, material: Material) -> Cone { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/cube.rs:16:12 [INFO] [stdout] | [INFO] [stdout] 15 | impl Cube { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 16 | pub fn new(transform: Matrix4, material: Material) -> Cube { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated functions `new_infinite` and `new_truncated` are never used [INFO] [stdout] --> src/cylinder.rs:20:12 [INFO] [stdout] | [INFO] [stdout] 19 | impl Cylinder { [INFO] [stdout] | ------------- associated functions in this implementation [INFO] [stdout] 20 | pub fn new_infinite(transform: Matrix4, material: Material) -> Cylinder { [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 31 | pub fn new_truncated(transform: Matrix4, material: Material, minimum: f64, maximum: f64) -> Cylinder { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `purple_sphere` is never used [INFO] [stdout] --> src/examples.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn purple_sphere() -> World { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `chapter_seven_scene` is never used [INFO] [stdout] --> src/examples.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn chapter_seven_scene() -> World { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `chapter_nine_scene` is never used [INFO] [stdout] --> src/examples.rs:152:8 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn chapter_nine_scene() -> World { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `chapter_ten_scene` is never used [INFO] [stdout] --> src/examples.rs:234:8 [INFO] [stdout] | [INFO] [stdout] 234 | pub fn chapter_ten_scene() -> World { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `chapter_eleven_scene` is never used [INFO] [stdout] --> src/examples.rs:350:8 [INFO] [stdout] | [INFO] [stdout] 350 | pub fn chapter_eleven_scene() -> World { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `chapter_twelve_scene` is never used [INFO] [stdout] --> src/examples.rs:477:8 [INFO] [stdout] | [INFO] [stdout] 477 | pub fn chapter_twelve_scene() -> World { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `t` and `is_inside` are never read [INFO] [stdout] --> src/intersection.rs:92:9 [INFO] [stdout] | [INFO] [stdout] 91 | pub struct Computations<'scene> { [INFO] [stdout] | ------------ fields in this struct [INFO] [stdout] 92 | pub t: f64, [INFO] [stdout] | ^ [INFO] [stdout] ... [INFO] [stdout] 97 | pub is_inside: bool, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `SolidColor` is never constructed [INFO] [stdout] --> src/material.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 11 | pub enum Coloring { [INFO] [stdout] | -------- variant in this enum [INFO] [stdout] 12 | SolidColor(Color), [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Coloring` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: constant `DEFAULT_MATERIAL` is never used [INFO] [stdout] --> src/material.rs:28:11 [INFO] [stdout] | [INFO] [stdout] 28 | pub const DEFAULT_MATERIAL:Material = Material { [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated items `new` and `with_refractive` are never used [INFO] [stdout] --> src/material.rs:40:12 [INFO] [stdout] | [INFO] [stdout] 39 | impl Material { [INFO] [stdout] | ------------- associated items in this implementation [INFO] [stdout] 40 | pub fn new() -> Material { [INFO] [stdout] | ^^^ [INFO] [stdout] ... [INFO] [stdout] 44 | pub fn with_refractive(&self, refractive: f64) -> Material { [INFO] [stdout] | ^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Sphere` and `Cube` are never constructed [INFO] [stdout] --> src/object.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Object { [INFO] [stdout] | ------ variants in this enum [INFO] [stdout] 9 | Sphere(sphere::Sphere), [INFO] [stdout] | ^^^^^^ [INFO] [stdout] 10 | Plane(plane::Plane), [INFO] [stdout] 11 | Cube(cube::Cube), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Object` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `StripedPattern`, `Ring3DPattern`, `Checker3DPattern`, and `TestPattern` are never constructed [INFO] [stdout] --> src/pattern.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum Pattern { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] 10 | StripedPattern(Striped), [INFO] [stdout] | ^^^^^^^^^^^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | Ring3DPattern(Ring3D), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 14 | Checker3DPattern(Checker3D), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] 15 | Checker2DPattern(Checker2D), [INFO] [stdout] 16 | TestPattern(Test), [INFO] [stdout] | ^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Pattern` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transform` is never read [INFO] [stdout] --> src/pattern.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct Striped { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 51 | transform: Matrix4, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Striped` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/pattern.rs:60:12 [INFO] [stdout] | [INFO] [stdout] 59 | impl Striped { [INFO] [stdout] | ------------ associated function in this implementation [INFO] [stdout] 60 | pub fn new(color: Color, other_color: Color, transform: Matrix4) -> Striped { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transform` is never read [INFO] [stdout] --> src/pattern.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct Gradient { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 84 | transform: Matrix4, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Gradient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transform` is never read [INFO] [stdout] --> src/pattern.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 108 | pub struct Ring { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 111 | transform: Matrix4, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ring` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transform` is never read [INFO] [stdout] --> src/pattern.rs:140:5 [INFO] [stdout] | [INFO] [stdout] 137 | pub struct Ring3D { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 140 | transform: Matrix4, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ring3D` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/pattern.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 144 | impl Ring3D { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 145 | pub fn new(color: Color, other_color: Color, transform: Matrix4) -> Ring3D { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transform` is never read [INFO] [stdout] --> src/pattern.rs:169:5 [INFO] [stdout] | [INFO] [stdout] 166 | pub struct Checker3D { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 169 | transform: Matrix4, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Checker3D` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/pattern.rs:174:12 [INFO] [stdout] | [INFO] [stdout] 173 | impl Checker3D { [INFO] [stdout] | -------------- associated function in this implementation [INFO] [stdout] 174 | pub fn new(color: Color, other_color: Color, transform: Matrix4) -> Checker3D { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transform` is never read [INFO] [stdout] --> src/pattern.rs:198:5 [INFO] [stdout] | [INFO] [stdout] 195 | pub struct Checker2D { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 198 | transform: Matrix4, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Checker2D` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transform` is never read [INFO] [stdout] --> src/pattern.rs:225:5 [INFO] [stdout] | [INFO] [stdout] 224 | pub struct Test { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 225 | transform: Matrix4, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Test` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/pattern.rs:230:12 [INFO] [stdout] | [INFO] [stdout] 229 | impl Test { [INFO] [stdout] | --------- associated function in this implementation [INFO] [stdout] 230 | pub fn new(transform: Matrix4) -> Test { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/sphere.rs:19:12 [INFO] [stdout] | [INFO] [stdout] 18 | impl Sphere { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 19 | pub fn new(transform: Matrix4, material: Material) -> Sphere { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `rotation_x` is never used [INFO] [stdout] --> src/transform.rs:23:8 [INFO] [stdout] | [INFO] [stdout] 23 | pub fn rotation_x(t: f64) -> matrix::Matrix4 { [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `shearing` is never used [INFO] [stdout] --> src/transform.rs:50:8 [INFO] [stdout] | [INFO] [stdout] 50 | pub fn shearing(xy: f64, xz: f64, yx: f64, yz: f64, zx: f64, zy: f64) -> matrix::Matrix4 { [INFO] [stdout] | ^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/tuple.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait TupleMethods { [INFO] [stdout] | ------------ associated function in this trait [INFO] [stdout] 6 | fn new(x: f64, y: f64, z: f64, w: f64) -> Tuple; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `dev` profile [unoptimized + debuginfo] target(s) in 0.35s [INFO] running `Command { std: "docker" "inspect" "bc9a9886170d49de3391e76bb990c67b7c88f1a8d98ddb5a10a142f4060485f2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "bc9a9886170d49de3391e76bb990c67b7c88f1a8d98ddb5a10a142f4060485f2", kill_on_drop: false }` [INFO] [stdout] bc9a9886170d49de3391e76bb990c67b7c88f1a8d98ddb5a10a142f4060485f2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5-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 -Dtail-expr-drop-order" "-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:f3a9d4ad9d972b27faf3965f35b62e55ba32bbce8f20bc8fe909558a86702fde" "/opt/rustwide/cargo-home/bin/cargo" "+11663cd3bfefef7d34e8f0892c250bf698049392" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] c233ccd5d85ad194d772cb9da9250ddd9235c32a6c7eafbf52794d3651e61acb [INFO] running `Command { std: "docker" "start" "-a" "c233ccd5d85ad194d772cb9da9250ddd9235c32a6c7eafbf52794d3651e61acb", kill_on_drop: false }` [INFO] [stderr] Compiling scintilla_rs v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/cube.rs:26:26 [INFO] [stdout] | [INFO] [stdout] 26 | let tmin_numerator = (-1. - origin); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 26 - let tmin_numerator = (-1. - origin); [INFO] [stdout] 26 + let tmin_numerator = -1. - origin; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around assigned value [INFO] [stdout] --> src/cube.rs:27:26 [INFO] [stdout] | [INFO] [stdout] 27 | let tmax_numerator = (1. - origin); [INFO] [stdout] | ^ ^ [INFO] [stdout] | [INFO] [stdout] help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] 27 - let tmax_numerator = (1. - origin); [INFO] [stdout] 27 + let tmax_numerator = 1. - origin; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `std::cmp::min` [INFO] [stdout] --> src/cylinder.rs:1:5 [INFO] [stdout] | [INFO] [stdout] 1 | use std::cmp::min; [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_imports)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern` [INFO] [stdout] --> src/examples.rs:6:38 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::{color, material, matrix, pattern, transform}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `intersection` [INFO] [stdout] --> src/intersection.rs:115:24 [INFO] [stdout] | [INFO] [stdout] 115 | use crate::{color, intersection, light, material, matrix, transform, tuple}; [INFO] [stdout] | ^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `pattern` [INFO] [stdout] --> src/material.rs:1:37 [INFO] [stdout] | [INFO] [stdout] 1 | use crate::{color, light, material, pattern, tuple}; [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::shape::Shape` [INFO] [stdout] --> src/material.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 7 | use crate::shape::Shape; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::shape::Shape` [INFO] [stdout] --> src/pattern.rs:5:5 [INFO] [stdout] | [INFO] [stdout] 5 | use crate::shape::Shape; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused import: `crate::pattern::PatternMethods` [INFO] [stdout] --> src/material.rs:6:5 [INFO] [stdout] | [INFO] [stdout] 6 | use crate::pattern::PatternMethods; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: value assigned to `tmin` is never read [INFO] [stdout] --> src/cube.rs:29:13 [INFO] [stdout] | [INFO] [stdout] 29 | let mut tmin: f64 = 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 `tmax` is never read [INFO] [stdout] --> src/cube.rs:30:13 [INFO] [stdout] | [INFO] [stdout] 30 | let mut tmax: f64 = 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: `floor_material` [INFO] [stdout] --> src/examples.rs:158:9 [INFO] [stdout] | [INFO] [stdout] 158 | let floor_material = Material { [INFO] [stdout] | ^^^^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_floor_material` [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_variables)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unused variable: `local_point` [INFO] [stdout] --> src/plane.rs:34:25 [INFO] [stdout] | [INFO] [stdout] 34 | fn normal_at(&self, local_point: tuple::Tuple) -> tuple::Tuple { [INFO] [stdout] | ^^^^^^^^^^^ help: if this is intentional, prefix it with an underscore: `_local_point` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: fields `view` and `field_of_view` are never read [INFO] [stdout] --> src/camera.rs:9:9 [INFO] [stdout] | [INFO] [stdout] 8 | pub struct Camera { [INFO] [stdout] | ------ fields in this struct [INFO] [stdout] 9 | pub view: Matrix4, [INFO] [stdout] | ^^^^ [INFO] [stdout] ... [INFO] [stdout] 13 | pub field_of_view: f64, [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(dead_code)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `purple_sphere` is never used [INFO] [stdout] --> src/examples.rs:22:8 [INFO] [stdout] | [INFO] [stdout] 22 | pub fn purple_sphere() -> World { [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `chapter_seven_scene` is never used [INFO] [stdout] --> src/examples.rs:48:8 [INFO] [stdout] | [INFO] [stdout] 48 | pub fn chapter_seven_scene() -> World { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `chapter_nine_scene` is never used [INFO] [stdout] --> src/examples.rs:152:8 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn chapter_nine_scene() -> World { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `chapter_ten_scene` is never used [INFO] [stdout] --> src/examples.rs:234:8 [INFO] [stdout] | [INFO] [stdout] 234 | pub fn chapter_ten_scene() -> World { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `chapter_eleven_scene` is never used [INFO] [stdout] --> src/examples.rs:350:8 [INFO] [stdout] | [INFO] [stdout] 350 | pub fn chapter_eleven_scene() -> World { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `chapter_twelve_scene` is never used [INFO] [stdout] --> src/examples.rs:477:8 [INFO] [stdout] | [INFO] [stdout] 477 | pub fn chapter_twelve_scene() -> World { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variant `Cube` is never constructed [INFO] [stdout] --> src/object.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub enum Object { [INFO] [stdout] | ------ variant in this enum [INFO] [stdout] ... [INFO] [stdout] 11 | Cube(cube::Cube), [INFO] [stdout] | ^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Object` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: variants `Ring3DPattern` and `Checker3DPattern` are never constructed [INFO] [stdout] --> src/pattern.rs:13:5 [INFO] [stdout] | [INFO] [stdout] 9 | pub enum Pattern { [INFO] [stdout] | ------- variants in this enum [INFO] [stdout] ... [INFO] [stdout] 13 | Ring3DPattern(Ring3D), [INFO] [stdout] | ^^^^^^^^^^^^^ [INFO] [stdout] 14 | Checker3DPattern(Checker3D), [INFO] [stdout] | ^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Pattern` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transform` is never read [INFO] [stdout] --> src/pattern.rs:51:5 [INFO] [stdout] | [INFO] [stdout] 48 | pub struct Striped { [INFO] [stdout] | ------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 51 | transform: Matrix4, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Striped` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transform` is never read [INFO] [stdout] --> src/pattern.rs:84:5 [INFO] [stdout] | [INFO] [stdout] 81 | pub struct Gradient { [INFO] [stdout] | -------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 84 | transform: Matrix4, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Gradient` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transform` is never read [INFO] [stdout] --> src/pattern.rs:111:5 [INFO] [stdout] | [INFO] [stdout] 108 | pub struct Ring { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] ... [INFO] [stdout] 111 | transform: Matrix4, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ring` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transform` is never read [INFO] [stdout] --> src/pattern.rs:140:5 [INFO] [stdout] | [INFO] [stdout] 137 | pub struct Ring3D { [INFO] [stdout] | ------ field in this struct [INFO] [stdout] ... [INFO] [stdout] 140 | transform: Matrix4, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Ring3D` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/pattern.rs:145:12 [INFO] [stdout] | [INFO] [stdout] 144 | impl Ring3D { [INFO] [stdout] | ----------- associated function in this implementation [INFO] [stdout] 145 | pub fn new(color: Color, other_color: Color, transform: Matrix4) -> Ring3D { [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transform` is never read [INFO] [stdout] --> src/pattern.rs:169:5 [INFO] [stdout] | [INFO] [stdout] 166 | pub struct Checker3D { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 169 | transform: Matrix4, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Checker3D` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transform` is never read [INFO] [stdout] --> src/pattern.rs:198:5 [INFO] [stdout] | [INFO] [stdout] 195 | pub struct Checker2D { [INFO] [stdout] | --------- field in this struct [INFO] [stdout] ... [INFO] [stdout] 198 | transform: Matrix4, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Checker2D` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: field `transform` is never read [INFO] [stdout] --> src/pattern.rs:225:5 [INFO] [stdout] | [INFO] [stdout] 224 | pub struct Test { [INFO] [stdout] | ---- field in this struct [INFO] [stdout] 225 | transform: Matrix4, [INFO] [stdout] | ^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: `Test` has a derived impl for the trait `Clone`, but this is intentionally ignored during dead code analysis [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: function `test_intersect_coplanar_ray` is never used [INFO] [stdout] --> src/plane.rs:76:8 [INFO] [stdout] | [INFO] [stdout] 76 | fn test_intersect_coplanar_ray() { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: associated function `new` is never used [INFO] [stdout] --> src/tuple.rs:6:8 [INFO] [stdout] | [INFO] [stdout] 5 | pub trait TupleMethods { [INFO] [stdout] | ------------ associated function in this trait [INFO] [stdout] 6 | fn new(x: f64, y: f64, z: f64, w: f64) -> Tuple; [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] Finished `test` profile [unoptimized + debuginfo] target(s) in 0.98s [INFO] running `Command { std: "docker" "inspect" "c233ccd5d85ad194d772cb9da9250ddd9235c32a6c7eafbf52794d3651e61acb", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "c233ccd5d85ad194d772cb9da9250ddd9235c32a6c7eafbf52794d3651e61acb", kill_on_drop: false }` [INFO] [stdout] c233ccd5d85ad194d772cb9da9250ddd9235c32a6c7eafbf52794d3651e61acb