Skip to content

Commit 6ea6270

Browse files
authored
Update rust toolchain to 2025-10-27 (#85409)
- **Remove now-unnecessary feature flag for new_zeroed_alloc** - **Remove unused import** - **Update toolchain to 2025-10-27**
1 parent 11a820d commit 6ea6270

File tree

7 files changed

+5
-7
lines changed

7 files changed

+5
-7
lines changed

crates/next-custom-transforms/src/transforms/named_import_transform.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,11 +78,11 @@ impl Fold for NamedImportTransform {
7878

7979
// Create a new import declaration, keep everything the same except the source
8080
let mut new_decl = decl.clone();
81-
new_decl.src = Box::new(Str {
81+
*new_decl.src = Str {
8282
span: DUMMY_SP,
8383
value: new_src.into(),
8484
raw: None,
85-
});
85+
};
8686

8787
return new_decl;
8888
}

crates/next-custom-transforms/src/transforms/server_actions.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3042,6 +3042,7 @@ impl From<Name> for Box<Expr> {
30423042
optional,
30433043
} in value.1.into_iter()
30443044
{
3045+
#[allow(clippy::replace_box)]
30453046
if is_member {
30463047
expr = Box::new(Expr::Member(MemberExpr {
30473048
span: DUMMY_SP,

crates/next-custom-transforms/src/transforms/track_dynamic_imports.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ fn make_named_import_esm(args: MakeNamedImportArgs) -> ModuleItem {
100100
);
101101
// the import source cannot be parametrized in `quote!()`, so patch it manually
102102
let decl = item.as_mut_module_decl().unwrap().as_mut_import().unwrap();
103-
decl.src = Box::new(source.into());
103+
*decl.src = source.into();
104104
item
105105
}
106106

rust-toolchain.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# if you update this, also update `.devcontainer/rust/devcontainer-feature.json`
22
[toolchain]
3-
channel = "nightly-2025-09-21"
3+
channel = "nightly-2025-10-27"
44
components = ["rustfmt", "clippy", "rust-analyzer"]
55
profile = "minimal"

turbopack/crates/turbo-persistence/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#![feature(once_cell_try)]
2-
#![feature(new_zeroed_alloc)]
32
#![feature(get_mut_unchecked)]
43
#![feature(sync_unsafe_cell)]
54
#![feature(iter_collect_into)]

turbopack/crates/turbo-tasks/src/lib.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@
3333
#![feature(error_generic_member_access)]
3434
#![feature(arbitrary_self_types)]
3535
#![feature(arbitrary_self_types_pointers)]
36-
#![feature(new_zeroed_alloc)]
3736
#![feature(never_type)]
3837
#![feature(downcast_unchecked)]
3938
#![feature(ptr_metadata)]

turbopack/crates/turbopack-core/src/module_graph/mod.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1241,7 +1241,6 @@ macro_rules! get_node_idx {
12411241
}
12421242
}};
12431243
}
1244-
pub(crate) use get_node_idx;
12451244

12461245
impl ModuleGraph {
12471246
pub async fn read_graphs(self: Vc<ModuleGraph>) -> Result<ModuleGraphRef> {

0 commit comments

Comments
 (0)