[INFO] fetching crate tesserae 0.3.1... [INFO] testing tesserae-0.3.1 against beta-2021-09-08 for beta-1.56-1 [INFO] extracting crate tesserae 0.3.1 into /workspace/builds/worker-76/source [INFO] validating manifest of crates.io crate tesserae 0.3.1 on toolchain beta-2021-09-08 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-09-08" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] started tweaking crates.io crate tesserae 0.3.1 [INFO] finished tweaking crates.io crate tesserae 0.3.1 [INFO] tweaked toml for crates.io crate tesserae 0.3.1 written to /workspace/builds/worker-76/source/Cargo.toml [INFO] crate crates.io crate tesserae 0.3.1 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-09-08" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-76/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-76/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-09-08" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 93bccf52e4cf98d11627560ac2ad362d8f60d7ed611018017f1524383771815f [INFO] running `Command { std: "docker" "start" "-a" "93bccf52e4cf98d11627560ac2ad362d8f60d7ed611018017f1524383771815f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "93bccf52e4cf98d11627560ac2ad362d8f60d7ed611018017f1524383771815f", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "93bccf52e4cf98d11627560ac2ad362d8f60d7ed611018017f1524383771815f", kill_on_drop: false }` [INFO] [stdout] 93bccf52e4cf98d11627560ac2ad362d8f60d7ed611018017f1524383771815f [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-76/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-76/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-09-08" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b401e30e65a8937065187c46417efe50483a16268794c8b8a7631763864f3a7d [INFO] running `Command { std: "docker" "start" "-a" "b401e30e65a8937065187c46417efe50483a16268794c8b8a7631763864f3a7d", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling libc v0.2.66 [INFO] [stderr] Compiling sdl2 v0.33.0 [INFO] [stderr] Compiling byteorder v1.3.2 [INFO] [stderr] Compiling sdl2-sys v0.33.0 [INFO] [stderr] Compiling tesserae v0.3.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 7.68s [INFO] running `Command { std: "docker" "inspect" "b401e30e65a8937065187c46417efe50483a16268794c8b8a7631763864f3a7d", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b401e30e65a8937065187c46417efe50483a16268794c8b8a7631763864f3a7d", kill_on_drop: false }` [INFO] [stdout] b401e30e65a8937065187c46417efe50483a16268794c8b8a7631763864f3a7d [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-76/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-76/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-09-08" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 23a408a7a958096e0366b6dd5b53519c19a94963e56c938a1527a795dbfabede [INFO] running `Command { std: "docker" "start" "-a" "23a408a7a958096e0366b6dd5b53519c19a94963e56c938a1527a795dbfabede", kill_on_drop: false }` [INFO] [stderr] Compiling unicode-width v0.1.7 [INFO] [stderr] Compiling strsim v0.8.0 [INFO] [stderr] Compiling ansi_term v0.11.0 [INFO] [stderr] Compiling vec_map v0.8.1 [INFO] [stderr] Compiling bit_reverse v0.1.8 [INFO] [stderr] Compiling atty v0.2.14 [INFO] [stderr] Compiling textwrap v0.11.0 [INFO] [stderr] Compiling clap v2.33.0 [INFO] [stderr] Compiling tesserae v0.3.1 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 13.03s [INFO] running `Command { std: "docker" "inspect" "23a408a7a958096e0366b6dd5b53519c19a94963e56c938a1527a795dbfabede", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "23a408a7a958096e0366b6dd5b53519c19a94963e56c938a1527a795dbfabede", kill_on_drop: false }` [INFO] [stdout] 23a408a7a958096e0366b6dd5b53519c19a94963e56c938a1527a795dbfabede [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-76/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-76/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=warn" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:a89201d6b5b9fd45c15d5952ece0a0129e7e80cb26ec023fd59cf09bc26f1604" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-09-08" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 4996813f643d8aee30bc3606fcf513cf5d23e7d6a01a372240eeab35d3dd53fe [INFO] running `Command { std: "docker" "start" "-a" "4996813f643d8aee30bc3606fcf513cf5d23e7d6a01a372240eeab35d3dd53fe", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.06s [INFO] [stdout] [INFO] [stderr] Running unittests (/opt/rustwide/target/debug/deps/tesserae-8c5970bdcee8f3e1) [INFO] [stdout] running 0 tests [INFO] [stderr] Doc-tests tesserae [INFO] [stdout] [INFO] [stdout] test result: ok. 0 passed; 0 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.00s [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] running 6 tests [INFO] [stdout] test src/lib.rs - Graphic<()>::load_from (line 329) ... FAILED [INFO] [stdout] test src/lib.rs - Graphic<()>::blank (line 370) ... FAILED [INFO] [stdout] test src/lib.rs - TileSet::load_from (line 169) ... FAILED [INFO] [stdout] test src/lib.rs - Graphic<()>::textured (line 381) ... FAILED [INFO] [stdout] test src/lib.rs - Graphic<()>::tile_cache_textured (line 400) ... FAILED [INFO] [stdout] test src/lib.rs - Graphic<()>::load_file (line 317) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - Graphic<()>::load_from (line 329) stdout ---- [INFO] [stdout] error: expected `;`, found `}` [INFO] [stdout] --> src/lib.rs:330:69 [INFO] [stdout] | [INFO] [stdout] 3 | let g = Graphic::load_from(Cursor::new(&include_bytes!("file")[..])) [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 4 | } _doctest_main_src_lib_rs_329_0() } [INFO] [stdout] | - unexpected token [INFO] [stdout] [INFO] [stdout] error: couldn't read src/file: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:330:41 [INFO] [stdout] | [INFO] [stdout] 3 | let g = Graphic::load_from(Cursor::new(&include_bytes!("file")[..])) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `include_bytes` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Graphic` [INFO] [stdout] --> src/lib.rs:330:9 [INFO] [stdout] | [INFO] [stdout] 3 | let g = Graphic::load_from(Cursor::new(&include_bytes!("file")[..])) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use tesserae::Graphic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Cursor` [INFO] [stdout] --> src/lib.rs:330:28 [INFO] [stdout] | [INFO] [stdout] 3 | let g = Graphic::load_from(Cursor::new(&include_bytes!("file")[..])) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use sdl2::mouse::Cursor; [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::linked_list::Cursor; [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::Cursor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 4 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Graphic<()>::blank (line 370) stdout ---- [INFO] [stdout] error: expected `;`, found `Graphic` [INFO] [stdout] --> src/lib.rs:371:21 [INFO] [stdout] | [INFO] [stdout] 3 | Graphic::blank(8,12) [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 4 | // same as [INFO] [stdout] 5 | Graphic::solid(8,12,Default::default()) [INFO] [stdout] | ------- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Graphic` [INFO] [stdout] --> src/lib.rs:371:1 [INFO] [stdout] | [INFO] [stdout] 3 | Graphic::blank(8,12) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use tesserae::Graphic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Graphic` [INFO] [stdout] --> src/lib.rs:373:1 [INFO] [stdout] | [INFO] [stdout] 5 | Graphic::solid(8,12,Default::default()) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use tesserae::Graphic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - TileSet::load_from (line 169) stdout ---- [INFO] [stdout] error: couldn't read src/tile_set: No such file or directory (os error 2) [INFO] [stdout] --> src/lib.rs:170:10 [INFO] [stdout] | [INFO] [stdout] 3 | let ts = include_bytes!("tile_set"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] | [INFO] [stdout] = note: this error originates in the macro `include_bytes` (in Nightly builds, run with -Z macro-backtrace for more info) [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `TileSet` [INFO] [stdout] --> src/lib.rs:171:1 [INFO] [stdout] | [INFO] [stdout] 4 | TileSet::load_from(Cursor::new(&ts[..])) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use tesserae::TileSet; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Cursor` [INFO] [stdout] --> src/lib.rs:171:20 [INFO] [stdout] | [INFO] [stdout] 4 | TileSet::load_from(Cursor::new(&ts[..])) [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing one of these items [INFO] [stdout] | [INFO] [stdout] 2 | use sdl2::mouse::Cursor; [INFO] [stdout] | [INFO] [stdout] 2 | use std::collections::linked_list::Cursor; [INFO] [stdout] | [INFO] [stdout] 2 | use std::io::Cursor; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] For more information about this error, try `rustc --explain E0433`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Graphic<()>::textured (line 381) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Graphics` [INFO] [stdout] --> src/lib.rs:382:9 [INFO] [stdout] | [INFO] [stdout] 3 | let g = Graphics::load_file("path")?.textured(texture_creator); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Graphics` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `texture_creator` in this scope [INFO] [stdout] --> src/lib.rs:382:47 [INFO] [stdout] | [INFO] [stdout] 3 | let g = Graphics::load_file("path")?.textured(texture_creator); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:382:36 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_381_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let g = Graphics::load_file("path")?.textured(texture_creator); [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } _doctest_main_src_lib_rs_381_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Graphic<()>::tile_cache_textured (line 400) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Graphics` [INFO] [stdout] --> src/lib.rs:401:9 [INFO] [stdout] | [INFO] [stdout] 3 | let g = Graphics::load_file("path")?.tile_cache_textured(texture_creator); [INFO] [stdout] | ^^^^^^^^ use of undeclared type `Graphics` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `texture_creator` in this scope [INFO] [stdout] --> src/lib.rs:401:58 [INFO] [stdout] | [INFO] [stdout] 3 | let g = Graphics::load_file("path")?.tile_cache_textured(texture_creator); [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:401:36 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_400_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | let g = Graphics::load_file("path")?.tile_cache_textured(texture_creator); [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 4 | | } _doctest_main_src_lib_rs_400_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 3 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - Graphic<()>::load_file (line 317) stdout ---- [INFO] [stdout] error: expected `;`, found `Graphic` [INFO] [stdout] --> src/lib.rs:318:25 [INFO] [stdout] | [INFO] [stdout] 3 | Graphic::load_file(path) [INFO] [stdout] | ^ help: add `;` here [INFO] [stdout] 4 | // same as [INFO] [stdout] 5 | Graphic::load_from(File::open(path)?) [INFO] [stdout] | ------- unexpected token [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Graphic` [INFO] [stdout] --> src/lib.rs:318:1 [INFO] [stdout] | [INFO] [stdout] 3 | Graphic::load_file(path) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use tesserae::Graphic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found built-in attribute `path` [INFO] [stdout] --> src/lib.rs:318:20 [INFO] [stdout] | [INFO] [stdout] 3 | Graphic::load_file(path) [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `Graphic` [INFO] [stdout] --> src/lib.rs:320:1 [INFO] [stdout] | [INFO] [stdout] 5 | Graphic::load_from(File::open(path)?) [INFO] [stdout] | ^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use tesserae::Graphic; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `File` [INFO] [stdout] --> src/lib.rs:320:20 [INFO] [stdout] | [INFO] [stdout] 5 | Graphic::load_from(File::open(path)?) [INFO] [stdout] | ^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use std::fs::File; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0423]: expected value, found built-in attribute `path` [INFO] [stdout] --> src/lib.rs:320:31 [INFO] [stdout] | [INFO] [stdout] 5 | Graphic::load_from(File::open(path)?) [INFO] [stdout] | ^^^^ not a value [INFO] [stdout] [INFO] [stdout] error[E0277]: the `?` operator can only be used in a function that returns `Result` or `Option` (or another type that implements `FromResidual`) [INFO] [stdout] --> src/lib.rs:320:36 [INFO] [stdout] | [INFO] [stdout] 2 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_317_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 3 | | Graphic::load_file(path) [INFO] [stdout] 4 | | // same as [INFO] [stdout] 5 | | Graphic::load_from(File::open(path)?) [INFO] [stdout] | | ^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | } _doctest_main_src_lib_rs_317_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `FromResidual<_>` is not implemented for `()` [INFO] [stdout] note: required by `from_residual` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0423, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] src/lib.rs - Graphic<()>::blank (line 370) [INFO] [stdout] src/lib.rs - Graphic<()>::load_file (line 317) [INFO] [stdout] src/lib.rs - Graphic<()>::load_from (line 329) [INFO] [stdout] src/lib.rs - Graphic<()>::textured (line 381) [INFO] [stdout] src/lib.rs - Graphic<()>::tile_cache_textured (line 400) [INFO] [stdout] src/lib.rs - TileSet::load_from (line 169) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 6 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.36s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "4996813f643d8aee30bc3606fcf513cf5d23e7d6a01a372240eeab35d3dd53fe", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "4996813f643d8aee30bc3606fcf513cf5d23e7d6a01a372240eeab35d3dd53fe", kill_on_drop: false }` [INFO] [stdout] 4996813f643d8aee30bc3606fcf513cf5d23e7d6a01a372240eeab35d3dd53fe