Skip to content

Commit 477e1e4

Browse files
authored
Bump Rust version (vercel#73169)
1 parent f7e0191 commit 477e1e4

File tree

16 files changed

+34
-35
lines changed

16 files changed

+34
-35
lines changed

Cargo.lock

Lines changed: 10 additions & 10 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
[toolchain]
2-
channel = "nightly-2024-10-04"
2+
channel = "nightly-2024-12-10"
33
components = ["rustfmt", "clippy", "rust-analyzer"]
44
profile = "minimal"

turbopack/crates/turbo-tasks-backend/src/backend/mod.rs

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1272,7 +1272,7 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
12721272
CachedDataItemValue::InProgressCell { value },
12731273
) if cell_counters
12741274
.get(&cell.type_id)
1275-
.map_or(true, |start_index| cell.index >= *start_index) =>
1275+
.is_none_or(|start_index| cell.index >= *start_index) =>
12761276
{
12771277
value.event.notify(usize::MAX);
12781278
true
@@ -1283,8 +1283,7 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
12831283
));
12841284
removed_data.extend(task.extract_if(CachedDataItemIndex::CellData, |key, _| {
12851285
matches!(key, &CachedDataItemKey::CellData { cell } if cell_counters
1286-
.get(&cell.type_id)
1287-
.map_or(true, |start_index| cell.index >= *start_index))
1286+
.get(&cell.type_id).is_none_or(|start_index| cell.index >= *start_index))
12881287
}));
12891288
if self.should_track_children() {
12901289
old_edges.extend(task.iter(CachedDataItemIndex::Children).filter_map(
@@ -1323,7 +1322,7 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
13231322
CachedDataItemKey::CellDependent { cell, task }
13241323
if cell_counters
13251324
.get(&cell.type_id)
1326-
.map_or(true, |start_index| cell.index >= *start_index) =>
1325+
.is_none_or(|start_index| cell.index >= *start_index) =>
13271326
{
13281327
Some(OutdatedEdge::RemovedCellDependent(task, cell.type_id))
13291328
}
@@ -1340,15 +1339,15 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
13401339
CachedDataItemValue::InProgressCell { value },
13411340
) if cell_counters
13421341
.get(&cell.type_id)
1343-
.map_or(true, |start_index| cell.index >= *start_index) =>
1342+
.is_none_or(|start_index| cell.index >= *start_index) =>
13441343
{
13451344
value.event.notify(usize::MAX);
13461345
return true;
13471346
}
13481347
(&CachedDataItemKey::CellData { cell }, _)
13491348
if cell_counters
13501349
.get(&cell.type_id)
1351-
.map_or(true, |start_index| cell.index >= *start_index) =>
1350+
.is_none_or(|start_index| cell.index >= *start_index) =>
13521351
{
13531352
return true;
13541353
}
@@ -1371,7 +1370,7 @@ impl<B: BackingStorage> TurboTasksBackendInner<B> {
13711370
(&CachedDataItemKey::CellDependent { cell, task }, _)
13721371
if cell_counters
13731372
.get(&cell.type_id)
1374-
.map_or(true, |start_index| cell.index >= *start_index) =>
1373+
.is_none_or(|start_index| cell.index >= *start_index) =>
13751374
{
13761375
old_edges.push(OutdatedEdge::RemovedCellDependent(task, cell.type_id));
13771376
}

turbopack/crates/turbo-tasks-backend/src/backend/operation/aggregation_update.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -576,7 +576,7 @@ impl AggregationUpdateQueue {
576576
if update.base_aggregation_number < base_aggregation_number {
577577
true
578578
} else if let Some(distance) = distance {
579-
update.distance.map_or(true, |d| d < distance)
579+
update.distance.is_none_or(|d| d < distance)
580580
} else {
581581
false
582582
};

turbopack/crates/turbo-tasks-backend/src/database/fresh_db_optimization.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use crate::database::{
1313
};
1414

1515
pub fn is_fresh(path: &Path) -> bool {
16-
fs::exists(path).map_or(false, |exists| !exists)
16+
fs::exists(path).is_ok_and(|exists| !exists)
1717
}
1818

1919
pub struct FreshDbOptimization<T: KeyValueDatabase> {

turbopack/crates/turbo-tasks-backend/src/utils/chunked_vec.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ impl<T> ChunkedVec<T> {
4949
}
5050

5151
pub fn is_empty(&self) -> bool {
52-
self.chunks.first().map_or(true, |chunk| chunk.is_empty())
52+
self.chunks.first().is_none_or(|chunk| chunk.is_empty())
5353
}
5454
}
5555

turbopack/crates/turbo-tasks-macros-tests/tests/derive_non_local_value/fail_contains_vc_inside_generic.stderr

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

turbopack/crates/turbo-tasks-macros-tests/tests/derive_non_local_value/fail_underconstrained_generic.stderr

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

turbopack/crates/turbo-tasks-memory/src/task/aggregation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ impl DerefMut for TaskGuard<'_> {
482482
}
483483
}
484484

485-
impl<'l> AggregationNodeGuard for TaskGuard<'l> {
485+
impl AggregationNodeGuard for TaskGuard<'_> {
486486
type Data = Aggregated;
487487
type NodeRef = TaskId;
488488
type DataChange = TaskChange;

turbopack/crates/turbo-tasks/src/debug/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ pub enum ValueDebugFormatString<'a> {
379379
),
380380
}
381381

382-
impl<'a> ValueDebugFormatString<'a> {
382+
impl ValueDebugFormatString<'_> {
383383
/// Convert the `ValueDebugFormatString` into a `String`.
384384
///
385385
/// This can fail when resolving `Vc` types.

0 commit comments

Comments
 (0)