Skip to content

Commit

Permalink
Fix trybuild tests for macros
Browse files Browse the repository at this point in the history
  • Loading branch information
bgw committed Dec 10, 2024
1 parent 60d5a6e commit bc4a70d
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use turbo_tasks::Vc;
#[turbo_tasks::value]
struct ExampleStruct;

#[turbo_tasks::value(transparent)]
#[turbo_tasks::value(transparent, local)]
struct IntegersVec(Vec<Vc<u32>>);

Check warning on line 11 in turbopack/crates/turbo-tasks-macros-tests/tests/function/fail_non_local_inherent_impl.rs

View workflow job for this annotation

GitHub Actions / ast-grep lint

no-vc-struct

Don't use a Vc directly in a struct

#[turbo_tasks::value_impl]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

use turbo_tasks::Vc;

#[turbo_tasks::value(transparent)]
#[turbo_tasks::value(transparent, local)]
struct IntegersVec(Vec<Vc<u32>>);

Check warning on line 8 in turbopack/crates/turbo-tasks-macros-tests/tests/function/fail_non_local_static.rs

View workflow job for this annotation

GitHub Actions / ast-grep lint

no-vc-struct

Don't use a Vc directly in a struct

#[turbo_tasks::function(non_local_return)]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use turbo_tasks::Vc;
#[turbo_tasks::value]
struct ExampleStruct;

#[turbo_tasks::value(transparent)]
#[turbo_tasks::value(transparent, local)]
struct IntegersVec(Vec<Vc<u32>>);

Check warning on line 11 in turbopack/crates/turbo-tasks-macros-tests/tests/function/fail_non_local_trait_impl.rs

View workflow job for this annotation

GitHub Actions / ast-grep lint

no-vc-struct

Don't use a Vc directly in a struct

#[turbo_tasks::value_trait]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ impl ExampleStruct {
fn non_turbo_method_with_resolved_vc_self(self: ResolvedVc<Self>) {}
}

#[turbo_tasks::value(, transparent)]
#[turbo_tasks::value(transparent)]
struct MaybeExampleStruct(Option<ExampleStruct>);

#[turbo_tasks::function]
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit bc4a70d

Please sign in to comment.