about summary refs log tree commit diff
path: root/src/libstd/sys/common
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2016-07-06 09:29:15 -0700
committerAlex Crichton <alex@alexcrichton.com>2016-07-06 09:29:15 -0700
commit0c137ab0a64b27e9bc0dc68d35ba6f5f60536a97 (patch)
treeb9f55cb777226ac455c4c76bb62870e85ef6fe03 /src/libstd/sys/common
parentec58d0c9976c18c405a59d26252a1fa7a3e2a742 (diff)
downloadrust-0c137ab0a64b27e9bc0dc68d35ba6f5f60536a97.tar.gz
rust-0c137ab0a64b27e9bc0dc68d35ba6f5f60536a97.zip
rustc: Update stage0 to beta-2016-07-06
Hot off the presses, let's update our stage0 compiler!
Diffstat (limited to 'src/libstd/sys/common')
-rw-r--r--src/libstd/sys/common/wtf8.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/sys/common/wtf8.rs b/src/libstd/sys/common/wtf8.rs
index b6be85a4dfa..2c1a656290f 100644
--- a/src/libstd/sys/common/wtf8.rs
+++ b/src/libstd/sys/common/wtf8.rs
@@ -566,7 +566,7 @@ impl Wtf8 {
         if len < 3 {
             return None
         }
-        match ::slice_pat(&&self.bytes[(len - 3)..]) {
+        match &self.bytes[(len - 3)..] {
             &[0xED, b2 @ 0xA0...0xAF, b3] => Some(decode_surrogate(b2, b3)),
             _ => None
         }
@@ -578,7 +578,7 @@ impl Wtf8 {
         if len < 3 {
             return None
         }
-        match ::slice_pat(&&self.bytes[..3]) {
+        match &self.bytes[..3] {
             &[0xED, b2 @ 0xB0...0xBF, b3] => Some(decode_surrogate(b2, b3)),
             _ => None
         }