temporaries-rabbit-hole/ #37
Replies: 2 comments
-
|
Note that the example with Some should already compile on nightly :) rust-lang/rust#140593 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
So about footnote two, apparently promotion does happen for This is a special edge case for specifically empty mutable slices (and empty arrays). I scoured the reference but it appears to be undocumented except for in the alternatives section of the temporary promotion rfc. The rabbit hole only gets deeper and scarier. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
temporaries-rabbit-hole/
Way too many words about how Rust's temporaries work
http://taping-memory.dev/temporaries-rabbit-hole/
Beta Was this translation helpful? Give feedback.
All reactions