This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 9892279
committed
Auto merge of rust-lang#75121 - tmiasko:str-slicing, r=Mark-Simulacrum
Avoid `unwrap_or_else` in str indexing
This provides a small reduction of generated LLVM IR, and leads to a
simpler assembly code.
Closes rust-lang#68874.1 file changed
+12
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1923 | 1923 | | |
1924 | 1924 | | |
1925 | 1925 | | |
1926 | | - | |
| 1926 | + | |
| 1927 | + | |
| 1928 | + | |
| 1929 | + | |
1927 | 1930 | | |
1928 | 1931 | | |
1929 | 1932 | | |
| |||
1995 | 1998 | | |
1996 | 1999 | | |
1997 | 2000 | | |
1998 | | - | |
| 2001 | + | |
| 2002 | + | |
| 2003 | + | |
| 2004 | + | |
1999 | 2005 | | |
2000 | 2006 | | |
2001 | 2007 | | |
| |||
2068 | 2074 | | |
2069 | 2075 | | |
2070 | 2076 | | |
2071 | | - | |
| 2077 | + | |
| 2078 | + | |
| 2079 | + | |
| 2080 | + | |
2072 | 2081 | | |
2073 | 2082 | | |
2074 | 2083 | | |
| |||
0 commit comments