1
Fork 0

rustc: Stop calling cmp shape glue in trans.

XFAIL's alt-borrowed_str for now. Will need to fix this up in the future.
This commit is contained in:
Patrick Walton 2012-09-10 17:22:20 -07:00
parent cb7a5395dd
commit 2aa67e9aa9
7 changed files with 47 additions and 10 deletions

View file

@ -747,6 +747,13 @@ pure fn eq_slice(a: &str, b: &str) -> bool {
}
/// Bytewise string equality
#[cfg(notest)]
#[lang="uniq_str_eq"]
pure fn eq(a: &~str, b: &~str) -> bool {
eq_slice(*a, *b)
}
#[cfg(test)]
pure fn eq(a: &~str, b: &~str) -> bool {
eq_slice(*a, *b)
}