Skip to content

Commit 499203c

Browse files
thomasleemarijnh
authored andcommitted
---
yaml --- r: 8023 b: refs/heads/snap-stage3 c: 31b0d1b h: refs/heads/master i: 8021: dd24476 8019: 5eb2491 8015: 38d4e66 v: v3
1 parent 2a0e0ce commit 499203c

File tree

5 files changed

+11
-11
lines changed

5 files changed

+11
-11
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 633e4502e76811183208b5d1e107c4ccde2ce36c
4+
refs/heads/snap-stage3: 31b0d1b4bdf47554604bd4962d8d940c5e29cc7a
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/snap-stage3/src/comp/middle/ty.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1588,7 +1588,7 @@ fn method_idx(id: ast::ident, meths: [method]) -> option<uint> {
15881588

15891589
fn sort_methods(meths: [method]) -> [method] {
15901590
fn method_lteq(a: method, b: method) -> bool {
1591-
ret str::lteq(a.ident, b.ident);
1591+
ret str::le(a.ident, b.ident);
15921592
}
15931593
ret std::sort::merge_sort(bind method_lteq(_, _), meths);
15941594
}

branches/snap-stage3/src/libcore/str.rs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export
5454

5555
// Comparing strings
5656
eq,
57-
lteq,
57+
le,
5858
hash,
5959

6060
// Iterating through strings
@@ -704,11 +704,11 @@ Bytewise string equality
704704
pure fn eq(&&a: str, &&b: str) -> bool { a == b }
705705

706706
/*
707-
Function: lteq
707+
Function: le
708708
709709
Bytewise less than or equal
710710
*/
711-
pure fn lteq(&&a: str, &&b: str) -> bool { a <= b }
711+
pure fn le(&&a: str, &&b: str) -> bool { a <= b }
712712

713713
/*
714714
Function: hash
@@ -1381,10 +1381,10 @@ mod tests {
13811381
}
13821382

13831383
#[test]
1384-
fn test_lteq() {
1385-
assert (lteq("", ""));
1386-
assert (lteq("", "foo"));
1387-
assert (lteq("foo", "foo"));
1384+
fn test_le() {
1385+
assert (le("", ""));
1386+
assert (le("", "foo"));
1387+
assert (le("foo", "foo"));
13881388
assert (!eq("foo", "bar"));
13891389
}
13901390

branches/snap-stage3/src/libstd/test.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ fn filter_tests(opts: test_opts,
279279
filtered =
280280
{
281281
fn lteq(t1: test_desc, t2: test_desc) -> bool {
282-
str::lteq(t1.name, t2.name)
282+
str::le(t1.name, t2.name)
283283
}
284284
sort::merge_sort(bind lteq(_, _), filtered)
285285
};

branches/snap-stage3/src/rustdoc/sort_pass.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ fn fold_mod(
3838
#[test]
3939
fn test() {
4040
fn name_lteq(item1: doc::itemtag, item2: doc::itemtag) -> bool {
41-
str::lteq(item1.name(), item2.name())
41+
str::le(item1.name(), item2.name())
4242
}
4343

4444
let source = "mod z { mod y { } fn x() { } } mod w { }";

0 commit comments

Comments
 (0)