()
| 627 | // nonzero. Printing the surrounding facts and exiting 0 would make a broken |
| 628 | // adapter look like an empty snapshot. |
| 629 | if let Some(category) = out.adapter_error_category.as_deref() { |
| 630 | eprintln!("error category: {}", category); |
| 631 | return Err(AlreadyReported.into()); |
| 632 | } |
| 633 | Ok(()) |
| 634 | } |
| 635 | |
| 636 | /// The provider block, in the same order every surface reports it. |
| 637 | fn print_provider(provider: &ProviderReport) { |
| 638 | println!("provider:"); |
| 639 | println!(" adapter executed: {}", provider.adapter_executed); |
| 640 | println!( |
| 641 | " host: {}/{} target: {}", |
| 642 | provider.host_os, provider.host_arch, provider.target_arch |
| 643 | ); |
| 644 | if let Some(reason) = provider.core_fallback_reason.as_deref() { |
| 645 | println!(" core fallback reason: {}", reason); |
| 646 | if let Some(detail) = provider.core_fallback_detail.as_deref() { |
| 647 | println!(" core fallback detail: {}", detail); |
nothing calls this directly
no outgoing calls
no test coverage detected