(path: &str)
| 356 | failure: None, |
| 357 | }; |
| 358 | } |
| 359 | }; |
| 360 | optimize_ir(&mut out.ir, self.optimize); |
| 361 | |
| 362 | let mut diagnostics = out.diagnostics; |
| 363 | |
| 364 | // Entry-point presence check for freestanding builds. |
| 365 | // Kernel mode skips this: `_kernel_start` is provided by the kernel stdlib, not user code. |
| 366 | if self.target_mode == TargetMode::Freestanding { |
| 367 | let entry = self.effective_entry_point(); |
| 368 | if !out.ir.functions.iter().any(|f| f.name == entry) |
nothing calls this directly
no outgoing calls
no test coverage detected