[INFO] crate vg 0.0.0-obsolete is already in cache [INFO] testing vg-0.0.0-obsolete against master#28742a1146f10a4f09369baad027a464acb7a766 for pr-71274 [INFO] extracting crate vg 0.0.0-obsolete into /workspace/builds/worker-2/source [INFO] validating manifest of crates.io crate vg 0.0.0-obsolete on toolchain 28742a1146f10a4f09369baad027a464acb7a766 [INFO] running `"/workspace/cargo-home/bin/cargo" "+28742a1146f10a4f09369baad027a464acb7a766" "read-manifest" "--manifest-path" "Cargo.toml"` [INFO] started tweaking crates.io crate vg 0.0.0-obsolete [INFO] finished tweaking crates.io crate vg 0.0.0-obsolete [INFO] tweaked toml for crates.io crate vg 0.0.0-obsolete written to /workspace/builds/worker-2/source/Cargo.toml [INFO] running `"/workspace/cargo-home/bin/cargo" "+28742a1146f10a4f09369baad027a464acb7a766" "generate-lockfile" "--manifest-path" "Cargo.toml" "-Zno-index-update"` [INFO] running `"/workspace/cargo-home/bin/cargo" "+28742a1146f10a4f09369baad027a464acb7a766" "fetch" "--locked" "--manifest-path" "Cargo.toml"` [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "/opt/rustwide/cargo-home/bin/cargo" "+28742a1146f10a4f09369baad027a464acb7a766" "build" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 77f51a558b7583b892055f432ef3f315af5ba66247059e8f70644b61b779bab6 [INFO] running `"docker" "start" "-a" "77f51a558b7583b892055f432ef3f315af5ba66247059e8f70644b61b779bab6"` [INFO] [stderr] Compiling byteorder v1.3.4 [INFO] [stderr] Compiling bitflags v1.2.1 [INFO] [stderr] Compiling cfg-if v0.1.10 [INFO] [stderr] Compiling inflate v0.4.5 [INFO] [stderr] Compiling crc32fast v1.2.0 [INFO] [stderr] Compiling deflate v0.7.20 [INFO] [stderr] Compiling png v0.15.3 [INFO] [stderr] Compiling vg v0.0.0-obsolete (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 8.34s [INFO] running `"docker" "inspect" "77f51a558b7583b892055f432ef3f315af5ba66247059e8f70644b61b779bab6"` [INFO] running `"docker" "rm" "-f" "77f51a558b7583b892055f432ef3f315af5ba66247059e8f70644b61b779bab6"` [INFO] [stdout] 77f51a558b7583b892055f432ef3f315af5ba66247059e8f70644b61b779bab6 [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "/opt/rustwide/cargo-home/bin/cargo" "+28742a1146f10a4f09369baad027a464acb7a766" "test" "--frozen" "--no-run"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] f623b883a306ab5beaf4c89866415f55e918adf3e475f81a38e1e6e8cd5febfd [INFO] running `"docker" "start" "-a" "f623b883a306ab5beaf4c89866415f55e918adf3e475f81a38e1e6e8cd5febfd"` [INFO] [stderr] Compiling vg v0.0.0-obsolete (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1.03s [INFO] running `"docker" "inspect" "f623b883a306ab5beaf4c89866415f55e918adf3e475f81a38e1e6e8cd5febfd"` [INFO] running `"docker" "rm" "-f" "f623b883a306ab5beaf4c89866415f55e918adf3e475f81a38e1e6e8cd5febfd"` [INFO] [stdout] f623b883a306ab5beaf4c89866415f55e918adf3e475f81a38e1e6e8cd5febfd [INFO] running `"docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2/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" "/opt/rustwide/cargo-home/bin/cargo" "+28742a1146f10a4f09369baad027a464acb7a766" "test" "--frozen"` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 9e555fdbfcbdf6cf0d1125631e3d3e6a24cf92153b67a17612a7f695a489f663 [INFO] running `"docker" "start" "-a" "9e555fdbfcbdf6cf0d1125631e3d3e6a24cf92153b67a17612a7f695a489f663"` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.15s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/vg-419f02c904ecd9b3 [INFO] [stdout] [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] [stderr] Doc-tests vg [INFO] [stdout] [INFO] [stdout] running 3 tests [INFO] [stdout] test src/assets.rs - assets (line 6) ... FAILED [INFO] [stdout] test src/assets.rs - assets::Assets (line 133) ... FAILED [INFO] [stdout] test src/assets.rs - assets (line 15) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/assets.rs - assets (line 6) stdout ---- [INFO] [stdout] error[E0432]: unresolved import `vg::assets::generate_asset_packs` [INFO] [stdout] --> src/assets.rs:7:5 [INFO] [stdout] | [INFO] [stdout] 3 | use vg::assets::generate_asset_packs; [INFO] [stdout] | ^^^^^^^^^^^^-------------------- [INFO] [stdout] | | | [INFO] [stdout] | | help: a similar name exists in the module: `generate_asset_pack` [INFO] [stdout] | no `generate_asset_packs` in `assets` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `generate_asset_pack` in this scope [INFO] [stdout] --> src/assets.rs:9:5 [INFO] [stdout] | [INFO] [stdout] 5 | generate_asset_pack("assets/", "assets.vgpack"); [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: possible candidate is found in another module, you can import it into scope [INFO] [stdout] | [INFO] [stdout] 3 | use vg::assets::generate_asset_pack; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error: aborting due to 2 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0425, E0432. [INFO] [stdout] For more information about an error, try `rustc --explain E0425`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/assets.rs - assets::Assets (line 133) stdout ---- [INFO] [stdout] error: cannot find macro `asset_pack` in this scope [INFO] [stdout] --> src/assets.rs:134:26 [INFO] [stdout] | [INFO] [stdout] 4 | const TEXTURES: Assets = asset_pack!("textures_new.vgpack"); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Assets` in this scope [INFO] [stdout] --> src/assets.rs:134:17 [INFO] [stdout] | [INFO] [stdout] 4 | const TEXTURES: Assets = asset_pack!("textures_new.vgpack"); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: possible candidate is found in another module, you can import it into scope [INFO] [stdout] | [INFO] [stdout] 3 | use vg::assets::Assets; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find function `decode_png` in this scope [INFO] [stdout] --> src/assets.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 5 | let image = decode_png(TEXTURES.assets("x512")?.binary()?)?; [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 `std::ops::Try`) [INFO] [stdout] --> src/assets.rs:135:24 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | const TEXTURES: Assets = asset_pack!("textures_new.vgpack"); [INFO] [stdout] 5 | | let image = decode_png(TEXTURES.assets("x512")?.binary()?)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | // do whatever with your image :) [INFO] [stdout] 7 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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 `std::ops::Try`) [INFO] [stdout] --> src/assets.rs:135:24 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | const TEXTURES: Assets = asset_pack!("textures_new.vgpack"); [INFO] [stdout] 5 | | let image = decode_png(TEXTURES.assets("x512")?.binary()?)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | // do whatever with your image :) [INFO] [stdout] 7 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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 `std::ops::Try`) [INFO] [stdout] --> src/assets.rs:135:13 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | const TEXTURES: Assets = asset_pack!("textures_new.vgpack"); [INFO] [stdout] 5 | | let image = decode_png(TEXTURES.assets("x512")?.binary()?)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 6 | | // do whatever with your image :) [INFO] [stdout] 7 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 6 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, E0425. [INFO] [stdout] For more information about an error, try `rustc --explain E0277`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/assets.rs - assets (line 15) stdout ---- [INFO] [stdout] error: cannot find macro `asset_pack` in this scope [INFO] [stdout] --> src/assets.rs:16:24 [INFO] [stdout] | [INFO] [stdout] 4 | const ASSETS: Assets = asset_pack!("assets.vgpack"); [INFO] [stdout] | ^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ASSETS` [INFO] [stdout] --> src/assets.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 8 | let config_str = ASSETS::str("config.toml")?; [INFO] [stdout] | ^^^^^^ use of undeclared type or module `ASSETS` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type or module `ASSETS` [INFO] [stdout] --> src/assets.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 9 | let splash = ASSETS::assets("textures")?.bin("splash.png")?; [INFO] [stdout] | ^^^^^^ use of undeclared type or module `ASSETS` [INFO] [stdout] [INFO] [stdout] error[E0412]: cannot find type `Assets` in this scope [INFO] [stdout] --> src/assets.rs:16:15 [INFO] [stdout] | [INFO] [stdout] 4 | const ASSETS: Assets = asset_pack!("assets.vgpack"); [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: possible candidate is found in another module, you can import it into scope [INFO] [stdout] | [INFO] [stdout] 3 | use vg::assets::Assets; [INFO] [stdout] | [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 `std::ops::Try`) [INFO] [stdout] --> src/assets.rs:20:18 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | const ASSETS: Assets = asset_pack!("assets.vgpack"); [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | // ... [INFO] [stdout] 7 | | [INFO] [stdout] 8 | | let config_str = ASSETS::str("config.toml")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 9 | | let splash = ASSETS::assets("textures")?.bin("splash.png")?; [INFO] [stdout] 10 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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 `std::ops::Try`) [INFO] [stdout] --> src/assets.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | const ASSETS: Assets = asset_pack!("assets.vgpack"); [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | // ... [INFO] [stdout] ... | [INFO] [stdout] 9 | | let splash = ASSETS::assets("textures")?.bin("splash.png")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 10 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [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 `std::ops::Try`) [INFO] [stdout] --> src/assets.rs:21:14 [INFO] [stdout] | [INFO] [stdout] 3 | / fn main() { [INFO] [stdout] 4 | | const ASSETS: Assets = asset_pack!("assets.vgpack"); [INFO] [stdout] 5 | | [INFO] [stdout] 6 | | // ... [INFO] [stdout] ... | [INFO] [stdout] 9 | | let splash = ASSETS::assets("textures")?.bin("splash.png")?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 10 | | } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `std::ops::Try` is not implemented for `()` [INFO] [stdout] = note: required by `std::ops::Try::from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 7 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0412, 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/assets.rs - assets (line 15) [INFO] [stdout] src/assets.rs - assets (line 6) [INFO] [stdout] src/assets.rs - assets::Assets (line 133) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 3 failed; 0 ignored; 0 measured; 0 filtered out [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `"docker" "inspect" "9e555fdbfcbdf6cf0d1125631e3d3e6a24cf92153b67a17612a7f695a489f663"` [INFO] running `"docker" "rm" "-f" "9e555fdbfcbdf6cf0d1125631e3d3e6a24cf92153b67a17612a7f695a489f663"` [INFO] [stdout] 9e555fdbfcbdf6cf0d1125631e3d3e6a24cf92153b67a17612a7f695a489f663