Wumpf / blub

3D fluid simulation experiments in Rust, using WebGPU-rs (WIP)
MIT License
392 stars 12 forks source link

Compile Error `desc_set` does not live long enough on Windows 10 #48

Closed loryhndol closed 1 year ago

loryhndol commented 1 year ago

When I was running cargo run --release, I got the error message:

error[E0597]: `desc_set` does not live long enough
    --> G:\rust\cargo_home\git\checkouts\wgpu-de6245268e4c8054\14491d9\wgpu-core\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

Could anybody helps me?

drdozer commented 1 year ago

Same error for me.

incredible-mort commented 1 year ago

Same error for me, too.

Wumpf commented 1 year ago

fixed this to get stuff up and running again. but the project isn't in a great shape overall. Updating to latest wgpu proper would be in order but this is a major undertaking at this point