}
}
+#[cfg(not(stage0))] // NOTE(stage0): Remove cfg after a snapshot
+impl<'a> Add<String, String> for &'a str {
+ fn add(self, mut other: String) -> String {
+ other.push_str(self);
+ other
+ }
+}
+
impl ops::Slice<uint, str> for String {
#[inline]
fn as_slice_<'a>(&'a self) -> &'a str {
}
}
+#[cfg(not(stage0))] // NOTE(stage0): Remove impl after a snapshot
+impl<'a, T: Clone> Add<Vec<T>, Vec<T>> for &'a [T] {
+ #[inline]
+ fn add(self, mut rhs: Vec<T>) -> Vec<T> {
+ rhs.push_all(self);
+ rhs
+ }
+}
+
#[unsafe_destructor]
impl<T> Drop for Vec<T> {
fn drop(&mut self) {