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
17719924
Commit
17719924
authored
Dec 11, 2025
by
Benjamin Woodruff
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
re-do constructors to require explicitness when overlapping in a map is desired
parent
757986a7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
418 additions
and
205 deletions
+418
-205
map.rs
turbopack/crates/turbo-frozenmap/src/map.rs
+267
-132
set.rs
turbopack/crates/turbo-frozenmap/src/set.rs
+146
-69
task_input.rs
turbopack/crates/turbo-tasks/src/task/task_input.rs
+5
-4
No files found.
turbopack/crates/turbo-frozenmap/src/map.rs
View file @
17719924
This diff is collapsed.
Click to expand it.
turbopack/crates/turbo-frozenmap/src/set.rs
View file @
17719924
This diff is collapsed.
Click to expand it.
turbopack/crates/turbo-tasks/src/task/task_input.rs
View file @
17719924
...
@@ -307,14 +307,15 @@ where
...
@@ -307,14 +307,15 @@ where
V
:
TaskInput
+
'static
,
V
:
TaskInput
+
'static
,
{
{
async
fn
resolve_input
(
&
self
)
->
Result
<
Self
>
{
async
fn
resolve_input
(
&
self
)
->
Result
<
Self
>
{
let
mut
new_entries
=
Vec
::
new
(
);
let
mut
new_entries
=
Vec
::
with_capacity
(
self
.len
()
);
for
(
k
,
v
)
in
self
{
for
(
k
,
v
)
in
self
{
new_entries
.push
((
new_entries
.push
((
TaskInput
::
resolve_input
(
k
)
.await
?
,
TaskInput
::
resolve_input
(
k
)
.await
?
,
TaskInput
::
resolve_input
(
v
)
.await
?
,
TaskInput
::
resolve_input
(
v
)
.await
?
,
));
));
}
}
Ok
(
Self
::
from
(
new_entries
))
// resolving might deduplicate `Vc`s, we don't want to panic if this happens
Ok
(
Self
::
from_overlapping_vec
(
new_entries
))
}
}
fn
is_resolved
(
&
self
)
->
bool
{
fn
is_resolved
(
&
self
)
->
bool
{
...
@@ -333,11 +334,11 @@ where
...
@@ -333,11 +334,11 @@ where
T
:
TaskInput
+
Ord
+
'static
,
T
:
TaskInput
+
Ord
+
'static
,
{
{
async
fn
resolve_input
(
&
self
)
->
Result
<
Self
>
{
async
fn
resolve_input
(
&
self
)
->
Result
<
Self
>
{
let
mut
new_set
=
Vec
::
new
(
);
let
mut
new_set
=
Vec
::
with_capacity
(
self
.len
()
);
for
value
in
self
{
for
value
in
self
{
new_set
.push
(
TaskInput
::
resolve_input
(
value
)
.await
?
);
new_set
.push
(
TaskInput
::
resolve_input
(
value
)
.await
?
);
}
}
Ok
(
Self
::
from
(
new_set
))
Ok
(
Self
::
from
_iter
(
new_set
))
}
}
fn
is_resolved
(
&
self
)
->
bool
{
fn
is_resolved
(
&
self
)
->
bool
{
...
...
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