rust/library
Matthias Krüger cbe2522652
Rollup merge of #114382 - scottmcm:compare-bytes-intrinsic, r=cjgillot
Add a new `compare_bytes` intrinsic instead of calling `memcmp` directly

As discussed in #113435, this lets the backends be the place that can have the "don't call the function if n == 0" logic, if it's needed for the target.  (I didn't actually *add* those checks, though, since as I understood it we didn't actually need them on known targets?)

Doing this also let me make it `const` (unstable), which I don't think `extern "C" fn memcmp` can be.

cc `@RalfJung` `@Amanieu`
2023-08-07 05:29:12 +02:00
..
alloc Rollup merge of #114365 - tshepang:patch-6, r=Mark-Simulacrum 2023-08-07 05:29:12 +02:00
backtrace@e1c49fbd61 Update std to backtrace 0.3.68 2023-07-02 17:02:45 -07:00
core Rollup merge of #114382 - scottmcm:compare-bytes-intrinsic, r=cjgillot 2023-08-07 05:29:12 +02:00
panic_abort Add internal_features lint 2023-08-03 14:50:50 +02:00
panic_unwind Add internal_features lint 2023-08-03 14:50:50 +02:00
portable-simd remove repetitive words 2023-07-31 16:13:02 +08:00
proc_macro Add internal_features lint 2023-08-03 14:50:50 +02:00
profiler_builtins Add internal_features lint 2023-08-03 14:50:50 +02:00
rtstartup Remove custom frame info registration on i686-pc-windows-gnu 2022-08-23 16:12:58 +08:00
rustc-std-workspace-alloc Replace libstd, libcore, liballoc in line comments. 2022-12-30 14:00:42 +01:00
rustc-std-workspace-core
rustc-std-workspace-std
std use offset_of! to calculate dirent64 field offsets 2023-08-05 15:53:09 +02:00
stdarch@d77878b729 Bump stdarch 2023-06-13 21:45:04 -07:00
sysroot Expose compiler-builtins-weak-intrinsics feature for -Zbuild-std 2023-06-23 11:15:34 +01:00
test Add internal_features lint 2023-08-03 14:50:50 +02:00
unwind Add internal_features lint 2023-08-03 14:50:50 +02:00