Unverified Commit 6ea6270e authored by Will Binns-Smith's avatar Will Binns-Smith Committed by GitHub

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**
parent 11a820d2
...@@ -78,11 +78,11 @@ impl Fold for NamedImportTransform { ...@@ -78,11 +78,11 @@ impl Fold for NamedImportTransform {
// Create a new import declaration, keep everything the same except the source // Create a new import declaration, keep everything the same except the source
let mut new_decl = decl.clone(); let mut new_decl = decl.clone();
new_decl.src = Box::new(Str { *new_decl.src = Str {
span: DUMMY_SP, span: DUMMY_SP,
value: new_src.into(), value: new_src.into(),
raw: None, raw: None,
}); };
return new_decl; return new_decl;
} }
......
...@@ -3042,6 +3042,7 @@ impl From<Name> for Box<Expr> { ...@@ -3042,6 +3042,7 @@ impl From<Name> for Box<Expr> {
optional, optional,
} in value.1.into_iter() } in value.1.into_iter()
{ {
#[allow(clippy::replace_box)]
if is_member { if is_member {
expr = Box::new(Expr::Member(MemberExpr { expr = Box::new(Expr::Member(MemberExpr {
span: DUMMY_SP, span: DUMMY_SP,
......
...@@ -100,7 +100,7 @@ fn make_named_import_esm(args: MakeNamedImportArgs) -> ModuleItem { ...@@ -100,7 +100,7 @@ fn make_named_import_esm(args: MakeNamedImportArgs) -> ModuleItem {
); );
// the import source cannot be parametrized in `quote!()`, so patch it manually // the import source cannot be parametrized in `quote!()`, so patch it manually
let decl = item.as_mut_module_decl().unwrap().as_mut_import().unwrap(); let decl = item.as_mut_module_decl().unwrap().as_mut_import().unwrap();
decl.src = Box::new(source.into()); *decl.src = source.into();
item item
} }
......
# if you update this, also update `.devcontainer/rust/devcontainer-feature.json` # if you update this, also update `.devcontainer/rust/devcontainer-feature.json`
[toolchain] [toolchain]
channel = "nightly-2025-09-21" channel = "nightly-2025-10-27"
components = ["rustfmt", "clippy", "rust-analyzer"] components = ["rustfmt", "clippy", "rust-analyzer"]
profile = "minimal" profile = "minimal"
#![feature(once_cell_try)] #![feature(once_cell_try)]
#![feature(new_zeroed_alloc)]
#![feature(get_mut_unchecked)] #![feature(get_mut_unchecked)]
#![feature(sync_unsafe_cell)] #![feature(sync_unsafe_cell)]
#![feature(iter_collect_into)] #![feature(iter_collect_into)]
......
...@@ -33,7 +33,6 @@ ...@@ -33,7 +33,6 @@
#![feature(error_generic_member_access)] #![feature(error_generic_member_access)]
#![feature(arbitrary_self_types)] #![feature(arbitrary_self_types)]
#![feature(arbitrary_self_types_pointers)] #![feature(arbitrary_self_types_pointers)]
#![feature(new_zeroed_alloc)]
#![feature(never_type)] #![feature(never_type)]
#![feature(downcast_unchecked)] #![feature(downcast_unchecked)]
#![feature(ptr_metadata)] #![feature(ptr_metadata)]
......
...@@ -1241,7 +1241,6 @@ macro_rules! get_node_idx { ...@@ -1241,7 +1241,6 @@ macro_rules! get_node_idx {
} }
}}; }};
} }
pub(crate) use get_node_idx;
impl ModuleGraph { impl ModuleGraph {
pub async fn read_graphs(self: Vc<ModuleGraph>) -> Result<ModuleGraphRef> { pub async fn read_graphs(self: Vc<ModuleGraph>) -> Result<ModuleGraphRef> {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment