Skip to content

Commit

Permalink
Revert changes to turbo-tasks-macros
Browse files Browse the repository at this point in the history
  • Loading branch information
bgw committed Oct 8, 2024
1 parent 429c48c commit 725cee3
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 11 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#![allow(dead_code)]

use turbo_tasks::{ResolvedValue, ResolvedVc, Vc};
use turbo_tasks::{ResolvedValue, Vc};

#[derive(ResolvedValue)]
struct ContainsVcInsideGeneric {
a: Option<Box<[ResolvedVc<i32>; 4]>>,
a: Option<Box<[Vc<i32>; 4]>>,
}

fn main() {}
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

use std::marker::PhantomData;

use turbo_tasks::{ResolvedValue, ResolvedVc, Vc};
use turbo_tasks::{ResolvedValue, Vc};

struct Unresolved;

#[derive(ResolvedValue)]
struct PhantomDataCanContainAnything<T: Send>(
PhantomData<ResolvedVc<T>>,
PhantomData<Vc<T>>,
PhantomData<Unresolved>,
PhantomData<ResolvedVc<Unresolved>>,
PhantomData<Vc<Unresolved>>,
);

fn main() {}
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
#![feature(arbitrary_self_types_pointers)]
#![allow(dead_code)]

use turbo_tasks::{ResolvedVc, Vc};
use turbo_tasks::Vc;

#[turbo_tasks::value]
struct ExampleStruct;

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

#[turbo_tasks::value_impl]
impl ExampleStruct {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
#![feature(arbitrary_self_types_pointers)]
#![allow(dead_code)]

use turbo_tasks::{ResolvedVc, Vc};
use turbo_tasks::Vc;

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

#[turbo_tasks::function(resolved)]
fn return_contains_unresolved_vc() -> Vc<IntegersVec> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@
#![feature(arbitrary_self_types_pointers)]
#![allow(dead_code)]

use turbo_tasks::{ResolvedVc, Vc};
use turbo_tasks::Vc;

#[turbo_tasks::value]
struct ExampleStruct;

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

#[turbo_tasks::value_trait]
trait ExampleTrait {
Expand Down

0 comments on commit 725cee3

Please sign in to comment.