about summary refs log tree commit diff
path: root/src/libcore
diff options
context:
space:
mode:
authorPatrick Walton <pcwalton@mimiga.net>2012-09-07 15:45:11 -0700
committerPatrick Walton <pcwalton@mimiga.net>2012-09-07 15:46:08 -0700
commit1fcfee674a569b296d0da391af113a3776c749a1 (patch)
treec4c956d1cb2f929f13ee6a29b26143a2e1cb535f /src/libcore
parent2572e8035522bd2002fab4ef777ad0290312ac71 (diff)
rustc: Add a str_eq lang item for pattern matching
Diffstat (limited to 'src/libcore')
-rw-r--r--src/libcore/str.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libcore/str.rs b/src/libcore/str.rs
index b83ef1064fd..003f2a888c1 100644
--- a/src/libcore/str.rs
+++ b/src/libcore/str.rs
@@ -713,6 +713,7 @@ Section: Comparing strings
 */
 
 /// Bytewise slice equality
+#[lang="str_eq"]
 pure fn eq_slice(a: &str, b: &str) -> bool {
     do as_buf(a) |ap, alen| {
         do as_buf(b) |bp, blen| {