[INFO] fetching crate gpu-allocator 0.4.0... [INFO] testing gpu-allocator-0.4.0 against beta-2021-01-01 for beta-1.50-1 [INFO] extracting crate gpu-allocator 0.4.0 into /workspace/builds/worker-5/source [INFO] validating manifest of crates.io crate gpu-allocator 0.4.0 on toolchain beta-2021-01-01 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-01-01" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking crates.io crate gpu-allocator 0.4.0 [INFO] removed 2 missing examples [INFO] finished tweaking crates.io crate gpu-allocator 0.4.0 [INFO] tweaked toml for crates.io crate gpu-allocator 0.4.0 written to /workspace/builds/worker-5/source/Cargo.toml [INFO] crate crates.io crate gpu-allocator 0.4.0 already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+beta-2021-01-01" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] [stderr] Downloading crates ... [INFO] [stderr] Downloaded raw-window-metal v0.1.1 [INFO] [stderr] Downloaded ash-window v0.5.0 [INFO] [stderr] Downloaded imgui v0.6.0 [INFO] [stderr] Downloaded imgui-sys v0.6.0 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-01-01" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 28a8ae00823b37c0915a2e6c91ba4fa4272de9ecf5c2fea89b403c5f5539fe4b [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" "28a8ae00823b37c0915a2e6c91ba4fa4272de9ecf5c2fea89b403c5f5539fe4b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "28a8ae00823b37c0915a2e6c91ba4fa4272de9ecf5c2fea89b403c5f5539fe4b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "28a8ae00823b37c0915a2e6c91ba4fa4272de9ecf5c2fea89b403c5f5539fe4b", kill_on_drop: false }` [INFO] [stdout] 28a8ae00823b37c0915a2e6c91ba4fa4272de9ecf5c2fea89b403c5f5539fe4b [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-01-01" "build" "--frozen" "--message-format=json", kill_on_drop: false }` [INFO] [stderr] WARNING: Your kernel does not support swap limit capabilities or the cgroup is not mounted. Memory limited without swap. [INFO] [stdout] 547dfd4c1e8a495a4718edd25ff6f51f4aacca6bace03672861b714efb1c58ac [INFO] running `Command { std: "docker" "start" "-a" "547dfd4c1e8a495a4718edd25ff6f51f4aacca6bace03672861b714efb1c58ac", kill_on_drop: false }` [INFO] [stderr] Compiling ash v0.31.0 [INFO] [stderr] Compiling thiserror-impl v1.0.22 [INFO] [stderr] Compiling thiserror v1.0.22 [INFO] [stderr] Compiling gpu-allocator v0.4.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished dev [unoptimized + debuginfo] target(s) in 26.14s [INFO] running `Command { std: "docker" "inspect" "547dfd4c1e8a495a4718edd25ff6f51f4aacca6bace03672861b714efb1c58ac", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "547dfd4c1e8a495a4718edd25ff6f51f4aacca6bace03672861b714efb1c58ac", kill_on_drop: false }` [INFO] [stdout] 547dfd4c1e8a495a4718edd25ff6f51f4aacca6bace03672861b714efb1c58ac [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-01-01" "test" "--frozen" "--no-run" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] b5ab8b72ac1f52c40fac70d4a9dc4c76751eac490180beb529017be3b88df177 [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" "b5ab8b72ac1f52c40fac70d4a9dc4c76751eac490180beb529017be3b88df177", kill_on_drop: false }` [INFO] [stderr] Blocking waiting for file lock on package cache [INFO] [stderr] Compiling ttf-parser v0.6.2 [INFO] [stderr] Compiling ab_glyph_rasterizer v0.1.4 [INFO] [stderr] Compiling winit v0.23.0 [INFO] [stderr] Compiling wayland-sys v0.28.2 [INFO] [stderr] Compiling nom v6.0.1 [INFO] [stderr] Compiling dlib v0.4.2 [INFO] [stderr] Compiling net2 v0.2.37 [INFO] [stderr] Compiling parking_lot_core v0.8.1 [INFO] [stderr] Compiling memmap2 v0.1.0 [INFO] [stderr] Compiling raw-window-handle v0.3.3 [INFO] [stderr] Compiling wayland-scanner v0.28.2 [INFO] [stderr] Compiling calloop v0.6.5 [INFO] [stderr] Compiling x11-dl v2.18.5 [INFO] [stderr] Compiling ash-window v0.5.0 [INFO] [stderr] Compiling mio v0.6.23 [INFO] [stderr] Compiling parking_lot v0.11.1 [INFO] [stderr] Compiling wayland-commons v0.28.2 [INFO] [stderr] Compiling mio-extras v2.0.6 [INFO] [stderr] Compiling owned_ttf_parser v0.6.0 [INFO] [stderr] Compiling wayland-client v0.28.2 [INFO] [stderr] Compiling wayland-protocols v0.28.2 [INFO] [stderr] Compiling rusttype v0.9.2 [INFO] [stderr] Compiling andrew v0.3.1 [INFO] [stderr] Compiling xcursor v0.3.3 [INFO] [stderr] Compiling wayland-cursor v0.28.2 [INFO] [stderr] Compiling smithay-client-toolkit v0.12.1 [INFO] [stderr] Compiling gpu-allocator v0.4.0 (/opt/rustwide/workdir) [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 1m 16s [INFO] running `Command { std: "docker" "inspect" "b5ab8b72ac1f52c40fac70d4a9dc4c76751eac490180beb529017be3b88df177", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "b5ab8b72ac1f52c40fac70d4a9dc4c76751eac490180beb529017be3b88df177", kill_on_drop: false }` [INFO] [stdout] b5ab8b72ac1f52c40fac70d4a9dc4c76751eac490180beb529017be3b88df177 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-5/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" "rustops/crates-build-env@sha256:b8eeb62f26c39b23691079a6cb6de528d8e88b4d71a8f6b1d30f8ba7d9c16de9" "/opt/rustwide/cargo-home/bin/cargo" "+beta-2021-01-01" "test" "--frozen", kill_on_drop: false }` [INFO] [stdout] 6d575db773a15ac5a48084b7e06f37a8f2dd45f6eddd714c01b812caa106d014 [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" "6d575db773a15ac5a48084b7e06f37a8f2dd45f6eddd714c01b812caa106d014", kill_on_drop: false }` [INFO] [stderr] Finished test [unoptimized + debuginfo] target(s) in 0.10s [INFO] [stderr] Running /opt/rustwide/target/debug/deps/gpu_allocator-9cf752e5ce5579fa [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; finished in 0.00s [INFO] [stdout] [INFO] [stderr] Doc-tests gpu-allocator [INFO] [stdout] [INFO] [stdout] running 2 tests [INFO] [stdout] test src/lib.rs - (line 5) ... FAILED [INFO] [stdout] test src/lib.rs - (line 19) ... FAILED [INFO] [stdout] [INFO] [stdout] failures: [INFO] [stdout] [INFO] [stdout] ---- src/lib.rs - (line 5) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `VulkanAllocator` [INFO] [stdout] --> src/lib.rs:9:21 [INFO] [stdout] | [INFO] [stdout] 6 | let mut allocator = VulkanAllocator::new(&VulkanAllocatorCreateDesc { [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use gpu_allocator::VulkanAllocator; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `VulkanAllocatorCreateDesc` in this scope [INFO] [stdout] --> src/lib.rs:9:43 [INFO] [stdout] | [INFO] [stdout] 6 | let mut allocator = VulkanAllocator::new(&VulkanAllocatorCreateDesc { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 2 | use gpu_allocator::VulkanAllocatorCreateDesc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `instance` in this scope [INFO] [stdout] --> src/lib.rs:10:5 [INFO] [stdout] | [INFO] [stdout] 7 | instance, [INFO] [stdout] | ^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `device` in this scope [INFO] [stdout] --> src/lib.rs:11:5 [INFO] [stdout] | [INFO] [stdout] 8 | device, [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `physical_device` in this scope [INFO] [stdout] --> src/lib.rs:12:5 [INFO] [stdout] | [INFO] [stdout] 9 | physical_device, [INFO] [stdout] | ^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error: aborting due to 5 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0422, E0425, E0433. [INFO] [stdout] For more information about an error, try `rustc --explain E0422`. [INFO] [stdout] Couldn't compile the test. [INFO] [stdout] ---- src/lib.rs - (line 19) stdout ---- [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `vk` [INFO] [stdout] --> src/lib.rs:23:12 [INFO] [stdout] | [INFO] [stdout] 6 | .usage(vk::BufferUsageFlags::STORAGE_BUFFER); [INFO] [stdout] | ^^ use of undeclared crate or module `vk` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared type `MemoryLocation` [INFO] [stdout] --> src/lib.rs:32:19 [INFO] [stdout] | [INFO] [stdout] 15 | location: MemoryLocation::CpuToGpu, [INFO] [stdout] | ^^^^^^^^^^^^^^ use of undeclared type `MemoryLocation` [INFO] [stdout] [INFO] [stdout] error[E0433]: failed to resolve: use of undeclared crate or module `vk` [INFO] [stdout] --> src/lib.rs:21:19 [INFO] [stdout] | [INFO] [stdout] 4 | let vk_info = vk::BufferCreateInfo::builder() [INFO] [stdout] | ^^^^^^^^^^^^^^^^ not found in `vk` [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use ash::vk::BufferCreateInfo; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `device` in this scope [INFO] [stdout] --> src/lib.rs:25:23 [INFO] [stdout] | [INFO] [stdout] 8 | let buffer = unsafe { device.create_buffer(&vk_info, None) }?; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `device` in this scope [INFO] [stdout] --> src/lib.rs:26:29 [INFO] [stdout] | [INFO] [stdout] 9 | let requirements = unsafe { device.get_buffer_memory_requirements(buffer) }; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `allocator` in this scope [INFO] [stdout] --> src/lib.rs:28:18 [INFO] [stdout] | [INFO] [stdout] 11 | let allocation = allocator [INFO] [stdout] | ^^^^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0422]: cannot find struct, variant or union type `AllocationCreateDesc` in this scope [INFO] [stdout] --> src/lib.rs:29:16 [INFO] [stdout] | [INFO] [stdout] 12 | .allocate(&AllocationCreateDesc { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ not found in this scope [INFO] [stdout] | [INFO] [stdout] help: consider importing this struct [INFO] [stdout] | [INFO] [stdout] 3 | use gpu_allocator::AllocationCreateDesc; [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `device` in this scope [INFO] [stdout] --> src/lib.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 20 | unsafe { device.bind_buffer_memory(buffer, allocation.memory(), allocation.offset())? }; [INFO] [stdout] | ^^^^^^ not found in this scope [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `allocator` in this scope [INFO] [stdout] --> src/lib.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 23 | allocator.free(allocation)?; [INFO] [stdout] | ^^^^^^^^^ help: a local variable with a similar name exists: `allocation` [INFO] [stdout] [INFO] [stdout] error[E0425]: cannot find value `device` in this scope [INFO] [stdout] --> src/lib.rs:41:10 [INFO] [stdout] | [INFO] [stdout] 24 | unsafe { device.destroy_buffer(buffer, None) }; [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 `Try`) [INFO] [stdout] --> src/lib.rs:25:14 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_19_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let vk_info = vk::BufferCreateInfo::builder() [INFO] [stdout] 5 | | .size(512) [INFO] [stdout] 6 | | .usage(vk::BufferUsageFlags::STORAGE_BUFFER); [INFO] [stdout] 7 | | [INFO] [stdout] 8 | | let buffer = unsafe { device.create_buffer(&vk_info, None) }?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 24 | | unsafe { device.destroy_buffer(buffer, None) }; [INFO] [stdout] 25 | | }; _doctest_main_src_lib_rs_19_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `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 `Try`) [INFO] [stdout] --> src/lib.rs:28:18 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_19_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let vk_info = vk::BufferCreateInfo::builder() [INFO] [stdout] 5 | | .size(512) [INFO] [stdout] 6 | | .usage(vk::BufferUsageFlags::STORAGE_BUFFER); [INFO] [stdout] ... | [INFO] [stdout] 11 | | let allocation = allocator [INFO] [stdout] | |__________________^ [INFO] [stdout] 12 | || .allocate(&AllocationCreateDesc { [INFO] [stdout] 13 | || name: "Example allocation", [INFO] [stdout] 14 | || requirements, [INFO] [stdout] 15 | || location: MemoryLocation::CpuToGpu, [INFO] [stdout] 16 | || linear: true, // Buffers are always linear [INFO] [stdout] 17 | || })?; [INFO] [stdout] | ||_______^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 24 | | unsafe { device.destroy_buffer(buffer, None) }; [INFO] [stdout] 25 | | }; _doctest_main_src_lib_rs_19_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `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 `Try`) [INFO] [stdout] --> src/lib.rs:37:10 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_19_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let vk_info = vk::BufferCreateInfo::builder() [INFO] [stdout] 5 | | .size(512) [INFO] [stdout] 6 | | .usage(vk::BufferUsageFlags::STORAGE_BUFFER); [INFO] [stdout] ... | [INFO] [stdout] 20 | | unsafe { device.bind_buffer_memory(buffer, allocation.memory(), allocation.offset())? }; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] ... | [INFO] [stdout] 24 | | unsafe { device.destroy_buffer(buffer, None) }; [INFO] [stdout] 25 | | }; _doctest_main_src_lib_rs_19_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `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 `Try`) [INFO] [stdout] --> src/lib.rs:40:1 [INFO] [stdout] | [INFO] [stdout] 3 | fn main() { #[allow(non_snake_case)] fn _doctest_main_src_lib_rs_19_0() { [INFO] [stdout] | ______________________________________- [INFO] [stdout] 4 | | let vk_info = vk::BufferCreateInfo::builder() [INFO] [stdout] 5 | | .size(512) [INFO] [stdout] 6 | | .usage(vk::BufferUsageFlags::STORAGE_BUFFER); [INFO] [stdout] ... | [INFO] [stdout] 23 | | allocator.free(allocation)?; [INFO] [stdout] | | ^^^^^^^^^^^^^^^^^^^^^^^^^^^ cannot use the `?` operator in a function that returns `()` [INFO] [stdout] 24 | | unsafe { device.destroy_buffer(buffer, None) }; [INFO] [stdout] 25 | | }; _doctest_main_src_lib_rs_19_0() } [INFO] [stdout] | |_- this function should return `Result` or `Option` to accept `?` [INFO] [stdout] | [INFO] [stdout] = help: the trait `Try` is not implemented for `()` [INFO] [stdout] = note: required by `from_error` [INFO] [stdout] [INFO] [stdout] error: aborting due to 14 previous errors [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0277, E0422, E0425, 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 - (line 19) [INFO] [stdout] src/lib.rs - (line 5) [INFO] [stdout] [INFO] [stdout] test result: FAILED. 0 passed; 2 failed; 0 ignored; 0 measured; 0 filtered out; finished in 0.81s [INFO] [stdout] [INFO] [stderr] error: test failed, to rerun pass '--doc' [INFO] running `Command { std: "docker" "inspect" "6d575db773a15ac5a48084b7e06f37a8f2dd45f6eddd714c01b812caa106d014", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "6d575db773a15ac5a48084b7e06f37a8f2dd45f6eddd714c01b812caa106d014", kill_on_drop: false }` [INFO] [stdout] 6d575db773a15ac5a48084b7e06f37a8f2dd45f6eddd714c01b812caa106d014