Skip to content

Commit ed17c2b

Browse files
committed
---
yaml --- r: 35998 b: refs/heads/try2 c: fe41cce h: refs/heads/master v: v3
1 parent 0f30345 commit ed17c2b

File tree

5 files changed

+7
-7
lines changed

5 files changed

+7
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
8-
refs/heads/try2: ac50046a111a1ef6fb58b7e5f368ff6b9b55f89c
8+
refs/heads/try2: fe41ccec6440b6ae64cae26da8e9bc42e1b06a9f
99
refs/heads/incoming: d9317a174e434d4c99fc1a37fd7dc0d2f5328d37
1010
refs/heads/dist-snap: 22efa39382d41b084fde1719df7ae8ce5697d8c9
1111
refs/tags/release-0.2: c870d2dffb391e14efb05aa27898f1f6333a9596

branches/try2/src/libcore/extfmt.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -329,11 +329,11 @@ pub mod rt {
329329
// For strings, precision is the maximum characters
330330
// displayed
331331
let mut unpadded = match cv.precision {
332-
CountImplied => s.to_unique(),
332+
CountImplied => s.to_owned(),
333333
CountIs(max) => if max as uint < str::char_len(s) {
334334
str::substr(s, 0u, max as uint)
335335
} else {
336-
s.to_unique()
336+
s.to_owned()
337337
}
338338
};
339339
return unsafe { pad(cv, move unpadded, PadNozero) };

branches/try2/src/libcore/option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ pub fn swap_unwrap<T>(opt: &mut Option<T>) -> T {
225225

226226
pub pure fn unwrap_expect<T>(opt: Option<T>, reason: &str) -> T {
227227
//! As unwrap, but with a specified failure message.
228-
if opt.is_none() { fail reason.to_unique(); }
228+
if opt.is_none() { fail reason.to_owned(); }
229229
unwrap(move opt)
230230
}
231231

branches/try2/src/libcore/str.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2135,7 +2135,7 @@ pub trait StrSlice {
21352135
pure fn trim() -> ~str;
21362136
pure fn trim_left() -> ~str;
21372137
pure fn trim_right() -> ~str;
2138-
pure fn to_unique() -> ~str;
2138+
pure fn to_owned() -> ~str;
21392139
pure fn to_managed() -> @str;
21402140
pure fn char_at(i: uint) -> char;
21412141
}
@@ -2258,7 +2258,7 @@ impl &str: StrSlice {
22582258
pure fn trim_right() -> ~str { trim_right(self) }
22592259

22602260
#[inline]
2261-
pure fn to_unique() -> ~str { self.slice(0, self.len()) }
2261+
pure fn to_owned() -> ~str { self.slice(0, self.len()) }
22622262

22632263
#[inline]
22642264
pure fn to_managed() -> @str {

branches/try2/src/libstd/json.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -897,7 +897,7 @@ pub impl Deserializer: serialization::Deserializer {
897897
// FIXME(#3148) This hint should not be necessary.
898898
let obj: &self/~Object = obj;
899899

900-
match obj.find_ref(&name.to_unique()) {
900+
match obj.find_ref(&name.to_owned()) {
901901
None => fail fmt!("no such field: %s", name),
902902
Some(json) => {
903903
self.stack.push(json);

0 commit comments

Comments
 (0)