Commit 8ad12c3
committed
Auto merge of #30381 - fhahn:memchr-in-std, r=alexcrichton
This PR adds `memchr`and `memrchr` based on @BurntSushi 's rust-memchr crate to libstd (as discussed in #30151).
I've update some places in libstd to use memchr/memrchr, but I am not sure if there are other places where it could be used as well.
ref #300767 files changed
+397
-5
lines changed- .travis.yml+4-1
- Cargo.toml+1-1
- ci/rumprun/Dockerfile+12
- ci/run-travis.sh+46-43
- ci/run.sh+11-3
- libc-test/Cargo.lock+113
- libc-test/build.rs+94-6
- src/dox.rs+4
- src/lib.rs+18-1
- src/macros.rs+2-1
- src/unix/bsd/apple/mod.rs+171-2
- src/unix/bsd/freebsdlike/dragonfly.rs+2-1
- src/unix/bsd/freebsdlike/freebsd.rs+1-1
- src/unix/bsd/freebsdlike/mod.rs+52
- src/unix/bsd/mod.rs+188-20
- src/unix/bsd/openbsdlike/bitrig.rs+209-2
- src/unix/bsd/openbsdlike/mod.rs+32-192
- src/unix/bsd/openbsdlike/netbsd.rs+333-5
- src/unix/bsd/openbsdlike/openbsd.rs+210-2
- src/unix/mod.rs+91-7
- src/unix/notbsd/android/mod.rs+190
- src/unix/notbsd/linux/mips.rs+173-1
- src/unix/notbsd/linux/mod.rs+183
- src/unix/notbsd/linux/musl.rs+168
- src/unix/notbsd/linux/other/b32/arm.rs+4
- src/unix/notbsd/linux/other/b32/mod.rs+8
- src/unix/notbsd/linux/other/b32/x86.rs+4
- src/unix/notbsd/linux/other/b64/aarch64.rs+4
- src/unix/notbsd/linux/other/b64/mod.rs+1
- src/unix/notbsd/linux/other/b64/x86_64.rs+11
- src/unix/notbsd/linux/other/mod.rs+206
- src/unix/notbsd/mod.rs+230
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
22 | 23 | | |
23 | 24 | | |
24 | 25 | | |
| |||
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
191 | | - | |
| 192 | + | |
192 | 193 | | |
193 | 194 | | |
194 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
746 | 747 | | |
747 | 748 | | |
748 | 749 | | |
749 | | - | |
| 750 | + | |
750 | 751 | | |
751 | 752 | | |
752 | 753 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
254 | 254 | | |
255 | 255 | | |
256 | 256 | | |
| 257 | + | |
257 | 258 | | |
258 | 259 | | |
259 | 260 | | |
| |||
1194 | 1195 | | |
1195 | 1196 | | |
1196 | 1197 | | |
1197 | | - | |
| 1198 | + | |
1198 | 1199 | | |
1199 | 1200 | | |
1200 | 1201 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| 251 | + | |
251 | 252 | | |
252 | 253 | | |
253 | 254 | | |
| |||
429 | 430 | | |
430 | 431 | | |
431 | 432 | | |
| 433 | + | |
432 | 434 | | |
433 | 435 | | |
434 | 436 | | |
| |||
0 commit comments