[INFO] cloning repository https://github.com/mcoffin/vk-playground [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/mcoffin/vk-playground" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmcoffin%2Fvk-playground", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmcoffin%2Fvk-playground'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] f4ce9888705f152a314cbc42fccb45954cd82f2a [INFO] testing mcoffin/vk-playground against 1.45.2 for beta-1.46-1 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fmcoffin%2Fvk-playground" "/workspace/builds/worker-7/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-7/source'... [INFO] [stderr] done. [INFO] validating manifest of git repo https://github.com/mcoffin/vk-playground on toolchain 1.45.2 [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.45.2" "read-manifest" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] started tweaking git repo https://github.com/mcoffin/vk-playground [INFO] finished tweaking git repo https://github.com/mcoffin/vk-playground [INFO] tweaked toml for git repo https://github.com/mcoffin/vk-playground written to /workspace/builds/worker-7/source/Cargo.toml [INFO] crate git repo https://github.com/mcoffin/vk-playground already has a lockfile, it will not be regenerated [INFO] running `Command { std: "/workspace/cargo-home/bin/cargo" "+1.45.2" "fetch" "--locked" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] 46a9e6c354d136cc555254db4de3947da074c2afb7cae6a436907d9c1799ee2c [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" "46a9e6c354d136cc555254db4de3947da074c2afb7cae6a436907d9c1799ee2c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "46a9e6c354d136cc555254db4de3947da074c2afb7cae6a436907d9c1799ee2c", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "46a9e6c354d136cc555254db4de3947da074c2afb7cae6a436907d9c1799ee2c", kill_on_drop: false }` [INFO] [stdout] 46a9e6c354d136cc555254db4de3947da074c2afb7cae6a436907d9c1799ee2c [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-7/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=warn" "-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:a636fd89d022f18117e1dc8fb37a0a009933cdbbe082814857f0e2024962d47c" "/opt/rustwide/cargo-home/bin/cargo" "+1.45.2" "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] 839f2acfada4f3357265135ea0419a922d2a21ef2f3f1526d8234bd9ca7d1cd2 [INFO] running `Command { std: "docker" "start" "-a" "839f2acfada4f3357265135ea0419a922d2a21ef2f3f1526d8234bd9ca7d1cd2", kill_on_drop: false }` [INFO] [stderr] Compiling libc v0.2.30 [INFO] [stderr] Compiling nom v1.2.4 [INFO] [stderr] Compiling vk-sys v0.2.7 [INFO] [stderr] Compiling num-complex v0.1.40 [INFO] [stderr] Compiling enum_primitive v0.1.1 [INFO] [stderr] Compiling rand v0.3.16 [INFO] [stderr] Compiling memchr v1.0.1 [INFO] [stderr] Compiling shared_library v0.1.7 [INFO] [stderr] Compiling semver v0.2.3 [INFO] [stderr] Compiling aho-corasick v0.6.3 [INFO] [stderr] Compiling ash v0.18.4 [INFO] [stderr] Compiling regex v0.2.2 [INFO] [stderr] Compiling num-bigint v0.1.40 [INFO] [stderr] Compiling env_logger v0.4.3 [INFO] [stderr] Compiling num-rational v0.1.39 [INFO] [stderr] Compiling num v0.1.40 [INFO] [stderr] Compiling glfw v0.17.0 [INFO] [stderr] Compiling vk-playground v0.1.0 (/opt/rustwide/workdir) [INFO] [stdout] error[E0554]: `#![feature]` may not be used on the stable release channel [INFO] [stdout] --> src/main.rs:1:38 [INFO] [stdout] | [INFO] [stdout] 1 | #![cfg_attr(feature = "safe_create", feature(conservative_impl_trait, unboxed_closures))] [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stdout] --> src/main.rs:53:20 [INFO] [stdout] | [INFO] [stdout] 53 | let mut file = try!(fs::File::open(filename)); [INFO] [stdout] | ^^^ [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(deprecated)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stdout] --> src/main.rs:61:5 [INFO] [stdout] | [INFO] [stdout] 61 | try!(file.read_to_end(&mut buf)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stdout] --> src/main.rs:171:28 [INFO] [stdout] | [INFO] [stdout] 171 | let capabilities = try!(vk_surface.get_physical_device_surface_capabilities_khr(device, *surface)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stdout] --> src/main.rs:172:23 [INFO] [stdout] | [INFO] [stdout] 172 | let formats = try!(vk_surface.get_physical_device_surface_formats_khr(device, *surface)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: use of deprecated item 'try': use the `?` operator instead [INFO] [stdout] --> src/main.rs:173:29 [INFO] [stdout] | [INFO] [stdout] 173 | let present_modes = try!(vk_surface.get_physical_device_surface_present_modes_khr(device, *surface)); [INFO] [stdout] | ^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] warning: unnecessary parentheses around block return value [INFO] [stdout] --> src/main.rs:388:21 [INFO] [stdout] | [INFO] [stdout] 388 | (properties.device_type == PhysicalDeviceType::DiscreteGpu && features.geometry_shader != 0) [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: remove these parentheses [INFO] [stdout] | [INFO] [stdout] = note: `#[warn(unused_parens)]` on by default [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements [INFO] [stdout] --> src/safe_create.rs:63:97 [INFO] [stdout] | [INFO] [stdout] 63 | unsafe_shader_module.map(|unsafe_shader_module| unsafe { VkOwned::new(unsafe_shader_module, move |shader_module| { [INFO] [stdout] | _________________________________________________________________________________________________^ [INFO] [stdout] 64 | | trace!("Destroying shader module: {:?}", shader_module); [INFO] [stdout] 65 | | device.destroy_shader_module(shader_module, allocator); [INFO] [stdout] 66 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the lifetime `'d` as defined on the function body at 61:34... [INFO] [stdout] --> src/safe_create.rs:61:34 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn create_shader_module_safe<'d, D: DeviceV1_0>(device: &'d D, create_info: &ShaderModuleCreateInfo, allocator: Option<&'d AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^ [INFO] [stdout] note: ...so that the types are compatible [INFO] [stdout] --> src/safe_create.rs:63:97 [INFO] [stdout] | [INFO] [stdout] 63 | unsafe_shader_module.map(|unsafe_shader_module| unsafe { VkOwned::new(unsafe_shader_module, move |shader_module| { [INFO] [stdout] | _________________________________________________________________________________________________^ [INFO] [stdout] 64 | | trace!("Destroying shader module: {:?}", shader_module); [INFO] [stdout] 65 | | device.destroy_shader_module(shader_module, allocator); [INFO] [stdout] 66 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] = note: expected `&D` [INFO] [stdout] found `&'d D` [INFO] [stdout] = note: but, the lifetime must be valid for the static lifetime... [INFO] [stdout] note: ...so that return value is valid for the call [INFO] [stdout] --> src/safe_create.rs:61:184 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn create_shader_module_safe<'d, D: DeviceV1_0>(device: &'d D, create_info: &ShaderModuleCreateInfo, allocator: Option<&'d AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements [INFO] [stdout] --> src/safe_create.rs:63:97 [INFO] [stdout] | [INFO] [stdout] 63 | unsafe_shader_module.map(|unsafe_shader_module| unsafe { VkOwned::new(unsafe_shader_module, move |shader_module| { [INFO] [stdout] | _________________________________________________________________________________________________^ [INFO] [stdout] 64 | | trace!("Destroying shader module: {:?}", shader_module); [INFO] [stdout] 65 | | device.destroy_shader_module(shader_module, allocator); [INFO] [stdout] 66 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the lifetime `'d` as defined on the function body at 61:34... [INFO] [stdout] --> src/safe_create.rs:61:34 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn create_shader_module_safe<'d, D: DeviceV1_0>(device: &'d D, create_info: &ShaderModuleCreateInfo, allocator: Option<&'d AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^ [INFO] [stdout] note: ...so that the types are compatible [INFO] [stdout] --> src/safe_create.rs:63:97 [INFO] [stdout] | [INFO] [stdout] 63 | unsafe_shader_module.map(|unsafe_shader_module| unsafe { VkOwned::new(unsafe_shader_module, move |shader_module| { [INFO] [stdout] | _________________________________________________________________________________________________^ [INFO] [stdout] 64 | | trace!("Destroying shader module: {:?}", shader_module); [INFO] [stdout] 65 | | device.destroy_shader_module(shader_module, allocator); [INFO] [stdout] 66 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] = note: expected `std::option::Option<&ash::vk::AllocationCallbacks>` [INFO] [stdout] found `std::option::Option<&'d ash::vk::AllocationCallbacks>` [INFO] [stdout] = note: but, the lifetime must be valid for the static lifetime... [INFO] [stdout] note: ...so that return value is valid for the call [INFO] [stdout] --> src/safe_create.rs:61:184 [INFO] [stdout] | [INFO] [stdout] 61 | pub fn create_shader_module_safe<'d, D: DeviceV1_0>(device: &'d D, create_info: &ShaderModuleCreateInfo, allocator: Option<&'d AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements [INFO] [stdout] --> src/safe_create.rs:71:85 [INFO] [stdout] | [INFO] [stdout] 71 | unsafe_swapchain.map(|unsafe_swapchain| unsafe { VkOwned::new(unsafe_swapchain, move |swapchain| { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 72 | | trace!("Destroying swapchain: {:?}", swapchain); [INFO] [stdout] 73 | | vk_swapchain.destroy_swapchain_khr(swapchain, allocator); [INFO] [stdout] 74 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the lifetime `'s` as defined on the function body at 69:34... [INFO] [stdout] --> src/safe_create.rs:69:34 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn create_swapchain_khr_safe<'s>(vk_swapchain: &'s ash::extensions::Swapchain, create_info: &SwapchainCreateInfoKHR, allocator: Option<&'s AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^ [INFO] [stdout] note: ...so that the types are compatible [INFO] [stdout] --> src/safe_create.rs:71:85 [INFO] [stdout] | [INFO] [stdout] 71 | unsafe_swapchain.map(|unsafe_swapchain| unsafe { VkOwned::new(unsafe_swapchain, move |swapchain| { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 72 | | trace!("Destroying swapchain: {:?}", swapchain); [INFO] [stdout] 73 | | vk_swapchain.destroy_swapchain_khr(swapchain, allocator); [INFO] [stdout] 74 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] = note: expected `&ash::extensions::Swapchain` [INFO] [stdout] found `&'s ash::extensions::Swapchain` [INFO] [stdout] = note: but, the lifetime must be valid for the static lifetime... [INFO] [stdout] note: ...so that return value is valid for the call [INFO] [stdout] --> src/safe_create.rs:69:200 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn create_swapchain_khr_safe<'s>(vk_swapchain: &'s ash::extensions::Swapchain, create_info: &SwapchainCreateInfoKHR, allocator: Option<&'s AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements [INFO] [stdout] --> src/safe_create.rs:71:85 [INFO] [stdout] | [INFO] [stdout] 71 | unsafe_swapchain.map(|unsafe_swapchain| unsafe { VkOwned::new(unsafe_swapchain, move |swapchain| { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 72 | | trace!("Destroying swapchain: {:?}", swapchain); [INFO] [stdout] 73 | | vk_swapchain.destroy_swapchain_khr(swapchain, allocator); [INFO] [stdout] 74 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the lifetime `'s` as defined on the function body at 69:34... [INFO] [stdout] --> src/safe_create.rs:69:34 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn create_swapchain_khr_safe<'s>(vk_swapchain: &'s ash::extensions::Swapchain, create_info: &SwapchainCreateInfoKHR, allocator: Option<&'s AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^ [INFO] [stdout] note: ...so that the types are compatible [INFO] [stdout] --> src/safe_create.rs:71:85 [INFO] [stdout] | [INFO] [stdout] 71 | unsafe_swapchain.map(|unsafe_swapchain| unsafe { VkOwned::new(unsafe_swapchain, move |swapchain| { [INFO] [stdout] | _____________________________________________________________________________________^ [INFO] [stdout] 72 | | trace!("Destroying swapchain: {:?}", swapchain); [INFO] [stdout] 73 | | vk_swapchain.destroy_swapchain_khr(swapchain, allocator); [INFO] [stdout] 74 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] = note: expected `std::option::Option<&ash::vk::AllocationCallbacks>` [INFO] [stdout] found `std::option::Option<&'s ash::vk::AllocationCallbacks>` [INFO] [stdout] = note: but, the lifetime must be valid for the static lifetime... [INFO] [stdout] note: ...so that return value is valid for the call [INFO] [stdout] --> src/safe_create.rs:69:200 [INFO] [stdout] | [INFO] [stdout] 69 | pub fn create_swapchain_khr_safe<'s>(vk_swapchain: &'s ash::extensions::Swapchain, create_info: &SwapchainCreateInfoKHR, allocator: Option<&'s AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements [INFO] [stdout] --> src/safe_create.rs:79:88 [INFO] [stdout] | [INFO] [stdout] 79 | unsafe_image_view.map(|unsafe_image_view| unsafe { VkOwned::new(unsafe_image_view, move |image_view| { [INFO] [stdout] | ________________________________________________________________________________________^ [INFO] [stdout] 80 | | trace!("Destroying image view: {:?}", image_view); [INFO] [stdout] 81 | | device.destroy_image_view(image_view, allocator); [INFO] [stdout] 82 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the lifetime `'s` as defined on the function body at 77:31... [INFO] [stdout] --> src/safe_create.rs:77:31 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn create_image_view_safe<'s, D: DeviceV1_0>(device: &'s D, create_info: &ImageViewCreateInfo, allocator: Option<&'s AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^ [INFO] [stdout] note: ...so that the types are compatible [INFO] [stdout] --> src/safe_create.rs:79:88 [INFO] [stdout] | [INFO] [stdout] 79 | unsafe_image_view.map(|unsafe_image_view| unsafe { VkOwned::new(unsafe_image_view, move |image_view| { [INFO] [stdout] | ________________________________________________________________________________________^ [INFO] [stdout] 80 | | trace!("Destroying image view: {:?}", image_view); [INFO] [stdout] 81 | | device.destroy_image_view(image_view, allocator); [INFO] [stdout] 82 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] = note: expected `&D` [INFO] [stdout] found `&'s D` [INFO] [stdout] = note: but, the lifetime must be valid for the static lifetime... [INFO] [stdout] note: ...so that return value is valid for the call [INFO] [stdout] --> src/safe_create.rs:77:175 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn create_image_view_safe<'s, D: DeviceV1_0>(device: &'s D, create_info: &ImageViewCreateInfo, allocator: Option<&'s AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements [INFO] [stdout] --> src/safe_create.rs:79:88 [INFO] [stdout] | [INFO] [stdout] 79 | unsafe_image_view.map(|unsafe_image_view| unsafe { VkOwned::new(unsafe_image_view, move |image_view| { [INFO] [stdout] | ________________________________________________________________________________________^ [INFO] [stdout] 80 | | trace!("Destroying image view: {:?}", image_view); [INFO] [stdout] 81 | | device.destroy_image_view(image_view, allocator); [INFO] [stdout] 82 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the lifetime `'s` as defined on the function body at 77:31... [INFO] [stdout] --> src/safe_create.rs:77:31 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn create_image_view_safe<'s, D: DeviceV1_0>(device: &'s D, create_info: &ImageViewCreateInfo, allocator: Option<&'s AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^ [INFO] [stdout] note: ...so that the types are compatible [INFO] [stdout] --> src/safe_create.rs:79:88 [INFO] [stdout] | [INFO] [stdout] 79 | unsafe_image_view.map(|unsafe_image_view| unsafe { VkOwned::new(unsafe_image_view, move |image_view| { [INFO] [stdout] | ________________________________________________________________________________________^ [INFO] [stdout] 80 | | trace!("Destroying image view: {:?}", image_view); [INFO] [stdout] 81 | | device.destroy_image_view(image_view, allocator); [INFO] [stdout] 82 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] = note: expected `std::option::Option<&ash::vk::AllocationCallbacks>` [INFO] [stdout] found `std::option::Option<&'s ash::vk::AllocationCallbacks>` [INFO] [stdout] = note: but, the lifetime must be valid for the static lifetime... [INFO] [stdout] note: ...so that return value is valid for the call [INFO] [stdout] --> src/safe_create.rs:77:175 [INFO] [stdout] | [INFO] [stdout] 77 | pub fn create_image_view_safe<'s, D: DeviceV1_0>(device: &'s D, create_info: &ImageViewCreateInfo, allocator: Option<&'s AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements [INFO] [stdout] --> src/safe_create.rs:87:79 [INFO] [stdout] | [INFO] [stdout] 87 | unsafe_surface.map(|unsafe_surface| unsafe { VkOwned::new(unsafe_surface, move |surface| { [INFO] [stdout] | _______________________________________________________________________________^ [INFO] [stdout] 88 | | trace!("Destroying surface: {:?}", surface); [INFO] [stdout] 89 | | vk_surface.destroy_surface_khr(surface, allocator) [INFO] [stdout] 90 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the lifetime `'s` as defined on the function body at 85:35... [INFO] [stdout] --> src/safe_create.rs:85:35 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn create_window_surface_safe<'s, I: InstanceV1_0>(vk: &'s I, vk_surface: &'s ash::extensions::Surface, window: &'s glfw::Window, allocator: Option<&'s AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^ [INFO] [stdout] note: ...so that the types are compatible [INFO] [stdout] --> src/safe_create.rs:87:79 [INFO] [stdout] | [INFO] [stdout] 87 | unsafe_surface.map(|unsafe_surface| unsafe { VkOwned::new(unsafe_surface, move |surface| { [INFO] [stdout] | _______________________________________________________________________________^ [INFO] [stdout] 88 | | trace!("Destroying surface: {:?}", surface); [INFO] [stdout] 89 | | vk_surface.destroy_surface_khr(surface, allocator) [INFO] [stdout] 90 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] = note: expected `&ash::extensions::Surface` [INFO] [stdout] found `&'s ash::extensions::Surface` [INFO] [stdout] = note: but, the lifetime must be valid for the static lifetime... [INFO] [stdout] note: ...so that return value is valid for the call [INFO] [stdout] --> src/safe_create.rs:85:211 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn create_window_surface_safe<'s, I: InstanceV1_0>(vk: &'s I, vk_surface: &'s ash::extensions::Surface, window: &'s glfw::Window, allocator: Option<&'s AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements [INFO] [stdout] --> src/safe_create.rs:87:79 [INFO] [stdout] | [INFO] [stdout] 87 | unsafe_surface.map(|unsafe_surface| unsafe { VkOwned::new(unsafe_surface, move |surface| { [INFO] [stdout] | _______________________________________________________________________________^ [INFO] [stdout] 88 | | trace!("Destroying surface: {:?}", surface); [INFO] [stdout] 89 | | vk_surface.destroy_surface_khr(surface, allocator) [INFO] [stdout] 90 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the lifetime `'s` as defined on the function body at 85:35... [INFO] [stdout] --> src/safe_create.rs:85:35 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn create_window_surface_safe<'s, I: InstanceV1_0>(vk: &'s I, vk_surface: &'s ash::extensions::Surface, window: &'s glfw::Window, allocator: Option<&'s AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^ [INFO] [stdout] note: ...so that the types are compatible [INFO] [stdout] --> src/safe_create.rs:87:79 [INFO] [stdout] | [INFO] [stdout] 87 | unsafe_surface.map(|unsafe_surface| unsafe { VkOwned::new(unsafe_surface, move |surface| { [INFO] [stdout] | _______________________________________________________________________________^ [INFO] [stdout] 88 | | trace!("Destroying surface: {:?}", surface); [INFO] [stdout] 89 | | vk_surface.destroy_surface_khr(surface, allocator) [INFO] [stdout] 90 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] = note: expected `std::option::Option<&ash::vk::AllocationCallbacks>` [INFO] [stdout] found `std::option::Option<&'s ash::vk::AllocationCallbacks>` [INFO] [stdout] = note: but, the lifetime must be valid for the static lifetime... [INFO] [stdout] note: ...so that return value is valid for the call [INFO] [stdout] --> src/safe_create.rs:85:211 [INFO] [stdout] | [INFO] [stdout] 85 | pub fn create_window_surface_safe<'s, I: InstanceV1_0>(vk: &'s I, vk_surface: &'s ash::extensions::Surface, window: &'s glfw::Window, allocator: Option<&'s AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements [INFO] [stdout] --> src/safe_create.rs:95:76 [INFO] [stdout] | [INFO] [stdout] 95 | unsafe_layout.map(|unsafe_layout| unsafe { VkOwned::new(unsafe_layout, move |layout| { [INFO] [stdout] | ____________________________________________________________________________^ [INFO] [stdout] 96 | | trace!("Destroying pipeline layout: {:?}", layout); [INFO] [stdout] 97 | | device.destroy_pipeline_layout(layout, allocator); [INFO] [stdout] 98 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the lifetime `'d` as defined on the function body at 93:36... [INFO] [stdout] --> src/safe_create.rs:93:36 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn create_pipeline_layout_safe<'d, D: DeviceV1_0>(device: &'d D, create_info: &PipelineLayoutCreateInfo, allocator: Option<&'d AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^ [INFO] [stdout] note: ...so that the types are compatible [INFO] [stdout] --> src/safe_create.rs:95:76 [INFO] [stdout] | [INFO] [stdout] 95 | unsafe_layout.map(|unsafe_layout| unsafe { VkOwned::new(unsafe_layout, move |layout| { [INFO] [stdout] | ____________________________________________________________________________^ [INFO] [stdout] 96 | | trace!("Destroying pipeline layout: {:?}", layout); [INFO] [stdout] 97 | | device.destroy_pipeline_layout(layout, allocator); [INFO] [stdout] 98 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] = note: expected `&D` [INFO] [stdout] found `&'d D` [INFO] [stdout] = note: but, the lifetime must be valid for the static lifetime... [INFO] [stdout] note: ...so that return value is valid for the call [INFO] [stdout] --> src/safe_create.rs:93:190 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn create_pipeline_layout_safe<'d, D: DeviceV1_0>(device: &'d D, create_info: &PipelineLayoutCreateInfo, allocator: Option<&'d AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements [INFO] [stdout] --> src/safe_create.rs:95:76 [INFO] [stdout] | [INFO] [stdout] 95 | unsafe_layout.map(|unsafe_layout| unsafe { VkOwned::new(unsafe_layout, move |layout| { [INFO] [stdout] | ____________________________________________________________________________^ [INFO] [stdout] 96 | | trace!("Destroying pipeline layout: {:?}", layout); [INFO] [stdout] 97 | | device.destroy_pipeline_layout(layout, allocator); [INFO] [stdout] 98 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the lifetime `'d` as defined on the function body at 93:36... [INFO] [stdout] --> src/safe_create.rs:93:36 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn create_pipeline_layout_safe<'d, D: DeviceV1_0>(device: &'d D, create_info: &PipelineLayoutCreateInfo, allocator: Option<&'d AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^ [INFO] [stdout] note: ...so that the types are compatible [INFO] [stdout] --> src/safe_create.rs:95:76 [INFO] [stdout] | [INFO] [stdout] 95 | unsafe_layout.map(|unsafe_layout| unsafe { VkOwned::new(unsafe_layout, move |layout| { [INFO] [stdout] | ____________________________________________________________________________^ [INFO] [stdout] 96 | | trace!("Destroying pipeline layout: {:?}", layout); [INFO] [stdout] 97 | | device.destroy_pipeline_layout(layout, allocator); [INFO] [stdout] 98 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] = note: expected `std::option::Option<&ash::vk::AllocationCallbacks>` [INFO] [stdout] found `std::option::Option<&'d ash::vk::AllocationCallbacks>` [INFO] [stdout] = note: but, the lifetime must be valid for the static lifetime... [INFO] [stdout] note: ...so that return value is valid for the call [INFO] [stdout] --> src/safe_create.rs:93:190 [INFO] [stdout] | [INFO] [stdout] 93 | pub fn create_pipeline_layout_safe<'d, D: DeviceV1_0>(device: &'d D, create_info: &PipelineLayoutCreateInfo, allocator: Option<&'d AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements [INFO] [stdout] --> src/safe_create.rs:103:91 [INFO] [stdout] | [INFO] [stdout] 103 | unsafe_render_pass.map(|unsafe_render_pass| unsafe { VkOwned::new(unsafe_render_pass, move |render_pass| { [INFO] [stdout] | ___________________________________________________________________________________________^ [INFO] [stdout] 104 | | trace!("Destroying render pass: {:?}", render_pass); [INFO] [stdout] 105 | | device.destroy_render_pass(render_pass, allocator); [INFO] [stdout] 106 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the lifetime `'d` as defined on the function body at 101:32... [INFO] [stdout] --> src/safe_create.rs:101:32 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn create_render_pass_safe<'d, D: DeviceV1_0>(device: &'d D, create_info: &RenderPassCreateInfo, allocator: Option<&'d AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^ [INFO] [stdout] note: ...so that the types are compatible [INFO] [stdout] --> src/safe_create.rs:103:91 [INFO] [stdout] | [INFO] [stdout] 103 | unsafe_render_pass.map(|unsafe_render_pass| unsafe { VkOwned::new(unsafe_render_pass, move |render_pass| { [INFO] [stdout] | ___________________________________________________________________________________________^ [INFO] [stdout] 104 | | trace!("Destroying render pass: {:?}", render_pass); [INFO] [stdout] 105 | | device.destroy_render_pass(render_pass, allocator); [INFO] [stdout] 106 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] = note: expected `&D` [INFO] [stdout] found `&'d D` [INFO] [stdout] = note: but, the lifetime must be valid for the static lifetime... [INFO] [stdout] note: ...so that return value is valid for the call [INFO] [stdout] --> src/safe_create.rs:101:178 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn create_render_pass_safe<'d, D: DeviceV1_0>(device: &'d D, create_info: &RenderPassCreateInfo, allocator: Option<&'d AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements [INFO] [stdout] --> src/safe_create.rs:103:91 [INFO] [stdout] | [INFO] [stdout] 103 | unsafe_render_pass.map(|unsafe_render_pass| unsafe { VkOwned::new(unsafe_render_pass, move |render_pass| { [INFO] [stdout] | ___________________________________________________________________________________________^ [INFO] [stdout] 104 | | trace!("Destroying render pass: {:?}", render_pass); [INFO] [stdout] 105 | | device.destroy_render_pass(render_pass, allocator); [INFO] [stdout] 106 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the lifetime `'d` as defined on the function body at 101:32... [INFO] [stdout] --> src/safe_create.rs:101:32 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn create_render_pass_safe<'d, D: DeviceV1_0>(device: &'d D, create_info: &RenderPassCreateInfo, allocator: Option<&'d AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^ [INFO] [stdout] note: ...so that the types are compatible [INFO] [stdout] --> src/safe_create.rs:103:91 [INFO] [stdout] | [INFO] [stdout] 103 | unsafe_render_pass.map(|unsafe_render_pass| unsafe { VkOwned::new(unsafe_render_pass, move |render_pass| { [INFO] [stdout] | ___________________________________________________________________________________________^ [INFO] [stdout] 104 | | trace!("Destroying render pass: {:?}", render_pass); [INFO] [stdout] 105 | | device.destroy_render_pass(render_pass, allocator); [INFO] [stdout] 106 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] = note: expected `std::option::Option<&ash::vk::AllocationCallbacks>` [INFO] [stdout] found `std::option::Option<&'d ash::vk::AllocationCallbacks>` [INFO] [stdout] = note: but, the lifetime must be valid for the static lifetime... [INFO] [stdout] note: ...so that return value is valid for the call [INFO] [stdout] --> src/safe_create.rs:101:178 [INFO] [stdout] | [INFO] [stdout] 101 | pub fn create_render_pass_safe<'d, D: DeviceV1_0>(device: &'d D, create_info: &RenderPassCreateInfo, allocator: Option<&'d AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements [INFO] [stdout] --> src/safe_create.rs:110:28 [INFO] [stdout] | [INFO] [stdout] 110 | VkOwned::new(pipeline, move |pipeline| { [INFO] [stdout] | ____________________________^ [INFO] [stdout] 111 | | trace!("Destroying pipeline: {:?}", pipeline); [INFO] [stdout] 112 | | device.destroy_pipeline(pipeline, allocator); [INFO] [stdout] 113 | | }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the lifetime `'d` as defined on the function body at 109:35... [INFO] [stdout] --> src/safe_create.rs:109:35 [INFO] [stdout] | [INFO] [stdout] 109 | unsafe fn take_pipeline_ownership<'d, D: DeviceV1_0>(device: &'d D, allocator: Option<&'d AllocationCallbacks>, pipeline: Pipeline) -> VkOwned { [INFO] [stdout] | ^^ [INFO] [stdout] note: ...so that the types are compatible [INFO] [stdout] --> src/safe_create.rs:110:28 [INFO] [stdout] | [INFO] [stdout] 110 | VkOwned::new(pipeline, move |pipeline| { [INFO] [stdout] | ____________________________^ [INFO] [stdout] 111 | | trace!("Destroying pipeline: {:?}", pipeline); [INFO] [stdout] 112 | | device.destroy_pipeline(pipeline, allocator); [INFO] [stdout] 113 | | }) [INFO] [stdout] | |_____^ [INFO] [stdout] = note: expected `&D` [INFO] [stdout] found `&'d D` [INFO] [stdout] = note: but, the lifetime must be valid for the static lifetime... [INFO] [stdout] note: ...so that return value is valid for the call [INFO] [stdout] --> src/safe_create.rs:109:154 [INFO] [stdout] | [INFO] [stdout] 109 | unsafe fn take_pipeline_ownership<'d, D: DeviceV1_0>(device: &'d D, allocator: Option<&'d AllocationCallbacks>, pipeline: Pipeline) -> VkOwned { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements [INFO] [stdout] --> src/safe_create.rs:110:28 [INFO] [stdout] | [INFO] [stdout] 110 | VkOwned::new(pipeline, move |pipeline| { [INFO] [stdout] | ____________________________^ [INFO] [stdout] 111 | | trace!("Destroying pipeline: {:?}", pipeline); [INFO] [stdout] 112 | | device.destroy_pipeline(pipeline, allocator); [INFO] [stdout] 113 | | }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the lifetime `'d` as defined on the function body at 109:35... [INFO] [stdout] --> src/safe_create.rs:109:35 [INFO] [stdout] | [INFO] [stdout] 109 | unsafe fn take_pipeline_ownership<'d, D: DeviceV1_0>(device: &'d D, allocator: Option<&'d AllocationCallbacks>, pipeline: Pipeline) -> VkOwned { [INFO] [stdout] | ^^ [INFO] [stdout] note: ...so that the types are compatible [INFO] [stdout] --> src/safe_create.rs:110:28 [INFO] [stdout] | [INFO] [stdout] 110 | VkOwned::new(pipeline, move |pipeline| { [INFO] [stdout] | ____________________________^ [INFO] [stdout] 111 | | trace!("Destroying pipeline: {:?}", pipeline); [INFO] [stdout] 112 | | device.destroy_pipeline(pipeline, allocator); [INFO] [stdout] 113 | | }) [INFO] [stdout] | |_____^ [INFO] [stdout] = note: expected `std::option::Option<&ash::vk::AllocationCallbacks>` [INFO] [stdout] found `std::option::Option<&'d ash::vk::AllocationCallbacks>` [INFO] [stdout] = note: but, the lifetime must be valid for the static lifetime... [INFO] [stdout] note: ...so that return value is valid for the call [INFO] [stdout] --> src/safe_create.rs:109:154 [INFO] [stdout] | [INFO] [stdout] 109 | unsafe fn take_pipeline_ownership<'d, D: DeviceV1_0>(device: &'d D, allocator: Option<&'d AllocationCallbacks>, pipeline: Pipeline) -> VkOwned { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: cannot specify lifetime arguments explicitly if late bound lifetime parameters are present [INFO] [stdout] --> src/safe_create.rs:120:35 [INFO] [stdout] | [INFO] [stdout] 120 | take_pipeline_ownership::<'d, D>(device, allocator, pipeline) [INFO] [stdout] | ^^ [INFO] [stdout] | [INFO] [stdout] note: the late bound lifetime parameter is introduced here [INFO] [stdout] --> src/safe_create.rs:109:35 [INFO] [stdout] | [INFO] [stdout] 109 | unsafe fn take_pipeline_ownership<'d, D: DeviceV1_0>(device: &'d D, allocator: Option<&'d AllocationCallbacks>, pipeline: Pipeline) -> VkOwned { [INFO] [stdout] | ^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements [INFO] [stdout] --> src/safe_create.rs:154:91 [INFO] [stdout] | [INFO] [stdout] 154 | unsafe_framebuffer.map(|unsafe_framebuffer| unsafe { VkOwned::new(unsafe_framebuffer, move |framebuffer| { [INFO] [stdout] | ___________________________________________________________________________________________^ [INFO] [stdout] 155 | | trace!("Destroying framebuffer: {:?}", framebuffer); [INFO] [stdout] 156 | | trace!("Destroyed framebuffer was created from {:?}", create_info.info_ref()); [INFO] [stdout] 157 | | device.destroy_framebuffer(framebuffer, allocator); [INFO] [stdout] 158 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the lifetime `'img` as defined on the function body at 152:41... [INFO] [stdout] --> src/safe_create.rs:152:41 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn create_framebuffer_safe<'device, 'img, D: DeviceV1_0>(device: &'device D, create_info: FramebufferCreateInfoSafe<'img>, allocator: Option<&'device AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^^^ [INFO] [stdout] note: ...so that the types are compatible [INFO] [stdout] --> src/safe_create.rs:154:91 [INFO] [stdout] | [INFO] [stdout] 154 | unsafe_framebuffer.map(|unsafe_framebuffer| unsafe { VkOwned::new(unsafe_framebuffer, move |framebuffer| { [INFO] [stdout] | ___________________________________________________________________________________________^ [INFO] [stdout] 155 | | trace!("Destroying framebuffer: {:?}", framebuffer); [INFO] [stdout] 156 | | trace!("Destroyed framebuffer was created from {:?}", create_info.info_ref()); [INFO] [stdout] 157 | | device.destroy_framebuffer(framebuffer, allocator); [INFO] [stdout] 158 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] = note: expected `safe_create::FramebufferCreateInfoSafe<'_>` [INFO] [stdout] found `safe_create::FramebufferCreateInfoSafe<'img>` [INFO] [stdout] = note: but, the lifetime must be valid for the static lifetime... [INFO] [stdout] note: ...so that return value is valid for the call [INFO] [stdout] --> src/safe_create.rs:152:210 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn create_framebuffer_safe<'device, 'img, D: DeviceV1_0>(device: &'device D, create_info: FramebufferCreateInfoSafe<'img>, allocator: Option<&'device AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements [INFO] [stdout] --> src/safe_create.rs:154:91 [INFO] [stdout] | [INFO] [stdout] 154 | unsafe_framebuffer.map(|unsafe_framebuffer| unsafe { VkOwned::new(unsafe_framebuffer, move |framebuffer| { [INFO] [stdout] | ___________________________________________________________________________________________^ [INFO] [stdout] 155 | | trace!("Destroying framebuffer: {:?}", framebuffer); [INFO] [stdout] 156 | | trace!("Destroyed framebuffer was created from {:?}", create_info.info_ref()); [INFO] [stdout] 157 | | device.destroy_framebuffer(framebuffer, allocator); [INFO] [stdout] 158 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the lifetime `'device` as defined on the function body at 152:32... [INFO] [stdout] --> src/safe_create.rs:152:32 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn create_framebuffer_safe<'device, 'img, D: DeviceV1_0>(device: &'device D, create_info: FramebufferCreateInfoSafe<'img>, allocator: Option<&'device AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: ...so that the types are compatible [INFO] [stdout] --> src/safe_create.rs:154:91 [INFO] [stdout] | [INFO] [stdout] 154 | unsafe_framebuffer.map(|unsafe_framebuffer| unsafe { VkOwned::new(unsafe_framebuffer, move |framebuffer| { [INFO] [stdout] | ___________________________________________________________________________________________^ [INFO] [stdout] 155 | | trace!("Destroying framebuffer: {:?}", framebuffer); [INFO] [stdout] 156 | | trace!("Destroyed framebuffer was created from {:?}", create_info.info_ref()); [INFO] [stdout] 157 | | device.destroy_framebuffer(framebuffer, allocator); [INFO] [stdout] 158 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] = note: expected `&D` [INFO] [stdout] found `&'device D` [INFO] [stdout] = note: but, the lifetime must be valid for the static lifetime... [INFO] [stdout] note: ...so that return value is valid for the call [INFO] [stdout] --> src/safe_create.rs:152:210 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn create_framebuffer_safe<'device, 'img, D: DeviceV1_0>(device: &'device D, create_info: FramebufferCreateInfoSafe<'img>, allocator: Option<&'device AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements [INFO] [stdout] --> src/safe_create.rs:154:91 [INFO] [stdout] | [INFO] [stdout] 154 | unsafe_framebuffer.map(|unsafe_framebuffer| unsafe { VkOwned::new(unsafe_framebuffer, move |framebuffer| { [INFO] [stdout] | ___________________________________________________________________________________________^ [INFO] [stdout] 155 | | trace!("Destroying framebuffer: {:?}", framebuffer); [INFO] [stdout] 156 | | trace!("Destroyed framebuffer was created from {:?}", create_info.info_ref()); [INFO] [stdout] 157 | | device.destroy_framebuffer(framebuffer, allocator); [INFO] [stdout] 158 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the lifetime `'device` as defined on the function body at 152:32... [INFO] [stdout] --> src/safe_create.rs:152:32 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn create_framebuffer_safe<'device, 'img, D: DeviceV1_0>(device: &'device D, create_info: FramebufferCreateInfoSafe<'img>, allocator: Option<&'device AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: ...so that the types are compatible [INFO] [stdout] --> src/safe_create.rs:154:91 [INFO] [stdout] | [INFO] [stdout] 154 | unsafe_framebuffer.map(|unsafe_framebuffer| unsafe { VkOwned::new(unsafe_framebuffer, move |framebuffer| { [INFO] [stdout] | ___________________________________________________________________________________________^ [INFO] [stdout] 155 | | trace!("Destroying framebuffer: {:?}", framebuffer); [INFO] [stdout] 156 | | trace!("Destroyed framebuffer was created from {:?}", create_info.info_ref()); [INFO] [stdout] 157 | | device.destroy_framebuffer(framebuffer, allocator); [INFO] [stdout] 158 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] = note: expected `std::option::Option<&ash::vk::AllocationCallbacks>` [INFO] [stdout] found `std::option::Option<&'device ash::vk::AllocationCallbacks>` [INFO] [stdout] = note: but, the lifetime must be valid for the static lifetime... [INFO] [stdout] note: ...so that return value is valid for the call [INFO] [stdout] --> src/safe_create.rs:152:210 [INFO] [stdout] | [INFO] [stdout] 152 | pub fn create_framebuffer_safe<'device, 'img, D: DeviceV1_0>(device: &'device D, create_info: FramebufferCreateInfoSafe<'img>, allocator: Option<&'device AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements [INFO] [stdout] --> src/safe_create.rs:163:94 [INFO] [stdout] | [INFO] [stdout] 163 | unsafe_command_pool.map(|unsafe_command_pool| unsafe { VkOwned::new(unsafe_command_pool, move |command_pool| { [INFO] [stdout] | ______________________________________________________________________________________________^ [INFO] [stdout] 164 | | trace!("Destroying command pool: {:?}", command_pool); [INFO] [stdout] 165 | | device.destroy_command_pool(command_pool, allocator); [INFO] [stdout] 166 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the lifetime `'device` as defined on the function body at 161:33... [INFO] [stdout] --> src/safe_create.rs:161:33 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn create_command_pool_safe<'device, D: DeviceV1_0>(device: &'device D, create_info: &CommandPoolCreateInfo, allocator: Option<&'device AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: ...so that the types are compatible [INFO] [stdout] --> src/safe_create.rs:163:94 [INFO] [stdout] | [INFO] [stdout] 163 | unsafe_command_pool.map(|unsafe_command_pool| unsafe { VkOwned::new(unsafe_command_pool, move |command_pool| { [INFO] [stdout] | ______________________________________________________________________________________________^ [INFO] [stdout] 164 | | trace!("Destroying command pool: {:?}", command_pool); [INFO] [stdout] 165 | | device.destroy_command_pool(command_pool, allocator); [INFO] [stdout] 166 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] = note: expected `&D` [INFO] [stdout] found `&'device D` [INFO] [stdout] = note: but, the lifetime must be valid for the static lifetime... [INFO] [stdout] note: ...so that return value is valid for the call [INFO] [stdout] --> src/safe_create.rs:161:196 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn create_command_pool_safe<'device, D: DeviceV1_0>(device: &'device D, create_info: &CommandPoolCreateInfo, allocator: Option<&'device AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements [INFO] [stdout] --> src/safe_create.rs:163:94 [INFO] [stdout] | [INFO] [stdout] 163 | unsafe_command_pool.map(|unsafe_command_pool| unsafe { VkOwned::new(unsafe_command_pool, move |command_pool| { [INFO] [stdout] | ______________________________________________________________________________________________^ [INFO] [stdout] 164 | | trace!("Destroying command pool: {:?}", command_pool); [INFO] [stdout] 165 | | device.destroy_command_pool(command_pool, allocator); [INFO] [stdout] 166 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the lifetime `'device` as defined on the function body at 161:33... [INFO] [stdout] --> src/safe_create.rs:161:33 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn create_command_pool_safe<'device, D: DeviceV1_0>(device: &'device D, create_info: &CommandPoolCreateInfo, allocator: Option<&'device AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: ...so that the types are compatible [INFO] [stdout] --> src/safe_create.rs:163:94 [INFO] [stdout] | [INFO] [stdout] 163 | unsafe_command_pool.map(|unsafe_command_pool| unsafe { VkOwned::new(unsafe_command_pool, move |command_pool| { [INFO] [stdout] | ______________________________________________________________________________________________^ [INFO] [stdout] 164 | | trace!("Destroying command pool: {:?}", command_pool); [INFO] [stdout] 165 | | device.destroy_command_pool(command_pool, allocator); [INFO] [stdout] 166 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] = note: expected `std::option::Option<&ash::vk::AllocationCallbacks>` [INFO] [stdout] found `std::option::Option<&'device ash::vk::AllocationCallbacks>` [INFO] [stdout] = note: but, the lifetime must be valid for the static lifetime... [INFO] [stdout] note: ...so that return value is valid for the call [INFO] [stdout] --> src/safe_create.rs:161:196 [INFO] [stdout] | [INFO] [stdout] 161 | pub fn create_command_pool_safe<'device, D: DeviceV1_0>(device: &'device D, create_info: &CommandPoolCreateInfo, allocator: Option<&'device AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements [INFO] [stdout] --> src/safe_create.rs:171:67 [INFO] [stdout] | [INFO] [stdout] 171 | unsafe_sem.map(|unsafe_sem| unsafe { VkOwned::new(unsafe_sem, move |sem| { [INFO] [stdout] | ___________________________________________________________________^ [INFO] [stdout] 172 | | trace!("Destroying semaphore: {:?}", sem); [INFO] [stdout] 173 | | device.destroy_semaphore(sem, allocator); [INFO] [stdout] 174 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the lifetime `'device` as defined on the function body at 169:30... [INFO] [stdout] --> src/safe_create.rs:169:30 [INFO] [stdout] | [INFO] [stdout] 169 | pub fn create_semaphore_safe<'device, D: DeviceV1_0>(device: &'device D, create_info: &SemaphoreCreateInfo, allocator: Option<&'device AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: ...so that the types are compatible [INFO] [stdout] --> src/safe_create.rs:171:67 [INFO] [stdout] | [INFO] [stdout] 171 | unsafe_sem.map(|unsafe_sem| unsafe { VkOwned::new(unsafe_sem, move |sem| { [INFO] [stdout] | ___________________________________________________________________^ [INFO] [stdout] 172 | | trace!("Destroying semaphore: {:?}", sem); [INFO] [stdout] 173 | | device.destroy_semaphore(sem, allocator); [INFO] [stdout] 174 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] = note: expected `&D` [INFO] [stdout] found `&'device D` [INFO] [stdout] = note: but, the lifetime must be valid for the static lifetime... [INFO] [stdout] note: ...so that return value is valid for the call [INFO] [stdout] --> src/safe_create.rs:169:189 [INFO] [stdout] | [INFO] [stdout] 169 | pub fn create_semaphore_safe<'device, D: DeviceV1_0>(device: &'device D, create_info: &SemaphoreCreateInfo, allocator: Option<&'device AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0495]: cannot infer an appropriate lifetime due to conflicting requirements [INFO] [stdout] --> src/safe_create.rs:171:67 [INFO] [stdout] | [INFO] [stdout] 171 | unsafe_sem.map(|unsafe_sem| unsafe { VkOwned::new(unsafe_sem, move |sem| { [INFO] [stdout] | ___________________________________________________________________^ [INFO] [stdout] 172 | | trace!("Destroying semaphore: {:?}", sem); [INFO] [stdout] 173 | | device.destroy_semaphore(sem, allocator); [INFO] [stdout] 174 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] | [INFO] [stdout] note: first, the lifetime cannot outlive the lifetime `'device` as defined on the function body at 169:30... [INFO] [stdout] --> src/safe_create.rs:169:30 [INFO] [stdout] | [INFO] [stdout] 169 | pub fn create_semaphore_safe<'device, D: DeviceV1_0>(device: &'device D, create_info: &SemaphoreCreateInfo, allocator: Option<&'device AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^^^^^^ [INFO] [stdout] note: ...so that the types are compatible [INFO] [stdout] --> src/safe_create.rs:171:67 [INFO] [stdout] | [INFO] [stdout] 171 | unsafe_sem.map(|unsafe_sem| unsafe { VkOwned::new(unsafe_sem, move |sem| { [INFO] [stdout] | ___________________________________________________________________^ [INFO] [stdout] 172 | | trace!("Destroying semaphore: {:?}", sem); [INFO] [stdout] 173 | | device.destroy_semaphore(sem, allocator); [INFO] [stdout] 174 | | }) }) [INFO] [stdout] | |_____^ [INFO] [stdout] = note: expected `std::option::Option<&ash::vk::AllocationCallbacks>` [INFO] [stdout] found `std::option::Option<&'device ash::vk::AllocationCallbacks>` [INFO] [stdout] = note: but, the lifetime must be valid for the static lifetime... [INFO] [stdout] note: ...so that return value is valid for the call [INFO] [stdout] --> src/safe_create.rs:169:189 [INFO] [stdout] | [INFO] [stdout] 169 | pub fn create_semaphore_safe<'device, D: DeviceV1_0>(device: &'device D, create_info: &SemaphoreCreateInfo, allocator: Option<&'device AllocationCallbacks>) -> VkResult> { [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^ [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error: aborting due to 23 previous errors; 6 warnings emitted [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0495, E0554. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0495`. [INFO] [stdout] [INFO] [stderr] error: could not compile `vk-playground`. [INFO] [stderr] [INFO] [stderr] To learn more, run the command again with --verbose. [INFO] running `Command { std: "docker" "inspect" "839f2acfada4f3357265135ea0419a922d2a21ef2f3f1526d8234bd9ca7d1cd2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "839f2acfada4f3357265135ea0419a922d2a21ef2f3f1526d8234bd9ca7d1cd2", kill_on_drop: false }` [INFO] [stdout] 839f2acfada4f3357265135ea0419a922d2a21ef2f3f1526d8234bd9ca7d1cd2