Rollup merge of #109179 - llogiq:intrinsically-option-as-slice, r=eholk
move Option::as_slice to intrinsic ````@scottmcm```` suggested on #109095 I use a direct approach of unpacking the operation in MIR lowering, so here's the implementation. cc ````@nikic```` as this should hopefully unblock #107224 (though perhaps other changes to the prior implementation, which I left for bootstrapping, are needed).
This commit is contained in:
commit
14d06467f0
8 changed files with 152 additions and 72 deletions
|
@ -1044,6 +1044,7 @@ symbols! {
|
|||
optin_builtin_traits,
|
||||
option,
|
||||
option_env,
|
||||
option_payload_ptr,
|
||||
options,
|
||||
or,
|
||||
or_patterns,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue