bevy-test icon indicating copy to clipboard operation
bevy-test copied to clipboard

does not compile

Open JoostScheffer opened this issue 1 year ago • 1 comments

when building I get the following error:

   Compiling gfx-backend-gl v0.7.1
error[E0597]: `desc_set` does not live long enough
    --> /home/joost/.cargo/registry/src/github.com-1ecc6299db9ec823/wgpu-core-0.7.1/src/device/mod.rs:1529:26
     |
1516 |         let mut desc_set = desc_sets.pop().unwrap();
     |             ------------ binding `desc_set` declared here
...
1529 |                     set: desc_set.raw_mut(),
     |                          ^^^^^^^^^^^^^^^^^^ borrowed value does not live long enough
...
1549 |     }
     |     -
     |     |
     |     `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

JoostScheffer avatar Jul 11 '23 11:07 JoostScheffer

I also had this problem and found that cargo update fixed it.

timburks avatar Jan 08 '24 05:01 timburks