Skip to content

Commit 7e6b7d7

Browse files
author
Elliott Slaughter
committed
---
yaml --- r: 22749 b: refs/heads/master c: 9ca2a11 h: refs/heads/master i: 22747: 3233cd6 v: v3
1 parent 2446a8a commit 7e6b7d7

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

47 files changed

+528
-1707
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 6748f78cb1f360e2b151ed9eb3e487cf1c61ef0e
2+
refs/heads/master: 9ca2a11137e112233901cbafc11c125e596265fc
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: cd6f24f9d14ac90d167386a56e7a6ac1f0318195
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be

trunk/src/cargo/cargo.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1616,7 +1616,7 @@ fn cmd_sources(c: cargo) {
16161616
if vec::len(c.opts.free) < 3u {
16171617
for c.sources.each_value |v| {
16181618
info(#fmt("%s (%s) via %s",
1619-
v.name, v.url, v.method));
1619+
copy v.name, copy v.url, copy v.method));
16201620
}
16211621
ret;
16221622
}

trunk/src/etc/vim/syntax/rust.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ syn keyword rustKeyword ret self to unchecked
2020
syn match rustKeyword "unsafe" " Allows also matching unsafe::foo()
2121
syn keyword rustKeyword use while with
2222
" FIXME: Scoped impl's name is also fallen in this category
23-
syn keyword rustKeyword mod iface trait class struct enum type nextgroup=rustIdentifier skipwhite
23+
syn keyword rustKeyword mod iface trait class enum type nextgroup=rustIdentifier skipwhite
2424
syn keyword rustKeyword fn nextgroup=rustFuncName skipwhite
2525

2626
syn match rustIdentifier "\%([^[:cntrl:][:space:][:punct:][:digit:]]\|_\)\%([^[:cntrl:][:punct:][:space:]]\|_\)*" display contained

trunk/src/libcore/extfmt.rs

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -312,18 +312,18 @@ mod rt {
312312
let mut s = str::from_char(c);
313313
ret pad(cv, s, pad_nozero);
314314
}
315-
pure fn conv_str(cv: conv, s: &str) -> ~str {
315+
fn conv_str(cv: conv, s: ~str) -> ~str {
316316
// For strings, precision is the maximum characters
317317
// displayed
318318
let mut unpadded = alt cv.precision {
319-
count_implied { s.to_unique() }
319+
count_implied { s }
320320
count_is(max) {
321321
if max as uint < str::char_len(s) {
322322
str::substr(s, 0u, max as uint)
323-
} else { s.to_unique() }
323+
} else { s }
324324
}
325325
};
326-
ret unchecked { pad(cv, unpadded, pad_nozero) };
326+
ret pad(cv, unpadded, pad_nozero);
327327
}
328328
fn conv_float(cv: conv, f: float) -> ~str {
329329
let (to_str, digits) = alt cv.precision {
@@ -398,7 +398,7 @@ mod rt {
398398
pad_float { {might_zero_pad:true, signed:true } }
399399
pad_unsigned { {might_zero_pad:true, signed:false} }
400400
};
401-
pure fn have_precision(cv: conv) -> bool {
401+
fn have_precision(cv: conv) -> bool {
402402
ret alt cv.precision { count_implied { false } _ { true } };
403403
}
404404
let zero_padding = {
@@ -428,19 +428,11 @@ mod rt {
428428
}
429429
ret padstr + s;
430430
}
431-
pure fn have_flag(flags: u32, f: u32) -> bool {
431+
fn have_flag(flags: u32, f: u32) -> bool {
432432
flags & f != 0
433433
}
434434
}
435435

436-
#[cfg(test)]
437-
mod test {
438-
#[test]
439-
fn fmt_slice() {
440-
let s = "abc";
441-
let _s = #fmt("%s", s);
442-
}
443-
}
444436

445437
// Local Variables:
446438
// mode: rust;

trunk/src/libcore/iter-trait/dlist.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ type IMPL_T<A> = dlist::dlist<A>;
77
* e.g. breadth-first search with in-place enqueues), but removing the current
88
* node is forbidden.
99
*/
10-
pure fn EACH<A>(self: IMPL_T<A>, f: fn(A) -> bool) {
10+
fn EACH<A>(self: IMPL_T<A>, f: fn(A) -> bool) {
1111
import dlist::extensions;
1212

1313
let mut link = self.peek_n();

trunk/src/libcore/iter-trait/option.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
type IMPL_T<A> = option<A>;
22

3-
pure fn EACH<A>(self: IMPL_T<A>, f: fn(A) -> bool) {
3+
fn EACH<A>(self: IMPL_T<A>, f: fn(A) -> bool) {
44
alt self {
55
none { }
66
some(a) { f(a); }

0 commit comments

Comments
 (0)