(root: &Path)
| 385 | (current.as_deref(), table_detail(line, "| Signature |")) |
| 386 | { |
| 387 | let macro_name = format!("{name}!"); |
| 388 | if !sig.contains(name) && !sig.contains(¯o_name) { |
| 389 | failures.push(format!( |
| 390 | "{} `{name}` signature does not name API: {sig}", |
| 391 | doc.slug |
| 392 | )); |
| 393 | } |
| 394 | } |
| 395 | } |
| 396 | } |
| 397 | |
| 398 | assert!(failures.is_empty(), "{}", failures.join("\n")); |
| 399 | } |
| 400 | |
| 401 | #[test] |
| 402 | fn docs_do_not_use_generic_api_placeholder_prose() { |
| 403 | let banned = [ |