gfx-rs/wgpu

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

Closed

#6,509 opened on Nov 9, 2024

 (2 comments) (0 reactions) (0 assignees)Rust (703 forks)batch import
good first issuekind: refactornaga

Repository metrics

Stars
 (9,290 stars)
PR merge metrics
 (Avg merge 12d 4h) (117 merged PRs in 30d)

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