#Old version no longer builds

11 messages · Page 1 of 1 (latest)

mossy sonnet
#
error[E0597]: `desc_set` does not live long enough
    --> C:\Users\[REDACTED]\.cargo\registry\src\github.com-1ecc6299db9ec823\wgpu-core-0.7.1\src\device\mod.rs:1529:26
     |
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
```I tried to build an old `v0.5.0` project, but `wgpu-core` failed to compile because of this error. is this a known issue, and is there a fix besides rewriting the entire project to work with a newer version of bevy?
fickle willow
#

The version was probably yanked due to UB. Check wgpu's release notes?

#

I suspect that they broke semver to release a fix, so it no longer compiles under the fresh release 🤔

mossy sonnet
#

so what's the fix for me? just upgrade the entire project to a newer bevy version?

#

these are the only release notes for that specific version, as far as I can see

tiny kelp
#

it seems like 0.7.1 was yanked and republished to fix that exact build error

try cargo updateing?

#

might need to nuke a cargo cache or something

mossy sonnet
#

oh right

#

I clean -> update -> build'ed and it's very slowly recompiling 😅

#

waiting for the moment of truth

#

aha, wgpu-core v0.7.2 this time