diff options
| author | Alex Crichton <alex@alexcrichton.com> | 2016-07-06 09:29:15 -0700 |
|---|---|---|
| committer | Alex Crichton <alex@alexcrichton.com> | 2016-07-06 09:29:15 -0700 |
| commit | 0c137ab0a64b27e9bc0dc68d35ba6f5f60536a97 (patch) | |
| tree | b9f55cb777226ac455c4c76bb62870e85ef6fe03 /src/libstd/sys | |
| parent | ec58d0c9976c18c405a59d26252a1fa7a3e2a742 (diff) | |
| download | rust-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')
| -rw-r--r-- | src/libstd/sys/common/wtf8.rs | 4 | ||||
| -rw-r--r-- | src/libstd/sys/windows/fs.rs | 2 |
2 files changed, 3 insertions, 3 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 } diff --git a/src/libstd/sys/windows/fs.rs b/src/libstd/sys/windows/fs.rs index c243e890526..38a17caa2f6 100644 --- a/src/libstd/sys/windows/fs.rs +++ b/src/libstd/sys/windows/fs.rs @@ -117,7 +117,7 @@ impl Drop for FindNextFileHandle { impl DirEntry { fn new(root: &Arc<PathBuf>, wfd: &c::WIN32_FIND_DATAW) -> Option<DirEntry> { - match ::slice_pat(&&wfd.cFileName[0..3]) { + match &wfd.cFileName[0..3] { // check for '.' and '..' &[46, 0, ..] | &[46, 46, 0, ..] => return None, |
