Skip to content

Commit

Permalink
chore(turbopack): Ignore no-vc-struct lint in trybuild proc macro tes…
Browse files Browse the repository at this point in the history
…ts (vercel#74110)

These tests exist to see that the compiler generates errors when doing similar things to what the lint is designed to catch.

I'd rather exempt these in the lint than in the trybuild tests, as once we get rid of support for the `local` opt-out in the `turbo_tasks::value` macro, we shouldn't need the lint anymore (it won't be possible to compile code using an unresolved `Vc` in a `VcValueType`), but we still will need these trybuild tests.
  • Loading branch information
bgw authored Dec 20, 2024
1 parent e411fd1 commit 5e0079e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .config/ast-grep/rules/resolved-vc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,6 @@ rule:
kind: attribute
regex: '^turbo_tasks::value(\(.*\))?$'
fix: ResolvedVc<$A>

ignores:
- turbopack/crates/turbo-tasks-macros-tests/**/*.rs

0 comments on commit 5e0079e

Please sign in to comment.