This repository was archived by the owner on May 28, 2025. It is now read-only.
Commit 629acbf
authored
Unrolled build for rust-lang#117243
Rollup merge of rust-lang#117243 - chfogelman:replace-not-swap-comment, r=thomcc
Explain implementation of mem::replace
This adds a comment to explain why `mem::replace` is not implemented in terms of `mem::swap` to prevent [naïfs like me](rust-lang#117189) from trying to "fix" it.1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
909 | 909 | | |
910 | 910 | | |
911 | 911 | | |
| 912 | + | |
| 913 | + | |
| 914 | + | |
| 915 | + | |
912 | 916 | | |
913 | 917 | | |
914 | 918 | | |
| |||
0 commit comments