about summary refs log tree commit diff
path: root/src/libstd/sys
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2015-03-31 09:04:38 +0530
committerManish Goregaokar <manishsmail@gmail.com>2015-03-31 09:04:38 +0530
commit57938041c18ee1c1bef362e60f24f5b2d3a46213 (patch)
tree08c6687505bdece30b94f7719ee0ef943b7b4ac5 /src/libstd/sys
parent464c18ce9cc6a29c2dcf83d3e78576dbc5390f3c (diff)
parentacd48a2b3e7fcc0372f7718a2fac1cf80e03db95 (diff)
downloadrust-57938041c18ee1c1bef362e60f24f5b2d3a46213.tar.gz
rust-57938041c18ee1c1bef362e60f24f5b2d3a46213.zip
Rollup merge of #23866 - alexcrichton:switch-some-orders, r=aturon
This functions swaps the order of arguments to a few functions that previously
took (output, input) parameters, but now take (input, output) parameters (in
that order).

The affected functions are:

* ptr::copy
* ptr::copy_nonoverlapping
* slice::bytes::copy_memory
* intrinsics::copy
* intrinsics::copy_nonoverlapping

Closes #22890
[breaking-change]
Diffstat (limited to 'src/libstd/sys')
-rw-r--r--src/libstd/sys/common/wtf8.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/sys/common/wtf8.rs b/src/libstd/sys/common/wtf8.rs
index 315df411179..8f788988e55 100644
--- a/src/libstd/sys/common/wtf8.rs
+++ b/src/libstd/sys/common/wtf8.rs
@@ -344,8 +344,8 @@ impl Wtf8Buf {
                 Some((surrogate_pos, _)) => {
                     pos = surrogate_pos + 3;
                     slice::bytes::copy_memory(
+                        UTF8_REPLACEMENT_CHARACTER,
                         &mut self.bytes[surrogate_pos .. pos],
-                        UTF8_REPLACEMENT_CHARACTER
                     );
                 },
                 None => return unsafe { String::from_utf8_unchecked(self.bytes) }