Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't compile because of wgpu-core #51

Open
TheAwesome98-Real opened this issue Oct 2, 2022 · 1 comment
Open

Can't compile because of wgpu-core #51

TheAwesome98-Real opened this issue Oct 2, 2022 · 1 comment

Comments

@TheAwesome98-Real
Copy link

on running rustup run nightly cargo build:

$ rustup run nightly cargo build
   Compiling wgpu-core v0.8.1
   Compiling shaderc-sys v0.6.3
   Compiling shaderc v0.6.3
error[E0597]: `desc_set` does not live long enough
    --> /home/leonard/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-core-0.8.1/src/device/mod.rs:1773:26
     |
1773 |                     set: desc_set.raw_mut(),
     |                          ^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough
...
1794 |     }
     |     -
     |     |
     |     `desc_set` dropped here while still borrowed
     |     borrow might be used here, when `write_map` is dropped and runs the `Drop` code for type `BTreeMap`
     |
     = note: values in a scope are dropped in the opposite order they are defined

For more information about this error, try `rustc --explain E0597`.
error: could not compile `wgpu-core` due to previous error
$
@ethereumdegen
Copy link

ethereumdegen commented Oct 23, 2022

i get the same error . I fixed by using a newer version of wgpu-core !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants