rust/library
Matthias Krüger ed75229a97
Rollup merge of #121343 - Takashiidobe:takashi/examples-for-slice, r=Mark-Simulacrum
Add examples for some methods on slices

Adds some examples to some methods on slice.

`is_empty` didn't have an example for an empty slice, even though `str` and the collections all have one, so I added that in.

`first_mut` and `last_mut` didn't have an example for what happens when the slice is empty, whereas `first` and `last` do, so I added that too.
2024-02-24 22:38:58 +01:00
..
alloc Auto merge of #121514 - matthiaskrgr:rollup-5f0vhv7, r=matthiaskrgr 2024-02-23 16:26:49 +00:00
backtrace@6145fe6bac Update backtrace submodule 2023-11-21 16:33:42 +01:00
core Rollup merge of #121343 - Takashiidobe:takashi/examples-for-slice, r=Mark-Simulacrum 2024-02-24 22:38:58 +01:00
panic_abort rustc: implement support for riscv32im_risc0_zkvm_elf 2024-01-22 10:07:36 -08:00
panic_unwind Get rid of some #[allow(static_mut_refs)] 2024-02-23 18:02:25 +03:00
portable-simd Merge commit '649110751ef4f27440d7cc711b3e07d11bf02d4a' into sync-portable-simd-2024-02-18 2024-02-18 10:14:03 -05:00
proc_macro Auto merge of #121454 - reitermarkus:generic-nonzero-library, r=dtolnay 2024-02-23 14:27:33 +00:00
profiler_builtins Add support for custom JSON targets when using build-std. 2024-02-05 10:20:42 +00:00
rtstartup library: Fix warnings in rtstartup 2024-01-06 01:32:03 +03:00
rustc-std-workspace-alloc
rustc-std-workspace-core
rustc-std-workspace-std
std Auto merge of #119536 - Jules-Bertholet:const-barrier, r=dtolnay 2024-02-23 20:54:02 +00:00
stdarch@d5fab978fe Update stdarch submodule 2024-02-19 10:49:20 +01:00
sysroot Expose compiler-builtins-weak-intrinsics feature for -Zbuild-std 2023-06-23 11:15:34 +01:00
test Use generic NonZero everywhere else. 2024-02-22 15:17:34 +01:00
unwind Enable Static Builds for FreeBSD 2024-01-11 15:26:16 +00:00