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

Unable to build demo project with latest version of rust #102937

Closed
wildfunctions opened this issue Oct 11, 2022 · 2 comments
Closed

Unable to build demo project with latest version of rust #102937

wildfunctions opened this issue Oct 11, 2022 · 2 comments
Labels
C-bug Category: This is a bug.

Comments

@wildfunctions
Copy link

I tried this code:

cargo run --release

I expected to see this happen: I expected the new project that I created to build, from following https://guide.nannou.cc/getting_started/create_a_project.html

Instead, this happened:
Screen Shot 2022-10-11 at 4 49 40 PM

Meta

rustc --version --verbose:

rustc 1.64.0 (a55dd71d5 2022-09-19)
binary: rustc
commit-hash: a55dd71d5fb0ec5a6a3a9e8c27b2127ba491ce52
commit-date: 2022-09-19
host: x86_64-apple-darwin
release: 1.64.0
LLVM version: 14.0.6
Backtrace

error[E0597]: `desc_set` does not live long enough
    --> /Users/brittcagnina/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-core-0.9.2/src/device/mod.rs:1792:26
     |
1792 |                     set: desc_set.raw_mut(),
     |                          ^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough
...
1813 |     }
     |     -
     |     |
     |     `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

@wildfunctions wildfunctions added the C-bug Category: This is a bug. label Oct 11, 2022
@ehuss
Copy link
Contributor

ehuss commented Oct 11, 2022

Sorry for the trouble you've run into. There was a change to Rust to fix a soundness problem (#99413, #100544). That requires updating to a newer version of wgpu-core that does not have the problem. It looks like you should be able to update to the latest version of nannou to fix it. In Cargo.toml, you can update it to nannou = "0.18" to pick up the new version.

@wildfunctions
Copy link
Author

Perfect! Works great now! Thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C-bug Category: This is a bug.
Projects
None yet
Development

No branches or pull requests

2 participants