gfx-rs/wgpu

[naga] `Arena` could use a `take` method

Open

#6,509 opened on Nov 9, 2024

View on GitHub
 (2 comments) (0 reactions) (0 assignees)Rust (9,290 stars) (703 forks)batch import
good first issuekind: refactornaga

Description

There are a few places in Naga where we actually clone an Arena, in situations where a take would be better. For example, naga::front::wgsl::lower::Lowerer::lower clones the diagnostic filters array.

Contributor guide