From 9eb6fc4056e6a0719a5a1cd18bb1d87b0e29a276 Mon Sep 17 00:00:00 2001 From: Maksim Zdobnikau Date: Wed, 18 Dec 2024 16:13:31 +0100 Subject: [PATCH] Reorder `load_prebuilts` in `generate_compilation_units` --- scarb/src/bin/scarb/commands/proc_macro_server.rs | 2 +- scarb/src/ops/compile.rs | 2 +- scarb/src/ops/expand.rs | 2 +- scarb/src/ops/metadata.rs | 2 +- scarb/src/ops/resolve.rs | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/scarb/src/bin/scarb/commands/proc_macro_server.rs b/scarb/src/bin/scarb/commands/proc_macro_server.rs index 56900eea8..b2165899b 100644 --- a/scarb/src/bin/scarb/commands/proc_macro_server.rs +++ b/scarb/src/bin/scarb/commands/proc_macro_server.rs @@ -16,8 +16,8 @@ pub fn run(config: &mut Config) -> Result<()> { no_default_features: false, }, true, - &ws, true, + &ws, )?; // Compile procedural macros only. diff --git a/scarb/src/ops/compile.rs b/scarb/src/ops/compile.rs index 33678520b..64cbd9c75 100644 --- a/scarb/src/ops/compile.rs +++ b/scarb/src/ops/compile.rs @@ -129,8 +129,8 @@ where &resolve, &opts.features, opts.ignore_cairo_version, - ws, true, + ws, )? .into_iter() .filter(|cu| { diff --git a/scarb/src/ops/expand.rs b/scarb/src/ops/expand.rs index 4a6b5d941..0edb61da3 100644 --- a/scarb/src/ops/expand.rs +++ b/scarb/src/ops/expand.rs @@ -47,8 +47,8 @@ pub fn expand(package: Package, opts: ExpandOpts, ws: &Workspace<'_>) -> Result< &resolve, &opts.features, opts.ignore_cairo_version, - ws, true, + ws, )?; // Compile procedural macros. diff --git a/scarb/src/ops/metadata.rs b/scarb/src/ops/metadata.rs index abe84111f..ad69030ed 100644 --- a/scarb/src/ops/metadata.rs +++ b/scarb/src/ops/metadata.rs @@ -48,8 +48,8 @@ pub fn collect_metadata(opts: &MetadataOptions, ws: &Workspace<'_>) -> Result, load_prebuilts: bool, + ws: &Workspace<'_>, ) -> Result> { let mut units = Vec::with_capacity(ws.members().size_hint().0); let members = ws