Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
N
next.js
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Alex
next.js
Commits
472703b5
Commit
472703b5
authored
Sep 07, 2025
by
Luke Sandberg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
But what if we are already resolved to the correct value.
parent
ede8d1b8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
raw_vc.rs
turbopack/crates/turbo-tasks/src/raw_vc.rs
+9
-1
No files found.
turbopack/crates/turbo-tasks/src/raw_vc.rs
View file @
472703b5
...
@@ -209,6 +209,10 @@ impl RawVc {
...
@@ -209,6 +209,10 @@ impl RawVc {
}
}
async
fn
resolve_inner
(
self
,
mut
consistency
:
ReadConsistency
)
->
Result
<
RawVc
>
{
async
fn
resolve_inner
(
self
,
mut
consistency
:
ReadConsistency
)
->
Result
<
RawVc
>
{
// Handle this first to avoid taking a reference to turbo_tasks
if
matches!
(
self
,
RawVc
::
TaskCell
(
_
,
_
))
{
return
Ok
(
self
);
}
let
tt
=
turbo_tasks
();
let
tt
=
turbo_tasks
();
let
mut
current
=
self
;
let
mut
current
=
self
;
let
mut
notified
=
false
;
let
mut
notified
=
false
;
...
@@ -237,8 +241,12 @@ impl RawVc {
...
@@ -237,8 +241,12 @@ impl RawVc {
/// Convert a potentially local `RawVc` into a non-local `RawVc`. This is a subset of resolution
/// Convert a potentially local `RawVc` into a non-local `RawVc`. This is a subset of resolution
/// resolution, because the returned `RawVc` can be a `TaskOutput`.
/// resolution, because the returned `RawVc` can be a `TaskOutput`.
pub
(
crate
)
async
fn
to_non_local
(
self
)
->
Result
<
RawVc
>
{
pub
(
crate
)
async
fn
to_non_local
(
self
)
->
Result
<
RawVc
>
{
let
tt
=
turbo_tasks
();
// Handle this first to avoid taking a reference to turbo_tasks
if
!
matches!
(
self
,
RawVc
::
LocalOutput
(
_
,
_
,
_
))
{
return
Ok
(
self
);
}
let
mut
current
=
self
;
let
mut
current
=
self
;
let
tt
=
turbo_tasks
();
loop
{
loop
{
match
current
{
match
current
{
RawVc
::
LocalOutput
(
execution_id
,
local_task_id
,
..
)
=>
{
RawVc
::
LocalOutput
(
execution_id
,
local_task_id
,
..
)
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment