Commit Graph

4 Commits

Author SHA1 Message Date
Guillaume Lessard
0130dea4a1 [stdlib] fix small string usage for Substring.utf8Span 2025-06-09 14:19:41 -07:00
Guillaume Lessard
664cc69556 [stdlib] fix small-string usage for String.utf8Span 2025-06-09 14:19:40 -07:00
Andrew Trick
f71b8366e7 Add _overrideLifetime to Span APIs
The implementation previously took advantage of a missing diagnostic. They
returned a borrowed Span with a dependency on a copied argument. This illegally
promotes the dependency. This is what the author intended to do (the
implementation was correct) but the compiler can't know that so the code needs
to be explicit about overriding the lifetime.

(cherry picked from commit e9d11283b9)
2025-04-25 19:21:16 -07:00
Michael Ilseman
393c24ddd7 UTF8Span (#78531) (#80890)
Add support for UTF8Span

Also, refactor validation and grapheme breaking
2025-04-18 10:01:15 -04:00