Skip to content

Commit fc9e135

Browse files
committed
---
yaml --- r: 37279 b: refs/heads/try c: fe41cce h: refs/heads/master i: 37277: 4ce47a9 37275: c8c5f4a 37271: 66b1684 37263: f9534e8 37247: fae78aa v: v3
1 parent 6d36bf5 commit fc9e135

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
@@ -2,7 +2,7 @@
22
refs/heads/master: 09bb07bed9166105ea961a42b5fff7739ae0d2e9
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
5-
refs/heads/try: ac50046a111a1ef6fb58b7e5f368ff6b9b55f89c
5+
refs/heads/try: fe41ccec6440b6ae64cae26da8e9bc42e1b06a9f
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b
88
refs/heads/try2: a810c03263670238bccd64cabb12a23a46e3a278

branches/try/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/try/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/try/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/try/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)