[INFO] updating cached repository porglezomp/rust-raytracer [INFO] running `"git" "fetch" "--all"` [INFO] [stdout] Fetching origin [INFO] [stderr] From git://github.com/porglezomp/rust-raytracer [INFO] [stderr] * branch HEAD -> FETCH_HEAD [INFO] running `"git" "clone" "work/cache/sources/gh/porglezomp/rust-raytracer" "work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/gh/porglezomp/rust-raytracer"` [INFO] [stderr] Cloning into 'work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/gh/porglezomp/rust-raytracer'... [INFO] [stderr] done. [INFO] running `"git" "clone" "work/cache/sources/gh/porglezomp/rust-raytracer" "work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/porglezomp/rust-raytracer"` [INFO] [stderr] Cloning into 'work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/porglezomp/rust-raytracer'... [INFO] [stderr] done. [INFO] running `"git" "rev-parse" "HEAD"` [INFO] [stdout] 0848aeae5fddfa5a4088c25a84a3bd1ae2e5491d [INFO] sha for GitHub repo porglezomp/rust-raytracer: 0848aeae5fddfa5a4088c25a84a3bd1ae2e5491d [INFO] validating manifest of porglezomp/rust-raytracer on toolchain master#60960a260f7b5c695fd0717311d72ce62dd4eb43 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+60960a260f7b5c695fd0717311d72ce62dd4eb43-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] validating manifest of porglezomp/rust-raytracer on toolchain try#266783e4e09e4e9d5307c1c8e695659c58bbcac7 [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started frobbing porglezomp/rust-raytracer [INFO] finished frobbing porglezomp/rust-raytracer [INFO] frobbed toml for porglezomp/rust-raytracer written to work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/gh/porglezomp/rust-raytracer/Cargo.toml [INFO] started frobbing porglezomp/rust-raytracer [INFO] finished frobbing porglezomp/rust-raytracer [INFO] frobbed toml for porglezomp/rust-raytracer written to work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/porglezomp/rust-raytracer/Cargo.toml [INFO] crate porglezomp/rust-raytracer already has a lockfile, it will not be regenerated [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+60960a260f7b5c695fd0717311d72ce62dd4eb43-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] error: the lock file /mnt/big/crater/work/ex/pr-63376/sources/master#60960a260f7b5c695fd0717311d72ce62dd4eb43/gh/porglezomp/rust-raytracer/Cargo.lock needs to be updated but --locked was passed to prevent this [INFO] the lockfile is outdated, regenerating it [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+60960a260f7b5c695fd0717311d72ce62dd4eb43-alt" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] [stderr] Updating git repository `https://github.com/bjz/cgmath-rs.git` [INFO] [stderr] Updating git repository `https://github.com/pornel/lodepng-rust.git` [INFO] [stderr] Updating git repository `https://github.com/AngryLawyer/rust-sdl2.git` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Updating git repository `https://github.com/bjz/cgmath-rs.git` [INFO] [stderr] Updating git repository `https://github.com/pornel/lodepng-rust.git` [INFO] [stderr] Updating git repository `https://github.com/AngryLawyer/rust-sdl2.git` [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+60960a260f7b5c695fd0717311d72ce62dd4eb43-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `"/mnt/big/crater/work/local/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] checking porglezomp/rust-raytracer against try#266783e4e09e4e9d5307c1c8e695659c58bbcac7 for pr-63376 [INFO] running `"docker" "create" "-v" "/mnt/big/crater/work/local/target-dirs/pr-63376/worker-7/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7:/opt/crater/target:rw,Z" "-v" "/mnt/big/crater/work/ex/pr-63376/sources/try#266783e4e09e4e9d5307c1c8e695659c58bbcac7/gh/porglezomp/rust-raytracer:/opt/crater/workdir:ro,Z" "-v" "/mnt/big/crater/work/local/cargo-home:/opt/crater/cargo-home:ro,Z" "-v" "/mnt/big/crater/work/local/rustup-home:/opt/crater/rustup-home:ro,Z" "-e" "USER_ID=1000" "-e" "SOURCE_DIR=/opt/crater/workdir" "-e" "MAP_USER_ID=1000" "-e" "CARGO_TARGET_DIR=/opt/crater/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/crater/cargo-home" "-e" "RUSTUP_HOME=/opt/crater/rustup-home" "-w" "/opt/crater/workdir" "-m" "1536M" "--network" "none" "rustops/crates-build-env" "/opt/crater/cargo-home/bin/cargo" "+266783e4e09e4e9d5307c1c8e695659c58bbcac7-alt" "check" "--frozen" "--all" "--all-targets"` [INFO] [stdout] 0775d9820fed476d2b3a82590a92ae6675a3583aeaf3a829375386015fb9dc61 [INFO] running `"docker" "start" "-a" "0775d9820fed476d2b3a82590a92ae6675a3583aeaf3a829375386015fb9dc61"` [INFO] [stderr] Compiling cgmath v0.17.0 (https://github.com/bjz/cgmath-rs.git#ec5261d1) [INFO] [stderr] Compiling sdl2 v0.32.2 (https://github.com/AngryLawyer/rust-sdl2.git#120d5443) [INFO] [stderr] Compiling sdl2-sys v0.32.6 (https://github.com/AngryLawyer/rust-sdl2.git#120d5443) [INFO] [stderr] Checking lodepng v2.4.2 (https://github.com/pornel/lodepng-rust.git#d496286b) [INFO] [stderr] Checking raytracer v0.0.1 (/opt/crater/workdir) [INFO] [stderr] error: invalid suffix `u` for integer literal [INFO] [stderr] --> src/main.rs:61:23 [INFO] [stderr] | [INFO] [stderr] 61 | let mut counter = 0u; [INFO] [stderr] | ^^ invalid suffix `u` [INFO] [stderr] | [INFO] [stderr] = help: the suffix must be one of the integral types (`u32`, `isize`, etc) [INFO] [stderr] [INFO] [stderr] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `{` [INFO] [stderr] --> src/main.rs:103:18 [INFO] [stderr] | [INFO] [stderr] 103 | spawn(proc() { [INFO] [stderr] | ^ expected one of `)`, `,`, `.`, `?`, or an operator here [INFO] [stderr] [INFO] [stderr] error: invalid suffix `u` for integer literal [INFO] [stderr] --> src/main.rs:61:23 [INFO] [stderr] | [INFO] [stderr] 61 | let mut counter = 0u; [INFO] [stderr] | ^^ invalid suffix `u` [INFO] [stderr] | [INFO] [stderr] = help: the suffix must be one of the integral types (`u32`, `isize`, etc) [INFO] [stderr] [INFO] [stderr] error: expected one of `)`, `,`, `.`, `?`, or an operator, found `{` [INFO] [stderr] --> src/main.rs:103:18 [INFO] [stderr] | [INFO] [stderr] 103 | spawn(proc() { [INFO] [stderr] | ^ expected one of `)`, `,`, `.`, `?`, or an operator here [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `sdl2::video::PosCentered`, `sdl2::video::OPENGL` [INFO] [stderr] --> src/main.rs:7:27 [INFO] [stderr] | [INFO] [stderr] 7 | use sdl2::video::{Window, PosCentered, OPENGL}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^ no `OPENGL` in `video` [INFO] [stderr] | | [INFO] [stderr] | no `PosCentered` in `video` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::comm` [INFO] [stderr] --> src/main.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use std::comm; [INFO] [stderr] | ^^^^^^^^^ no `comm` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `cgmath::Point`, `cgmath::Vector` [INFO] [stderr] --> src/scene/mod.rs:4:14 [INFO] [stderr] | [INFO] [stderr] 4 | use cgmath::{Point, Vector}; [INFO] [stderr] | ^^^^^ ^^^^^^ no `Vector` in the root [INFO] [stderr] | | [INFO] [stderr] | no `Point` in the root [INFO] [stderr] help: a similar name exists in the module [INFO] [stderr] | [INFO] [stderr] 4 | use cgmath::{point, Vector}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] help: a similar name exists in the module [INFO] [stderr] | [INFO] [stderr] 4 | use cgmath::{Point, vector}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `cgmath::Ray3`, `cgmath::Ray` [INFO] [stderr] --> src/scene/mod.rs:5:31 [INFO] [stderr] | [INFO] [stderr] 5 | use cgmath::{Vector3, Point3, Ray3, Ray}; [INFO] [stderr] | ^^^^ ^^^ [INFO] [stderr] | | | [INFO] [stderr] | | no `Ray` in the root [INFO] [stderr] | | help: a similar name exists in the module: `Rad` [INFO] [stderr] | no `Ray3` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `cgmath::EuclideanVector`, `cgmath::Vector` [INFO] [stderr] --> src/scene/util.rs:1:14 [INFO] [stderr] | [INFO] [stderr] 1 | use cgmath::{EuclideanVector, Vector, Vector3}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stderr] | | | [INFO] [stderr] | | no `Vector` in the root [INFO] [stderr] | | help: a similar name exists in the module: `vector` [INFO] [stderr] | no `EuclideanVector` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::rand` [INFO] [stderr] --> src/scene/util.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::rand; [INFO] [stderr] | ^^^^^^^^^ no `rand` in the root [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `rand` in `std` [INFO] [stderr] --> src/scene/util.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | use std::rand::distributions::{Normal, IndependentSample}; [INFO] [stderr] | ^^^^ could not find `rand` in `std` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::rand` [INFO] [stderr] --> src/scene/util.rs:3:10 [INFO] [stderr] | [INFO] [stderr] 3 | use std::rand::Rng; [INFO] [stderr] | ^^^^ could not find `rand` in `std` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `cgmath::Ray3` [INFO] [stderr] --> src/scene/intersectable.rs:2:14 [INFO] [stderr] | [INFO] [stderr] 2 | use cgmath::{Ray3, Point3}; [INFO] [stderr] | ^^^^ no `Ray3` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `cgmath::EuclideanVector`, `cgmath::Point`, `cgmath::Vector` [INFO] [stderr] --> src/scene/scene_objects.rs:2:14 [INFO] [stderr] | [INFO] [stderr] 2 | use cgmath::{EuclideanVector, Point, Vector}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^ no `Vector` in the root [INFO] [stderr] | | | [INFO] [stderr] | | no `Point` in the root [INFO] [stderr] | no `EuclideanVector` in the root [INFO] [stderr] help: a similar name exists in the module [INFO] [stderr] | [INFO] [stderr] 2 | use cgmath::{EuclideanVector, point, Vector}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] help: a similar name exists in the module [INFO] [stderr] | [INFO] [stderr] 2 | use cgmath::{EuclideanVector, Point, vector}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `cgmath::Ray3` [INFO] [stderr] --> src/scene/scene_objects.rs:3:22 [INFO] [stderr] | [INFO] [stderr] 3 | use cgmath::{Point3, Ray3}; [INFO] [stderr] | ^^^^ no `Ray3` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `cgmath::EuclideanVector`, `cgmath::Point`, `cgmath::Vector` [INFO] [stderr] --> src/scene/scene_lights.rs:2:14 [INFO] [stderr] | [INFO] [stderr] 2 | use cgmath::{EuclideanVector, Point, Vector, Rotation}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^ no `Vector` in the root [INFO] [stderr] | | | [INFO] [stderr] | | no `Point` in the root [INFO] [stderr] | no `EuclideanVector` in the root [INFO] [stderr] help: a similar name exists in the module [INFO] [stderr] | [INFO] [stderr] 2 | use cgmath::{EuclideanVector, point, Vector, Rotation}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] help: a similar name exists in the module [INFO] [stderr] | [INFO] [stderr] 2 | use cgmath::{EuclideanVector, Point, vector, Rotation}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `cgmath::Ray` [INFO] [stderr] --> src/scene/scene_lights.rs:3:31 [INFO] [stderr] | [INFO] [stderr] 3 | use cgmath::{Vector3, Point3, Ray, Basis3}; [INFO] [stderr] | ^^^ [INFO] [stderr] | | [INFO] [stderr] | no `Ray` in the root [INFO] [stderr] | help: a similar name exists in the module: `Rad` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::io::File` [INFO] [stderr] --> src/parse_scene/mod.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use std::io::File; [INFO] [stderr] | ^^^^^^^^^^^^^ no `File` in `io` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `serialize::json::JsonObject` [INFO] [stderr] --> src/parse_scene/lights.rs:2:29 [INFO] [stderr] | [INFO] [stderr] 2 | use serialize::json::{Json, JsonObject}; [INFO] [stderr] | ^^^^^^^^^^ no `JsonObject` in `json` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `cgmath::EuclideanVector` [INFO] [stderr] --> src/parse_scene/lights.rs:4:31 [INFO] [stderr] | [INFO] [stderr] 4 | use cgmath::{Point3, Vector3, EuclideanVector}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ no `EuclideanVector` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::collections::TreeMap` [INFO] [stderr] --> src/parse_scene/objects.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::collections::TreeMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^------- [INFO] [stderr] | | | [INFO] [stderr] | | help: a similar name exists in the module: `BTreeMap` [INFO] [stderr] | no `TreeMap` in `collections` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::collections::TreeMap` [INFO] [stderr] --> src/parse_scene/materials.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::collections::TreeMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^------- [INFO] [stderr] | | | [INFO] [stderr] | | help: a similar name exists in the module: `BTreeMap` [INFO] [stderr] | no `TreeMap` in `collections` [INFO] [stderr] [INFO] [stderr] error: cannot find attribute macro `deriving` in this scope [INFO] [stderr] --> src/image_types.rs:1:3 [INFO] [stderr] | [INFO] [stderr] 1 | #[deriving(Clone, Show)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find attribute macro `deriving` in this scope [INFO] [stderr] --> src/image_types.rs:6:3 [INFO] [stderr] | [INFO] [stderr] 6 | #[deriving(Clone, Show)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find attribute macro `deriving` in this scope [INFO] [stderr] --> src/image_types.rs:12:3 [INFO] [stderr] | [INFO] [stderr] 12 | #[deriving(Clone, Show)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find attribute macro `deriving` in this scope [INFO] [stderr] --> src/image_types.rs:18:3 [INFO] [stderr] | [INFO] [stderr] 18 | #[deriving(Clone, Show)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find attribute macro `deriving` in this scope [INFO] [stderr] --> src/image_types.rs:24:3 [INFO] [stderr] | [INFO] [stderr] 24 | #[deriving(Clone, Show)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find attribute macro `deriving` in this scope [INFO] [stderr] --> src/image_types.rs:58:3 [INFO] [stderr] | [INFO] [stderr] 58 | #[deriving(Show)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Normal` [INFO] [stderr] --> src/scene/util.rs:7:18 [INFO] [stderr] | [INFO] [stderr] 7 | let normal = Normal::new(0.0, 1.0); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Normal` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `sdl2::video::PosCentered`, `sdl2::video::OPENGL` [INFO] [stderr] --> src/main.rs:7:27 [INFO] [stderr] | [INFO] [stderr] 7 | use sdl2::video::{Window, PosCentered, OPENGL}; [INFO] [stderr] | ^^^^^^^^^^^ ^^^^^^ no `OPENGL` in `video` [INFO] [stderr] | | [INFO] [stderr] | no `PosCentered` in `video` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::comm` [INFO] [stderr] --> src/main.rs:9:5 [INFO] [stderr] | [INFO] [stderr] 9 | use std::comm; [INFO] [stderr] | ^^^^^^^^^ no `comm` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `cgmath::Point`, `cgmath::Vector` [INFO] [stderr] --> src/scene/mod.rs:4:14 [INFO] [stderr] | [INFO] [stderr] 4 | use cgmath::{Point, Vector}; [INFO] [stderr] | ^^^^^ ^^^^^^ no `Vector` in the root [INFO] [stderr] | | [INFO] [stderr] | no `Point` in the root [INFO] [stderr] help: a similar name exists in the module [INFO] [stderr] | [INFO] [stderr] 4 | use cgmath::{point, Vector}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] help: a similar name exists in the module [INFO] [stderr] | [INFO] [stderr] 4 | use cgmath::{Point, vector}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `cgmath::Ray3`, `cgmath::Ray` [INFO] [stderr] --> src/scene/mod.rs:5:31 [INFO] [stderr] | [INFO] [stderr] 5 | use cgmath::{Vector3, Point3, Ray3, Ray}; [INFO] [stderr] | ^^^^ ^^^ [INFO] [stderr] | | | [INFO] [stderr] | | no `Ray` in the root [INFO] [stderr] | | help: a similar name exists in the module: `Rad` [INFO] [stderr] | no `Ray3` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `cgmath::EuclideanVector`, `cgmath::Vector` [INFO] [stderr] --> src/scene/util.rs:1:14 [INFO] [stderr] | [INFO] [stderr] 1 | use cgmath::{EuclideanVector, Vector, Vector3}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ ^^^^^^ [INFO] [stderr] | | | [INFO] [stderr] | | no `Vector` in the root [INFO] [stderr] | | help: a similar name exists in the module: `vector` [INFO] [stderr] | no `EuclideanVector` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::rand` [INFO] [stderr] --> src/scene/util.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::rand; [INFO] [stderr] | ^^^^^^^^^ no `rand` in the root [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `rand` in `std` [INFO] [stderr] --> src/scene/util.rs:4:10 [INFO] [stderr] | [INFO] [stderr] 4 | use std::rand::distributions::{Normal, IndependentSample}; [INFO] [stderr] | ^^^^ could not find `rand` in `std` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::rand` [INFO] [stderr] --> src/scene/util.rs:3:10 [INFO] [stderr] | [INFO] [stderr] 3 | use std::rand::Rng; [INFO] [stderr] | ^^^^ could not find `rand` in `std` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `cgmath::Ray3` [INFO] [stderr] --> src/scene/intersectable.rs:2:14 [INFO] [stderr] | [INFO] [stderr] 2 | use cgmath::{Ray3, Point3}; [INFO] [stderr] | ^^^^ no `Ray3` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `cgmath::EuclideanVector`, `cgmath::Point`, `cgmath::Vector` [INFO] [stderr] --> src/scene/scene_objects.rs:2:14 [INFO] [stderr] | [INFO] [stderr] 2 | use cgmath::{EuclideanVector, Point, Vector}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^ no `Vector` in the root [INFO] [stderr] | | | [INFO] [stderr] | | no `Point` in the root [INFO] [stderr] | no `EuclideanVector` in the root [INFO] [stderr] help: a similar name exists in the module [INFO] [stderr] | [INFO] [stderr] 2 | use cgmath::{EuclideanVector, point, Vector}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] help: a similar name exists in the module [INFO] [stderr] | [INFO] [stderr] 2 | use cgmath::{EuclideanVector, Point, vector}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `cgmath::Ray3` [INFO] [stderr] --> src/scene/scene_objects.rs:3:22 [INFO] [stderr] | [INFO] [stderr] 3 | use cgmath::{Point3, Ray3}; [INFO] [stderr] | ^^^^ no `Ray3` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved imports `cgmath::EuclideanVector`, `cgmath::Point`, `cgmath::Vector` [INFO] [stderr] --> src/scene/scene_lights.rs:2:14 [INFO] [stderr] | [INFO] [stderr] 2 | use cgmath::{EuclideanVector, Point, Vector, Rotation}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ ^^^^^ ^^^^^^ no `Vector` in the root [INFO] [stderr] | | | [INFO] [stderr] | | no `Point` in the root [INFO] [stderr] | no `EuclideanVector` in the root [INFO] [stderr] help: a similar name exists in the module [INFO] [stderr] | [INFO] [stderr] 2 | use cgmath::{EuclideanVector, point, Vector, Rotation}; [INFO] [stderr] | ^^^^^ [INFO] [stderr] help: a similar name exists in the module [INFO] [stderr] | [INFO] [stderr] 2 | use cgmath::{EuclideanVector, Point, vector, Rotation}; [INFO] [stderr] | ^^^^^^ [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `cgmath::Ray` [INFO] [stderr] --> src/scene/scene_lights.rs:3:31 [INFO] [stderr] | [INFO] [stderr] 3 | use cgmath::{Vector3, Point3, Ray, Basis3}; [INFO] [stderr] | ^^^ [INFO] [stderr] | | [INFO] [stderr] | no `Ray` in the root [INFO] [stderr] | help: a similar name exists in the module: `Rad` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::io::File` [INFO] [stderr] --> src/parse_scene/mod.rs:4:5 [INFO] [stderr] | [INFO] [stderr] 4 | use std::io::File; [INFO] [stderr] | ^^^^^^^^^^^^^ no `File` in `io` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `serialize::json::JsonObject` [INFO] [stderr] --> src/parse_scene/lights.rs:2:29 [INFO] [stderr] | [INFO] [stderr] 2 | use serialize::json::{Json, JsonObject}; [INFO] [stderr] | ^^^^^^^^^^ no `JsonObject` in `json` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `cgmath::EuclideanVector` [INFO] [stderr] --> src/parse_scene/lights.rs:4:31 [INFO] [stderr] | [INFO] [stderr] 4 | use cgmath::{Point3, Vector3, EuclideanVector}; [INFO] [stderr] | ^^^^^^^^^^^^^^^ no `EuclideanVector` in the root [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::collections::TreeMap` [INFO] [stderr] --> src/parse_scene/objects.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::collections::TreeMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^------- [INFO] [stderr] | | | [INFO] [stderr] | | help: a similar name exists in the module: `BTreeMap` [INFO] [stderr] | no `TreeMap` in `collections` [INFO] [stderr] [INFO] [stderr] error[E0432]: unresolved import `std::collections::TreeMap` [INFO] [stderr] --> src/parse_scene/materials.rs:2:5 [INFO] [stderr] | [INFO] [stderr] 2 | use std::collections::TreeMap; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^------- [INFO] [stderr] | | | [INFO] [stderr] | | help: a similar name exists in the module: `BTreeMap` [INFO] [stderr] | no `TreeMap` in `collections` [INFO] [stderr] [INFO] [stderr] error: cannot find attribute macro `deriving` in this scope [INFO] [stderr] --> src/image_types.rs:1:3 [INFO] [stderr] | [INFO] [stderr] 1 | #[deriving(Clone, Show)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find attribute macro `deriving` in this scope [INFO] [stderr] --> src/image_types.rs:6:3 [INFO] [stderr] | [INFO] [stderr] 6 | #[deriving(Clone, Show)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find attribute macro `deriving` in this scope [INFO] [stderr] --> src/image_types.rs:12:3 [INFO] [stderr] | [INFO] [stderr] 12 | #[deriving(Clone, Show)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find attribute macro `deriving` in this scope [INFO] [stderr] --> src/image_types.rs:18:3 [INFO] [stderr] | [INFO] [stderr] 18 | #[deriving(Clone, Show)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find attribute macro `deriving` in this scope [INFO] [stderr] --> src/image_types.rs:24:3 [INFO] [stderr] | [INFO] [stderr] 24 | #[deriving(Clone, Show)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find attribute macro `deriving` in this scope [INFO] [stderr] --> src/image_types.rs:58:3 [INFO] [stderr] | [INFO] [stderr] 58 | #[deriving(Show)] [INFO] [stderr] | ^^^^^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `fail!` in this scope [INFO] [stderr] --> src/parse_scene/mod.rs:15:25 [INFO] [stderr] | [INFO] [stderr] 15 | Err(err) => fail!("Error reading {}: {}", path.display(), err), [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `fail!` in this scope [INFO] [stderr] --> src/parse_scene/lights.rs:28:32 [INFO] [stderr] | [INFO] [stderr] 28 | x => fail!("Unsupported light type '{}'", x) [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `fail!` in this scope [INFO] [stderr] --> src/parse_scene/objects.rs:25:9 [INFO] [stderr] | [INFO] [stderr] 25 | fail!("Only spheres are currently supported!"); [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Path` [INFO] [stderr] --> src/parse_scene/mod.rs:11:16 [INFO] [stderr] | [INFO] [stderr] 11 | let path = Path::new(filename); [INFO] [stderr] | ^^^^ use of undeclared type or module `Path` [INFO] [stderr] [INFO] [stderr] error: cannot find macro `fail!` in this scope [INFO] [stderr] --> src/main.rs:29:23 [INFO] [stderr] | [INFO] [stderr] 29 | Err(err) => fail!("Failed to create window: {}", err) [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `fail!` in this scope [INFO] [stderr] --> src/main.rs:35:25 [INFO] [stderr] | [INFO] [stderr] 35 | Err(err) => fail!("Failed to create renderer: {}", err) [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `fail!` in this scope [INFO] [stderr] --> src/main.rs:52:24 [INFO] [stderr] | [INFO] [stderr] 52 | Err(err) => fail!("Could not create texture: {}", err) [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `fail!` in this scope [INFO] [stderr] --> src/main.rs:94:19 [INFO] [stderr] | [INFO] [stderr] 94 | Err(e) => fail!("Error writing: {}", e), [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Normal` [INFO] [stderr] --> src/scene/util.rs:7:18 [INFO] [stderr] | [INFO] [stderr] 7 | let normal = Normal::new(0.0, 1.0); [INFO] [stderr] | ^^^^^^ use of undeclared type or module `Normal` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `Renderer` in `render` [INFO] [stderr] --> src/main.rs:31:40 [INFO] [stderr] | [INFO] [stderr] 31 | let renderer = match sdl2::render::Renderer::from_window(window, [INFO] [stderr] | ^^^^^^^^ could not find `Renderer` in `render` [INFO] [stderr] [INFO] [stderr] error: cannot find macro `fail!` in this scope [INFO] [stderr] --> src/parse_scene/mod.rs:15:25 [INFO] [stderr] | [INFO] [stderr] 15 | Err(err) => fail!("Error reading {}: {}", path.display(), err), [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `fail!` in this scope [INFO] [stderr] --> src/parse_scene/lights.rs:28:32 [INFO] [stderr] | [INFO] [stderr] 28 | x => fail!("Unsupported light type '{}'", x) [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `fail!` in this scope [INFO] [stderr] --> src/parse_scene/objects.rs:25:9 [INFO] [stderr] | [INFO] [stderr] 25 | fail!("Only spheres are currently supported!"); [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Path` [INFO] [stderr] --> src/parse_scene/mod.rs:11:16 [INFO] [stderr] | [INFO] [stderr] 11 | let path = Path::new(filename); [INFO] [stderr] | ^^^^ use of undeclared type or module `Path` [INFO] [stderr] [INFO] [stderr] error: cannot find macro `fail!` in this scope [INFO] [stderr] --> src/main.rs:29:23 [INFO] [stderr] | [INFO] [stderr] 29 | Err(err) => fail!("Failed to create window: {}", err) [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `fail!` in this scope [INFO] [stderr] --> src/main.rs:35:25 [INFO] [stderr] | [INFO] [stderr] 35 | Err(err) => fail!("Failed to create renderer: {}", err) [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `fail!` in this scope [INFO] [stderr] --> src/main.rs:52:24 [INFO] [stderr] | [INFO] [stderr] 52 | Err(err) => fail!("Could not create texture: {}", err) [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error: cannot find macro `fail!` in this scope [INFO] [stderr] --> src/main.rs:94:19 [INFO] [stderr] | [INFO] [stderr] 94 | Err(e) => fail!("Error writing: {}", e), [INFO] [stderr] | ^^^^ [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Path` [INFO] [stderr] --> src/main.rs:92:17 [INFO] [stderr] | [INFO] [stderr] 92 | let path = &Path::new("test.png"); [INFO] [stderr] | ^^^^ use of undeclared type or module `Path` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: could not find `Renderer` in `render` [INFO] [stderr] --> src/main.rs:31:40 [INFO] [stderr] | [INFO] [stderr] 31 | let renderer = match sdl2::render::Renderer::from_window(window, [INFO] [stderr] | ^^^^^^^^ could not find `Renderer` in `render` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Ray` [INFO] [stderr] --> src/main.rs:133:24 [INFO] [stderr] | [INFO] [stderr] 133 | let view_ray = Ray::new(CAMERA_POS, view_direction); [INFO] [stderr] | ^^^ use of undeclared type or module `Ray` [INFO] [stderr] [INFO] [stderr] error[E0405]: cannot find trait `Add` in this scope [INFO] [stderr] --> src/image_types.rs:36:6 [INFO] [stderr] | [INFO] [stderr] 36 | impl Add for ScreenPoint { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use std::ops::Add; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/scene/scene_lights.rs:38:18 [INFO] [stderr] | [INFO] [stderr] 38 | for _ in range(0, scene.num_shadow_samples) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/scene/scene_lights.rs:60:18 [INFO] [stderr] | [INFO] [stderr] 60 | for _ in range(0, scene.num_shadow_samples) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/scene/mod.rs:110:69 [INFO] [stderr] | [INFO] [stderr] 110 | let reduced_samples = self.num_gi_samples >> (depth * 2) as uint; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use sdl2::sys::uint; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/scene/mod.rs:112:18 [INFO] [stderr] | [INFO] [stderr] 112 | for _ in range(0, reduced_samples) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:21:21 [INFO] [stderr] | [INFO] [stderr] 21 | const PIXEL_COUNT : uint = (W*H) as uint; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 7 | use sdl2::sys::uint; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:21:37 [INFO] [stderr] | [INFO] [stderr] 21 | const PIXEL_COUNT : uint = (W*H) as uint; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 7 | use sdl2::sys::uint; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `INIT_EVERYTHING` in crate `sdl2` [INFO] [stderr] --> src/main.rs:24:22 [INFO] [stderr] | [INFO] [stderr] 24 | sdl2::init(sdl2::INIT_EVERYTHING); [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in `sdl2` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/main.rs:26:54 [INFO] [stderr] | [INFO] [stderr] 26 | PosCentered, W as int, [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/main.rs:27:41 [INFO] [stderr] | [INFO] [stderr] 27 | H as int, OPENGL) { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DriverAuto` in module `sdl2::render` [INFO] [stderr] --> src/main.rs:32:70 [INFO] [stderr] | [INFO] [stderr] 32 | sdl2::render::DriverAuto, [INFO] [stderr] | ^^^^^^^^^^ not found in `sdl2::render` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `ACCELERATED` in module `sdl2::render` [INFO] [stderr] --> src/main.rs:33:70 [INFO] [stderr] | [INFO] [stderr] 33 | sdl2::render::ACCELERATED) { [INFO] [stderr] | ^^^^^^^^^^^ not found in `sdl2::render` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `default_sched_threads` in module `std::rt` [INFO] [stderr] --> src/main.rs:43:32 [INFO] [stderr] | [INFO] [stderr] 43 | let num_threads = std::rt::default_sched_threads(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ not found in `std::rt` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `RGB24` in module `sdl2::pixels` [INFO] [stderr] --> src/main.rs:48:63 [INFO] [stderr] | [INFO] [stderr] 48 | let texture = match renderer.create_texture(sdl2::pixels::RGB24, [INFO] [stderr] | ^^^^^ not found in `sdl2::pixels` [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 7 | use sdl2::pixels::PixelFormatEnum::RGB24; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `AccessStreaming` in module `sdl2::render` [INFO] [stderr] --> src/main.rs:49:67 [INFO] [stderr] | [INFO] [stderr] 49 | sdl2::render::AccessStreaming, [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in `sdl2::render` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/main.rs:50:58 [INFO] [stderr] | [INFO] [stderr] 50 | W as int, H as int) { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/main.rs:50:68 [INFO] [stderr] | [INFO] [stderr] 50 | W as int, H as int) { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/main.rs:55:14 [INFO] [stderr] | [INFO] [stderr] 55 | for x in range(0, W) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/main.rs:56:18 [INFO] [stderr] | [INFO] [stderr] 56 | for y in range(0, H) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/main.rs:63:18 [INFO] [stderr] | [INFO] [stderr] 63 | for _ in range(0, num_threads) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:76:25 [INFO] [stderr] | [INFO] [stderr] 76 | let index : uint = ((point.x + point.y * W) * 3) as uint; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 7 | use sdl2::sys::uint; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:76:65 [INFO] [stderr] | [INFO] [stderr] 76 | let index : uint = ((point.x + point.y * W) * 3) as uint; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 7 | use sdl2::sys::uint; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/main.rs:81:60 [INFO] [stderr] | [INFO] [stderr] 81 | let _ = texture.update(None, data.as_slice(), W as int * 3); [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `quit` in crate `sdl2` [INFO] [stderr] --> src/main.rs:98:11 [INFO] [stderr] | [INFO] [stderr] 98 | sdl2::quit(); [INFO] [stderr] | ^^^^ not found in `sdl2` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Sender` in this scope [INFO] [stderr] --> src/main.rs:101:20 [INFO] [stderr] | [INFO] [stderr] 101 | fn new_worker(tx: &Sender<(Rect, Vec)>, rect: Rect, scene: Arc) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] help: a trait with a similar name exists [INFO] [stderr] | [INFO] [stderr] 101 | fn new_worker(tx: &Send<(Rect, Vec)>, rect: Rect, scene: Arc) { [INFO] [stderr] | ^^^^ [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 7 | use std::sync::mpsc::Sender; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `spawn` in this scope [INFO] [stderr] --> src/main.rs:103:5 [INFO] [stderr] | [INFO] [stderr] 103 | spawn(proc() { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 7 | use std::thread::spawn; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `proc` in this scope [INFO] [stderr] --> src/main.rs:103:11 [INFO] [stderr] | [INFO] [stderr] 103 | spawn(proc() { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:104:40 [INFO] [stderr] | [INFO] [stderr] 104 | let num_pixels = rect.width as uint * rect.height as uint; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 7 | use sdl2::sys::uint; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:104:62 [INFO] [stderr] | [INFO] [stderr] 104 | let num_pixels = rect.width as uint * rect.height as uint; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 7 | use sdl2::sys::uint; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:124:18 [INFO] [stderr] | [INFO] [stderr] 124 | const N_SAMPLES: uint = 9; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 7 | use sdl2::sys::uint; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/main.rs:146:14 [INFO] [stderr] | [INFO] [stderr] 146 | for i in range(0, s) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/main.rs:147:18 [INFO] [stderr] | [INFO] [stderr] 147 | for j in range(0, s) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0658]: box expression syntax is experimental; you can call `Box::new` instead [INFO] [stderr] --> src/parse_scene/lights.rs:60:5 [INFO] [stderr] | [INFO] [stderr] 60 | / box PointLight { position: Point3::new(x, y, z), [INFO] [stderr] 61 | | color: Color { r: r, g: g, b: b }, [INFO] [stderr] 62 | | intensity: intensity, [INFO] [stderr] 63 | | radius: radius } [INFO] [stderr] | |_____________________________________^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/49733 [INFO] [stderr] = help: add `#![feature(box_syntax)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error[E0658]: box expression syntax is experimental; you can call `Box::new` instead [INFO] [stderr] --> src/parse_scene/lights.rs:94:5 [INFO] [stderr] | [INFO] [stderr] 94 | / box DirectionalLight { direction: Vector3::new(x, y, z).normalize(), [INFO] [stderr] 95 | | color: Color { r: r, g: g, b: b }, [INFO] [stderr] 96 | | intensity: intensity, [INFO] [stderr] 97 | | angle: angle } [INFO] [stderr] | |_________________________________________^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/49733 [INFO] [stderr] = help: add `#![feature(box_syntax)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error[E0658]: box expression syntax is experimental; you can call `Box::new` instead [INFO] [stderr] --> src/parse_scene/objects.rs:44:29 [INFO] [stderr] | [INFO] [stderr] 44 | SceneObject { geometry: box Sphere::new((x, y, z), radius), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/49733 [INFO] [stderr] = help: add `#![feature(box_syntax)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] warning: unused imports: `IndependentSample`, `Normal` [INFO] [stderr] --> src/scene/util.rs:4:32 [INFO] [stderr] | [INFO] [stderr] 4 | use std::rand::distributions::{Normal, IndependentSample}; [INFO] [stderr] | ^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/scene/scene_objects.rs:14:23 [INFO] [stderr] | [INFO] [stderr] 14 | pub geometry: Box [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Intersectable+Send+Sync+'static` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/scene/scene_lights.rs:23:26 [INFO] [stderr] | [INFO] [stderr] 23 | pub illuminator: Box [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Illuminator+Send+Sync+'static` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/parse_scene/lights.rs:35:47 [INFO] [stderr] | [INFO] [stderr] 35 | fn point_from_json(light: &JsonObject) -> Box { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Illuminator+Send+Sync` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/parse_scene/lights.rs:68:53 [INFO] [stderr] | [INFO] [stderr] 68 | fn directional_from_json(light: &JsonObject) -> Box { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Illuminator+Send+Sync` [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stderr] --> src/main.rs:5:1 [INFO] [stderr] | [INFO] [stderr] 5 | extern crate serialize; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/27812 [INFO] [stderr] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'lodepng::LCT_RGB': use `ColorType::RGB` instead [INFO] [stderr] --> src/main.rs:93:61 [INFO] [stderr] | [INFO] [stderr] 93 | match lodepng::encode_file(path, data.as_slice(), W, H, lodepng::LCT_RGB, 8) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stderr] --> src/parse_scene/mod.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use serialize::json; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/27812 [INFO] [stderr] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stderr] --> src/parse_scene/mod.rs:20:23 [INFO] [stderr] | [INFO] [stderr] 20 | let json_object = json::from_str(content_string).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/27812 [INFO] [stderr] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stderr] --> src/parse_scene/lights.rs:2:23 [INFO] [stderr] | [INFO] [stderr] 2 | use serialize::json::{Json, JsonObject}; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/27812 [INFO] [stderr] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stderr] --> src/parse_scene/lights.rs:6:35 [INFO] [stderr] | [INFO] [stderr] 6 | pub fn parse_lights(lights_json: &Json) -> Vec { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/27812 [INFO] [stderr] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stderr] --> src/parse_scene/lights.rs:17:29 [INFO] [stderr] | [INFO] [stderr] 17 | fn parse_light(light_json: &Json) -> SceneLight { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/27812 [INFO] [stderr] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stderr] --> src/parse_scene/objects.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use serialize::json::Json; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/27812 [INFO] [stderr] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stderr] --> src/parse_scene/objects.rs:6:37 [INFO] [stderr] | [INFO] [stderr] 6 | pub fn parse_objects(objects_json: &Json, materials: &TreeMap>) -> Vec { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/27812 [INFO] [stderr] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stderr] --> src/parse_scene/objects.rs:17:28 [INFO] [stderr] | [INFO] [stderr] 17 | fn parse_obj(object_json: &Json, materials: &TreeMap>) -> SceneObject { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/27812 [INFO] [stderr] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stderr] --> src/parse_scene/materials.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use serialize::json::Json; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/27812 [INFO] [stderr] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stderr] --> src/parse_scene/materials.rs:7:41 [INFO] [stderr] | [INFO] [stderr] 7 | pub fn parse_materials(materials_json: &Json) -> TreeMap> { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/27812 [INFO] [stderr] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stderr] --> src/parse_scene/materials.rs:20:30 [INFO] [stderr] | [INFO] [stderr] 20 | fn parse_mat(material_json: &Json) -> (String, Arc) { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/27812 [INFO] [stderr] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error: aborting due to 85 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0405, E0412, E0425, E0432, E0433, E0658. [INFO] [stderr] For more information about an error, try `rustc --explain E0405`. [INFO] [stderr] error: Could not compile `raytracer`. [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Path` [INFO] [stderr] --> src/main.rs:92:17 [INFO] [stderr] | [INFO] [stderr] 92 | let path = &Path::new("test.png"); [INFO] [stderr] | ^^^^ use of undeclared type or module `Path` [INFO] [stderr] [INFO] [stderr] error[E0433]: failed to resolve: use of undeclared type or module `Ray` [INFO] [stderr] --> src/main.rs:133:24 [INFO] [stderr] | [INFO] [stderr] 133 | let view_ray = Ray::new(CAMERA_POS, view_direction); [INFO] [stderr] | ^^^ use of undeclared type or module `Ray` [INFO] [stderr] [INFO] [stderr] error[E0405]: cannot find trait `Add` in this scope [INFO] [stderr] --> src/image_types.rs:36:6 [INFO] [stderr] | [INFO] [stderr] 36 | impl Add for ScreenPoint { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use std::ops::Add; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/scene/scene_lights.rs:38:18 [INFO] [stderr] | [INFO] [stderr] 38 | for _ in range(0, scene.num_shadow_samples) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/scene/scene_lights.rs:60:18 [INFO] [stderr] | [INFO] [stderr] 60 | for _ in range(0, scene.num_shadow_samples) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/scene/mod.rs:110:69 [INFO] [stderr] | [INFO] [stderr] 110 | let reduced_samples = self.num_gi_samples >> (depth * 2) as uint; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 1 | use sdl2::sys::uint; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/scene/mod.rs:112:18 [INFO] [stderr] | [INFO] [stderr] 112 | for _ in range(0, reduced_samples) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:21:21 [INFO] [stderr] | [INFO] [stderr] 21 | const PIXEL_COUNT : uint = (W*H) as uint; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 7 | use sdl2::sys::uint; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:21:37 [INFO] [stderr] | [INFO] [stderr] 21 | const PIXEL_COUNT : uint = (W*H) as uint; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 7 | use sdl2::sys::uint; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `INIT_EVERYTHING` in crate `sdl2` [INFO] [stderr] --> src/main.rs:24:22 [INFO] [stderr] | [INFO] [stderr] 24 | sdl2::init(sdl2::INIT_EVERYTHING); [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in `sdl2` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/main.rs:26:54 [INFO] [stderr] | [INFO] [stderr] 26 | PosCentered, W as int, [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/main.rs:27:41 [INFO] [stderr] | [INFO] [stderr] 27 | H as int, OPENGL) { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `DriverAuto` in module `sdl2::render` [INFO] [stderr] --> src/main.rs:32:70 [INFO] [stderr] | [INFO] [stderr] 32 | sdl2::render::DriverAuto, [INFO] [stderr] | ^^^^^^^^^^ not found in `sdl2::render` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `ACCELERATED` in module `sdl2::render` [INFO] [stderr] --> src/main.rs:33:70 [INFO] [stderr] | [INFO] [stderr] 33 | sdl2::render::ACCELERATED) { [INFO] [stderr] | ^^^^^^^^^^^ not found in `sdl2::render` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `default_sched_threads` in module `std::rt` [INFO] [stderr] --> src/main.rs:43:32 [INFO] [stderr] | [INFO] [stderr] 43 | let num_threads = std::rt::default_sched_threads(); [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ not found in `std::rt` [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `RGB24` in module `sdl2::pixels` [INFO] [stderr] --> src/main.rs:48:63 [INFO] [stderr] | [INFO] [stderr] 48 | let texture = match renderer.create_texture(sdl2::pixels::RGB24, [INFO] [stderr] | ^^^^^ not found in `sdl2::pixels` [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 7 | use sdl2::pixels::PixelFormatEnum::RGB24; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find value `AccessStreaming` in module `sdl2::render` [INFO] [stderr] --> src/main.rs:49:67 [INFO] [stderr] | [INFO] [stderr] 49 | sdl2::render::AccessStreaming, [INFO] [stderr] | ^^^^^^^^^^^^^^^ not found in `sdl2::render` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/main.rs:50:58 [INFO] [stderr] | [INFO] [stderr] 50 | W as int, H as int) { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/main.rs:50:68 [INFO] [stderr] | [INFO] [stderr] 50 | W as int, H as int) { [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/main.rs:55:14 [INFO] [stderr] | [INFO] [stderr] 55 | for x in range(0, W) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/main.rs:56:18 [INFO] [stderr] | [INFO] [stderr] 56 | for y in range(0, H) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/main.rs:63:18 [INFO] [stderr] | [INFO] [stderr] 63 | for _ in range(0, num_threads) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:76:25 [INFO] [stderr] | [INFO] [stderr] 76 | let index : uint = ((point.x + point.y * W) * 3) as uint; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 7 | use sdl2::sys::uint; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:76:65 [INFO] [stderr] | [INFO] [stderr] 76 | let index : uint = ((point.x + point.y * W) * 3) as uint; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 7 | use sdl2::sys::uint; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `int` in this scope [INFO] [stderr] --> src/main.rs:81:60 [INFO] [stderr] | [INFO] [stderr] 81 | let _ = texture.update(None, data.as_slice(), W as int * 3); [INFO] [stderr] | ^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `quit` in crate `sdl2` [INFO] [stderr] --> src/main.rs:98:11 [INFO] [stderr] | [INFO] [stderr] 98 | sdl2::quit(); [INFO] [stderr] | ^^^^ not found in `sdl2` [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `Sender` in this scope [INFO] [stderr] --> src/main.rs:101:20 [INFO] [stderr] | [INFO] [stderr] 101 | fn new_worker(tx: &Sender<(Rect, Vec)>, rect: Rect, scene: Arc) { [INFO] [stderr] | ^^^^^^ [INFO] [stderr] help: a trait with a similar name exists [INFO] [stderr] | [INFO] [stderr] 101 | fn new_worker(tx: &Send<(Rect, Vec)>, rect: Rect, scene: Arc) { [INFO] [stderr] | ^^^^ [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 7 | use std::sync::mpsc::Sender; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `spawn` in this scope [INFO] [stderr] --> src/main.rs:103:5 [INFO] [stderr] | [INFO] [stderr] 103 | spawn(proc() { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 7 | use std::thread::spawn; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `proc` in this scope [INFO] [stderr] --> src/main.rs:103:11 [INFO] [stderr] | [INFO] [stderr] 103 | spawn(proc() { [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:104:40 [INFO] [stderr] | [INFO] [stderr] 104 | let num_pixels = rect.width as uint * rect.height as uint; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 7 | use sdl2::sys::uint; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:104:62 [INFO] [stderr] | [INFO] [stderr] 104 | let num_pixels = rect.width as uint * rect.height as uint; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 7 | use sdl2::sys::uint; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0412]: cannot find type `uint` in this scope [INFO] [stderr] --> src/main.rs:124:18 [INFO] [stderr] | [INFO] [stderr] 124 | const N_SAMPLES: uint = 9; [INFO] [stderr] | ^^^^ not found in this scope [INFO] [stderr] help: possible candidate is found in another module, you can import it into scope [INFO] [stderr] | [INFO] [stderr] 7 | use sdl2::sys::uint; [INFO] [stderr] | [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/main.rs:146:14 [INFO] [stderr] | [INFO] [stderr] 146 | for i in range(0, s) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0425]: cannot find function `range` in this scope [INFO] [stderr] --> src/main.rs:147:18 [INFO] [stderr] | [INFO] [stderr] 147 | for j in range(0, s) { [INFO] [stderr] | ^^^^^ not found in this scope [INFO] [stderr] [INFO] [stderr] error[E0658]: box expression syntax is experimental; you can call `Box::new` instead [INFO] [stderr] --> src/parse_scene/lights.rs:60:5 [INFO] [stderr] | [INFO] [stderr] 60 | / box PointLight { position: Point3::new(x, y, z), [INFO] [stderr] 61 | | color: Color { r: r, g: g, b: b }, [INFO] [stderr] 62 | | intensity: intensity, [INFO] [stderr] 63 | | radius: radius } [INFO] [stderr] | |_____________________________________^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/49733 [INFO] [stderr] = help: add `#![feature(box_syntax)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error[E0658]: box expression syntax is experimental; you can call `Box::new` instead [INFO] [stderr] --> src/parse_scene/lights.rs:94:5 [INFO] [stderr] | [INFO] [stderr] 94 | / box DirectionalLight { direction: Vector3::new(x, y, z).normalize(), [INFO] [stderr] 95 | | color: Color { r: r, g: g, b: b }, [INFO] [stderr] 96 | | intensity: intensity, [INFO] [stderr] 97 | | angle: angle } [INFO] [stderr] | |_________________________________________^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/49733 [INFO] [stderr] = help: add `#![feature(box_syntax)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error[E0658]: box expression syntax is experimental; you can call `Box::new` instead [INFO] [stderr] --> src/parse_scene/objects.rs:44:29 [INFO] [stderr] | [INFO] [stderr] 44 | SceneObject { geometry: box Sphere::new((x, y, z), radius), [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/49733 [INFO] [stderr] = help: add `#![feature(box_syntax)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] warning: unused imports: `IndependentSample`, `Normal` [INFO] [stderr] --> src/scene/util.rs:4:32 [INFO] [stderr] | [INFO] [stderr] 4 | use std::rand::distributions::{Normal, IndependentSample}; [INFO] [stderr] | ^^^^^^ ^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(unused_imports)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/scene/scene_objects.rs:14:23 [INFO] [stderr] | [INFO] [stderr] 14 | pub geometry: Box [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Intersectable+Send+Sync+'static` [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(bare_trait_objects)]` on by default [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/scene/scene_lights.rs:23:26 [INFO] [stderr] | [INFO] [stderr] 23 | pub illuminator: Box [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Illuminator+Send+Sync+'static` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/parse_scene/lights.rs:35:47 [INFO] [stderr] | [INFO] [stderr] 35 | fn point_from_json(light: &JsonObject) -> Box { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Illuminator+Send+Sync` [INFO] [stderr] [INFO] [stderr] warning: trait objects without an explicit `dyn` are deprecated [INFO] [stderr] --> src/parse_scene/lights.rs:68:53 [INFO] [stderr] | [INFO] [stderr] 68 | fn directional_from_json(light: &JsonObject) -> Box { [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ help: use `dyn`: `dyn Illuminator+Send+Sync` [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stderr] --> src/main.rs:5:1 [INFO] [stderr] | [INFO] [stderr] 5 | extern crate serialize; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/27812 [INFO] [stderr] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] warning: use of deprecated item 'lodepng::LCT_RGB': use `ColorType::RGB` instead [INFO] [stderr] --> src/main.rs:93:61 [INFO] [stderr] | [INFO] [stderr] 93 | match lodepng::encode_file(path, data.as_slice(), W, H, lodepng::LCT_RGB, 8) { [INFO] [stderr] | ^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: `#[warn(deprecated)]` on by default [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stderr] --> src/parse_scene/mod.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use serialize::json; [INFO] [stderr] | ^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/27812 [INFO] [stderr] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stderr] --> src/parse_scene/mod.rs:20:23 [INFO] [stderr] | [INFO] [stderr] 20 | let json_object = json::from_str(content_string).unwrap(); [INFO] [stderr] | ^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/27812 [INFO] [stderr] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stderr] --> src/parse_scene/lights.rs:2:23 [INFO] [stderr] | [INFO] [stderr] 2 | use serialize::json::{Json, JsonObject}; [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/27812 [INFO] [stderr] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stderr] --> src/parse_scene/lights.rs:6:35 [INFO] [stderr] | [INFO] [stderr] 6 | pub fn parse_lights(lights_json: &Json) -> Vec { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/27812 [INFO] [stderr] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stderr] --> src/parse_scene/lights.rs:17:29 [INFO] [stderr] | [INFO] [stderr] 17 | fn parse_light(light_json: &Json) -> SceneLight { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/27812 [INFO] [stderr] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stderr] --> src/parse_scene/objects.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use serialize::json::Json; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/27812 [INFO] [stderr] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stderr] --> src/parse_scene/objects.rs:6:37 [INFO] [stderr] | [INFO] [stderr] 6 | pub fn parse_objects(objects_json: &Json, materials: &TreeMap>) -> Vec { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/27812 [INFO] [stderr] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stderr] --> src/parse_scene/objects.rs:17:28 [INFO] [stderr] | [INFO] [stderr] 17 | fn parse_obj(object_json: &Json, materials: &TreeMap>) -> SceneObject { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/27812 [INFO] [stderr] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stderr] --> src/parse_scene/materials.rs:3:5 [INFO] [stderr] | [INFO] [stderr] 3 | use serialize::json::Json; [INFO] [stderr] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/27812 [INFO] [stderr] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stderr] --> src/parse_scene/materials.rs:7:41 [INFO] [stderr] | [INFO] [stderr] 7 | pub fn parse_materials(materials_json: &Json) -> TreeMap> { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/27812 [INFO] [stderr] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error[E0658]: use of unstable library feature 'rustc_private': this crate is being loaded from the sysroot, an unstable location; did you mean to load this crate from crates.io via `Cargo.toml` instead? [INFO] [stderr] --> src/parse_scene/materials.rs:20:30 [INFO] [stderr] | [INFO] [stderr] 20 | fn parse_mat(material_json: &Json) -> (String, Arc) { [INFO] [stderr] | ^^^^ [INFO] [stderr] | [INFO] [stderr] = note: for more information, see https://github.com/rust-lang/rust/issues/27812 [INFO] [stderr] = help: add `#![feature(rustc_private)]` to the crate attributes to enable [INFO] [stderr] [INFO] [stderr] error: aborting due to 85 previous errors [INFO] [stderr] [INFO] [stderr] Some errors have detailed explanations: E0405, E0412, E0425, E0432, E0433, E0658. [INFO] [stderr] For more information about an error, try `rustc --explain E0405`. [INFO] [stderr] error: Could not compile `raytracer`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `"docker" "inspect" "0775d9820fed476d2b3a82590a92ae6675a3583aeaf3a829375386015fb9dc61"` [INFO] running `"docker" "rm" "-f" "0775d9820fed476d2b3a82590a92ae6675a3583aeaf3a829375386015fb9dc61"` [INFO] [stdout] 0775d9820fed476d2b3a82590a92ae6675a3583aeaf3a829375386015fb9dc61