(
pipeline: &mut CompilationPipeline,
source: &LoadedSource,
)
| 377 | name: manifest.name.clone(), |
| 378 | target: manifest.target, |
| 379 | entry: manifest.entry.clone(), |
| 380 | stdlib: manifest.stdlib, |
| 381 | import_closure: manifest.import_closure, |
| 382 | root: manifest.root.name().to_owned(), |
| 383 | extra_objects: manifest |
| 384 | .extra_objects |
| 385 | .iter() |
| 386 | .map(|object| object.name.clone()) |
| 387 | .collect(), |
| 388 | abi_exports: manifest.abi_exports.clone(), |
| 389 | has_source_prelude: manifest.source_prelude.is_some(), |
| 390 | } |
| 391 | } |
| 392 | |
| 393 | pub fn build(manifest: &BuildManifest) -> Result<BuildArtifacts, BuildError> { |
| 394 | let plan = Self::plan(manifest); |
| 395 | let mut units: Vec<BuiltUnit> = Vec::new(); |
| 396 | |
| 397 | let mut prunable = std::collections::HashSet::new(); |
| 398 | for (name, assembled) in Self::compile_stdlib(manifest)? { |
nothing calls this directly
no test coverage detected