Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[naga] Make Level::next() public. #7349

Merged
merged 1 commit into from
Mar 19, 2025
Merged

Conversation

kpreid
Copy link
Contributor

@kpreid kpreid commented Mar 16, 2025

Description
Makes naga::back::Level::next() pub. It doesn’t make sense to have Level public but not Level::next().

I met this problem while trying to make an out-of-tree backend:

Testing
Still builds

Squash or Rebase?
Rebase

Checklist

  • Run cargo fmt.
  • Run taplo format.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
  • Run cargo xtask test to run tests.
  • If this contains user-facing changes, add a CHANGELOG.md entry.

kpreid added a commit to kpreid/wgpu that referenced this pull request Mar 17, 2025
The `#![allow(dead_code)]` on the module was hiding dead code in the
child modules. I changed it to be conditional on actually having no
backends enabled. (Note that with gfx-rs#7349, there would actually be no
warnings and we could remove the `allow(dead_code)` entirely, but I
expect that state of affairs won’t necessarily persist.)
kpreid added a commit to kpreid/wgpu that referenced this pull request Mar 17, 2025
The `#![allow(dead_code)]` on the module was hiding dead code in the
child modules. I changed it to be conditional on actually having no
backends enabled. (Note that with gfx-rs#7349, there would actually be no
warnings and we could remove the `allow(dead_code)` entirely, but I
expect that state of affairs won’t necessarily persist.)
kpreid added a commit to kpreid/wgpu that referenced this pull request Mar 17, 2025
The `#![allow(dead_code)]` on the module was hiding dead code in the
child modules. I changed it to be conditional on actually having no
backends enabled. (Note that with gfx-rs#7349, there would actually be no
warnings and we could remove the `allow(dead_code)` entirely, but I
expect that state of affairs won’t necessarily persist.)
ErichDonGubler pushed a commit that referenced this pull request Mar 17, 2025
The `#![allow(dead_code)]` on the module was hiding dead code in the
child modules. I changed it to be conditional on actually having no
backends enabled. (Note that with #7349, there would actually be no
warnings and we could remove the `allow(dead_code)` entirely, but I
expect that state of affairs won’t necessarily persist.)
@cwfitzgerald cwfitzgerald self-assigned this Mar 19, 2025
It doesn’t make sense to have `Level` public but not `Level::next()`.
@kpreid kpreid changed the title [naga] Make Baked and Level::next() public. [naga] Make Level::next() public. Mar 19, 2025
@cwfitzgerald
Copy link
Member

Thanks!

@cwfitzgerald cwfitzgerald merged commit b912232 into gfx-rs:trunk Mar 19, 2025
37 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants