rust/library
bors cf8d98b227 Auto merge of #108623 - scottmcm:try-different-as-slice-impl, r=the8472
Move `Option::as_slice` to an always-sound implementation

This approach depends on CSE to not have any branches or selects when the guessed offset is correct -- which it always will be right now -- but to also be *sound* (just less efficient) if the layout algorithms change such that the guess is incorrect.

The codegen test confirms that CSE handles this as expected, leaving the optimal codegen.

cc JakobDegen #108545
2023-03-13 13:53:24 +00:00
..
alloc Rollup merge of #109026 - joshtriplett:rc-into-inner, r=dtolnay 2023-03-12 20:44:50 +01:00
backtrace@07872f28cd
core Auto merge of #108623 - scottmcm:try-different-as-slice-impl, r=the8472 2023-03-13 13:53:24 +00:00
panic_abort
panic_unwind
portable-simd Match unmatched backticks in library/ 2023-03-03 03:03:29 +01:00
proc_macro Auto merge of #105671 - lukas-code:depreciate-char, r=scottmcm 2023-02-12 11:09:06 +00:00
profiler_builtins
rtstartup
rustc-std-workspace-alloc
rustc-std-workspace-core
rustc-std-workspace-std
std Rollup merge of #108927 - Ayush1325:pal-cleanup, r=workingjubilee 2023-03-11 12:55:43 +01:00
stdarch@a0c30f3e3c
test Match unmatched backticks in library/ 2023-03-03 03:03:29 +01:00
unwind Match unmatched backticks in library/ 2023-03-03 03:03:29 +01:00