(entry: &str)
| 35 | /// pc-to-source line table. `None` when the module or its path is unknown. |
| 36 | pub fn stdlib_module_source_path(mode: TargetMode, name: &str) -> Option<&'static str> { |
| 37 | let manifest = fs_utils::build_manifest::parse(STDLIB_BUILD).ok()?; |
| 38 | let key = match mode { |
| 39 | TargetMode::Hosted => "hosted", |
| 40 | TargetMode::Freestanding => "freestanding", |
| 41 | TargetMode::Kernel => "kernel", |
| 42 | }; |
| 43 | let entries = manifest.list(key).ok()??; |
| 44 | entries.into_iter().find_map(|entry| { |
| 45 | let (module_name, source_key) = parse_module_entry(&entry); |
no outgoing calls
no test coverage detected