Skip to content

Commit 2da9c7c

Browse files
committed
---
yaml --- r: 108426 b: refs/heads/dist-snap c: 35b1b62 h: refs/heads/master v: v3
1 parent 5a7f29a commit 2da9c7c

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ refs/heads/try: f64fdf524a434f0e5cd0bc91d09c144723f3c90d
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: 147ecfdd8221e4a4d4e090486829a06da1e0ca3c
9-
refs/heads/dist-snap: a96cea4f5a713eb357bde3d395c5453058be88c5
9+
refs/heads/dist-snap: 35b1b62ddfc31c2e52b65c2f908c0fcbc6465de5
1010
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596
1111
refs/tags/release-0.3: b5f0d0f648d9a6153664837026ba1be43d3e2503
1212
refs/heads/try3: 9387340aab40a73e8424c48fd42f0c521a4875c0

branches/dist-snap/src/libstd/str.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -881,7 +881,7 @@ impl<'a> Iterator<UTF16Item> for UTF16Items<'a> {
881881
}
882882

883883
// all ok, so lets decode it.
884-
let c = (u - 0xD800) as u32 << 10 | (u2 - 0xDC00) as u32 | 0x1_0000;
884+
let c = ((u - 0xD800) as u32 << 10 | (u2 - 0xDC00) as u32) + 0x1_0000;
885885
Some(ScalarValue(unsafe {cast::transmute(c)}))
886886
}
887887
}
@@ -3824,7 +3824,10 @@ mod tests {
38243824
0xdc9c_u16, 0xd801_u16, 0xdc92_u16, 0xd801_u16,
38253825
0xdc96_u16, 0xd801_u16, 0xdc86_u16, 0x0020_u16,
38263826
0xd801_u16, 0xdc95_u16, 0xd801_u16, 0xdc86_u16,
3827-
0x000a_u16 ]) ];
3827+
0x000a_u16 ]),
3828+
// Issue #12318, even-numbered non-BMP planes
3829+
(~"\U00020000",
3830+
~[0xD840, 0xDC00])];
38283831
38293832
for p in pairs.iter() {
38303833
let (s, u) = (*p).clone();

0 commit comments

Comments
 (0)