Skip to content

Examples don't build #42

Description

@bobgates

Running Rust 1.82, just cloned the repository and ran cargo run --example cpu-monitor

The error that follows is for cpu-monitor, but split-chart has the same error.

/Users/xxxx/.cargo/registry/src/index.crates.io-6f17d22bba15001f/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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions