[INFO] crate rs-tiled_json 0.1.0 is already in cache [INFO] testing rs-tiled_json-0.1.0 against master#8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e for pr-74409 [INFO] extracting crate rs-tiled_json 0.1.0 into /workspace/builds/worker-12/source [INFO] validating manifest of crates.io crate rs-tiled_json 0.1.0 on toolchain 8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate rs-tiled_json 0.1.0 [INFO] finished tweaking crates.io crate rs-tiled_json 0.1.0 [INFO] tweaked toml for crates.io crate rs-tiled_json 0.1.0 written to /workspace/builds/worker-12/source/Cargo.toml [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update", kill_on_drop: false }` [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "MAP_USER_ID=0" "-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" "--network" "none" "rustops/crates-build-env@sha256:d9fbb4e2287ab3795bdefaf705efb7541a8875c13bce71e067d6b01dc5ed759b" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 872e9818d3d1a99648f460f1cee86b9627fa95e140b3663f3837f92ea0ab632a [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "872e9818d3d1a99648f460f1cee86b9627fa95e140b3663f3837f92ea0ab632a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "872e9818d3d1a99648f460f1cee86b9627fa95e140b3663f3837f92ea0ab632a", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "872e9818d3d1a99648f460f1cee86b9627fa95e140b3663f3837f92ea0ab632a", kill_on_drop: false }` [INFO] [stdout] 872e9818d3d1a99648f460f1cee86b9627fa95e140b3663f3837f92ea0ab632a [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:d9fbb4e2287ab3795bdefaf705efb7541a8875c13bce71e067d6b01dc5ed759b" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 4eb34b680677204ff2fc823a7f10aa2fe374acd5faf58144fd6d2e54201526bc [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "4eb34b680677204ff2fc823a7f10aa2fe374acd5faf58144fd6d2e54201526bc", kill_on_drop: false }` [INFO] [stderr] Compiling adler v0.2.3 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling miniz_oxide v0.4.0 [INFO] [stderr] Compiling flate2 v1.0.16 [INFO] [stderr] Compiling rs-tiled_json v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 5.63s [INFO] running `Command { std: "docker" "inspect" "4eb34b680677204ff2fc823a7f10aa2fe374acd5faf58144fd6d2e54201526bc", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4eb34b680677204ff2fc823a7f10aa2fe374acd5faf58144fd6d2e54201526bc", kill_on_drop: false }` [INFO] [stdout] 4eb34b680677204ff2fc823a7f10aa2fe374acd5faf58144fd6d2e54201526bc [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:d9fbb4e2287ab3795bdefaf705efb7541a8875c13bce71e067d6b01dc5ed759b" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] fbb29264d729e2d57f5281f6f1dd0ef1f1106eb5b54e48edc422688a6e1f5c99 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "fbb29264d729e2d57f5281f6f1dd0ef1f1106eb5b54e48edc422688a6e1f5c99", kill_on_drop: false }` [INFO] [stderr] Compiling rs-tiled_json v0.1.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 2.00s [INFO] running `Command { std: "docker" "inspect" "fbb29264d729e2d57f5281f6f1dd0ef1f1106eb5b54e48edc422688a6e1f5c99", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "fbb29264d729e2d57f5281f6f1dd0ef1f1106eb5b54e48edc422688a6e1f5c99", kill_on_drop: false }` [INFO] [stdout] fbb29264d729e2d57f5281f6f1dd0ef1f1106eb5b54e48edc422688a6e1f5c99 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-12/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" "MAP_USER_ID=0" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--network" "none" "rustops/crates-build-env@sha256:d9fbb4e2287ab3795bdefaf705efb7541a8875c13bce71e067d6b01dc5ed759b" "/opt/rustwide/cargo-home/bin/cargo" "+8534be72fc3b9c5f2f2dc4e4ee7b651a008e9a3e" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 450e37424b2fac2ce74084a4a45a8aabe2233f5b99b7c1a7a2fa6b095d5aa3b3 [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] running `Command { std: "docker" "start" "-a" "450e37424b2fac2ce74084a4a45a8aabe2233f5b99b7c1a7a2fa6b095d5aa3b3", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.08s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/rs_tiled_json-e4430e23eb015328 [INFO] [stdout] [INFO] [stderr] Doc-tests rs-tiled_json [INFO] [stdout] running 0 tests [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 17 tests [INFO] [stdout] test src/color.rs - color (line 9) ... FAILED [INFO] [stdout] test src/layer.rs - layer (line 64) ... FAILED [INFO] [stdout] test src/property.rs - property (line 22) ... FAILED [INFO] [stdout] test src/map.rs - map (line 11) ... FAILED [INFO] [stdout] test src/layer.rs - layer (line 28) ... FAILED [INFO] [stdout] test src/map.rs - map (line 21) ... FAILED [INFO] [stdout] test src/property.rs - property (line 32) ... FAILED [INFO] [stdout] test src/layer.rs - layer (line 23) ... FAILED [INFO] [stdout] test src/tileset.rs - tileset::Tile (line 290) ... FAILED [INFO] [stdout] test src/layer.rs - layer (line 41) ... FAILED [INFO] [stdout] test src/lib.rs - (line 52) ... FAILED [INFO] [stdout] test src/lib.rs - (line 33) ... FAILED [INFO] [stdout] test src/tileset.rs - tileset (line 24) ... FAILED [INFO] [stdout] test src/lib.rs - load_map (line 133) ... FAILED [INFO] [stdout] test src/tileset.rs - tileset (line 13) ... FAILED [INFO] [stdout] test src/layer.rs - layer (line 33) ... FAILED [INFO] [stdout] test src/layer.rs - layer (line 19) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/color.rs - color (line 9) stdout ---- [INFO] [stdout] error: expected one of `!` or `[`, found `rrggbb` [INFO] [stdout] --> src/color.rs:10:2 [INFO] [stdout] | [INFO] [stdout] 3 | #rrggbb [INFO] [stdout] | ^^^^^^ expected one of `!` or `[` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/layer.rs - layer (line 64) stdout ---- [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `->` [INFO] [stdout] --> src/layer.rs:65:52 [INFO] [stdout] | [INFO] [stdout] 3 | tiled_json::Layer::get_property(&self, name: &str) -> Option<&tiled_json::Property>; [INFO] [stdout] | ^^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/property.rs - property (line 22) stdout ---- [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `->` [INFO] [stdout] --> src/property.rs:23:29 [INFO] [stdout] | [INFO] [stdout] 3 | Property::get_string(&self) -> Option<&String>; [INFO] [stdout] | ^^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/map.rs - map (line 11) stdout ---- [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `->` [INFO] [stdout] --> src/map.rs:12:32 [INFO] [stdout] | [INFO] [stdout] 3 | tiled_json::Map::layers(&self) -> &Vec; [INFO] [stdout] | ^^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/layer.rs - layer (line 28) stdout ---- [INFO] [stdout] error: expected one of `!`, `(`, `.`, `::`, `;`, `<`, `?`, or `}`, found `transparentcolor` [INFO] [stdout] --> src/layer.rs:30:5 [INFO] [stdout] | [INFO] [stdout] 3 | image: String [INFO] [stdout] | - - expected one of 8 possible tokens [INFO] [stdout] | | [INFO] [stdout] | tried to parse a type due to this type ascription [INFO] [stdout] 4 | transparentcolor: Option [INFO] [stdout] | ^^^^^^^^^^^^^^^^ unexpected token [INFO] [stdout] | [INFO] [stdout] = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `: ` [INFO] [stdout] = note: see issue #23416 for more information [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/map.rs - map (line 21) stdout ---- [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `->` [INFO] [stdout] --> src/map.rs:22:50 [INFO] [stdout] | [INFO] [stdout] 3 | tiled_json::Map::get_property(&self, name: &str) -> Option<&tiled_json::Property>; [INFO] [stdout] | ^^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/property.rs - property (line 32) stdout ---- [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `->` [INFO] [stdout] --> src/property.rs:33:35 [INFO] [stdout] | [INFO] [stdout] 3 | ::get_property(&self, name: &str) -> Option<&tiled_json::Property>; [INFO] [stdout] | ^^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/layer.rs - layer (line 23) stdout ---- [INFO] [stdout] error: expected one of `!`, `(`, `.`, `::`, `;`, `<`, `?`, or `}`, found `objects` [INFO] [stdout] --> src/layer.rs:25:5 [INFO] [stdout] | [INFO] [stdout] 3 | draworder: tiled_json::DrawOrder [INFO] [stdout] | - - expected one of 8 possible tokens [INFO] [stdout] | | [INFO] [stdout] | help: maybe write a path separator here: `::` [INFO] [stdout] 4 | objects: Vec [INFO] [stdout] | ^^^^^^^ unexpected token [INFO] [stdout] | [INFO] [stdout] = note: `#![feature(type_ascription)]` lets you annotate an expression with a type: `: ` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/tileset.rs - tileset::Tile (line 290) stdout ---- [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `->` [INFO] [stdout] --> src/tileset.rs:291:51 [INFO] [stdout] | [INFO] [stdout] 3 | tiled_json::Tile::get_property(&self, name: &str) -> Option<&tiled_json::Property>; [INFO] [stdout] | ^^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/layer.rs - layer (line 41) stdout ---- [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `->` [INFO] [stdout] --> src/layer.rs:42:41 [INFO] [stdout] | [INFO] [stdout] 3 | tiled_json::Layer::is_tile_layer(&self) -> bool; [INFO] [stdout] | ^^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 52) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tiled_json` [INFO] [stdout] --> src/lib.rs:53:11 [INFO] [stdout] | [INFO] [stdout] 3 | let map = tiled_json::load_map("map1.json").unwrap(); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type or module `tiled_json` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tiled_json` [INFO] [stdout] --> src/lib.rs:63:29 [INFO] [stdout] | [INFO] [stdout] 13 | let flip_bits = tiled_json::gid_flipped_hvd( *n ); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type or module `tiled_json` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tiled_json` [INFO] [stdout] --> src/lib.rs:64:23 [INFO] [stdout] | [INFO] [stdout] 14 | let gid = tiled_json::gid_without_flags( *n ); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type or module `tiled_json` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `MSECS_SINCE_WORLD_CREATION` in this scope [INFO] [stdout] --> src/lib.rs:70:50 [INFO] [stdout] | [INFO] [stdout] 20 | let anim_coords = tile.get_anim( MSECS_SINCE_WORLD_CREATION ).unwrap(); // this may not exist [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 33) stdout ---- [INFO] [stdout] error: expected one of `!`, `.`, `::`, `;`, `?`, `{`, `}`, or an operator, found `Layers` [INFO] [stdout] --> src/lib.rs:35:9 [INFO] [stdout] | [INFO] [stdout] 3 | Map [INFO] [stdout] | - expected one of 8 possible tokens [INFO] [stdout] 4 | Layers [INFO] [stdout] | ^^^^^^ unexpected token [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/tileset.rs - tileset (line 24) stdout ---- [INFO] [stdout] error: expected one of `.`, `;`, `?`, `}`, or an operator, found `->` [INFO] [stdout] --> src/tileset.rs:25:54 [INFO] [stdout] | [INFO] [stdout] 3 | tiled_json::Tileset::get_property(&self, name: &str) -> Option<&tiled_json::Property>; [INFO] [stdout] | ^^ expected one of `.`, `;`, `?`, `}`, or an operator [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - load_map (line 133) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tiled_json` [INFO] [stdout] --> src/lib.rs:134:11 [INFO] [stdout] | [INFO] [stdout] 3 | let map = tiled_json::load_map("map1.json"); [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type or module `tiled_json` [INFO] [stdout] [INFO] [stdout] error: aborting due to previous error [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/tileset.rs - tileset (line 13) stdout ---- [INFO] [stdout] error: free function without a body [INFO] [stdout] --> src/tileset.rs:14:1 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn coord_by_gid(&self, gid: u32) -> (u16, u16); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: provide a definition for the function: `{ }` [INFO] [stdout] [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> src/tileset.rs:14:21 [INFO] [stdout] | [INFO] [stdout] 3 | pub fn coord_by_gid(&self, gid: u32) -> (u16, u16); [INFO] [stdout] | ^^^^^ not semantically valid as function parameter [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] [INFO] [stdout] error: free function without a body [INFO] [stdout] --> src/tileset.rs:15:5 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn anim_by_gid(&self, gid: u32, milliseconds: u32) -> (u16, u16); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: provide a definition for the function: `{ }` [INFO] [stdout] [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> src/tileset.rs:15:24 [INFO] [stdout] | [INFO] [stdout] 4 | pub fn anim_by_gid(&self, gid: u32, milliseconds: u32) -> (u16, u16); [INFO] [stdout] | ^^^^^ not semantically valid as function parameter [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] [INFO] [stdout] error: free function without a body [INFO] [stdout] --> src/tileset.rs:16:5 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn collision_by_gid(&self, gid: u32) -> Option<&Layer>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: provide a definition for the function: `{ }` [INFO] [stdout] [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> src/tileset.rs:16:29 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn collision_by_gid(&self, gid: u32) -> Option<&Layer>; [INFO] [stdout] | ^^^^^ not semantically valid as function parameter [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] [INFO] [stdout] error: free function without a body [INFO] [stdout] --> src/tileset.rs:17:5 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn tile_by_gid(&self, gid: u32) -> Option<&Tile>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: provide a definition for the function: `{ }` [INFO] [stdout] [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> src/tileset.rs:17:24 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn tile_by_gid(&self, gid: u32) -> Option<&Tile>; [INFO] [stdout] | ^^^^^ not semantically valid as function parameter [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] [INFO] [stdout] error: free function without a body [INFO] [stdout] --> src/tileset.rs:18:5 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn type_by_gid(&self, gid: u32) -> Option<&String>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: provide a definition for the function: `{ }` [INFO] [stdout] [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> src/tileset.rs:18:24 [INFO] [stdout] | [INFO] [stdout] 7 | pub fn type_by_gid(&self, gid: u32) -> Option<&String>; [INFO] [stdout] | ^^^^^ not semantically valid as function parameter [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] [INFO] [stdout] error: free function without a body [INFO] [stdout] --> src/tileset.rs:19:5 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn properties_by_gid(&self, gid: u32) -> Option<&Vec>; [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^- [INFO] [stdout] | | [INFO] [stdout] | help: provide a definition for the function: `{ }` [INFO] [stdout] [INFO] [stdout] error: `self` parameter is only allowed in associated functions [INFO] [stdout] --> src/tileset.rs:19:30 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn properties_by_gid(&self, gid: u32) -> Option<&Vec>; [INFO] [stdout] | ^^^^^ not semantically valid as function parameter [INFO] [stdout] | [INFO] [stdout] = note: associated functions are those in `impl` or `trait` definitions [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Layer` in this scope [INFO] [stdout] --> src/tileset.rs:16:57 [INFO] [stdout] | [INFO] [stdout] 5 | pub fn collision_by_gid(&self, gid: u32) -> Option<&Layer>; [INFO] [stdout] | ^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rs_tiled_json::Layer; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Tile` in this scope [INFO] [stdout] --> src/tileset.rs:17:52 [INFO] [stdout] | [INFO] [stdout] 6 | pub fn tile_by_gid(&self, gid: u32) -> Option<&Tile>; [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rs_tiled_json::Tile; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Property` in this scope [INFO] [stdout] --> src/tileset.rs:19:62 [INFO] [stdout] | [INFO] [stdout] 8 | pub fn properties_by_gid(&self, gid: u32) -> Option<&Vec>; [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use rs_tiled_json::Property; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 15 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0412`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/layer.rs - layer (line 33) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `tiled_json` [INFO] [stdout] --> src/layer.rs:34:13 [INFO] [stdout] | [INFO] [stdout] 3 | layers: Vec [INFO] [stdout] | ^^^^^^^^^^ use of undeclared type or module `tiled_json` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `layers` in this scope [INFO] [stdout] --> src/layer.rs:34:1 [INFO] [stdout] | [INFO] [stdout] 3 | layers: Vec [INFO] [stdout] | ^^^^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | expecting a type here because of type ascription [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/layer.rs - layer (line 19) stdout ---- [INFO] [stdout] error[E0425]: cannot find value `data` in this scope [INFO] [stdout] --> src/layer.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 3 | data: Vec [INFO] [stdout] | ^^^^ [INFO] [stdout] | | [INFO] [stdout] | not found in this scope [INFO] [stdout] | expecting a type here because of type ascription [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> src/layer.rs:20:1 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { [INFO] [stdout] | - expected `()` because of default return type [INFO] [stdout] 3 | data: Vec [INFO] [stdout] | ^^^^^^^^^^^^^^ expected `()`, found struct `std::vec::Vec` [INFO] [stdout] | [INFO] [stdout] = note: expected unit type `()` [INFO] [stdout] found struct `std::vec::Vec` [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0308, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0308`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/color.rs - color (line 9) [INFO] [stdout] src/layer.rs - layer (line 19) [INFO] [stdout] src/layer.rs - layer (line 23) [INFO] [stdout] src/layer.rs - layer (line 28) [INFO] [stdout] src/layer.rs - layer (line 33) [INFO] [stdout] src/layer.rs - layer (line 41) [INFO] [stdout] src/layer.rs - layer (line 64) [INFO] [stdout] src/lib.rs - (line 33) [INFO] [stdout] src/lib.rs - (line 52) [INFO] [stdout] src/lib.rs - load_map (line 133) [INFO] [stdout] src/map.rs - map (line 11) [INFO] [stdout] src/map.rs - map (line 21) [INFO] [stdout] src/property.rs - property (line 22) [INFO] [stdout] src/property.rs - property (line 32) [INFO] [stdout] src/tileset.rs - tileset (line 13) [INFO] [stdout] src/tileset.rs - tileset (line 24) [INFO] [stdout] src/tileset.rs - tileset::Tile (line 290) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 17 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "450e37424b2fac2ce74084a4a45a8aabe2233f5b99b7c1a7a2fa6b095d5aa3b3", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "450e37424b2fac2ce74084a4a45a8aabe2233f5b99b7c1a7a2fa6b095d5aa3b3", kill_on_drop: false }` [INFO] [stdout] 450e37424b2fac2ce74084a4a45a8aabe2233f5b99b7c1a7a2fa6b095d5aa3b3