Skip to content

Commit 07db184

Browse files
committed
---
yaml --- r: 21119 b: refs/heads/snap-stage3 c: c1fad07 h: refs/heads/master i: 21117: c5bae87 21115: 25e3140 21111: 3722e3b 21103: 8f003b8 21087: 5c58e94 21055: 8bcc4cd 20991: 96fbb2a v: v3
1 parent d9f7536 commit 07db184

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: e430a699f2c60890d9b86069fd0c68a70ece7120
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 958df4b0031654c6e9b03997e956a21ede289660
4+
refs/heads/snap-stage3: c1fad0775844a9413484fd2eaa10adcfdfbc2883
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export
5454

5555
// Comparing strings
5656
eq,
57+
eq_slice,
5758
le,
5859
hash,
5960

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -389,6 +389,12 @@ fn hashmap<K: const, V: copy>(+hasher: hashfn<K>, +eqer: eqfn<K>)
389389
chained::mk(hasher, eqer)
390390
}
391391

392+
/// Construct a hashmap for string-slice keys
393+
fn str_slice_hash<V: copy>() -> hashmap<&str, V> {
394+
return hashmap(|s| hash::hash_str(*s) as uint,
395+
|a,b| str::eq_slice(*a, *b));
396+
}
397+
392398
/// Construct a hashmap for string keys
393399
fn str_hash<V: copy>() -> hashmap<~str, V> {
394400
return hashmap(str::hash, str::eq);

0 commit comments

Comments
 (0)