You can actually do `&str` == `~str` without `str::eq_slice`, the only caveat is that `~str` == `&str` won't work because it doesn't try borrowing the `~str` as a slice.