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

Parse diagnostic(…) attributes on fns #6353

Draft
wants to merge 12 commits into
base: trunk
Choose a base branch
from

Conversation

ErichDonGubler
Copy link
Member

@ErichDonGubler ErichDonGubler commented Oct 1, 2024

Connections

Description

Building on #6148, we use all of the plumbing we made for tracking diagnostic rules, and add a parse path for @diagnostic(…) fn function() { … }. After #6148, this PR's parse path is what I've observed to be the next most common place for users to apply diagnostic filtering.

Testing

Tests will be added to this PR before it comes out of draft.

Checklist

  • Run cargo fmt.
  • Run cargo clippy. If applicable, add:
    • --target wasm32-unknown-unknown
    • --target wasm32-unknown-emscripten
  • Run cargo xtask test to run tests.
  • Add change to CHANGELOG.md. See simple instructions inside file.

@ErichDonGubler ErichDonGubler force-pushed the erichdongubler/push-xlypklnukzlu branch from bf4eab8 to a954d89 Compare October 3, 2024 20:25
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.

Support diagnostic filters in WGSL (i.e., diagnostic(…))
1 participant