Joins strings together while ensuring none of the strings contain the separator. NOTE(eddyb) this intentionally consumes the `Vec` to limit accidental misuse.
(strings: Vec<impl Borrow<str>>, sep: &str)
| 530 | /// Joins strings together while ensuring none of the strings contain the separator. |
| 531 | // NOTE(eddyb) this intentionally consumes the `Vec` to limit accidental misuse. |
| 532 | fn join_checking_for_separators(strings: Vec<impl Borrow<str>>, sep: &str) -> String { |
| 533 | for s in &strings { |
| 534 | let s = s.borrow(); |
| 535 | assert!(!s.contains(sep), "{s:?} may not contain separator {sep:?}"); |
| 536 | } |
| 537 | strings.join(sep) |
| 538 | } |
| 539 | |
| 540 | // Returns path to the metadata json. |
| 541 | fn invoke_rustc(builder: &SpirvBuilder) -> Result<PathBuf, SpirvBuilderError> { |